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), i32, i32)
%t5 = type void (ptr addrspace(1), i32)
%t7 = type float (i32)
%t8 = type i32 (float)
%t10 = type half (i32)
%t12 = type i1 (i1)
%t14 = type i64 (i1)
%t15 = type i1 ()
%t17 = type i16 ()
%t18 = type i32 (i32, i16)
%t19 = type i32 (i32, i32, i16, i16)
%t20 = type i32 (i32)
%t21 = type float (float)
%t22 = type half (half)
%t23 = type i16 (i16)
%t25 = type [2 x i32]
c64 = %t25 [26, 5]

define %t4 @f0 "simd_shuffle_k" convergent "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="0" "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" %a0( Mod nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = trunc %a2 to i16
  %i1 = mul i16 %i0, i16 7
  %i2 = add i16 %i1, i16 3
  %i3 = and i16 %i2, i16 31
  %i4 = tail call i32 @f33 [air Group(Group { scope: Simdgroup, op: Shuffle, ty: Some(NumTy { elem: I32, lanes: 1 }), sign: Some(Unsigned) })](%a1, %i3) convergent
  %i5 = zext %a1 to i64
  %i6 = getelementptr inbounds i32, %a0, %i5
  store %i4, %i6, align 4
  ret void
}

define %t5 @f1 "simd_broadcast_k" convergent "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="0" "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" %a0( Mod nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = tail call i32 @f34 [air Group(Group { scope: Simdgroup, op: Broadcast, ty: Some(NumTy { elem: I32, lanes: 1 }), sign: Some(Unsigned) })](%a1, i16 9) convergent
  %i1 = zext %a1 to i64
  %i2 = getelementptr inbounds i32, %a0, %i1
  store %i0, %i2, align 4
  ret void
}

define %t5 @f2 "simd_shuffle_up_k" convergent "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="0" "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" %a0( Mod nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = tail call i32 @f35 [air Group(Group { scope: Simdgroup, op: ShuffleUp, ty: Some(NumTy { elem: I32, lanes: 1 }), sign: Some(Unsigned) })](%a1, i16 3) convergent
  %i1 = zext %a1 to i64
  %i2 = getelementptr inbounds i32, %a0, %i1
  store %i0, %i2, align 4
  ret void
}

define %t5 @f3 "simd_shuffle_down_k" convergent "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="0" "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" %a0( Mod nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = tail call i32 @f36 [air Group(Group { scope: Simdgroup, op: ShuffleDown, ty: Some(NumTy { elem: I32, lanes: 1 }), sign: Some(Unsigned) })](%a1, i16 5) convergent
  %i1 = zext %a1 to i64
  %i2 = getelementptr inbounds i32, %a0, %i1
  store %i0, %i2, align 4
  ret void
}

define %t5 @f4 "simd_shuffle_xor_k" convergent "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="0" "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" %a0( Mod nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = tail call i32 @f37 [air Group(Group { scope: Simdgroup, op: ShuffleXor, ty: Some(NumTy { elem: I32, lanes: 1 }), sign: Some(Unsigned) })](%a1, i16 13) convergent
  %i1 = zext %a1 to i64
  %i2 = getelementptr inbounds i32, %a0, %i1
  store %i0, %i2, align 4
  ret void
}

define %t5 @f5 "simd_rotate_k" convergent "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="0" "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" %a0( Mod nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = tail call i32 @f38 [air Group(Group { scope: Simdgroup, op: ShuffleRotateDown, ty: Some(NumTy { elem: I32, lanes: 1 }), sign: Some(Unsigned) })](%a1, i16 7) convergent
  %i1 = zext %a1 to i64
  %i2 = getelementptr inbounds i32, %a0, %i1
  store %i0, %i2, align 4
  ret void
}

