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), ptr addrspace(2), i32)
%t10 = type <2 x half> (<2 x half>, <2 x half>)
%t13 = type { <4 x half>, i8 }
%t18 = type %t13 (ptr addrspace(1), ptr addrspace(2), <2 x float>, i1, <2 x i32>, i1, float, float, i32)
%t19 = type void (ptr addrspace(1), <2 x i32>, <4 x half>, i32, i32)
%t21 = type [2 x i32]
c9 = %t2 [34901797601050697, 0]
c11 = %t21 [27, 0]
c25 = <2 x i32> [1, 0]
c27 = <2 x i32> [0, 1]
c30 = <4 x i32> [0, 1, poison, poison]
c34 = <4 x half> [poison, poison, 0x0, 0x3C00]
c35 = <4 x i32> [0, 1, 6, 7]
c36 = <2 x i32> [poison, 0]
@g0 "__air_sampler_state" = internal addrspace(2) constant %t2 c9, align 8

define %t7 @f0 "sxc_taps_before_step" convergent "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="64" "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( nocapture "air-buffer-no-alias"="" ) %a3( align 4 dereferenceable(4) Ref nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = zext %a4 to i64
  %i1 = getelementptr inbounds <2 x float>, %a2, %i0
  %i2 = load <2 x float>, %i1, align 8
  %i3 = tail call %t13 @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: F16, lanes: 4 }, sign: None }), coord16: false, form: Current, status: true, access: Some(Sample), states_access: true, device_coherent: false })](%a0, ptr addrspace(2) @g0, %i2, i1 1, <2 x i32> zeroinitializer, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  %i4 = extractvalue <4 x half> %i3, 0
  %i5 = tail call %t13 @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: F16, lanes: 4 }, sign: None }), coord16: false, form: Current, status: true, access: Some(Sample), states_access: true, device_coherent: false })](%a0, ptr addrspace(2) @g0, %i2, i1 1, <2 x i32> c25, i1 0, float 0x0, float 0x0, i32 0) convergent arg0( Ref nocapture ) arg1( Ref nocapture )
  %i6 = extractvalue <4 x half> %i5, 0
  %i7 = load float, %a3, align 4
  %i8 = extractelement %i2, i64 0
  %i9 = fadd reassoc nnan ninf nsz arcp contract afn float %i7, %i8
  %i10 = insertelement %i2, %i9, i64 0
  store %i10, %i1, align 8
  %i12 = shufflevector <2 x half> %i4, <4 x half> poison, <0, 1>
  %i13 = shufflevector <2 x half> %i6, <4 x half> poison, <0, 1>
  %i14 = tail call reassoc nnan ninf nsz arcp contract afn <2 x half> @f1 [air Math(Math { f: FMax, precision: Precise, ty: NumTy { elem: F16, lanes: 2 } })](%i12, %i13)
  %i15 = shufflevector <4 x half> %i14, <2 x half> poison, <0, 1, poison, poison>
  %i16 = shufflevector <4 x half> %i15, <4 x half> c34, <0, 1, 6, 7>
  %i17 = insertelement <2 x i32> c36, %a4, i64 0
  tail call void @f3 [air Texture(Texture { op: Write, image: ImageShape { dim: D2, array: false, ms: false, depth: false }, texel: Some(Texel { ty: NumTy { elem: F16, lanes: 4 }, sign: None }), coord16: false, form: Current, status: true, access: Some(Write), states_access: true, device_coherent: false })](%a1, %i17, %i16, i32 0, i32 2) arg0( nocapture )
  ret void
}

declare %t10 @f1 "air.fmax.v2f16" memory(NoModRef, NoModRef, NoModRef)

declare %t18 @f2 "air.sample_texture_2d.v4f16" convergent memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture ) %a1( Ref nocapture )

declare %t19 @f3 "air.write_texture_2d.v4f16" memory(ModRef, NoModRef, NoModRef) %a0( 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<half, sample>"
!md14 = !"air.arg_name"
!md15 = !"src"
!md16 = !"air.write"
!md17 = !"texture2d<half, write>"
!md18 = !"dst"
!md19 = !"air.buffer"
!md20 = !"air.read_write"
!md21 = !"air.address_space"
!md22 = !"air.arg_type_size"
!md23 = !"air.arg_type_align_size"
!md24 = !"float2"
!md25 = !"coords"
!md26 = !"air.buffer_size"
!md27 = !"air.read"
!md28 = !"float"
!md29 = !"step"
!md30 = !"air.thread_position_in_grid"
!md31 = !"uint"
!md32 = !"t"
!md33 = !"air.compile.denorms_disable"
!md34 = !"air.compile.fast_math_enable"
!md35 = !"air.compile.framebuffer_fetch_enable"
!md36 = !"air.sampler_state"
!md37 = !"Apple metal version 32023.921 (metalfe-32023.921.6)"
!md38 = !"Metal"
!md39 = i32 2
!md40 = %t21 c11
!md41 = i32 1
!md42 = i32 4
!md43 = i32 7
!md44 = i32 31
!md45 = i32 128
!md46 = i32 8
!md47 = i32 16
!md48 = ptr addrspace(0) @f0
!md49 = i32 0
!md50 = i32 3
!md51 = ptr addrspace(2) @g0
!md52 = !{!md39, !md0, !md40}
!md53 = !{!md41, !md1, !md42}
!md54 = !{!md43, !md2, !md39}
!md55 = !{!md43, !md3, !md44}
!md56 = !{!md43, !md4, !md44}
!md57 = !{!md43, !md5, !md44}
!md58 = !{!md43, !md6, !md45}
!md59 = !{!md43, !md7, !md46}
!md60 = !{!md43, !md8, !md47}
!md61 = !{}
!md62 = !{!md49, !md9, !md10, !md49, !md41, !md11, !md12, !md13, !md14, !md15}
!md63 = !{!md41, !md9, !md10, !md41, !md41, !md16, !md12, !md17, !md14, !md18}
!md64 = !{!md39, !md19, !md10, !md49, !md41, !md20, !md21, !md41, !md22, !md46, !md23, !md46, !md12, !md24, !md14, !md25}
!md65 = !{!md50, !md19, !md26, !md42, !md10, !md41, !md41, !md27, !md21, !md39, !md22, !md42, !md23, !md42, !md12, !md28, !md14, !md29}
!md66 = !{!md42, !md30, !md12, !md31, !md14, !md32}
!md67 = !{!md62, !md63, !md64, !md65, !md66}
!md68 = !{!md48, !md61, !md67}
!md69 = !{!md33}
!md70 = !{!md34}
!md71 = !{!md35}
!md72 = !{!md36, !md51}
!md73 = !{!md37}
!md74 = !{!md39, !md46, !md49}
!md75 = !{!md38, !md42, !md49, !md49}
!"llvm.module.flags" = !{!md52, !md53, !md54, !md55, !md56, !md57, !md58, !md59, !md60}
!"air.kernel" = !{!md68}
!"air.compile_options" = !{!md69, !md70, !md71}
!"air.sampler_states" = !{!md72}
!"llvm.ident" = !{!md73}
!"air.version" = !{!md74}
!"air.language_version" = !{!md75}
