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 <4 x float> (<4 x float>, ptr addrspace(1), ptr addrspace(2))
%t11 = type <2 x i32> (<2 x float>)
%t12 = type <2 x float> (<2 x i32>)
%t14 = type { <4 x float>, i8 }
%t16 = type %t14 (ptr addrspace(1), ptr addrspace(2), <2 x float>, i1, <2 x i32>, i1, float, float, i32)
%t18 = type [2 x i32]
c9 = %t2 [34901797601020050, 0]
c11 = %t18 [26, 5]
c22 = <2 x i32> [0, 1]
c27 = <2 x float> [0x3EB80000, 0x3EB80000]
@g0 "__air_sampler_state" = internal addrspace(2) constant %t2 c9, align 8

define %t7 @f0 "a2_fragment_bias_clamp" 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" %a2( Ref nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = shufflevector <2 x float> %a0, <4 x float> poison, <0, 1>
  %i1 = tail call <2 x i32> @f1 [air Convert(Convert { dst: NumTy { elem: I32, lanes: 2 }, dst_kind: Unsigned, src: NumTy { elem: F32, lanes: 2 }, src_kind: Float, src_fp8: None, rounding: None, saturate: false })](%i0)
  %i2 = extractelement %i1, i64 1
  %i3 = shl i32 %i2, i32 1
  %i4 = and i32 %i3, i32 4294967292
  %i5 = extractelement %i1, i64 0
  %i6 = lshr i32 %i5, i32 1
  %i7 = add i32 %i4, %i6
  %i8 = zext %i7 to i64
  %i9 = getelementptr inbounds <2 x float>, %a2, %i8
  %i10 = load <2 x float>, %i9, align 8
  %i11 = tail call reassoc nnan ninf nsz arcp contract afn <2 x float> @f2 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 2 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 2 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i1)
  %i12 = shufflevector <2 x float> %i10, <2 x float> poison, <0, 0>
  %i13 = fmul reassoc nnan ninf nsz arcp contract afn <2 x float> %i11, %i12
  %i14 = fadd reassoc nnan ninf nsz arcp contract afn <2 x float> %i13, <2 x float> c27
  %i15 = extractelement %i10, i64 1
  %i16 = tail call %t14 @f3 [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 })](%a1, ptr addrspace(2) @g0, %i14, i1 1, <2 x i32> zeroinitializer, i1 0, %i15, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  %i17 = extractvalue <4 x float> %i16, 0
  ret %i17
}

declare %t11 @f1 "air.convert.u.v2i32.f.v2f32" memory(NoModRef, NoModRef, NoModRef)

declare %t12 @f2 "air.convert.f.v2f32.u.v2i32" memory(NoModRef, NoModRef, NoModRef)

declare %t16 @f3 "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 = !"texture2d<float, sample>"
!md21 = !"t"
!md22 = !"air.buffer"
!md23 = !"air.read"
!md24 = !"air.address_space"
!md25 = !"air.arg_type_size"
!md26 = !"air.arg_type_align_size"
!md27 = !"float2"
!md28 = !"params"
!md29 = !"air.compile.denorms_disable"
!md30 = !"air.compile.fast_math_enable"
!md31 = !"air.compile.framebuffer_fetch_enable"
!md32 = !"air.sampler_state"
!md33 = !"Apple metal version 32023.883 (metalfe-32023.883)"
!md34 = !"Metal"
!md35 = i32 2
!md36 = %t18 c11
!md37 = i32 1
!md38 = i32 4
!md39 = i32 7
!md40 = i32 31
!md41 = i32 128
!md42 = i32 8
!md43 = i32 16
!md44 = ptr addrspace(0) @f0
!md45 = i32 0
!md46 = ptr addrspace(2) @g0
!md47 = !{!md35, !md0, !md36}
!md48 = !{!md37, !md1, !md38}
!md49 = !{!md39, !md2, !md35}
!md50 = !{!md39, !md3, !md40}
!md51 = !{!md39, !md4, !md40}
!md52 = !{!md39, !md5, !md40}
!md53 = !{!md39, !md6, !md41}
!md54 = !{!md39, !md7, !md42}
!md55 = !{!md39, !md8, !md43}
!md56 = !{!md9, !md45, !md45, !md10, !md11}
!md57 = !{!md56}
!md58 = !{!md45, !md12, !md13, !md14, !md10, !md11, !md15, !md16}
!md59 = !{!md37, !md17, !md18, !md45, !md37, !md19, !md10, !md20, !md15, !md21}
!md60 = !{!md35, !md22, !md18, !md45, !md37, !md23, !md24, !md35, !md25, !md42, !md26, !md42, !md10, !md27, !md15, !md28}
!md61 = !{!md58, !md59, !md60}
!md62 = !{!md44, !md57, !md61}
!md63 = !{!md29}
!md64 = !{!md30}
!md65 = !{!md31}
!md66 = !{!md32, !md46}
!md67 = !{!md33}
!md68 = !{!md35, !md42, !md45}
!md69 = !{!md34, !md38, !md45, !md45}
!"llvm.module.flags" = !{!md47, !md48, !md49, !md50, !md51, !md52, !md53, !md54, !md55}
!"air.fragment" = !{!md62}
!"air.compile_options" = !{!md63, !md64, !md65}
!"air.sampler_states" = !{!md66}
!"llvm.ident" = !{!md67}
!"air.version" = !{!md68}
!"air.language_version" = !{!md69}