define %t5 @f6 "simd_fill_down_k" convergent "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="0" "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" %a0( Mod nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = add i32 %a1, i32 1000
  %i1 = tail call i32 @f39 [air Group(Group { scope: Simdgroup, op: ShuffleAndFillDown, ty: Some(NumTy { elem: I32, lanes: 1 }), sign: Some(Unsigned) })](%a1, %i0, i16 3, i16 8) convergent
  %i2 = zext %a1 to i64
  %i3 = getelementptr inbounds i32, %a0, %i2
  store %i1, %i3, align 4
  ret void
}

define %t5 @f7 "simd_fill_up_k" convergent "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="0" "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" %a0( Mod nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = add i32 %a1, i32 1000
  %i1 = tail call i16 @f40 [air SimdgroupSize(SimdgroupSize { ty: I16 })]()
  %i2 = tail call i32 @f41 [air Group(Group { scope: Simdgroup, op: ShuffleAndFillUp, ty: Some(NumTy { elem: I32, lanes: 1 }), sign: Some(Unsigned) })](%a1, %i0, i16 2, %i1) convergent
  %i3 = zext %a1 to i64
  %i4 = getelementptr inbounds i32, %a0, %i3
  store %i2, %i4, align 4
  ret void
}

define %t5 @f8 "simd_sum_k" convergent "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="0" "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" %a0( Mod nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = tail call i32 @f42 [air Group(Group { scope: Simdgroup, op: Sum, ty: Some(NumTy { elem: I32, lanes: 1 }), sign: Some(Unsigned) })](%a1) convergent
  %i1 = and i32 %a1, i32 7
  %i2 = tail call reassoc nnan ninf nsz arcp contract afn float @f9 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%i1)
  %i3 = tail call reassoc nnan ninf nsz arcp contract afn float @f43 [air Group(Group { scope: Simdgroup, op: Sum, ty: Some(NumTy { elem: F32, lanes: 1 }), sign: None })](%i2) convergent
  %i4 = tail call i32 @f10 [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 = mul i32 %i4, i32 100000
  %i6 = add i32 %i5, %i0
  %i7 = zext %a1 to i64
  %i8 = getelementptr inbounds i32, %a0, %i7
  store %i6, %i8, align 4
  ret void
}

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

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

define %t4 @f11 "simd_half_sum_k" convergent "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="0" "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" %a0( Mod nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = tail call reassoc nnan ninf nsz arcp contract afn half @f12 [air Convert(Convert { dst: NumTy { elem: F16, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%a2)
  %i1 = tail call reassoc nnan ninf nsz arcp contract afn half @f44 [air Group(Group { scope: Simdgroup, op: Sum, ty: Some(NumTy { elem: F16, lanes: 1 }), sign: None })](%i0) convergent
  %i2 = fpext %i1 to float
  %i3 = tail call i32 @f10 [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 })](%i2)
  %i4 = zext %a1 to i64
  %i5 = getelementptr inbounds i32, %a0, %i4
  store %i3, %i5, align 4
  ret void
}

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

define %t5 @f13 "simd_minmax_k" convergent "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="0" "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" %a0( Mod nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = trunc %a1 to i16
  %i1 = and i16 %i0, i16 31
  %i2 = add nsw i16 %i1, i16 65516
  %i3 = tail call i16 @f45 [air Group(Group { scope: Simdgroup, op: Min, ty: Some(NumTy { elem: I16, lanes: 1 }), sign: Some(Signed) })](%i2) convergent
  %i4 = sext %i3 to i32
  %i5 = tail call i16 @f46 [air Group(Group { scope: Simdgroup, op: Max, ty: Some(NumTy { elem: I16, lanes: 1 }), sign: Some(Signed) })](%i2) convergent
  %i6 = sext %i5 to i32
  %i7 = mul nsw i32 %i6, i32 10000
  %i8 = add nsw i32 %i4, i32 10001000
  %i9 = add nsw i32 %i8, %i7
  %i10 = zext %a1 to i64
  %i11 = getelementptr inbounds i32, %a0, %i10
  store %i9, %i11, align 4
  ret void
}

