target triple = "air64_v28-apple-macosx26.0.0"
source_filename = "-"
; datalayout DataLayout { endian: Little, pointers: {0: PointerSpec { size_bits: 64, abi_bits: 64, pref_bits: 64, index_bits: 64 }}, ints: {1: AlignSpec { abi_bits: 8, pref_bits: 8 }, 8: AlignSpec { abi_bits: 8, pref_bits: 8 }, 16: AlignSpec { abi_bits: 16, pref_bits: 16 }, 32: AlignSpec { abi_bits: 32, pref_bits: 32 }, 64: AlignSpec { abi_bits: 64, pref_bits: 64 }}, floats: {16: AlignSpec { abi_bits: 16, pref_bits: 16 }, 32: AlignSpec { abi_bits: 32, pref_bits: 32 }, 64: AlignSpec { abi_bits: 64, pref_bits: 64 }, 128: AlignSpec { abi_bits: 128, pref_bits: 128 }}, vectors: {16: AlignSpec { abi_bits: 16, pref_bits: 16 }, 24: AlignSpec { abi_bits: 32, pref_bits: 32 }, 32: AlignSpec { abi_bits: 32, pref_bits: 32 }, 48: AlignSpec { abi_bits: 64, pref_bits: 64 }, 64: AlignSpec { abi_bits: 64, pref_bits: 64 }, 96: AlignSpec { abi_bits: 128, pref_bits: 128 }, 128: AlignSpec { abi_bits: 128, pref_bits: 128 }, 192: AlignSpec { abi_bits: 256, pref_bits: 256 }, 256: AlignSpec { abi_bits: 256, pref_bits: 256 }, 512: AlignSpec { abi_bits: 512, pref_bits: 512 }, 1024: AlignSpec { abi_bits: 1024, pref_bits: 1024 }}, aggregate: AlignSpec { abi_bits: 0, pref_bits: 64 }, native_ints: [8, 16, 32], stack_align_bits: None, alloca_space: 0, program_space: 0, globals_space: 0, mangling: None, fn_ptr_align: None, non_integral: [] }
%t4 = type void (ptr addrspace(1), ptr addrspace(1), ptr addrspace(1), ptr addrspace(1), ptr addrspace(1), ptr addrspace(1), ptr addrspace(1), i32)
%t9 = type <4 x float> (<4 x half>)
%t11 = type ptr addrspace(2) ()
%t13 = type { <4 x half>, i8 }
%t15 = type %t13 (ptr addrspace(1), ptr addrspace(2), <2 x i32>, <2 x i32>, i32, i32)
%t17 = type [2 x i32]
c7 = %t17 [27, 0]

