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)
%t8 = type ptr addrspace(2) ()
%t12 = type { <4 x float>, i8 }
%t14 = type %t12 (ptr addrspace(1), ptr addrspace(2), <2 x i32>, i32, <2 x i32>, i32, i32)
%t17 = type %t12 (ptr addrspace(1), ptr addrspace(2), <2 x float>, i32, i1, <2 x i32>, i1, float, float, i32)
%t18 = type %t12 (ptr addrspace(1), ptr addrspace(2), <2 x float>, i32, i1, <2 x i32>, i32, i32)
%t20 = type [2 x i32]
%t21 = type { i32, i32, i32, i32, <2 x float>, float, i32 } ; "struct.Probe"
c12 = %t2 [34901797601017856, 0]
c13 = %t2 [34901797601020416, 0]
c15 = %t20 [27, 0]
c43 = <4 x i32> [poison, 0, poison, 1445]
c47 = <4 x i32> [poison, 1, poison, 1445]
c48 = <4 x i32> [poison, 2, poison, 1445]
c49 = <4 x i32> [poison, 3, poison, 1445]
@g0 "__air_sampler_state" = internal addrspace(2) constant %t2 c12, align 8
@g1 "__air_sampler_state.1" = internal addrspace(2) constant %t2 c13, align 8

define %t7 @f0 "spse_array_probes" 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 %t21, %a1, %i0, i32 0
  %i2 = load i32, %i1, align 8
  %i3 = getelementptr inbounds %t21, %a1, %i0, i32 3
  %i4 = load i32, %i3, align 4
  %i5 = getelementptr inbounds %t21, %a1, %i0, i32 4
  %i6 = load <2 x float>, %i5, align 8
  %i7 = getelementptr inbounds %t21, %a1, %i0, i32 5
  %i8 = load float, %i7, align 8
  switch %i2, bb4 [ 0: bb1 1: bb2 2: bb3 ]
bb1:
  %i10 = getelementptr inbounds %t21, %a1, %i0, i32 6
  %i11 = load i32, %i10, align 4
  %i12 = getelementptr inbounds %t21, %a1, %i0, i32 2
  %i13 = load i32, %i12, align 8
  %i14 = getelementptr inbounds %t21, %a1, %i0, i32 1
  %i15 = load i32, %i14, align 4
  %i16 = insertelement <2 x i32> undef, %i15, i64 0
  %i17 = insertelement %i16, %i13, i64 1
  %i18 = tail call ptr addrspace(2) @f1 [air Sampler(GetReadSampler)]()
  %i19 = tail call %t12 @f2 [air Texture(Texture { op: Read, 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, device_coherent: false })](%a0, %i18, %i17, %i4, <2 x i32> zeroinitializer, %i11, i32 0) arg0( Ref nocapture )
  %i20 = extractvalue i8 %i19, 1
  %i21 = extractvalue <4 x float> %i19, 0
  %i22 = shl i32 %a3, i32 1
  %i23 = zext %i22 to i64
  %i24 = getelementptr inbounds <4 x i32>, %a2, %i23
  %i25 = bitcast %i24 to ptr addrspace(1)
  store %i21, %i25, align 16
  %i27 = and i8 %i20, i8 1
  %i28 = xor i8 %i27, i8 1
  %i29 = zext %i28 to i32
  %i30 = insertelement <4 x i32> c43, %i29, i64 0
  %i31 = insertelement %i30, %a3, i64 2
  %i32 = or i32 %i22, i32 1
  %i33 = zext %i32 to i64
  %i34 = getelementptr inbounds <4 x i32>, %a2, %i33
  store %i31, %i34, align 16
  br bb5
bb2:
  %i37 = tail call %t12 @f3 [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, device_coherent: false })](%a0, ptr addrspace(2) @g0, %i6, %i4, i1 1, <2 x i32> zeroinitializer, i1 1, %i8, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  %i38 = extractvalue i8 %i37, 1
  %i39 = extractvalue <4 x float> %i37, 0
  %i40 = shl i32 %a3, i32 1
  %i41 = zext %i40 to i64
  %i42 = getelementptr inbounds <4 x i32>, %a2, %i41
  %i43 = bitcast %i42 to ptr addrspace(1)
  store %i39, %i43, align 16
  %i45 = and i8 %i38, i8 1
  %i46 = xor i8 %i45, i8 1
  %i47 = zext %i46 to i32
  %i48 = insertelement <4 x i32> c47, %i47, i64 0
  %i49 = insertelement %i48, %a3, i64 2
  %i50 = or i32 %i40, i32 1
  %i51 = zext %i50 to i64
  %i52 = getelementptr inbounds <4 x i32>, %a2, %i51
  store %i49, %i52, align 16
  br bb5
bb3:
  %i55 = tail call %t12 @f3 [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, device_coherent: false })](%a0, ptr addrspace(2) @g1, %i6, %i4, i1 1, <2 x i32> zeroinitializer, i1 1, %i8, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  %i56 = extractvalue i8 %i55, 1
  %i57 = extractvalue <4 x float> %i55, 0
  %i58 = shl i32 %a3, i32 1
  %i59 = zext %i58 to i64
  %i60 = getelementptr inbounds <4 x i32>, %a2, %i59
  %i61 = bitcast %i60 to ptr addrspace(1)
  store %i57, %i61, align 16
  %i63 = and i8 %i56, i8 1
  %i64 = xor i8 %i63, i8 1
  %i65 = zext %i64 to i32
  %i66 = insertelement <4 x i32> c48, %i65, i64 0
  %i67 = insertelement %i66, %a3, i64 2
  %i68 = or i32 %i58, i32 1
  %i69 = zext %i68 to i64
  %i70 = getelementptr inbounds <4 x i32>, %a2, %i69
  store %i67, %i70, align 16
  br bb5
bb4:
  %i73 = tail call %t12 @f4 [air Texture(Texture { op: Gather { component: Some(X), compare: false, 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, device_coherent: false })](%a0, ptr addrspace(2) @g0, %i6, %i4, i1 1, <2 x i32> zeroinitializer, i32 0, i32 0) arg0( Ref nocapture ) arg1( Ref nocapture )
  %i74 = extractvalue i8 %i73, 1
  %i75 = extractvalue <4 x float> %i73, 0
  %i76 = shl i32 %a3, i32 1
  %i77 = zext %i76 to i64
  %i78 = getelementptr inbounds <4 x i32>, %a2, %i77
  %i79 = bitcast %i78 to ptr addrspace(1)
  store %i75, %i79, align 16
  %i81 = and i8 %i74, i8 1
  %i82 = xor i8 %i81, i8 1
  %i83 = zext %i82 to i32
  %i84 = insertelement <4 x i32> c49, %i83, i64 0
  %i85 = insertelement %i84, %a3, i64 2
  %i86 = or i32 %i76, i32 1
  %i87 = zext %i86 to i64
  %i88 = getelementptr inbounds <4 x i32>, %a2, %i87
  store %i85, %i88, align 16
  br bb5
bb5:
  ret void
}

declare %t8 @f1 "air.get_read_sampler" memory(NoModRef, Ref, NoModRef)

declare %t14 @f2 "air.read_texture_2d_array.v4f32" memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture )

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

