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), i32)
%t9 = type float (i32)
%t12 = type <2 x float> (<2 x i32>)
%t13 = type i32 (ptr addrspace(1), i32)
%t16 = type { <4 x float>, i8 }
%t18 = type %t16 (ptr addrspace(1), ptr addrspace(2), <2 x float>, i1, <2 x i32>, i1, float, float, i32)
%t19 = type %t16 (ptr addrspace(1), ptr addrspace(2), <2 x float>, i32, i1, <2 x i32>, i1, float, float, i32)
%t21 = type %t16 (ptr addrspace(1), ptr addrspace(2), <3 x float>, i1, float, float, i32)
%t23 = type [2 x i32]
c19 = %t2 [34901797601026121, 0]
c20 = %t23 [27, 2]
c32 = <2 x i32> [2, 3]
c33 = <2 x float> [0x3F000000, 0x3F000000]
c43 = <3 x float> [0x3F800000, poison, poison]
c45 = <3 x float> [0xBF800000, poison, poison]
c46 = <3 x float> [poison, 0x3F800000, poison]
c47 = <3 x float> [poison, 0xBF800000, poison]
c48 = <3 x float> [poison, poison, 0x3F800000]
c49 = <3 x float> [poison, poison, 0xBF800000]
@g0 "__air_sampler_state" = internal addrspace(2) constant %t2 c19, align 8

define %t7 @f0 "tvc_2d" 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" %a1( Ref nocapture "air-buffer-no-alias"="" ) %a2( Mod nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = zext %a3 to i64
  %i1 = getelementptr inbounds <4 x i32>, %a1, %i0
  %i2 = load <4 x i32>, %i1, align 16
  %i3 = shufflevector <2 x i32> %i2, <4 x i32> poison, <2, 3>
  %i4 = extractelement %i2, i64 0
  %i5 = tail call i32 @f5 [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, %i4) arg0( Ref nocapture )
  %i6 = tail call i32 @f6 [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, %i4) arg0( Ref nocapture )
  %i7 = tail call reassoc nnan ninf nsz arcp contract afn <2 x float> @f4 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 2 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 2 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i3)
  %i8 = fadd reassoc nnan ninf nsz arcp contract afn <2 x float> %i7, <2 x float> c33
  %i9 = 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 })](%i5)
  %i10 = insertelement <2 x float> undef, %i9, i64 0
  %i11 = 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)
  %i12 = insertelement %i10, %i11, i64 1
  %i13 = fdiv reassoc nnan ninf nsz arcp contract afn <2 x float> %i8, %i12
  %i14 = 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 })](%i4)
  %i15 = tail call %t16 @f7 [air Texture(Texture { op: Sample { compare: false, lod: Level, 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, %i13, i1 1, <2 x i32> zeroinitializer, i1 1, %i14, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  %i16 = extractvalue <4 x float> %i15, 0
  %i17 = getelementptr inbounds <4 x float>, %a2, %i0
  store %i16, %i17, align 16
  ret void
}

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

define %t7 @f2 "tvc_2d_array" 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" %a1( Ref nocapture "air-buffer-no-alias"="" ) %a2( Mod nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = zext %a3 to i64
  %i1 = getelementptr inbounds <4 x i32>, %a1, %i0
  %i2 = load <4 x i32>, %i1, align 16
  %i3 = shufflevector <2 x i32> %i2, <4 x i32> poison, <2, 3>
  %i4 = extractelement %i2, i64 0
  %i5 = tail call i32 @f8 [air Texture(Texture { op: Query(Width), image: ImageShape { dim: D2, array: true, ms: false, depth: false }, texel: None, coord16: false, form: Current, status: true, access: None, states_access: true })](%a0, %i4) arg0( Ref nocapture )
  %i6 = tail call i32 @f9 [air Texture(Texture { op: Query(Height), image: ImageShape { dim: D2, array: true, ms: false, depth: false }, texel: None, coord16: false, form: Current, status: true, access: None, states_access: true })](%a0, %i4) arg0( Ref nocapture )
  %i7 = tail call reassoc nnan ninf nsz arcp contract afn <2 x float> @f4 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 2 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 2 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i3)
  %i8 = fadd reassoc nnan ninf nsz arcp contract afn <2 x float> %i7, <2 x float> c33
  %i9 = 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 })](%i5)
  %i10 = insertelement <2 x float> undef, %i9, i64 0
  %i11 = 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)
  %i12 = insertelement %i10, %i11, i64 1
  %i13 = fdiv reassoc nnan ninf nsz arcp contract afn <2 x float> %i8, %i12
  %i14 = extractelement %i2, i64 1
  %i15 = 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 })](%i4)
  %i16 = tail call %t16 @f10 [air Texture(Texture { op: Sample { compare: false, lod: Level, offset: true }, image: ImageShape { dim: D2, array: true, 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, %i13, %i14, i1 1, <2 x i32> zeroinitializer, i1 1, %i15, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  %i17 = extractvalue <4 x float> %i16, 0
  %i18 = getelementptr inbounds <4 x float>, %a2, %i0
  store %i17, %i18, align 16
  ret void
}

define %t7 @f3 "tvc_cube" 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" %a1( Ref nocapture "air-buffer-no-alias"="" ) %a2( Mod nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = zext %a3 to i64
  %i1 = getelementptr inbounds <4 x i32>, %a1, %i0
  %i2 = load <4 x i32>, %i1, align 16
  %i3 = shufflevector <2 x i32> %i2, <4 x i32> poison, <2, 3>
  %i4 = extractelement %i2, i64 0
  %i5 = tail call i32 @f11 [air Texture(Texture { op: Query(Width), image: ImageShape { dim: Cube, array: false, ms: false, depth: false }, texel: None, coord16: false, form: Current, status: true, access: None, states_access: true })](%a0, %i4) arg0( Ref nocapture )
  %i6 = tail call i32 @f12 [air Texture(Texture { op: Query(Height), image: ImageShape { dim: Cube, array: false, ms: false, depth: false }, texel: None, coord16: false, form: Current, status: true, access: None, states_access: true })](%a0, %i4) arg0( Ref nocapture )
  %i7 = tail call reassoc nnan ninf nsz arcp contract afn <2 x float> @f4 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 2 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 2 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i3)
  %i8 = fadd reassoc nnan ninf nsz arcp contract afn <2 x float> %i7, <2 x float> c33
  %i9 = 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 })](%i5)
  %i10 = insertelement <2 x float> undef, %i9, i64 0
  %i11 = 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)
  %i12 = insertelement %i10, %i11, i64 1
  %i13 = fdiv reassoc nnan ninf nsz arcp contract afn <2 x float> %i8, %i12
  %i14 = extractelement %i2, i64 1
  %i15 = extractelement %i13, i64 0
  %i16 = fmul reassoc nnan ninf nsz arcp contract afn float %i15, float 0x40000000
  %i17 = fadd reassoc nnan ninf nsz arcp contract afn float %i16, float 0xBF800000
  %i18 = extractelement %i13, i64 1
  %i19 = fmul reassoc nnan ninf nsz arcp contract afn float %i18, float 0x40000000
  %i20 = fadd reassoc nnan ninf nsz arcp contract afn float %i19, float 0xBF800000
  switch %i14, bb6 [ 0: bb1 1: bb2 2: bb3 3: bb4 4: bb5 ]
