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]
%t6 = type <4 x float> (<4 x float>, ptr addrspace(0), ptr addrspace(0))
%t8 = type [16 x ptr addrspace(1)]
%t10 = type i32 (float)
%t12 = type { <4 x float>, i8 }
%t16 = type %t12 (ptr addrspace(1), ptr addrspace(2), <2 x float>, i1, <2 x i32>, i1, float, float, i32)
%t18 = type [2 x i32]
%t19 = type { ptr addrspace(1) } ; "struct.metal::texture2d"
%t20 = type [16 x %t19]
c8 = %t2 [34901797601017929, 0]
c10 = %t18 [27, 0]
c21 = <2 x float> [0x3F000000, 0x3F000000]
@g0 "__air_sampler_state" = internal addrspace(2) constant %t2 c8, align 8

define %t6 @f0 "smp_shared_sampler" convergent memory(Ref, Ref, Ref) "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 byval(%t8) nocapture ) %a2( Ref byval(%t8) nocapture ) {
bb0:
  %i0 = extractelement %a0, i64 0
  %i1 = tail call i32 @f1 [air Convert(Convert { dst: NumTy { elem: I32, lanes: 1 }, dst_kind: Unsigned, src: NumTy { elem: F32, lanes: 1 }, src_kind: Float, src_fp8: None, rounding: None, saturate: false })](%i0)
  %i2 = and i32 %i1, i32 15
  %i3 = extractelement %a0, i64 1
  %i4 = tail call i32 @f1 [air Convert(Convert { dst: NumTy { elem: I32, lanes: 1 }, dst_kind: Unsigned, src: NumTy { elem: F32, lanes: 1 }, src_kind: Float, src_fp8: None, rounding: None, saturate: false })](%i3)
  %i5 = and i32 %i4, i32 15
  %i6 = zext %i2 to i64
  %i7 = bitcast %a1 to ptr addrspace(0)
  %i8 = getelementptr inbounds %t20, %i7, i64 0, %i6, i32 0
  %i9 = load ptr addrspace(1), %i8, align 8
  %i10 = tail call %t12 @f2 [air Texture(Texture { op: Sample { compare: false, lod: Bias, offset: true }, 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(Sample), states_access: true, device_coherent: false })](%i9, ptr addrspace(2) @g0, <2 x float> c21, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  %i11 = extractvalue <4 x float> %i10, 0
  %i12 = zext %i5 to i64
  %i13 = bitcast %a2 to ptr addrspace(0)
  %i14 = getelementptr inbounds %t20, %i13, i64 0, %i12, i32 0
  %i15 = load ptr addrspace(1), %i14, align 8
  %i16 = tail call %t12 @f2 [air Texture(Texture { op: Sample { compare: false, lod: Bias, offset: true }, 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(Sample), states_access: true, device_coherent: false })](%i15, ptr addrspace(2) @g0, <2 x float> c21, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  %i17 = extractvalue <4 x float> %i16, 0
  %i18 = fadd reassoc nnan ninf nsz arcp contract afn <4 x float> %i17, %i11
  ret %i18
}

declare %t10 @f1 "air.convert.u.i32.f.f32" memory(NoModRef, NoModRef, NoModRef)

declare %t16 @f2 "air.sample_texture_2d.v4f32" convergent 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.render_target"
!md10 = !"air.arg_type_name"
!md11 = !"float4"
!md12 = !"air.position"
!md13 = !"air.center"
!md14 = !"air.no_perspective"
!md15 = !"air.arg_name"
!md16 = !"pos"
!md17 = !"air.texture"
!md18 = !"air.location_index"
!md19 = !"air.sample"
!md20 = !"array<texture2d<float, sample>, 16>"
!md21 = !"a"
!md22 = !"b"
!md23 = !"air.compile.denorms_disable"
!md24 = !"air.compile.fast_math_enable"
!md25 = !"air.compile.framebuffer_fetch_enable"
!md26 = !"air.sampler_state"
!md27 = !"Apple metal version 32023.921 (metalfe-32023.921.6)"
!md28 = !"Metal"
!md29 = i32 2
!md30 = %t18 c10
!md31 = i32 1
!md32 = i32 4
!md33 = i32 7
!md34 = i32 31
!md35 = i32 128
!md36 = i32 8
!md37 = i32 16
!md38 = ptr addrspace(0) @f0
!md39 = i32 0
!md40 = ptr addrspace(2) @g0
!md41 = !{!md29, !md0, !md30}
!md42 = !{!md31, !md1, !md32}
!md43 = !{!md33, !md2, !md29}
!md44 = !{!md33, !md3, !md34}
!md45 = !{!md33, !md4, !md34}
!md46 = !{!md33, !md5, !md34}
!md47 = !{!md33, !md6, !md35}
!md48 = !{!md33, !md7, !md36}
!md49 = !{!md33, !md8, !md37}
!md50 = !{!md9, !md39, !md39, !md10, !md11}
!md51 = !{!md50}
!md52 = !{!md39, !md12, !md13, !md14, !md10, !md11, !md15, !md16}
!md53 = !{!md31, !md17, !md18, !md39, !md37, !md19, !md10, !md20, !md15, !md21}
!md54 = !{!md29, !md17, !md18, !md37, !md37, !md19, !md10, !md20, !md15, !md22}
!md55 = !{!md52, !md53, !md54}
!md56 = !{!md38, !md51, !md55}
!md57 = !{!md23}
!md58 = !{!md24}
!md59 = !{!md25}
!md60 = !{!md26, !md40}
!md61 = !{!md27}
!md62 = !{!md29, !md36, !md39}
!md63 = !{!md28, !md32, !md39, !md39}
!"llvm.module.flags" = !{!md41, !md42, !md43, !md44, !md45, !md46, !md47, !md48, !md49}
!"air.fragment" = !{!md56}
!"air.compile_options" = !{!md57, !md58, !md59}
!"air.sampler_states" = !{!md60}
!"llvm.ident" = !{!md61}
!"air.version" = !{!md62}
!"air.language_version" = !{!md63}