declare %t18 @f4 "air.gather_texture_2d_array.v4f32" 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_array<float, sample>"
!md14 = !"air.arg_name"
!md15 = !"a"
!md16 = !"air.buffer"
!md17 = !"air.read"
!md18 = !"air.address_space"
!md19 = !"air.struct_type_info"
!md20 = !"uint"
!md21 = !"kind"
!md22 = !"x"
!md23 = !"y"
!md24 = !"layer"
!md25 = !"float2"
!md26 = !"uv"
!md27 = !"float"
!md28 = !"lodf"
!md29 = !"lod"
!md30 = !"air.arg_type_size"
!md31 = !"air.arg_type_align_size"
!md32 = !"Probe"
!md33 = !"probes"
!md34 = !"air.read_write"
!md35 = !"uint4"
!md36 = !"out"
!md37 = !"air.thread_position_in_grid"
!md38 = !"i"
!md39 = !"air.compile.denorms_disable"
!md40 = !"air.compile.fast_math_enable"
!md41 = !"air.compile.framebuffer_fetch_enable"
!md42 = !"air.sampler_state"
!md43 = !"Apple metal version 32023.921 (metalfe-32023.921.6)"
!md44 = !"Metal"
!md45 = i32 2
!md46 = %t20 c15
!md47 = i32 1
!md48 = i32 4
!md49 = i32 7
!md50 = i32 31
!md51 = i32 128
!md52 = i32 8
!md53 = i32 16
!md54 = ptr addrspace(0) @f0
!md55 = i32 0
!md56 = i32 12
!md57 = i32 24
!md58 = i32 28
!md59 = i32 32
!md60 = i32 3
!md61 = ptr addrspace(2) @g0
!md62 = ptr addrspace(2) @g1
!md63 = !{!md45, !md0, !md46}
!md64 = !{!md47, !md1, !md48}
!md65 = !{!md49, !md2, !md45}
!md66 = !{!md49, !md3, !md50}
!md67 = !{!md49, !md4, !md50}
!md68 = !{!md49, !md5, !md50}
!md69 = !{!md49, !md6, !md51}
!md70 = !{!md49, !md7, !md52}
!md71 = !{!md49, !md8, !md53}
!md72 = !{}
!md73 = !{!md55, !md9, !md10, !md55, !md47, !md11, !md12, !md13, !md14, !md15}
!md74 = !{!md55, !md48, !md55, !md20, !md21, !md48, !md48, !md55, !md20, !md22, !md52, !md48, !md55, !md20, !md23, !md56, !md48, !md55, !md20, !md24, !md53, !md52, !md55, !md25, !md26, !md57, !md48, !md55, !md27, !md28, !md58, !md48, !md55, !md20, !md29}
!md75 = !{!md47, !md16, !md10, !md55, !md47, !md17, !md18, !md47, !md19, !md74, !md30, !md59, !md31, !md52, !md12, !md32, !md14, !md33}
!md76 = !{!md45, !md16, !md10, !md47, !md47, !md34, !md18, !md47, !md30, !md53, !md31, !md53, !md12, !md35, !md14, !md36}
!md77 = !{!md60, !md37, !md12, !md20, !md14, !md38}
!md78 = !{!md73, !md75, !md76, !md77}
!md79 = !{!md54, !md72, !md78}
!md80 = !{!md39}
!md81 = !{!md40}
!md82 = !{!md41}
!md83 = !{!md42, !md61}
!md84 = !{!md42, !md62}
!md85 = !{!md43}
!md86 = !{!md45, !md52, !md55}
!md87 = !{!md44, !md48, !md55, !md55}
!"llvm.module.flags" = !{!md63, !md64, !md65, !md66, !md67, !md68, !md69, !md70, !md71}
!"air.kernel" = !{!md79}
!"air.compile_options" = !{!md80, !md81, !md82}
!"air.sampler_states" = !{!md83, !md84}
!"llvm.ident" = !{!md85}
!"air.version" = !{!md86}
!"air.language_version" = !{!md87}
