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), i32)
%t8 = type <2 x i16> (<2 x i32>)
%t9 = type i32 (ptr addrspace(1), i32)
%t10 = type i32 (ptr addrspace(1))
%t12 = type ptr addrspace(2) ()
%t15 = type { float, i8 }
%t16 = type %t15 (ptr addrspace(1), ptr addrspace(2), i32, <2 x i32>, i32, i32, i32)
%t17 = type %t15 (ptr addrspace(1), ptr addrspace(2), i32, <2 x i16>, i16, i16, i32)
%t18 = type %t15 (ptr addrspace(1), ptr addrspace(2), i32, <2 x i32>, i32, i32, i32, i32)
%t19 = type %t15 (ptr addrspace(1), ptr addrspace(2), i32, <2 x i16>, i16, i16, i16, i32)
%t21 = type [2 x i32]
c13 = %t21 [27, 0]

define %t4 @f0 "unk_read_depth_cube" "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" %a2( Mod nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = tail call i32 @f2 [air Texture(Texture { op: Query(Width), image: ImageShape { dim: Cube, array: false, ms: false, depth: true }, texel: None, coord16: false, form: Current, status: true, access: None, states_access: true })](%a0, i32 0) arg0( Ref nocapture )
  %i1 = tail call i32 @f3 [air Texture(Texture { op: Query(Height), image: ImageShape { dim: Cube, array: false, ms: false, depth: true }, texel: None, coord16: false, form: Current, status: true, access: None, states_access: true })](%a0, i32 0) arg0( Ref nocapture )
  %i2 = urem i32 %a3, i32 6
  %i3 = udiv i32 %a3, i32 6
  %i4 = urem i32 %i3, %i0
  %i5 = insertelement <2 x i32> undef, %i4, i64 0
  %i6 = mul i32 %i0, i32 6
  %i7 = udiv i32 %a3, %i6
  %i8 = urem i32 %i7, %i1
  %i9 = insertelement %i5, %i8, i64 1
  %i10 = mul i32 %i6, %i1
  %i11 = udiv i32 %a3, %i10
  %i12 = tail call i32 @f4 [air Texture(Texture { op: Query(ArraySize), image: ImageShape { dim: Cube, array: true, ms: false, depth: true }, texel: None, coord16: false, form: Current, status: true, access: None, states_access: true })](%a1) arg0( Ref nocapture )
  %i13 = urem i32 %i11, %i12
  %i14 = tail call ptr addrspace(2) @f5 [air Sampler(GetReadSampler)]()
  %i15 = tail call %t15 @f6 [air Texture(Texture { op: Read, image: ImageShape { dim: Cube, array: false, ms: false, depth: true }, texel: Some(Texel { ty: NumTy { elem: F32, lanes: 1 }, sign: None }), coord16: false, form: Current, status: true, access: Some(Read), states_access: true })](%a0, %i14, i32 1, %i9, %i2, i32 0, i32 1) arg0( Ref nocapture )
  %i16 = extractvalue float %i15, 0
  %i17 = insertelement <4 x float> undef, %i16, i64 0
  %i18 = tail call <2 x i16> @f1 [air Convert(Convert { dst: NumTy { elem: I16, lanes: 2 }, dst_kind: Unsigned, src: NumTy { elem: I32, lanes: 2 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i9)
  %i19 = trunc %i2 to i16
  %i20 = tail call %t15 @f7 [air Texture(Texture { op: Read, image: ImageShape { dim: Cube, array: false, ms: false, depth: true }, texel: Some(Texel { ty: NumTy { elem: F32, lanes: 1 }, sign: None }), coord16: true, form: Current, status: true, access: Some(Read), states_access: true })](%a0, %i14, i32 1, %i18, %i19, i16 0, i32 1) arg0( Ref nocapture )
  %i21 = extractvalue float %i20, 0
  %i22 = insertelement %i17, %i21, i64 1
  %i23 = tail call %t15 @f8 [air Texture(Texture { op: Read, image: ImageShape { dim: Cube, array: true, ms: false, depth: true }, texel: Some(Texel { ty: NumTy { elem: F32, lanes: 1 }, sign: None }), coord16: false, form: Current, status: true, access: Some(Read), states_access: true })](%a1, %i14, i32 1, %i9, %i2, %i13, i32 0, i32 1) arg0( Ref nocapture )
  %i24 = extractvalue float %i23, 0
  %i25 = insertelement %i22, %i24, i64 2
  %i26 = trunc %i13 to i16
  %i27 = tail call %t15 @f9 [air Texture(Texture { op: Read, image: ImageShape { dim: Cube, array: true, ms: false, depth: true }, texel: Some(Texel { ty: NumTy { elem: F32, lanes: 1 }, sign: None }), coord16: true, form: Current, status: true, access: Some(Read), states_access: true })](%a1, %i14, i32 1, %i18, %i19, %i26, i16 0, i32 1) arg0( Ref nocapture )
  %i28 = extractvalue float %i27, 0
  %i29 = insertelement %i25, %i28, i64 3
  %i30 = zext %a3 to i64
  %i31 = getelementptr inbounds <4 x i32>, %a2, %i30
  %i32 = bitcast %i31 to ptr addrspace(1)
  store %i29, %i32, align 16
  ret void
}

declare %t8 @f1 "air.convert.u.v2i16.u.v2i32" memory(NoModRef, NoModRef, NoModRef)

declare %t9 @f2 "air.get_width_depth_cube" memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture )

declare %t9 @f3 "air.get_height_depth_cube" memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture )

declare %t10 @f4 "air.get_array_size_depth_cube_array" memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture )

