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)
%t9 = type float (i32)
%t13 = type <4 x float> (<4 x half>)
%t14 = type i32 (ptr addrspace(1), i32)
%t16 = type { <4 x float>, i8 }
%t20 = type %t16 (ptr addrspace(1), ptr addrspace(2), <2 x float>, i1, <2 x i32>, i1, float, float, i32)
%t21 = type %t16 (ptr addrspace(1), ptr addrspace(2), float, i1, i32, i1, float, float, i32)
%t22 = type { <4 x half>, i8 }
%t23 = type %t22 (ptr addrspace(1), ptr addrspace(2), <2 x float>, i1, <2 x i32>, i1, float, float, i32)
%t24 = type %t22 (ptr addrspace(1), ptr addrspace(2), float, i1, i32, i1, float, float, i32)
%t26 = type [2 x i32]
c17 = %t2 [34901797601020489, 0]
c18 = %t2 [34901797601020416, 0]
c20 = %t26 [27, 0]
@g0 "__air_sampler_state" = internal addrspace(2) constant %t2 c17, align 8
@g1 "__air_sampler_state.1" = internal addrspace(2) constant %t2 c18, align 8

define %t7 @f0 "hlf_float_linear" convergent "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="128" "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 i32 @f3 [air Texture(Texture { op: Query(Width), image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: None, coord16: false, form: Current, status: true, access: None, states_access: true })](%a0, i32 0) arg0( Ref nocapture )
  %i4 = tail call reassoc nnan ninf nsz arcp contract afn float @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i3)
  %i5 = insertelement <2 x float> undef, %i4, i64 0
  %i6 = tail call i32 @f4 [air Texture(Texture { op: Query(Height), image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: None, coord16: false, form: Current, status: true, access: None, states_access: true })](%a0, i32 0) arg0( Ref nocapture )
  %i7 = tail call reassoc nnan ninf nsz arcp contract afn float @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i6)
  %i8 = insertelement %i5, %i7, i64 1
  %i9 = fdiv reassoc nnan ninf nsz arcp contract afn <2 x float> %i2, %i8
  %i10 = extractelement %i2, i64 0
  %i11 = tail call i32 @f5 [air Texture(Texture { op: Query(Width), image: ImageShape { dim: D1, array: false, ms: false, depth: false }, texel: None, coord16: false, form: Current, status: true, access: None, states_access: true })](%a1, i32 0) arg0( Ref nocapture )
  %i12 = tail call reassoc nnan ninf nsz arcp contract afn float @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i11)
  %i13 = fdiv reassoc nnan ninf nsz arcp contract afn float %i10, %i12
  %i14 = shl i32 %a6, i32 3
  %i15 = zext %i14 to i64
  %i16 = getelementptr inbounds <4 x float>, %a5, %i15
  %i17 = tail call %t16 @f6 [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: F32, lanes: 4 }, sign: None }), coord16: false, form: Current, status: true, access: Some(Sample), states_access: true })](%a0, ptr addrspace(2) @g0, %i9, 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 float> %i17, 0
  store %i18, %i16, align 16
  %i20 = tail call %t16 @f6 [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: F32, lanes: 4 }, sign: None }), coord16: false, form: Current, status: true, access: Some(Sample), states_access: true })](%a0, ptr addrspace(2) @g1, %i9, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  %i21 = extractvalue <4 x float> %i20, 0
  %i22 = getelementptr inbounds <4 x float>, %i16, i64 1
  store %i21, %i22, align 16
  %i24 = tail call %t16 @f7 [air Texture(Texture { op: Sample { compare: false, lod: Bias, offset: false }, image: ImageShape { dim: D1, array: false, ms: false, depth: false }, texel: Some(Texel { ty: NumTy { elem: F32, lanes: 4 }, sign: None }), coord16: false, form: Current, status: true, access: Some(Sample), states_access: true })](%a1, ptr addrspace(2) @g0, %i13, i1 0, i32 0, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  %i25 = extractvalue <4 x float> %i24, 0
  %i26 = getelementptr inbounds <4 x float>, %i16, i64 2
  store %i25, %i26, align 16
  %i28 = tail call %t16 @f7 [air Texture(Texture { op: Sample { compare: false, lod: Bias, offset: false }, image: ImageShape { dim: D1, array: false, ms: false, depth: false }, texel: Some(Texel { ty: NumTy { elem: F32, lanes: 4 }, sign: None }), coord16: false, form: Current, status: true, access: Some(Sample), states_access: true })](%a1, ptr addrspace(2) @g1, %i13, i1 0, i32 0, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  %i29 = extractvalue <4 x float> %i28, 0
  %i30 = getelementptr inbounds <4 x float>, %i16, i64 3
  store %i29, %i30, align 16
  %i32 = tail call i32 @f3 [air Texture(Texture { op: Query(Width), image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: None, coord16: false, form: Current, status: true, access: None, states_access: true })](%a2, i32 0) arg0( Ref nocapture )
  %i33 = tail call reassoc nnan ninf nsz arcp contract afn float @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i32)
  %i34 = insertelement <2 x float> undef, %i33, i64 0
  %i35 = tail call i32 @f4 [air Texture(Texture { op: Query(Height), image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: None, coord16: false, form: Current, status: true, access: None, states_access: true })](%a2, i32 0) arg0( Ref nocapture )
  %i36 = tail call reassoc nnan ninf nsz arcp contract afn float @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i35)
  %i37 = insertelement %i34, %i36, i64 1
  %i38 = fdiv reassoc nnan ninf nsz arcp contract afn <2 x float> %i2, %i37
  %i39 = tail call i32 @f5 [air Texture(Texture { op: Query(Width), image: ImageShape { dim: D1, array: false, ms: false, depth: false }, texel: None, coord16: false, form: Current, status: true, access: None, states_access: true })](%a3, i32 0) arg0( Ref nocapture )
  %i40 = tail call reassoc nnan ninf nsz arcp contract afn float @f1 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i39)
  %i41 = fdiv reassoc nnan ninf nsz arcp contract afn float %i10, %i40
  %i42 = tail call %t22 @f8 [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, %i38, 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>, %i16, i64 4
  store %i44, %i45, align 16
  %i47 = tail call %t22 @f8 [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, %i38, 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>, %i16, i64 5
  store %i49, %i50, align 16
  %i52 = tail call %t22 @f9 [air Texture(Texture { op: Sample { compare: false, lod: Bias, offset: false }, image: ImageShape { dim: D1, 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, %i41, i1 0, i32 0, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( 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>, %i16, i64 6
  store %i54, %i55, align 16
  %i57 = tail call %t22 @f9 [air Texture(Texture { op: Sample { compare: false, lod: Bias, offset: false }, image: ImageShape { dim: D1, 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, %i41, i1 0, i32 0, 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>, %i16, i64 7
  store %i59, %i60, align 16
  ret void
}

declare %t9 @f1 "air.convert.f.f32.u.i32" memory(NoModRef, NoModRef, NoModRef)

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

declare %t14 @f3 "air.get_width_texture_2d" memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture )

declare %t14 @f4 "air.get_height_texture_2d" memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture )

declare %t14 @f5 "air.get_width_texture_1d" memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture )

declare %t20 @f6 "air.sample_texture_2d.v4f32" convergent memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture ) %a1( Ref nocapture )

declare %t21 @f7 "air.sample_texture_1d.v4f32" convergent memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture ) %a1( Ref nocapture )

declare %t23 @f8 "air.sample_texture_2d.v4f16" convergent memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture ) %a1( Ref nocapture )

declare %t24 @f9 "air.sample_texture_1d.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<float, sample>"
!md14 = !"air.arg_name"
!md15 = !"f2"
!md16 = !"texture1d<float, sample>"
!md17 = !"f1"
!md18 = !"texture2d<half, sample>"
!md19 = !"h2"
!md20 = !"texture1d<half, sample>"
!md21 = !"h1"
!md22 = !"air.buffer"
!md23 = !"air.read"
!md24 = !"air.address_space"
!md25 = !"air.arg_type_size"
!md26 = !"air.arg_type_align_size"
!md27 = !"float2"
!md28 = !"coord"
!md29 = !"air.read_write"
!md30 = !"float4"
!md31 = !"out"
!md32 = !"air.thread_position_in_grid"
!md33 = !"uint"
!md34 = !"tid"
!md35 = !"air.compile.denorms_disable"
!md36 = !"air.compile.fast_math_enable"
!md37 = !"air.compile.framebuffer_fetch_enable"
!md38 = !"air.sampler_state"
!md39 = !"Apple metal version 32023.921 (metalfe-32023.921.6)"
!md40 = !"Metal"
!md41 = i32 2
!md42 = %t26 c20
!md43 = i32 1
!md44 = i32 4
!md45 = i32 7
!md46 = i32 31
!md47 = i32 128
!md48 = i32 8
!md49 = i32 16
!md50 = ptr addrspace(0) @f0
!md51 = i32 0
!md52 = i32 3
!md53 = i32 5
!md54 = i32 6
!md55 = ptr addrspace(2) @g0
!md56 = ptr addrspace(2) @g1
!md57 = !{!md41, !md0, !md42}
!md58 = !{!md43, !md1, !md44}
!md59 = !{!md45, !md2, !md41}
!md60 = !{!md45, !md3, !md46}
!md61 = !{!md45, !md4, !md46}
!md62 = !{!md45, !md5, !md46}
!md63 = !{!md45, !md6, !md47}
!md64 = !{!md45, !md7, !md48}
!md65 = !{!md45, !md8, !md49}
!md66 = !{}
!md67 = !{!md51, !md9, !md10, !md51, !md43, !md11, !md12, !md13, !md14, !md15}
!md68 = !{!md43, !md9, !md10, !md43, !md43, !md11, !md12, !md16, !md14, !md17}
!md69 = !{!md41, !md9, !md10, !md41, !md43, !md11, !md12, !md18, !md14, !md19}
!md70 = !{!md52, !md9, !md10, !md52, !md43, !md11, !md12, !md20, !md14, !md21}
!md71 = !{!md44, !md22, !md10, !md51, !md43, !md23, !md24, !md43, !md25, !md48, !md26, !md48, !md12, !md27, !md14, !md28}
!md72 = !{!md53, !md22, !md10, !md43, !md43, !md29, !md24, !md43, !md25, !md49, !md26, !md49, !md12, !md30, !md14, !md31}
!md73 = !{!md54, !md32, !md12, !md33, !md14, !md34}
!md74 = !{!md67, !md68, !md69, !md70, !md71, !md72, !md73}
!md75 = !{!md50, !md66, !md74}
!md76 = !{!md35}
!md77 = !{!md36}
!md78 = !{!md37}
!md79 = !{!md38, !md55}
!md80 = !{!md38, !md56}
!md81 = !{!md39}
!md82 = !{!md41, !md48, !md51}
!md83 = !{!md40, !md44, !md51, !md51}
!"llvm.module.flags" = !{!md57, !md58, !md59, !md60, !md61, !md62, !md63, !md64, !md65}
!"air.kernel" = !{!md75}
!"air.compile_options" = !{!md76, !md77, !md78}
!"air.sampler_states" = !{!md79, !md80}
!"llvm.ident" = !{!md81}
!"air.version" = !{!md82}
!"air.language_version" = !{!md83}