define %t5 @f14 "simd_bits_k" convergent "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="0" "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" %a0( Mod nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = and i32 %a1, i32 15
  %i1 = shl nuw nsw i32 i32 1, %i0
  %i2 = trunc %i1 to i16
  %i3 = tail call i16 @f47 [air Group(Group { scope: Simdgroup, op: Or, ty: Some(NumTy { elem: I16, lanes: 1 }), sign: Some(Unsigned) })](%i2) convergent
  %i4 = zext %i3 to i32
  %i5 = trunc %a1 to i16
  %i6 = or i16 %i5, i16 240
  %i7 = tail call i16 @f48 [air Group(Group { scope: Simdgroup, op: And, ty: Some(NumTy { elem: I16, lanes: 1 }), sign: Some(Unsigned) })](%i6) convergent
  %i8 = zext %i7 to i32
  %i9 = shl nuw i32 %i8, i32 16
  %i10 = or i32 %i9, %i4
  %i11 = zext %a1 to i64
  %i12 = getelementptr inbounds i32, %a0, %i11
  store %i10, %i12, align 4
  ret void
}

define %t5 @f15 "simd_xor_k" convergent "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="0" "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" %a0( Mod nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = mul i32 %a1, %a1
  %i1 = trunc %i0 to i16
  %i2 = tail call i16 @f49 [air Group(Group { scope: Simdgroup, op: Xor, ty: Some(NumTy { elem: I16, lanes: 1 }), sign: Some(Unsigned) })](%i1) convergent
  %i3 = zext %i2 to i32
  %i4 = zext %a1 to i64
  %i5 = getelementptr inbounds i32, %a0, %i4
  store %i3, %i5, align 4
  ret void
}

define %t4 @f16 "simd_prefix_k" convergent "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="0" "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" %a0( Mod nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = urem i32 %a2, i32 3
  %i1 = icmp eq %i0, i32 0
  br %i1, bb2, bb1
bb1:
  %i3 = tail call i32 @f50 [air Group(Group { scope: Simdgroup, op: PrefixInclusiveSum, ty: Some(NumTy { elem: I32, lanes: 1 }), sign: Some(Unsigned) })](%a1) convergent
  %i4 = shl i32 %i3, i32 1
  %i5 = tail call i32 @f51 [air Group(Group { scope: Simdgroup, op: PrefixExclusiveSum, ty: Some(NumTy { elem: I32, lanes: 1 }), sign: Some(Unsigned) })](%a2) convergent
  %i6 = mul i32 %i5, i32 100000
  %i7 = add i32 %i6, %i4
  %i8 = zext %a1 to i64
  %i9 = getelementptr inbounds i32, %a0, %i8
  store %i7, %i9, align 4
  br bb3
bb2:
  %i12 = zext %a1 to i64
  %i13 = getelementptr inbounds i32, %a0, %i12
  store i32 7, %i13, align 4
  br bb3
bb3:
  ret void
}

define %t4 @f17 "simd_float_prefix_k" convergent "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="0" "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" %a0( Mod nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = icmp ugt %a2, i32 3
  br %i0, bb1, bb2
bb1:
  %i2 = tail call reassoc nnan ninf nsz arcp contract afn float @f9 [air Convert(Convert { dst: NumTy { elem: F32, lanes: 1 }, dst_kind: Float, src: NumTy { elem: I32, lanes: 1 }, src_kind: Unsigned, src_fp8: None, rounding: None, saturate: false })](%a2)
  %i3 = tail call reassoc nnan ninf nsz arcp contract afn float @f52 [air Group(Group { scope: Simdgroup, op: PrefixExclusiveSum, ty: Some(NumTy { elem: F32, lanes: 1 }), sign: None })](%i2) convergent
  %i4 = tail call i32 @f10 [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 = zext %a1 to i64
  %i6 = getelementptr inbounds i32, %a0, %i5
  store %i4, %i6, align 4
  br bb3
bb2:
  %i9 = zext %a1 to i64
  %i10 = getelementptr inbounds i32, %a0, %i9
  store i32 7, %i10, align 4
  br bb3
bb3:
  ret void
}

