target triple = "air64_v29-apple-macosx27.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)
%t11 = type { <4 x float>, i8 }
%t13 = type %t11 (ptr addrspace(1), ptr addrspace(2), <2 x i32>, <2 x i32>, i32, i32)
%t15 = type [2 x i32]
c13 = %t2 [34901797601017929, 0]
c14 = %t2 [34901797601017856, 0]
c15 = %t2 [179016985676873728, 0]
c16 = %t2 [34901797601018002, 0]
c17 = %t15 [27, 2]
c29 = <2 x i32> [0, 1]
@g0 "__air_sampler_state" = internal addrspace(2) constant %t2 c13, align 8
@g1 "__air_sampler_state.1" = internal addrspace(2) constant %t2 c14, align 8
@g2 "__air_sampler_state.2" = internal addrspace(2) constant %t2 c15, align 8
@g3 "__air_sampler_state.3" = internal addrspace(2) constant %t2 c16, align 8

define %t7 @f0 "a2_sparse_read_through" "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, <0, 1>
  %i4 = extractelement %i2, i64 2
  %i5 = tail call %t11 @f1 [air Texture(Texture { op: Read, 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(Read), states_access: true, device_coherent: false })](%a0, ptr addrspace(2) @g0, %i3, <2 x i32> zeroinitializer, %i4, i32 1) arg0( Ref nocapture )
  %i6 = extractvalue i8 %i5, 1
  %i7 = extractvalue <4 x float> %i5, 0
  %i8 = tail call %t11 @f1 [air Texture(Texture { op: Read, 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(Read), states_access: true, device_coherent: false })](%a0, ptr addrspace(2) @g1, %i3, <2 x i32> zeroinitializer, %i4, i32 1) arg0( Ref nocapture )
  %i9 = extractvalue i8 %i8, 1
  %i10 = extractvalue <4 x float> %i8, 0
  %i11 = tail call %t11 @f1 [air Texture(Texture { op: Read, 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(Read), states_access: true, device_coherent: false })](%a0, ptr addrspace(2) @g2, %i3, <2 x i32> zeroinitializer, %i4, i32 1) arg0( Ref nocapture )
  %i12 = extractvalue i8 %i11, 1
  %i13 = extractvalue <4 x float> %i11, 0
  %i14 = tail call %t11 @f1 [air Texture(Texture { op: Read, 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(Read), states_access: true, device_coherent: false })](%a0, ptr addrspace(2) @g3, %i3, <2 x i32> zeroinitializer, %i4, i32 1) arg0( Ref nocapture )
  %i15 = extractvalue i8 %i14, 1
  %i16 = extractvalue <4 x float> %i14, 0
  %i17 = mul i32 %a3, i32 5
  %i18 = zext %i17 to i64
  %i19 = getelementptr inbounds <4 x i32>, %a2, %i18
  %i20 = bitcast %i19 to ptr addrspace(1)
  store %i7, %i20, align 16
  %i22 = add i32 %i17, i32 1
  %i23 = zext %i22 to i64
  %i24 = getelementptr inbounds <4 x i32>, %a2, %i23
  %i25 = bitcast %i24 to ptr addrspace(1)
  store %i10, %i25, align 16
  %i27 = add i32 %i17, i32 2
  %i28 = zext %i27 to i64
  %i29 = getelementptr inbounds <4 x i32>, %a2, %i28
  %i30 = bitcast %i29 to ptr addrspace(1)
  store %i13, %i30, align 16
  %i32 = add i32 %i17, i32 3
  %i33 = zext %i32 to i64
  %i34 = getelementptr inbounds <4 x i32>, %a2, %i33
  %i35 = bitcast %i34 to ptr addrspace(1)
  store %i16, %i35, align 16
  %i37 = and i8 %i6, i8 1
  %i38 = xor i8 %i37, i8 1
  %i39 = zext %i38 to i32
  %i40 = insertelement <4 x i32> undef, %i39, i64 0
  %i41 = and i8 %i9, i8 1
  %i42 = xor i8 %i41, i8 1
  %i43 = zext %i42 to i32
  %i44 = insertelement %i40, %i43, i64 1
  %i45 = and i8 %i12, i8 1
  %i46 = xor i8 %i45, i8 1
  %i47 = zext %i46 to i32
  %i48 = insertelement %i44, %i47, i64 2
  %i49 = and i8 %i15, i8 1
  %i50 = xor i8 %i49, i8 1
  %i51 = zext %i50 to i32
  %i52 = insertelement %i48, %i51, i64 3
  %i53 = add i32 %i17, i32 4
  %i54 = zext %i53 to i64
  %i55 = getelementptr inbounds <4 x i32>, %a2, %i54
  store %i52, %i55, align 16
  ret void
}

