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: [] }
%t2 = type [2 x i64]
%t7 = type void (ptr addrspace(1), ptr addrspace(1), ptr addrspace(1), ptr addrspace(1), ptr addrspace(1), ptr addrspace(1), i32)
%t11 = type <2 x i32> (<2 x float>)
%t15 = type <4 x float> (<4 x half>)
%t16 = type ptr addrspace(2) ()
%t18 = type { <4 x half>, i8 }
%t19 = type %t18 (ptr addrspace(1), ptr addrspace(2), <2 x i32>, <2 x i32>, i32, i32)
%t21 = type %t18 (ptr addrspace(1), ptr addrspace(2), <2 x float>, i1, <2 x i32>, i1, float, float, i32)
%t23 = type [2 x i32]
c13 = %t2 [34901797601050697, 0]
c14 = %t2 [34901797601053257, 0]
c16 = %t23 [27, 0]
@g0 "__air_sampler_state" = internal addrspace(2) constant %t2 c13, align 8
@g1 "__air_sampler_state.1" = internal addrspace(2) constant %t2 c14, align 8

define %t7 @f0 "bcx_half_read" convergent "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" %a4( Ref nocapture "air-buffer-no-alias"="" ) %a5( Mod nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = zext %a6 to i64
  %i1 = getelementptr inbounds <2 x float>, %a4, %i0
  %i2 = load <2 x float>, %i1, align 8
  %i3 = tail call <2 x i32> @f1 [air Convert(Convert { dst: NumTy { elem: I32, lanes: 2 }, dst_kind: Unsigned, src: NumTy { elem: F32, lanes: 2 }, src_kind: Float, src_fp8: None, rounding: None, saturate: false })](%i2)
  %i4 = mul i32 %a6, i32 12
  %i5 = zext %i4 to i64
  %i6 = getelementptr inbounds <4 x float>, %a5, %i5
  %i7 = tail call ptr addrspace(2) @f3 [air Sampler(GetReadSampler)]()
  %i8 = tail call %t18 @f4 [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(Sample), states_access: true })](%a0, %i7, %i3, <2 x i32> zeroinitializer, i32 0, i32 0) arg0( Ref nocapture )
  %i9 = extractvalue <4 x half> %i8, 0
  %i10 = tail call reassoc nnan ninf nsz arcp contract afn <4 x float> @f2 [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 %t18 @f5 [air Texture(Texture { op: Sample { compare: false, lod: Bias, offset: true }, 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(Sample), states_access: true })](%a0, ptr addrspace(2) @g0, %i2, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  %i13 = extractvalue <4 x half> %i12, 0
  %i14 = tail call reassoc nnan ninf nsz arcp contract afn <4 x float> @f2 [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 %t18 @f5 [air Texture(Texture { op: Sample { compare: false, lod: Bias, offset: true }, 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(Sample), states_access: true })](%a0, ptr addrspace(2) @g1, %i2, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  %i18 = extractvalue <4 x half> %i17, 0
  %i19 = tail call reassoc nnan ninf nsz arcp contract afn <4 x float> @f2 [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 %t18 @f4 [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(Sample), states_access: true })](%a1, %i7, %i3, <2 x i32> zeroinitializer, i32 0, i32 0) arg0( Ref nocapture )
  %i23 = extractvalue <4 x half> %i22, 0
  %i24 = tail call reassoc nnan ninf nsz arcp contract afn <4 x float> @f2 [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 %t18 @f5 [air Texture(Texture { op: Sample { compare: false, lod: Bias, offset: true }, 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(Sample), states_access: true })](%a1, ptr addrspace(2) @g0, %i2, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  %i28 = extractvalue <4 x half> %i27, 0
  %i29 = tail call reassoc nnan ninf nsz arcp contract afn <4 x float> @f2 [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 %t18 @f5 [air Texture(Texture { op: Sample { compare: false, lod: Bias, offset: true }, 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(Sample), states_access: true })](%a1, ptr addrspace(2) @g1, %i2, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  %i33 = extractvalue <4 x half> %i32, 0
  %i34 = tail call reassoc nnan ninf nsz arcp contract afn <4 x float> @f2 [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
  %i37 = tail call %t18 @f4 [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(Sample), states_access: true })](%a2, %i7, %i3, <2 x i32> zeroinitializer, i32 0, i32 0) arg0( Ref nocapture )
  %i38 = extractvalue <4 x half> %i37, 0
  %i39 = tail call reassoc nnan ninf nsz arcp contract afn <4 x float> @f2 [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 })](%i38)
  %i40 = getelementptr inbounds <4 x float>, %i6, i64 6
  store %i39, %i40, align 16
  %i42 = tail call %t18 @f5 [air Texture(Texture { op: Sample { compare: false, lod: Bias, offset: true }, 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(Sample), states_access: true })](%a2, ptr addrspace(2) @g0, %i2, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  %i43 = extractvalue <4 x half> %i42, 0
  %i44 = tail call reassoc nnan ninf nsz arcp contract afn <4 x float> @f2 [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 })](%i43)
  %i45 = getelementptr inbounds <4 x float>, %i6, i64 7
  store %i44, %i45, align 16
  %i47 = tail call %t18 @f5 [air Texture(Texture { op: Sample { compare: false, lod: Bias, offset: true }, 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(Sample), states_access: true })](%a2, ptr addrspace(2) @g1, %i2, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  %i48 = extractvalue <4 x half> %i47, 0
  %i49 = tail call reassoc nnan ninf nsz arcp contract afn <4 x float> @f2 [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 })](%i48)
  %i50 = getelementptr inbounds <4 x float>, %i6, i64 8
  store %i49, %i50, align 16
  %i52 = tail call %t18 @f4 [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(Sample), states_access: true })](%a3, %i7, %i3, <2 x i32> zeroinitializer, i32 0, i32 0) arg0( Ref nocapture )
  %i53 = extractvalue <4 x half> %i52, 0
  %i54 = tail call reassoc nnan ninf nsz arcp contract afn <4 x float> @f2 [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 })](%i53)
  %i55 = getelementptr inbounds <4 x float>, %i6, i64 9
  store %i54, %i55, align 16
  %i57 = tail call %t18 @f5 [air Texture(Texture { op: Sample { compare: false, lod: Bias, offset: true }, 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(Sample), states_access: true })](%a3, ptr addrspace(2) @g0, %i2, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  %i58 = extractvalue <4 x half> %i57, 0
  %i59 = tail call reassoc nnan ninf nsz arcp contract afn <4 x float> @f2 [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 })](%i58)
  %i60 = getelementptr inbounds <4 x float>, %i6, i64 10
  store %i59, %i60, align 16
  %i62 = tail call %t18 @f5 [air Texture(Texture { op: Sample { compare: false, lod: Bias, offset: true }, 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(Sample), states_access: true })](%a3, ptr addrspace(2) @g1, %i2, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  %i63 = extractvalue <4 x half> %i62, 0
  %i64 = tail call reassoc nnan ninf nsz arcp contract afn <4 x float> @f2 [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 })](%i63)
  %i65 = getelementptr inbounds <4 x float>, %i6, i64 11
  store %i64, %i65, align 16
  ret void
}