define %t4 @f18 "simd_vote_k" convergent "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="0" "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" %a0( Mod nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = icmp eq %a2, i32 6
  br %i0, bb2, bb1
bb1:
  %i2 = tail call i1 @f25 [air Group(Group { scope: Simdgroup, op: All, ty: None, sign: None })](i1 1) convergent
  %i3 = zext %i2 to i32
  %i4 = icmp eq %a1, i32 40
  %i5 = tail call i1 @f26 [air Group(Group { scope: Simdgroup, op: Any, ty: None, sign: None })](%i4) convergent
  %i6 = select i32 %i5, i32 2, i32 0
  %i7 = or i32 %i6, %i3
  %i8 = icmp ult %a1, i32 40
  %i9 = tail call i1 @f25 [air Group(Group { scope: Simdgroup, op: All, ty: None, sign: None })](%i8) convergent
  %i10 = select i32 %i9, i32 4, i32 0
  %i11 = or i32 %i7, %i10
  br bb2
bb2:
  %i13 = phi i32 [%i11, bb1], [i32 0, bb0]
  %i14 = zext %a1 to i64
  %i15 = getelementptr inbounds i32, %a0, %i14
  store %i13, %i15, align 4
  ret void
}

define %t4 @f19 "simd_ballot_k" convergent "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="0" "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" %a0( Mod nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = icmp ugt %a2, i32 1
  br %i0, bb1, bb2
bb1:
  %i2 = urem i32 %a1, i32 3
  %i3 = icmp eq %i2, i32 0
  %i4 = tail call i64 @f27 [air Group(Group { scope: Simdgroup, op: Ballot, ty: Some(NumTy { elem: I64, lanes: 1 }), sign: None })](%i3) convergent
  %i5 = lshr i64 %i4, i64 32
  %i6 = xor i64 %i5, %i4
  %i7 = trunc %i6 to i32
  br bb2
bb2:
  %i9 = phi i32 [%i7, bb1], [i32 1, bb0]
  %i10 = zext %a1 to i64
  %i11 = getelementptr inbounds i32, %a0, %i10
  store %i9, %i11, align 4
  ret void
}

define %t4 @f20 "simd_first_k" convergent "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="0" "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" %a0( Mod nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = icmp ugt %a2, i32 4
  br %i0, bb1, bb2
bb1:
  %i2 = tail call i1 @f28 [air Group(Group { scope: Simdgroup, op: IsFirst, ty: None, sign: None })]() convergent
  %i3 = zext %i2 to i32
  %i4 = tail call i32 @f53 [air Group(Group { scope: Simdgroup, op: BroadcastFirst, ty: Some(NumTy { elem: I32, lanes: 1 }), sign: Some(Unsigned) })](%a1) convergent
  %i5 = mul i32 %i4, i32 10
  %i6 = or i32 %i5, %i3
  br bb2
bb2:
  %i8 = phi i32 [%i6, bb1], [i32 3, bb0]
  %i9 = zext %a1 to i64
  %i10 = getelementptr inbounds i32, %a0, %i9
  store %i8, %i10, align 4
  ret void
}

define %t5 @f21 "quad_ops_k" convergent "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="0" "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" %a0( Mod nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = tail call i32 @f54 [air Group(Group { scope: Quad, op: ShuffleXor, ty: Some(NumTy { elem: I32, lanes: 1 }), sign: Some(Unsigned) })](%a1, i16 1) convergent
  %i1 = tail call i32 @f55 [air Group(Group { scope: Quad, op: Broadcast, ty: Some(NumTy { elem: I32, lanes: 1 }), sign: Some(Unsigned) })](%a1, i16 2) convergent
  %i2 = mul i32 %i1, i32 1000
  %i3 = add i32 %i2, %i0
  %i4 = tail call i32 @f56 [air Group(Group { scope: Quad, op: Sum, ty: Some(NumTy { elem: I32, lanes: 1 }), sign: Some(Unsigned) })](%a1) convergent
  %i5 = mul i32 %i4, i32 1000000
  %i6 = add i32 %i3, %i5
  %i7 = zext %a1 to i64
  %i8 = getelementptr inbounds i32, %a0, %i7
  store %i6, %i8, align 4
  ret void
}

