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), i32)
%t8 = type <2 x i16> (<2 x i32>)
%t9 = type i32 (ptr addrspace(1))
%t11 = type ptr addrspace(2) ()
%t14 = type { float, i8 }
%t15 = type %t14 (ptr addrspace(1), ptr addrspace(2), i32, <2 x i32>, i32, i32, i32)
%t16 = type %t14 (ptr addrspace(1), ptr addrspace(2), i32, <2 x i16>, i16, i16, i32)
%t18 = type [2 x i32]
c12 = %t18 [27, 0]

define %t4 @f0 "unk_read_depth_ms_array" "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" %a1( Mod nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = tail call i32 @f2 [air Texture(Texture { op: Query(Width), image: ImageShape { dim: D2, array: true, ms: true, depth: true }, texel: None, coord16: false, form: Current, status: true, access: None, states_access: true, device_coherent: false })](%a0) arg0( Ref nocapture )
  %i1 = tail call i32 @f3 [air Texture(Texture { op: Query(Height), image: ImageShape { dim: D2, array: true, ms: true, depth: true }, texel: None, coord16: false, form: Current, status: true, access: None, states_access: true, device_coherent: false })](%a0) arg0( Ref nocapture )
  %i2 = tail call i32 @f4 [air Texture(Texture { op: Query(NumSamples), image: ImageShape { dim: D2, array: true, ms: true, depth: true }, texel: None, coord16: false, form: Current, status: true, access: None, states_access: true, device_coherent: false })](%a0) arg0( Ref nocapture )
  %i3 = urem i32 %a2, %i2
  %i4 = udiv i32 %a2, %i2
  %i5 = urem i32 %i4, %i0
  %i6 = insertelement <2 x i32> undef, %i5, i64 0
  %i7 = mul i32 %i2, %i0
  %i8 = udiv i32 %a2, %i7
  %i9 = urem i32 %i8, %i1
  %i10 = insertelement %i6, %i9, i64 1
  %i11 = mul i32 %i7, %i1
  %i12 = udiv i32 %a2, %i11
  %i13 = tail call i32 @f5 [air Texture(Texture { op: Query(ArraySize), image: ImageShape { dim: D2, array: true, ms: true, depth: true }, texel: None, coord16: false, form: Current, status: true, access: None, states_access: true, device_coherent: false })](%a0) arg0( Ref nocapture )
  %i14 = urem i32 %i12, %i13
  %i15 = tail call ptr addrspace(2) @f6 [air Sampler(GetReadSampler)]()
  %i16 = tail call %t14 @f7 [air Texture(Texture { op: Read, image: ImageShape { dim: D2, array: true, ms: true, 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, device_coherent: false })](%a0, %i15, i32 1, %i10, %i14, %i3, i32 1) arg0( Ref nocapture )
  %i17 = extractvalue float %i16, 0
  %i18 = insertelement <2 x float> undef, %i17, i64 0
  %i19 = 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 })](%i10)
  %i20 = trunc %i14 to i16
  %i21 = trunc %i3 to i16
  %i22 = tail call %t14 @f8 [air Texture(Texture { op: Read, image: ImageShape { dim: D2, array: true, ms: true, 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, device_coherent: false })](%a0, %i15, i32 1, %i19, %i20, %i21, i32 1) arg0( Ref nocapture )
  %i23 = extractvalue float %i22, 0
  %i24 = insertelement %i18, %i23, i64 1
  %i25 = zext %a2 to i64
  %i26 = getelementptr inbounds <2 x i32>, %a1, %i25
  %i27 = bitcast %i26 to ptr addrspace(1)
  store %i24, %i27, align 8
  ret void
}

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

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

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

declare %t9 @f4 "air.get_num_samples_depth_2d_ms_array" memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture )

declare %t9 @f5 "air.get_array_size_depth_2d_ms_array" memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture )

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

declare %t15 @f7 "air.read_depth_2d_ms_array.f32" memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture )

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