declare %t13 @f1 "air.read_texture_2d.v4f32" 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 = !"texture2d<float, read>"
!md14 = !"air.arg_name"
!md15 = !"t"
!md16 = !"air.buffer"
!md17 = !"air.address_space"
!md18 = !"air.arg_type_size"
!md19 = !"air.arg_type_align_size"
!md20 = !"int4"
!md21 = !"p"
!md22 = !"air.read_write"
!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 = !"air.sampler_state"
!md32 = !"Apple metal version 32023.922 (metalfe-32023.922.4)"
!md33 = !"Metal"
!md34 = i32 2
!md35 = %t15 c17
!md36 = i32 1
!md37 = i32 4
!md38 = i32 7
!md39 = i32 31
!md40 = i32 128
!md41 = i32 8
!md42 = i32 16
!md43 = ptr addrspace(0) @f0
!md44 = i32 0
!md45 = i32 3
!md46 = ptr addrspace(2) @g0
!md47 = ptr addrspace(2) @g1
!md48 = ptr addrspace(2) @g2
!md49 = ptr addrspace(2) @g3
!md50 = i32 9
!md51 = !{!md34, !md0, !md35}
!md52 = !{!md36, !md1, !md37}
!md53 = !{!md38, !md2, !md34}
!md54 = !{!md38, !md3, !md39}
!md55 = !{!md38, !md4, !md39}
!md56 = !{!md38, !md5, !md39}
!md57 = !{!md38, !md6, !md40}
!md58 = !{!md38, !md7, !md41}
!md59 = !{!md38, !md8, !md42}
!md60 = !{}
!md61 = !{!md44, !md9, !md10, !md44, !md36, !md11, !md12, !md13, !md14, !md15}
!md62 = !{!md36, !md16, !md10, !md44, !md36, !md11, !md17, !md36, !md18, !md42, !md19, !md42, !md12, !md20, !md14, !md21}
!md63 = !{!md34, !md16, !md10, !md36, !md36, !md22, !md17, !md36, !md18, !md42, !md19, !md42, !md12, !md23, !md14, !md24}
!md64 = !{!md45, !md25, !md12, !md26, !md14, !md27}
!md65 = !{!md61, !md62, !md63, !md64}
!md66 = !{!md43, !md60, !md65}
!md67 = !{!md28}
!md68 = !{!md29}
!md69 = !{!md30}
!md70 = !{!md31, !md46}
!md71 = !{!md31, !md47}
!md72 = !{!md31, !md48}
!md73 = !{!md31, !md49}
!md74 = !{!md32}
!md75 = !{!md34, !md50, !md44}
!md76 = !{!md33, !md37, !md36, !md44}
!"llvm.module.flags" = !{!md51, !md52, !md53, !md54, !md55, !md56, !md57, !md58, !md59}
!"air.kernel" = !{!md66}
!"air.compile_options" = !{!md67, !md68, !md69}
!"air.sampler_states" = !{!md70, !md71, !md72, !md73}
!"llvm.ident" = !{!md74}
!"air.version" = !{!md75}
!"air.language_version" = !{!md76}