define %t5 @f22 "quad_relative_k" convergent "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="0" "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" %a0( Mod nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = tail call i32 @f57 [air Group(Group { scope: Quad, op: ShuffleUp, ty: Some(NumTy { elem: I32, lanes: 1 }), sign: Some(Unsigned) })](%a1, i16 1) convergent
  %i1 = tail call i32 @f58 [air Group(Group { scope: Quad, op: ShuffleDown, ty: Some(NumTy { elem: I32, lanes: 1 }), sign: Some(Unsigned) })](%a1, i16 2) convergent
  %i2 = mul i32 %i1, i32 1000
  %i3 = add i32 %i2, %i0
  %i4 = tail call i32 @f59 [air Group(Group { scope: Quad, op: ShuffleRotateDown, ty: Some(NumTy { elem: I32, lanes: 1 }), sign: Some(Unsigned) })](%a1, i16 3) convergent
  %i5 = mul i32 %i4, i32 1000000
  %i6 = add i32 %i3, %i5
  %i7 = zext %a1 to i64
  %i8 = getelementptr inbounds i32, %a0, %i7
  store %i6, %i8, align 4
  ret void
}

define %t5 @f23 "quad_dynamic_k" convergent "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="0" "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" %a0( Mod nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = trunc %a1 to i16
  %i1 = lshr i16 %i0, i16 2
  %i2 = and i16 %i1, i16 3
  %i3 = tail call i32 @f54 [air Group(Group { scope: Quad, op: ShuffleXor, ty: Some(NumTy { elem: I32, lanes: 1 }), sign: Some(Unsigned) })](%a1, %i2) convergent
  %i4 = tail call i32 @f60 [air Group(Group { scope: Quad, op: Max, ty: Some(NumTy { elem: I32, lanes: 1 }), sign: Some(Unsigned) })](%a1) convergent
  %i5 = mul i32 %i4, i32 1000
  %i6 = add i32 %i5, %i3
  %i7 = zext %a1 to i64
  %i8 = getelementptr inbounds i32, %a0, %i7
  store %i6, %i8, align 4
  ret void
}

define %t5 @f24 "quad_ballot_k" convergent "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="0" "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" %a0( Mod nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = urem i32 %a1, i32 7
  %i1 = icmp eq %i0, i32 2
  br %i1, bb2, bb1
bb1:
  %i3 = tail call i1 @f29 [air Group(Group { scope: Quad, op: IsFirst, ty: None, sign: None })]() convergent
  %i4 = zext %i3 to i32
  %i5 = tail call i16 @f30 [air Group(Group { scope: Quad, op: ActiveThreadsMask, ty: None, sign: None })]() convergent
  %i6 = shl i16 %i5, i16 1
  %i7 = and i16 %i6, i16 30
  %i8 = zext %i7 to i32
  %i9 = icmp ne %a1, i32 9
  %i10 = tail call i1 @f31 [air Group(Group { scope: Quad, op: All, ty: None, sign: None })](%i9) convergent
  %i11 = select i32 %i10, i32 64, i32 0
  %i12 = icmp eq %a1, i32 9
  %i13 = tail call i1 @f32 [air Group(Group { scope: Quad, op: Any, ty: None, sign: None })](%i12) convergent
  %i14 = select i32 %i13, i32 128, i32 0
  %i15 = or i32 %i11, %i4
  %i16 = or i32 %i15, %i8
  %i17 = or i32 %i16, %i14
  br bb2