declare %t11 @f1 "air.convert.u.v2i32.f.v2f32" memory(NoModRef, NoModRef, NoModRef)

declare %t15 @f2 "air.convert.f.v4f32.f.v4f16" memory(NoModRef, NoModRef, NoModRef)

declare %t16 @f3 "air.get_read_sampler" memory(NoModRef, Ref, NoModRef)

declare %t19 @f4 "air.read_texture_2d.v4f16" memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture )

declare %t21 @f5 "air.sample_texture_2d.v4f16" convergent memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture ) %a1( 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.sample"
!md12 = !"air.arg_type_name"
!md13 = !"texture2d<half, sample>"
!md14 = !"air.arg_name"
!md15 = !"t0"
!md16 = !"t1"
!md17 = !"t2"
!md18 = !"t3"
!md19 = !"air.buffer"
!md20 = !"air.read"
!md21 = !"air.address_space"
!md22 = !"air.arg_type_size"
!md23 = !"air.arg_type_align_size"
!md24 = !"float2"
!md25 = !"coord"
!md26 = !"air.read_write"
!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 = !"air.sampler_state"
!md36 = !"Apple metal version 32023.921 (metalfe-32023.921.6)"
!md37 = !"Metal"
!md38 = i32 2
!md39 = %t23 c16
!md40 = i32 1
!md41 = i32 4
!md42 = i32 7
!md43 = i32 31
!md44 = i32 128
!md45 = i32 8
!md46 = i32 16
!md47 = ptr addrspace(0) @f0
!md48 = i32 0
!md49 = i32 3
!md50 = i32 5
!md51 = i32 6
!md52 = ptr addrspace(2) @g0
!md53 = ptr addrspace(2) @g1
!md54 = !{!md38, !md0, !md39}
!md55 = !{!md40, !md1, !md41}
!md56 = !{!md42, !md2, !md38}
!md57 = !{!md42, !md3, !md43}
!md58 = !{!md42, !md4, !md43}
!md59 = !{!md42, !md5, !md43}
!md60 = !{!md42, !md6, !md44}
!md61 = !{!md42, !md7, !md45}
!md62 = !{!md42, !md8, !md46}
!md63 = !{}
!md64 = !{!md48, !md9, !md10, !md48, !md40, !md11, !md12, !md13, !md14, !md15}
!md65 = !{!md40, !md9, !md10, !md40, !md40, !md11, !md12, !md13, !md14, !md16}
!md66 = !{!md38, !md9, !md10, !md38, !md40, !md11, !md12, !md13, !md14, !md17}
!md67 = !{!md49, !md9, !md10, !md49, !md40, !md11, !md12, !md13, !md14, !md18}
!md68 = !{!md41, !md19, !md10, !md48, !md40, !md20, !md21, !md40, !md22, !md45, !md23, !md45, !md12, !md24, !md14, !md25}
!md69 = !{!md50, !md19, !md10, !md40, !md40, !md26, !md21, !md40, !md22, !md46, !md23, !md46, !md12, !md27, !md14, !md28}
!md70 = !{!md51, !md29, !md12, !md30, !md14, !md31}
!md71 = !{!md64, !md65, !md66, !md67, !md68, !md69, !md70}
!md72 = !{!md47, !md63, !md71}
!md73 = !{!md32}
!md74 = !{!md33}
!md75 = !{!md34}
!md76 = !{!md35, !md52}
!md77 = !{!md35, !md53}
!md78 = !{!md36}
!md79 = !{!md38, !md45, !md48}
!md80 = !{!md37, !md41, !md48, !md48}
!"llvm.module.flags" = !{!md54, !md55, !md56, !md57, !md58, !md59, !md60, !md61, !md62}
!"air.kernel" = !{!md72}
!"air.compile_options" = !{!md73, !md74, !md75}
!"air.sampler_states" = !{!md76, !md77}
!"llvm.ident" = !{!md78}
!"air.version" = !{!md79}
!"air.language_version" = !{!md80}
