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), ptr addrspace(1), i32)
%t9 = type <4 x float> (<4 x half>)
%t10 = type i32 (ptr addrspace(1), i32)
%t11 = type i32 (ptr addrspace(1))
%t13 = type ptr addrspace(2) ()
%t15 = type { <4 x float>, i8 }
%t16 = type %t15 (ptr addrspace(1), ptr addrspace(2), i32, i32, i32, i32)
%t18 = type { <4 x i32>, i8 }
%t20 = type %t18 (ptr addrspace(1), ptr addrspace(2), i16, i16, i16, i32)
%t21 = type { <4 x half>, i8 }
%t22 = type %t21 (ptr addrspace(1), ptr addrspace(2), i32, i32, i32, i32)
%t24 = type [2 x i32]
c11 = %t24 [27, 0]

define %t4 @f0 "unk_read_1d_array" "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" %a3( Mod nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = tail call i32 @f2 [air Texture(Texture { op: Query(Width), image: ImageShape { dim: D1, array: true, ms: false, depth: false }, 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(ArraySize), image: ImageShape { dim: D1, array: true, ms: false, depth: false }, texel: None, coord16: false, form: Current, status: true, access: None, states_access: true })](%a0) arg0( Ref nocapture )
  %i2 = urem i32 %a4, %i0
  %i3 = udiv i32 %a4, %i0
  %i4 = urem i32 %i3, %i1
  %i5 = tail call ptr addrspace(2) @f4 [air Sampler(GetReadSampler)]()
  %i6 = tail call %t15 @f5 [air Texture(Texture { op: Read, image: ImageShape { dim: D1, 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(Read), states_access: true })](%a0, %i5, %i2, %i4, i32 0, i32 1) arg0( Ref nocapture )
  %i7 = extractvalue <4 x float> %i6, 0
  %i8 = shl i32 %a4, i32 2
  %i9 = zext %i8 to i64
  %i10 = getelementptr inbounds <4 x i32>, %a3, %i9
  %i11 = bitcast %i10 to ptr addrspace(1)
  store %i7, %i11, align 16
  %i13 = trunc %i2 to i16
  %i14 = trunc %i4 to i16
  %i15 = tail call %t18 @f6 [air Texture(Texture { op: Read, image: ImageShape { dim: D1, array: true, ms: false, depth: false }, texel: Some(Texel { ty: NumTy { elem: I32, lanes: 4 }, sign: Some(Unsigned) }), coord16: true, form: Current, status: true, access: Some(Read), states_access: true })](%a1, %i5, %i13, %i14, i16 0, i32 1) arg0( Ref nocapture )
  %i16 = extractvalue <4 x i32> %i15, 0
  %i17 = or i32 %i8, i32 1
  %i18 = zext %i17 to i64
  %i19 = getelementptr inbounds <4 x i32>, %a3, %i18
  store %i16, %i19, align 16
  %i21 = tail call %t21 @f7 [air Texture(Texture { op: Read, image: ImageShape { dim: D1, array: true, 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, %i5, %i2, %i4, i32 0, i32 0) arg0( Ref nocapture )
  %i22 = extractvalue <4 x half> %i21, 0
  %i23 = tail call reassoc nnan ninf nsz arcp contract afn <4 x float> @f1 [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 })](%i22)
  %i24 = or i32 %i8, i32 2
  %i25 = zext %i24 to i64
  %i26 = getelementptr inbounds <4 x i32>, %a3, %i25
  %i27 = bitcast %i26 to ptr addrspace(1)
  store %i23, %i27, align 16
  %i29 = insertelement <4 x i32> undef, %i0, i64 0
  %i30 = tail call i32 @f2 [air Texture(Texture { op: Query(Width), image: ImageShape { dim: D1, array: true, ms: false, depth: false }, texel: None, coord16: false, form: Current, status: true, access: None, states_access: true })](%a1, i32 0) arg0( Ref nocapture )
  %i31 = insertelement %i29, %i30, i64 1
  %i32 = tail call i32 @f2 [air Texture(Texture { op: Query(Width), image: ImageShape { dim: D1, array: true, ms: false, depth: false }, texel: None, coord16: false, form: Current, status: true, access: None, states_access: true })](%a2, i32 0) arg0( Ref nocapture )
  %i33 = insertelement %i31, %i32, i64 2
  %i34 = insertelement %i33, %i1, i64 3
  %i35 = or i32 %i8, i32 3
  %i36 = zext %i35 to i64
  %i37 = getelementptr inbounds <4 x i32>, %a3, %i36
  store %i34, %i37, align 16
  ret void
}

declare %t9 @f1 "air.convert.f.v4f32.f.v4f16" memory(NoModRef, NoModRef, NoModRef)

declare %t10 @f2 "air.get_width_texture_1d_array" memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture )

declare %t11 @f3 "air.get_array_size_texture_1d_array" memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture )

declare %t13 @f4 "air.get_read_sampler" memory(NoModRef, Ref, NoModRef)

declare %t16 @f5 "air.read_texture_1d_array.v4f32" memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture )

declare %t20 @f6 "air.read_texture_1d_array.i16.u.v4i32" memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture )

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