declare %t12 @f5 "air.get_read_sampler" memory(NoModRef, Ref, NoModRef)

declare %t16 @f6 "air.read_depth_cube.f32" memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture )

declare %t17 @f7 "air.read_depth_cube.i16.f32" memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture )

declare %t18 @f8 "air.read_depth_cube_array.f32" memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture )

declare %t19 @f9 "air.read_depth_cube_array.i16.f32" 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 = !"depthcube<float, read>"
!md14 = !"air.arg_name"
!md15 = !"c"
!md16 = !"depthcube_array<float, read>"
!md17 = !"a"
!md18 = !"air.buffer"
!md19 = !"air.read_write"
!md20 = !"air.address_space"
!md21 = !"air.arg_type_size"
!md22 = !"air.arg_type_align_size"
!md23 = !"uint4"
!md24 = !"out"
!md25 = !"air.thread_position_in_grid"
!md26 = !"uint"
!md27 = !"i"
!md28 = !"air.compile.denorms_disable"
!md29 = !"air.compile.fast_math_enable"
!md30 = !"air.compile.framebuffer_fetch_enable"
!md31 = !"Apple metal version 32023.921 (metalfe-32023.921.6)"
!md32 = !"Metal"
!md33 = i32 2
!md34 = %t21 c13
!md35 = i32 1
!md36 = i32 4
!md37 = i32 7
!md38 = i32 31
!md39 = i32 128
!md40 = i32 8
!md41 = i32 16
!md42 = ptr addrspace(0) @f0
!md43 = i32 0
!md44 = i32 3
!md45 = !{!md33, !md0, !md34}
!md46 = !{!md35, !md1, !md36}
!md47 = !{!md37, !md2, !md33}
!md48 = !{!md37, !md3, !md38}
!md49 = !{!md37, !md4, !md38}
!md50 = !{!md37, !md5, !md38}
!md51 = !{!md37, !md6, !md39}
!md52 = !{!md37, !md7, !md40}
!md53 = !{!md37, !md8, !md41}
!md54 = !{}
!md55 = !{!md43, !md9, !md10, !md43, !md35, !md11, !md12, !md13, !md14, !md15}
!md56 = !{!md35, !md9, !md10, !md35, !md35, !md11, !md12, !md16, !md14, !md17}
!md57 = !{!md33, !md18, !md10, !md43, !md35, !md19, !md20, !md35, !md21, !md41, !md22, !md41, !md12, !md23, !md14, !md24}
!md58 = !{!md44, !md25, !md12, !md26, !md14, !md27}
!md59 = !{!md55, !md56, !md57, !md58}
!md60 = !{!md42, !md54, !md59}
!md61 = !{!md28}
!md62 = !{!md29}
!md63 = !{!md30}
!md64 = !{!md31}
!md65 = !{!md33, !md40, !md43}
!md66 = !{!md32, !md36, !md43, !md43}
!"llvm.module.flags" = !{!md45, !md46, !md47, !md48, !md49, !md50, !md51, !md52, !md53}
!"air.kernel" = !{!md60}
!"air.compile_options" = !{!md61, !md62, !md63}
!"llvm.ident" = !{!md64}
!"air.version" = !{!md65}
!"air.language_version" = !{!md66}