bb2:
  %i19 = phi i32 [%i17, bb1], [i32 99, bb0]
  %i20 = zext %a1 to i64
  %i21 = getelementptr inbounds i32, %a0, %i20
  store %i19, %i21, align 4
  ret void
}

declare %t12 @f25 "air.simd_all" convergent

declare %t12 @f26 "air.simd_any" convergent

declare %t14 @f27 "air.simd_ballot.i64" convergent

declare %t15 @f28 "air.simd_is_first" convergent

declare %t15 @f29 "air.quad_is_first" convergent

declare %t17 @f30 "air.quad_active_threads_mask" convergent

declare %t12 @f31 "air.quad_all" convergent

declare %t12 @f32 "air.quad_any" convergent

declare %t18 @f33 "air.simd_shuffle.u.i32" convergent

declare %t18 @f34 "air.simd_broadcast.u.i32" convergent

declare %t18 @f35 "air.simd_shuffle_up.u.i32" convergent

declare %t18 @f36 "air.simd_shuffle_down.u.i32" convergent

declare %t18 @f37 "air.simd_shuffle_xor.u.i32" convergent

declare %t18 @f38 "air.simd_shuffle_rotate_down.u.i32" convergent

declare %t19 @f39 "air.simd_shuffle_and_fill_down.u.i32" convergent

declare %t17 @f40 "air.get_simdgroup_size.i16" memory(NoModRef, NoModRef, NoModRef)

declare %t19 @f41 "air.simd_shuffle_and_fill_up.u.i32" convergent

declare %t20 @f42 "air.simd_sum.u.i32" convergent

declare %t21 @f43 "air.simd_sum.f32" convergent

declare %t22 @f44 "air.simd_sum.f16" convergent

declare %t23 @f45 "air.simd_min.s.i16" convergent

declare %t23 @f46 "air.simd_max.s.i16" convergent

declare %t23 @f47 "air.simd_or.u.i16" convergent

declare %t23 @f48 "air.simd_and.u.i16" convergent

declare %t23 @f49 "air.simd_xor.u.i16" convergent

declare %t20 @f50 "air.simd_prefix_inclusive_sum.u.i32" convergent

declare %t20 @f51 "air.simd_prefix_exclusive_sum.u.i32" convergent

declare %t21 @f52 "air.simd_prefix_exclusive_sum.f32" convergent

declare %t20 @f53 "air.simd_broadcast_first.u.i32" convergent

declare %t18 @f54 "air.quad_shuffle_xor.u.i32" convergent

declare %t18 @f55 "air.quad_broadcast.u.i32" convergent

declare %t20 @f56 "air.quad_sum.u.i32" convergent

declare %t18 @f57 "air.quad_shuffle_up.u.i32" convergent

declare %t18 @f58 "air.quad_shuffle_down.u.i32" convergent

declare %t18 @f59 "air.quad_shuffle_rotate_down.u.i32" convergent