define %t4 @f0 "hlf_half_access" "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="64" "no-builtins"="" "no-infs-fp-math"="true" "no-nans-fp-math"="true" "no-signed-zeros-fp-math"="true" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "unsafe-fp-math"="true" %a6( Mod nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = and i32 %a7, i32 15
  %i1 = insertelement <2 x i32> undef, %i0, i64 0
  %i2 = lshr i32 %a7, i32 4
  %i3 = insertelement %i1, %i2, i64 1
  %i4 = mul i32 %a7, i32 6
  %i5 = zext %i4 to i64
  %i6 = getelementptr inbounds <4 x float>, %a6, %i5
  %i7 = tail call ptr addrspace(2) @f2 [air Sampler(GetReadSampler)]()
  %i8 = tail call %t13 @f3 [air Texture(Texture { op: Read, image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: Some(Texel { ty: NumTy { elem: F16, lanes: 4 }, sign: None }), coord16: false, form: Current, status: true, access: Some(Read), states_access: true, device_coherent: false })](%a0, %i7, %i3, <2 x i32> zeroinitializer, i32 0, i32 1) arg0( Ref nocapture )
  %i9 = extractvalue <4 x half> %i8, 0
  %i10 = tail call reassoc nnan ninf nsz arcp contract afn <4 x float> @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 4 }, dst_kind: Float, src: NumTy { elem: F16, lanes: 4 }, src_kind: Float, src_fp8: None, rounding: None, saturate: false })](%i9)
  store %i10, %i6, align 16
  %i12 = tail call %t13 @f3 [air Texture(Texture { op: Read, image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: Some(Texel { ty: NumTy { elem: F16, lanes: 4 }, sign: None }), coord16: false, form: Current, status: true, access: Some(Read), states_access: true, device_coherent: false })](%a1, %i7, %i3, <2 x i32> zeroinitializer, i32 0, i32 1) arg0( Ref nocapture )
  %i13 = extractvalue <4 x half> %i12, 0
  %i14 = tail call reassoc nnan ninf nsz arcp contract afn <4 x float> @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 4 }, dst_kind: Float, src: NumTy { elem: F16, lanes: 4 }, src_kind: Float, src_fp8: None, rounding: None, saturate: false })](%i13)
  %i15 = getelementptr inbounds <4 x float>, %i6, i64 1
  store %i14, %i15, align 16
  %i17 = tail call %t13 @f3 [air Texture(Texture { op: Read, image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: Some(Texel { ty: NumTy { elem: F16, lanes: 4 }, sign: None }), coord16: false, form: Current, status: true, access: Some(Read), states_access: true, device_coherent: false })](%a2, %i7, %i3, <2 x i32> zeroinitializer, i32 0, i32 1) arg0( Ref nocapture )
  %i18 = extractvalue <4 x half> %i17, 0
  %i19 = tail call reassoc nnan ninf nsz arcp contract afn <4 x float> @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 4 }, dst_kind: Float, src: NumTy { elem: F16, lanes: 4 }, src_kind: Float, src_fp8: None, rounding: None, saturate: false })](%i18)
  %i20 = getelementptr inbounds <4 x float>, %i6, i64 2
  store %i19, %i20, align 16
  %i22 = tail call %t13 @f3 [air Texture(Texture { op: Read, image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: Some(Texel { ty: NumTy { elem: F16, lanes: 4 }, sign: None }), coord16: false, form: Current, status: true, access: Some(Read), states_access: true, device_coherent: false })](%a3, %i7, %i3, <2 x i32> zeroinitializer, i32 0, i32 1) arg0( Ref nocapture )
  %i23 = extractvalue <4 x half> %i22, 0
  %i24 = tail call reassoc nnan ninf nsz arcp contract afn <4 x float> @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 4 }, dst_kind: Float, src: NumTy { elem: F16, lanes: 4 }, src_kind: Float, src_fp8: None, rounding: None, saturate: false })](%i23)
  %i25 = getelementptr inbounds <4 x float>, %i6, i64 3
  store %i24, %i25, align 16
  %i27 = tail call %t13 @f3 [air Texture(Texture { op: Read, image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: Some(Texel { ty: NumTy { elem: F16, lanes: 4 }, sign: None }), coord16: false, form: Current, status: true, access: Some(ReadWrite), states_access: true, device_coherent: false })](%a4, %i7, %i3, <2 x i32> zeroinitializer, i32 0, i32 3) arg0( Ref nocapture )
  %i28 = extractvalue <4 x half> %i27, 0
  %i29 = tail call reassoc nnan ninf nsz arcp contract afn <4 x float> @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 4 }, dst_kind: Float, src: NumTy { elem: F16, lanes: 4 }, src_kind: Float, src_fp8: None, rounding: None, saturate: false })](%i28)
  %i30 = getelementptr inbounds <4 x float>, %i6, i64 4
  store %i29, %i30, align 16
  %i32 = tail call %t13 @f3 [air Texture(Texture { op: Read, image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: Some(Texel { ty: NumTy { elem: F16, lanes: 4 }, sign: None }), coord16: false, form: Current, status: true, access: Some(ReadWrite), states_access: true, device_coherent: false })](%a5, %i7, %i3, <2 x i32> zeroinitializer, i32 0, i32 3) arg0( Ref nocapture )
  %i33 = extractvalue <4 x half> %i32, 0
  %i34 = tail call reassoc nnan ninf nsz arcp contract afn <4 x float> @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 4 }, dst_kind: Float, src: NumTy { elem: F16, lanes: 4 }, src_kind: Float, src_fp8: None, rounding: None, saturate: false })](%i33)
  %i35 = getelementptr inbounds <4 x float>, %i6, i64 5
  store %i34, %i35, align 16
  ret void
}

declare %t9 @f1 "air.convert.f.v4f32.f.v4f16" memory(NoModRef, NoModRef, NoModRef)