bb1:
  %i22 = fneg reassoc nnan ninf nsz arcp contract afn float %i20
  %i23 = insertelement <3 x float> c43, %i22, i64 1
  %i24 = fneg reassoc nnan ninf nsz arcp contract afn float %i17
  %i25 = insertelement %i23, %i24, i64 2
  br bb7
bb2:
  %i27 = fneg reassoc nnan ninf nsz arcp contract afn float %i20
  %i28 = insertelement <3 x float> c45, %i27, i64 1
  %i29 = insertelement %i28, %i17, i64 2
  br bb7
bb3:
  %i31 = insertelement <3 x float> c46, %i17, i64 0
  %i32 = insertelement %i31, %i20, i64 2
  br bb7
bb4:
  %i34 = insertelement <3 x float> c47, %i17, i64 0
  %i35 = fneg reassoc nnan ninf nsz arcp contract afn float %i20
  %i36 = insertelement %i34, %i35, i64 2
  br bb7
bb5:
  %i38 = fneg reassoc nnan ninf nsz arcp contract afn float %i20
  %i39 = insertelement <3 x float> c48, %i17, i64 0
  %i40 = insertelement %i39, %i38, i64 1
  br bb7
bb6:
  %i42 = fneg reassoc nnan ninf nsz arcp contract afn float %i17
  %i43 = fneg reassoc nnan ninf nsz arcp contract afn float %i20
  %i44 = insertelement <3 x float> c49, %i42, i64 0
  %i45 = insertelement %i44, %i43, i64 1
  br bb7
bb7:
  %i47 = phi <3 x float> [%i45, bb6], [%i40, bb5], [%i36, bb4], [%i32, bb3], [%i29, bb2], [%i25, bb1]
  %i48 = 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 })](%i4)
  %i49 = tail call %t16 @f13 [air Texture(Texture { op: Sample { compare: false, lod: Level, offset: false }, image: ImageShape { dim: Cube, 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, %i47, i1 1, %i48, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  %i50 = extractvalue <4 x float> %i49, 0
  %i51 = getelementptr inbounds <4 x float>, %a2, %i0
  store %i50, %i51, align 16
  ret void
}

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

declare %t13 @f5 "air.get_width_texture_2d" memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture )

declare %t13 @f6 "air.get_height_texture_2d" memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture )

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

declare %t13 @f8 "air.get_width_texture_2d_array" memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture )

declare %t13 @f9 "air.get_height_texture_2d_array" memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture )

declare %t19 @f10 "air.sample_texture_2d_array.v4f32" convergent memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture ) %a1( Ref nocapture )

declare %t13 @f11 "air.get_width_texture_cube" memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture )

declare %t13 @f12 "air.get_height_texture_cube" memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture )

declare %t21 @f13 "air.sample_texture_cube.v4f32" 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 = !"t"
!md16 = !"air.buffer"
!md17 = !"air.read"
!md18 = !"air.address_space"
!md19 = !"air.arg_type_size"
!md20 = !"air.arg_type_align_size"
!md21 = !"uint4"
!md22 = !"p"
!md23 = !"air.read_write"
!md24 = !"float4"
!md25 = !"out"
!md26 = !"air.thread_position_in_grid"
!md27 = !"uint"
!md28 = !"i"
!md29 = !"texture2d_array<float, sample>"
!md30 = !"texturecube<float, sample>"
!md31 = !"air.compile.denorms_disable"
!md32 = !"air.compile.fast_math_enable"
!md33 = !"air.compile.framebuffer_fetch_enable"
!md34 = !"air.sampler_state"
!md35 = !"Apple metal version 32023.922 (metalfe-32023.922.4)"
!md36 = !"Metal"
!md37 = !"omnipotent char"
!md38 = !"Simple C++ TBAA"
!md39 = !"air-alias-scope-arg(1)"
!md40 = !"air-alias-scope-arg(2)"
!md41 = !"air-alias-scope-textures"
!md42 = i32 2
!md43 = %t23 c20
!md44 = i32 1
!md45 = i32 4
!md46 = i32 7
!md47 = i32 31
!md48 = i32 128
!md49 = i32 8
!md50 = i32 16
!md51 = ptr addrspace(0) @f0
!md52 = i32 0
!md53 = i32 3
!md54 = ptr addrspace(0) @f2
!md55 = ptr addrspace(0) @f3
!md56 = ptr addrspace(2) @g0
!md57 = i64 0
!md58 = !{!md42, !md0, !md43}
!md59 = !{!md44, !md1, !md45}
!md60 = !{!md46, !md2, !md42}
!md61 = !{!md46, !md3, !md47}
!md62 = !{!md46, !md4, !md47}
!md63 = !{!md46, !md5, !md47}
!md64 = !{!md46, !md6, !md48}
!md65 = !{!md46, !md7, !md49}
!md66 = !{!md46, !md8, !md50}
!md67 = !{}
!md68 = !{!md52, !md9, !md10, !md52, !md44, !md11, !md12, !md13, !md14, !md15}
!md69 = !{!md44, !md16, !md10, !md52, !md44, !md17, !md18, !md44, !md19, !md50, !md20, !md50, !md12, !md21, !md14, !md22}
!md70 = !{!md42, !md16, !md10, !md44, !md44, !md23, !md18, !md44, !md19, !md50, !md20, !md50, !md12, !md24, !md14, !md25}
!md71 = !{!md53, !md26, !md12, !md27, !md14, !md28}
!md72 = !{!md68, !md69, !md70, !md71}
!md73 = !{!md51, !md67, !md72}
!md74 = !{!md52, !md9, !md10, !md52, !md44, !md11, !md12, !md29, !md14, !md15}
!md75 = !{!md74, !md69, !md70, !md71}
!md76 = !{!md54, !md67, !md75}
!md77 = !{!md52, !md9, !md10, !md52, !md44, !md11, !md12, !md30, !md14, !md15}
!md78 = !{!md77, !md69, !md70, !md71}
!md79 = !{!md55, !md67, !md78}
!md80 = !{!md31}
!md81 = !{!md32}
!md82 = !{!md33}
!md83 = !{!md34, !md56}
!md84 = !{!md35}
!md85 = !{!md42, !md49, !md52}
!md86 = !{!md36, !md45, !md52, !md52}
!md87 = !{!md38}
!md88 = !{!md37, !md87, !md57}
!md89 = !{!md88, !md88, !md57}
!"llvm.module.flags" = !{!md58, !md59, !md60, !md61, !md62, !md63, !md64, !md65, !md66}
!"air.kernel" = !{!md73, !md76, !md79}
!"air.compile_options" = !{!md80, !md81, !md82}
!"air.sampler_states" = !{!md83}
!"llvm.ident" = !{!md84}
!"air.version" = !{!md85}
!"air.language_version" = !{!md86}