declare %t20 @f60 "air.quad_max.u.i32" convergent
!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.buffer"
!md10 = !"air.location_index"
!md11 = !"air.read_write"
!md12 = !"air.address_space"
!md13 = !"air.arg_type_size"
!md14 = !"air.arg_type_align_size"
!md15 = !"air.arg_type_name"
!md16 = !"uint"
!md17 = !"air.arg_name"
!md18 = !"out"
!md19 = !"air.thread_index_in_threadgroup"
!md20 = !"t"
!md21 = !"air.thread_index_in_simdgroup"
!md22 = !"lane"
!md23 = !"air.compile.denorms_disable"
!md24 = !"air.compile.fast_math_enable"
!md25 = !"air.compile.framebuffer_fetch_enable"
!md26 = !"Apple metal version 32023.883 (metalfe-32023.883)"
!md27 = !"Metal"
!md28 = !"int"
!md29 = !"omnipotent char"
!md30 = !"Simple C++ TBAA"
!md31 = !"air-alias-scope-arg(0)"
!md32 = i32 2
!md33 = %t25 c64
!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 = ptr addrspace(0) @f1
!md44 = ptr addrspace(0) @f2
!md45 = ptr addrspace(0) @f3
!md46 = ptr addrspace(0) @f4
!md47 = ptr addrspace(0) @f5
!md48 = ptr addrspace(0) @f6
!md49 = ptr addrspace(0) @f7
!md50 = ptr addrspace(0) @f8
!md51 = ptr addrspace(0) @f11
!md52 = ptr addrspace(0) @f13
!md53 = ptr addrspace(0) @f14
!md54 = ptr addrspace(0) @f15
!md55 = ptr addrspace(0) @f16
!md56 = ptr addrspace(0) @f17
!md57 = ptr addrspace(0) @f18
!md58 = ptr addrspace(0) @f19
!md59 = ptr addrspace(0) @f20
!md60 = ptr addrspace(0) @f21
!md61 = ptr addrspace(0) @f22
!md62 = ptr addrspace(0) @f23
!md63 = ptr addrspace(0) @f24
!md64 = i64 0
!md65 = !{!md32, !md0, !md33}
!md66 = !{!md34, !md1, !md35}
!md67 = !{!md36, !md2, !md32}
!md68 = !{!md36, !md3, !md37}
!md69 = !{!md36, !md4, !md37}
!md70 = !{!md36, !md5, !md37}
!md71 = !{!md36, !md6, !md38}
!md72 = !{!md36, !md7, !md39}
!md73 = !{!md36, !md8, !md40}
!md74 = !{}
!md75 = !{!md42, !md9, !md10, !md42, !md34, !md11, !md12, !md34, !md13, !md35, !md14, !md35, !md15, !md16, !md17, !md18}
!md76 = !{!md34, !md19, !md15, !md16, !md17, !md20}
!md77 = !{!md32, !md21, !md15, !md16, !md17, !md22}
!md78 = !{!md75, !md76, !md77}
!md79 = !{!md41, !md74, !md78}
!md80 = !{!md75, !md76}
!md81 = !{!md43, !md74, !md80}
!md82 = !{!md44, !md74, !md80}
!md83 = !{!md45, !md74, !md80}
!md84 = !{!md46, !md74, !md80}
!md85 = !{!md47, !md74, !md80}
!md86 = !{!md48, !md74, !md80}
!md87 = !{!md49, !md74, !md80}
!md88 = !{!md50, !md74, !md80}
!md89 = !{!md51, !md74, !md78}
!md90 = !{!md52, !md74, !md80}
!md91 = !{!md53, !md74, !md80}
!md92 = !{!md54, !md74, !md80}
!md93 = !{!md55, !md74, !md78}
!md94 = !{!md56, !md74, !md78}
!md95 = !{!md57, !md74, !md78}
!md96 = !{!md58, !md74, !md78}
!md97 = !{!md59, !md74, !md78}
!md98 = !{!md60, !md74, !md80}
!md99 = !{!md61, !md74, !md80}
!md100 = !{!md62, !md74, !md80}
!md101 = !{!md63, !md74, !md80}
!md102 = !{!md23}
!md103 = !{!md24}
!md104 = !{!md25}
!md105 = !{!md26}
!md106 = !{!md32, !md39, !md42}
!md107 = !{!md27, !md35, !md42, !md42}
!md108 = !{!md30}
!md109 = !{!md29, !md108, !md64}
!md110 = !{!md28, !md109, !md64}
!md111 = !{!md110, !md110, !md64}
!"llvm.module.flags" = !{!md65, !md66, !md67, !md68, !md69, !md70, !md71, !md72, !md73}
!"air.kernel" = !{!md79, !md81, !md82, !md83, !md84, !md85, !md86, !md87, !md88, !md89, !md90, !md91, !md92, !md93, !md94, !md95, !md96, !md97, !md98, !md99, !md100, !md101}
!"air.compile_options" = !{!md102, !md103, !md104}
!"llvm.ident" = !{!md105}
!"air.version" = !{!md106}
!"air.language_version" = !{!md107}