declare %t11 @f2 "air.get_read_sampler" memory(NoModRef, Ref, NoModRef)

declare %t15 @f3 "air.read_texture_2d.v4f16" memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture )
!md0 = !"SDK Version"
!md1 = !"wchar_size"
!md2 = !"frame-pointer"
!md3 = !"air.max_device_buffers"
!md4 = !"air.max_constant_buffers"
!md5 = !"air.max_threadgroup_buffers"
!md6 = !"air.max_textures"
!md7 = !"air.max_read_write_textures"
!md8 = !"air.max_samplers"
!md9 = !"air.texture"
!md10 = !"air.location_index"
!md11 = !"air.read"
!md12 = !"air.arg_type_name"
!md13 = !"texture2d<half, read>"
!md14 = !"air.arg_name"
!md15 = !"r0"
!md16 = !"r1"
!md17 = !"r2"
!md18 = !"r3"
!md19 = !"air.read_write"
!md20 = !"texture2d<half, read_write>"
!md21 = !"w4"
!md22 = !"w5"
!md23 = !"air.buffer"
!md24 = !"air.address_space"
!md25 = !"air.arg_type_size"
!md26 = !"air.arg_type_align_size"
!md27 = !"float4"
!md28 = !"out"
!md29 = !"air.thread_position_in_grid"
!md30 = !"uint"
!md31 = !"tid"
!md32 = !"air.compile.denorms_disable"
!md33 = !"air.compile.fast_math_enable"
!md34 = !"air.compile.framebuffer_fetch_enable"
!md35 = !"Apple metal version 32023.921 (metalfe-32023.921.6)"
!md36 = !"Metal"
!md37 = i32 2
!md38 = %t17 c7
!md39 = i32 1
!md40 = i32 4
!md41 = i32 7
!md42 = i32 31
!md43 = i32 128
!md44 = i32 8
!md45 = i32 16
!md46 = ptr addrspace(0) @f0
!md47 = i32 0
!md48 = i32 3
!md49 = i32 5
!md50 = i32 6
!md51 = !{!md37, !md0, !md38}
!md52 = !{!md39, !md1, !md40}
!md53 = !{!md41, !md2, !md37}
!md54 = !{!md41, !md3, !md42}
!md55 = !{!md41, !md4, !md42}
!md56 = !{!md41, !md5, !md42}
!md57 = !{!md41, !md6, !md43}
!md58 = !{!md41, !md7, !md44}
!md59 = !{!md41, !md8, !md45}
!md60 = !{}
!md61 = !{!md47, !md9, !md10, !md47, !md39, !md11, !md12, !md13, !md14, !md15}
!md62 = !{!md39, !md9, !md10, !md39, !md39, !md11, !md12, !md13, !md14, !md16}
!md63 = !{!md37, !md9, !md10, !md37, !md39, !md11, !md12, !md13, !md14, !md17}
!md64 = !{!md48, !md9, !md10, !md48, !md39, !md11, !md12, !md13, !md14, !md18}
!md65 = !{!md40, !md9, !md10, !md40, !md39, !md19, !md12, !md20, !md14, !md21}
!md66 = !{!md49, !md9, !md10, !md49, !md39, !md19, !md12, !md20, !md14, !md22}
!md67 = !{!md50, !md23, !md10, !md47, !md39, !md19, !md24, !md39, !md25, !md45, !md26, !md45, !md12, !md27, !md14, !md28}
!md68 = !{!md41, !md29, !md12, !md30, !md14, !md31}
!md69 = !{!md61, !md62, !md63, !md64, !md65, !md66, !md67, !md68}
!md70 = !{!md46, !md60, !md69}
!md71 = !{!md32}
!md72 = !{!md33}
!md73 = !{!md34}
!md74 = !{!md35}
!md75 = !{!md37, !md44, !md47}
!md76 = !{!md36, !md40, !md47, !md47}
!"llvm.module.flags" = !{!md51, !md52, !md53, !md54, !md55, !md56, !md57, !md58, !md59}
!"air.kernel" = !{!md70}
!"air.compile_options" = !{!md71, !md72, !md73}
!"llvm.ident" = !{!md74}
!"air.version" = !{!md75}
!"air.language_version" = !{!md76}
