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(2), ptr addrspace(1))
%t5 = type ptr addrspace(2) ()
%t9 = type { <4 x float>, i8 }
%t12 = type %t9 (ptr addrspace(1), ptr addrspace(2), <2 x i32>, <2 x i32>, i32, i32)
%t14 = type [2 x i32]
c5 = %t14 [27, 2]
c17 = <2 x i32> [0, 1]

define %t4 @f0 "oor_texture_reads" "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( Ref nocapture "air-buffer-no-alias"="" ) %a4( Mod nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = load <4 x i32>, %a3, align 16
  %i1 = shufflevector <2 x i32> %i0, <4 x i32> poison, <0, 1>
  %i2 = extractelement %i0, i64 2
  %i3 = tail call ptr addrspace(2) @f1 [air Sampler(GetReadSampler)]()
  %i4 = tail call %t9 @f2 [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 })](%a0, %i3, %i1, <2 x i32> zeroinitializer, %i2, i32 1) arg0( Ref nocapture )
  %i5 = extractvalue <4 x float> %i4, 0
  store %i5, %a4, align 16
  %i7 = getelementptr inbounds <4 x i32>, %a3, i64 1
  %i8 = load <4 x i32>, %i7, align 16
  %i9 = shufflevector <2 x i32> %i8, <4 x i32> poison, <0, 1>
  %i10 = extractelement %i8, i64 2
  %i11 = tail call %t9 @f2 [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 })](%a0, %i3, %i9, <2 x i32> zeroinitializer, %i10, i32 1) arg0( Ref nocapture )
  %i12 = extractvalue <4 x float> %i11, 0
  %i13 = getelementptr inbounds <4 x float>, %a4, i64 1
  store %i12, %i13, align 16
  %i15 = getelementptr inbounds <4 x i32>, %a3, i64 2
  %i16 = load <4 x i32>, %i15, align 16
  %i17 = shufflevector <2 x i32> %i16, <4 x i32> poison, <0, 1>
  %i18 = extractelement %i16, i64 2
  %i19 = tail call %t9 @f2 [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 })](%a0, %i3, %i17, <2 x i32> zeroinitializer, %i18, i32 1) arg0( Ref nocapture )
  %i20 = extractvalue <4 x float> %i19, 0
  %i21 = getelementptr inbounds <4 x float>, %a4, i64 2
  store %i20, %i21, align 16
  %i23 = getelementptr inbounds <4 x i32>, %a3, i64 3
  %i24 = load <4 x i32>, %i23, align 16
  %i25 = shufflevector <2 x i32> %i24, <4 x i32> poison, <0, 1>
  %i26 = extractelement %i24, i64 2
  %i27 = tail call %t9 @f2 [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 })](%a0, %i3, %i25, <2 x i32> zeroinitializer, %i26, i32 1) arg0( Ref nocapture )
  %i28 = extractvalue <4 x float> %i27, 0
  %i29 = getelementptr inbounds <4 x float>, %a4, i64 3
  store %i28, %i29, align 16
  %i31 = getelementptr inbounds <4 x i32>, %a3, i64 4
  %i32 = load <4 x i32>, %i31, align 16
  %i33 = shufflevector <2 x i32> %i32, <4 x i32> poison, <0, 1>
  %i34 = extractelement %i32, i64 2
  %i35 = tail call %t9 @f2 [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 })](%a0, %i3, %i33, <2 x i32> zeroinitializer, %i34, i32 1) arg0( Ref nocapture )
  %i36 = extractvalue <4 x float> %i35, 0
  %i37 = getelementptr inbounds <4 x float>, %a4, i64 4
  store %i36, %i37, align 16
  %i39 = getelementptr inbounds <4 x i32>, %a3, i64 5
  %i40 = load <4 x i32>, %i39, align 16
  %i41 = shufflevector <2 x i32> %i40, <4 x i32> poison, <0, 1>
  %i42 = extractelement %i40, i64 2
  %i43 = tail call %t9 @f2 [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 })](%a0, %i3, %i41, <2 x i32> zeroinitializer, %i42, i32 1) arg0( Ref nocapture )
  %i44 = extractvalue <4 x float> %i43, 0
  %i45 = getelementptr inbounds <4 x float>, %a4, i64 5
  store %i44, %i45, align 16
  %i47 = getelementptr inbounds <4 x i32>, %a3, i64 6
  %i48 = load <4 x i32>, %i47, align 16
  %i49 = shufflevector <2 x i32> %i48, <4 x i32> poison, <0, 1>
  %i50 = extractelement %i48, i64 2
  %i51 = tail call %t9 @f2 [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 })](%a0, %i3, %i49, <2 x i32> zeroinitializer, %i50, i32 1) arg0( Ref nocapture )
  %i52 = extractvalue <4 x float> %i51, 0
  %i53 = getelementptr inbounds <4 x float>, %a4, i64 6
  store %i52, %i53, align 16
  %i55 = getelementptr inbounds <4 x i32>, %a3, i64 7
  %i56 = load <4 x i32>, %i55, align 16
  %i57 = shufflevector <2 x i32> %i56, <4 x i32> poison, <0, 1>
  %i58 = extractelement %i56, i64 2
  %i59 = tail call %t9 @f2 [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 })](%a1, %i3, %i57, <2 x i32> zeroinitializer, %i58, i32 1) arg0( Ref nocapture )
  %i60 = extractvalue <4 x float> %i59, 0
  %i61 = getelementptr inbounds <4 x float>, %a4, i64 7
  store %i60, %i61, align 16
  %i63 = getelementptr inbounds <4 x i32>, %a3, i64 8
  %i64 = load <4 x i32>, %i63, align 16
  %i65 = shufflevector <2 x i32> %i64, <4 x i32> poison, <0, 1>
  %i66 = extractelement %i64, i64 2
  %i67 = tail call %t9 @f2 [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 })](%a2, %i3, %i65, <2 x i32> zeroinitializer, %i66, i32 1) arg0( Ref nocapture )
  %i68 = extractvalue <4 x float> %i67, 0
  %i69 = getelementptr inbounds <4 x float>, %a4, i64 8
  store %i68, %i69, align 16
  %i71 = getelementptr inbounds <4 x i32>, %a3, i64 9
  %i72 = load <4 x i32>, %i71, align 16
  %i73 = shufflevector <2 x i32> %i72, <4 x i32> poison, <0, 1>
  %i74 = extractelement %i72, i64 2
  %i75 = tail call %t9 @f2 [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 })](%a2, %i3, %i73, <2 x i32> zeroinitializer, %i74, i32 1) arg0( Ref nocapture )
  %i76 = extractvalue <4 x float> %i75, 0
  %i77 = getelementptr inbounds <4 x float>, %a4, i64 9
  store %i76, %i77, align 16
  %i79 = getelementptr inbounds <4 x i32>, %a3, i64 10
  %i80 = load <4 x i32>, %i79, align 16
  %i81 = shufflevector <2 x i32> %i80, <4 x i32> poison, <0, 1>
  %i82 = extractelement %i80, i64 2
  %i83 = tail call %t9 @f2 [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 })](%a2, %i3, %i81, <2 x i32> zeroinitializer, %i82, i32 1) arg0( Ref nocapture )
  %i84 = extractvalue <4 x float> %i83, 0
  %i85 = getelementptr inbounds <4 x float>, %a4, i64 10
  store %i84, %i85, align 16
  ret void
}

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

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