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 [128 x i32]
%t6 = type void (ptr addrspace(1), i32)
%t7 = type void (ptr addrspace(1), i32, i32)
%t9 = type float (i32)
%t10 = type i32 (float)
%t12 = type half (i32)
%t15 = type <4 x i32> (<4 x float>)
%t17 = type void (ptr addrspace(1), ptr addrspace(2), i32)
%t19 = type void (ptr addrspace(1), i32, i32, i32, <3 x i32>)
%t20 = type void (ptr addrspace(1), ptr addrspace(3), i32)
%t22 = type i1 (i1)
%t23 = type i1 ()
%t25 = type i64 (i1)
%t27 = type i16 ()
%t28 = type void (i32, i32)
%t29 = type i32 (i32)
%t30 = type float (float)
%t31 = type half (half)
%t32 = type <4 x float> (<4 x float>, i16)
%t34 = type <2 x half> (<2 x half>, i16)
%t35 = type i32 (i32, i16)
%t36 = type <4 x i32> (<4 x i32>, <4 x i32>, i16, i16)
%t38 = type [2 x i32]
c42 = %t38 [26, 5]
@g0 "_ZZ9barrier_kPU9MTLdevicejjjjDv3_jE2tg" = internal addrspace(3) global %t2 undef, align 4

define %t6 @f0 "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 ne %a1, i32 40
  %i1 = tail call i1 @f15 [air Group(Group { scope: Simdgroup, op: All, ty: None, sign: None })](%i0) convergent
  %i2 = zext %i1 to i32
  %i3 = icmp eq %a1, i32 40
  %i4 = tail call i1 @f16 [air Group(Group { scope: Simdgroup, op: Any, ty: None, sign: None })](%i3) convergent
  %i5 = select i32 %i4, i32 2, i32 0
  %i6 = or i32 %i5, %i2
  %i7 = tail call i1 @f17 [air Group(Group { scope: Simdgroup, op: IsFirst, ty: None, sign: None })]() convergent
  %i8 = select i32 %i7, i32 4, i32 0
  %i9 = or i32 %i6, %i8
  %i10 = tail call i32 @f25 [air Group(Group { scope: Simdgroup, op: BroadcastFirst, ty: Some(NumTy { elem: I32, lanes: 1 }), sign: Some(Unsigned) })](%a1) convergent
  %i11 = shl i32 %i10, i32 3
  %i12 = or i32 %i9, %i11
  %i13 = zext %a1 to i64
  %i14 = getelementptr inbounds i32, %a0, %i13
  store %i12, %i14, align 4
  ret void
}

define %t6 @f1 "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 3
  %i1 = icmp eq %i0, i32 0
  %i2 = tail call i64 @f18 [air Group(Group { scope: Simdgroup, op: Ballot, ty: Some(NumTy { elem: I64, lanes: 1 }), sign: None })](%i1) convergent
  %i3 = lshr i64 %i2, i64 32
  %i4 = xor i64 %i3, %i2
  %i5 = trunc %i4 to i32
  %i6 = zext %a1 to i64
  %i7 = getelementptr inbounds i32, %a0, %i6
  store %i5, %i7, align 4
  ret void
}

define %t7 @f2 "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 = tail call i32 @f26 [air Group(Group { scope: Simdgroup, op: PrefixInclusiveSum, ty: Some(NumTy { elem: I32, lanes: 1 }), sign: Some(Unsigned) })](%a1) convergent
  %i1 = shl i32 %i0, i32 1
  %i2 = tail call i32 @f27 [air Group(Group { scope: Simdgroup, op: PrefixExclusiveSum, ty: Some(NumTy { elem: I32, lanes: 1 }), sign: Some(Unsigned) })](%a2) convergent
  %i3 = mul i32 %i2, i32 100000
  %i4 = add i32 %i3, %i1
  %i5 = zext %a1 to i64
  %i6 = getelementptr inbounds i32, %a0, %i5
  store %i4, %i6, align 4
  ret void
}

define %t7 @f3 "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 = tail call reassoc nnan ninf nsz arcp contract afn float @f4 [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)
  %i1 = tail call reassoc nnan ninf nsz arcp contract afn float @f28 [air Group(Group { scope: Simdgroup, op: PrefixExclusiveSum, ty: Some(NumTy { elem: F32, lanes: 1 }), sign: None })](%i0) convergent
  %i2 = tail call i32 @f5 [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 })](%i1)
  %i3 = and i32 %a1, i32 7
  %i4 = tail call reassoc nnan ninf nsz arcp contract afn half @f6 [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 })](%i3)
  %i5 = tail call reassoc nnan ninf nsz arcp contract afn half @f29 [air Group(Group { scope: Simdgroup, op: PrefixInclusiveSum, ty: Some(NumTy { elem: F16, lanes: 1 }), sign: None })](%i4) convergent
  %i6 = fpext %i5 to float
  %i7 = tail call i32 @f5 [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 })](%i6)
  %i8 = mul i32 %i7, i32 10000
  %i9 = add i32 %i8, %i2
  %i10 = zext %a1 to i64
  %i11 = getelementptr inbounds i32, %a0, %i10
  store %i9, %i11, align 4
  ret void
}

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

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

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

define %t6 @f7 "quad_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 = tail call i1 @f19 [air Group(Group { scope: Quad, op: IsFirst, ty: None, sign: None })]() convergent
  %i1 = zext %i0 to i32
  %i2 = tail call i16 @f20 [air Group(Group { scope: Quad, op: ActiveThreadsMask, ty: None, sign: None })]() convergent
  %i3 = shl i16 %i2, i16 1
  %i4 = and i16 %i3, i16 30
  %i5 = zext %i4 to i32
  %i6 = icmp ne %a1, i32 9
  %i7 = tail call i1 @f21 [air Group(Group { scope: Quad, op: All, ty: None, sign: None })](%i6) convergent
  %i8 = select i32 %i7, i32 64, i32 0
  %i9 = icmp eq %a1, i32 9
  %i10 = tail call i1 @f22 [air Group(Group { scope: Quad, op: Any, ty: None, sign: None })](%i9) convergent
  %i11 = select i32 %i10, i32 128, i32 0
  %i12 = tail call i32 @f30 [air Group(Group { scope: Quad, op: Min, ty: Some(NumTy { elem: I32, lanes: 1 }), sign: Some(Unsigned) })](%a1) convergent
  %i13 = shl i32 %i12, i32 8
  %i14 = or i32 %i8, %i1
  %i15 = or i32 %i14, %i5
  %i16 = or i32 %i15, %i11
  %i17 = or i32 %i16, %i13
  %i18 = zext %a1 to i64
  %i19 = getelementptr inbounds i32, %a0, %i18
  store %i17, %i19, align 4
  ret void
}

define %t6 @f8 "vector_k" convergent "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" %a0( Mod nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = tail call reassoc nnan ninf nsz arcp contract afn float @f4 [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 })](%a1)
  %i1 = insertelement <4 x float> undef, %i0, i64 0
  %i2 = add i32 %a1, i32 1
  %i3 = tail call reassoc nnan ninf nsz arcp contract afn float @f4 [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 })](%i2)
  %i4 = insertelement %i1, %i3, i64 1
  %i5 = xor i32 %a1, i32 85
  %i6 = tail call reassoc nnan ninf nsz arcp contract afn float @f4 [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 })](%i5)
  %i7 = insertelement %i4, %i6, i64 2
  %i8 = sub i32 i32 255, %a1
  %i9 = tail call reassoc nnan ninf nsz arcp contract afn float @f4 [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 })](%i8)
  %i10 = insertelement %i7, %i9, i64 3
  %i11 = freeze <4 x float> %i10
  %i12 = tail call reassoc nnan ninf nsz arcp contract afn <4 x float> @f31 [air Group(Group { scope: Simdgroup, op: ShuffleXor, ty: Some(NumTy { elem: F32, lanes: 4 }), sign: None })](%i11, i16 5) convergent
  %i13 = tail call <4 x i32> @f9 [air Convert(Convert { dst: NumTy { elem: I32, lanes: 4 }, dst_kind: Unsigned, src: NumTy { elem: F32, lanes: 4 }, src_kind: Float, src_fp8: None, rounding: None, saturate: false })](%i12)
  %i14 = extractelement %i13, i64 0
  %i15 = extractelement %i13, i64 1
  %i16 = shl i32 %i15, i32 8
  %i17 = or i32 %i16, %i14
  %i18 = extractelement %i13, i64 2
  %i19 = shl i32 %i18, i32 16
  %i20 = or i32 %i17, %i19
  %i21 = extractelement %i13, i64 3
  %i22 = shl i32 %i21, i32 24
  %i23 = or i32 %i20, %i22
  %i24 = zext %a1 to i64
  %i25 = getelementptr inbounds i32, %a0, %i24
  store %i23, %i25, align 4
  ret void
}

declare %t15 @f9 "air.convert.u.v4i32.f.v4f32" memory(NoModRef, NoModRef, NoModRef)

define %t6 @f10 "half_vector_k" convergent "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="32" "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 63
  %i1 = tail call reassoc nnan ninf nsz arcp contract afn half @f6 [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 })](%i0)
  %i2 = insertelement <2 x half> undef, %i1, i64 0
  %i3 = lshr i32 %a1, i32 1
  %i4 = tail call reassoc nnan ninf nsz arcp contract afn half @f6 [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 })](%i3)
  %i5 = insertelement %i2, %i4, i64 1
  %i6 = freeze <2 x half> %i5
  %i7 = tail call reassoc nnan ninf nsz arcp contract afn <2 x half> @f32 [air Group(Group { scope: Simdgroup, op: ShuffleDown, ty: Some(NumTy { elem: F16, lanes: 2 }), sign: None })](%i6, i16 3) convergent
  %i8 = extractelement %i7, i64 0
  %i9 = fpext %i8 to float
  %i10 = tail call i32 @f5 [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 })](%i9)
  %i11 = extractelement %i7, i64 1
  %i12 = fpext %i11 to float
  %i13 = tail call i32 @f5 [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 })](%i12)
  %i14 = shl i32 %i13, i32 16
  %i15 = or i32 %i14, %i10
  %i16 = zext %a1 to i64
  %i17 = getelementptr inbounds i32, %a0, %i16
  store %i15, %i17, align 4
  ret void
}

define %t17 @f11 "loop_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"="" ) %a1( align 4 dereferenceable(4) Ref nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = load i32, %a1, align 4
  %i1 = icmp eq %i0, i32 0
  br %i1, bb1, bb2
bb1:
  %i3 = phi i32 [%a2, bb0], [%i12, bb2]
  %i4 = zext %a2 to i64
  %i5 = getelementptr inbounds i32, %a0, %i4
  store %i3, %i5, align 4
  ret void
bb2:
  %i8 = phi i32 [%i13, bb2], [i32 0, bb0]
  %i9 = phi i32 [%i12, bb2], [%a2, bb0]
  %i10 = freeze i32 %i9
  %i11 = tail call i32 @f33 [air Group(Group { scope: Simdgroup, op: ShuffleRotateDown, ty: Some(NumTy { elem: I32, lanes: 1 }), sign: Some(Unsigned) })](%i10, i16 1) convergent
  %i12 = add i32 %i11, %i8
  %i13 = add nuw i32 %i8, i32 1
  %i14 = icmp eq %i13, %i0
  br %i14, bb1, bb2, !llvm.loop LoopHints { unroll: Default, must_progress: true }
}

define %t19 @f12 "barrier_k" convergent "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="96" "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, i32 3
  %i1 = zext %a1 to i64
  %i2 = getelementptr inbounds %t2, ptr addrspace(3) @g0, i64 0, %i1
  store %i0, %i2, align 4
  tail call void @f23 [air Sync(Barrier { name: Simdgroup, flags: MemFlags { device: false, threadgroup: true, texture: false, threadgroup_imageblock: false, object_data: false }, order: None, scope: Simdgroup, memory: Simdgroup })](i32 2, i32 4) convergent
  %i5 = shl i32 %a3, i32 5
  %i6 = add i32 %a2, i32 1
  %i7 = and i32 %i6, i32 31
  %i8 = or i32 %i5, %i7
  %i9 = extractelement %a4, i64 0
  %i10 = extractelement %a4, i64 1
  %i11 = mul i32 %i9, %i10
  %i12 = extractelement %a4, i64 2
  %i13 = mul i32 %i11, %i12
  %i14 = icmp ult %i8, %i13
  br %i14, bb1, bb2
bb1:
  %i16 = zext %i8 to i64
  %i17 = getelementptr inbounds %t2, ptr addrspace(3) @g0, i64 0, %i16
  %i18 = load i32, %i17, align 4
  br bb2
bb2:
  %i20 = phi i32 [%i18, bb1], [i32 0, bb0]
  %i21 = getelementptr inbounds i32, %a0, %i1
  store %i20, %i21, align 4
  ret void
}

define %t6 @f13 "divergent_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 ult %a1, i32 16
  br %i0, bb1, bb2
bb1:
  %i2 = tail call i32 @f34 [air Group(Group { scope: Simdgroup, op: Sum, ty: Some(NumTy { elem: I32, lanes: 1 }), sign: Some(Unsigned) })](%a1) convergent
  br bb2
bb2:
  %i4 = phi i32 [%i2, bb1], [i32 0, bb0]
  %i5 = zext %a1 to i64
  %i6 = getelementptr inbounds i32, %a0, %i5
  store %i4, %i6, align 4
  ret void
}

define %t20 @f14 "region_k" convergent "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" %a0( Mod nocapture "air-buffer-no-alias"="" ) %a1( nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = insertelement <4 x i32> poison, %a2, i64 0
  %i1 = add i32 %a2, i32 1
  %i2 = insertelement %i0, %i1, i64 1
  %i3 = add i32 %a2, i32 2
  %i4 = insertelement %i2, %i3, i64 2
  %i5 = add i32 %a2, i32 3
  %i6 = insertelement %i4, %i5, i64 3
  %i7 = shl i32 %a2, i32 8
  %i8 = insertelement <4 x i32> poison, %i7, i64 0
  %i9 = shufflevector <4 x i32> %i8, <4 x i32> poison, <0, 0, 0, 0>
  %i10 = tail call i16 @f35 [air SimdgroupSize(SimdgroupSize { ty: I16 })]()
  %i11 = tail call <4 x i32> @f36 [air Group(Group { scope: Simdgroup, op: ShuffleAndFillDown, ty: Some(NumTy { elem: I32, lanes: 4 }), sign: Some(Unsigned) })](%i6, %i9, i16 1, %i10) convergent
  %i12 = icmp eq %a2, i32 0
  br %i12, bb1, bb2
bb1:
  store i32 5, %a1, align 4
  br bb2
bb2:
  tail call void @f24 [air Sync(Barrier { name: Threadgroup, flags: MemFlags { device: false, threadgroup: true, texture: false, threadgroup_imageblock: false, object_data: false }, order: None, scope: Threadgroup, memory: Threadgroup })](i32 2, i32 1) convergent
  %i17 = extractelement %i11, i64 0
  %i18 = extractelement %i11, i64 1
  %i19 = add i32 %i17, %i18
  %i20 = extractelement %i11, i64 2
  %i21 = add i32 %i19, %i20
  %i22 = extractelement %i11, i64 3
  %i23 = add i32 %i21, %i22
  %i24 = load i32, %a1, align 4
  %i25 = add i32 %i23, %i24
  %i26 = zext %a2 to i64
  %i27 = getelementptr inbounds i32, %a0, %i26
  store %i25, %i27, align 4
  ret void
}

declare %t22 @f15 "air.simd_all" convergent

declare %t22 @f16 "air.simd_any" convergent

declare %t23 @f17 "air.simd_is_first" convergent

declare %t25 @f18 "air.simd_ballot.i64" convergent

declare %t23 @f19 "air.quad_is_first" convergent

declare %t27 @f20 "air.quad_active_threads_mask" convergent

declare %t22 @f21 "air.quad_all" convergent

declare %t22 @f22 "air.quad_any" convergent

declare %t28 @f23 "air.simdgroup.barrier" convergent

declare %t28 @f24 "air.wg.barrier" convergent

declare %t29 @f25 "air.simd_broadcast_first.u.i32" convergent

declare %t29 @f26 "air.simd_prefix_inclusive_sum.u.i32" convergent

declare %t29 @f27 "air.simd_prefix_exclusive_sum.u.i32" convergent

declare %t30 @f28 "air.simd_prefix_exclusive_sum.f32" convergent

declare %t31 @f29 "air.simd_prefix_inclusive_sum.f16" convergent

declare %t29 @f30 "air.quad_min.u.i32" convergent

declare %t32 @f31 "air.simd_shuffle_xor.v4f32" convergent

declare %t34 @f32 "air.simd_shuffle_down.v2f16" convergent

declare %t35 @f33 "air.simd_shuffle_rotate_down.u.i32" convergent

declare %t29 @f34 "air.simd_sum.u.i32" convergent

declare %t27 @f35 "air.get_simdgroup_size.i16" memory(NoModRef, NoModRef, NoModRef)

declare %t36 @f36 "air.simd_shuffle_and_fill_down.u.v4i32" 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.buffer_size"
!md24 = !"air.read"
!md25 = !"steps"
!md26 = !"air.simdgroup_index_in_threadgroup"
!md27 = !"sg"
!md28 = !"air.threads_per_threadgroup"
!md29 = !"uint3"
!md30 = !"size"
!md31 = !"tg"
!md32 = !"air.compile.denorms_disable"
!md33 = !"air.compile.fast_math_enable"
!md34 = !"air.compile.framebuffer_fetch_enable"
!md35 = !"Apple metal version 32023.883 (metalfe-32023.883)"
!md36 = !"Metal"
!md37 = !"int"
!md38 = !"omnipotent char"
!md39 = !"Simple C++ TBAA"
!md40 = !"air-alias-scope-arg(0)"
!md41 = !"air-alias-scope-arg(1)"
!md42 = i32 2
!md43 = %t38 c42
!md44 = i32 1
!md45 = i32 4
!md46 = i32 7
!md47 = i32 31
!md48 = i32 128
!md49 = i32 8
!md50 = i32 16
!md51 = ptr addrspace(0) @f0
!md52 = i32 0
!md53 = ptr addrspace(0) @f1
!md54 = ptr addrspace(0) @f2
!md55 = ptr addrspace(0) @f3
!md56 = ptr addrspace(0) @f7
!md57 = ptr addrspace(0) @f8
!md58 = ptr addrspace(0) @f10
!md59 = ptr addrspace(0) @f11
!md60 = ptr addrspace(0) @f12
!md61 = i32 3
!md62 = ptr addrspace(0) @f13
!md63 = ptr addrspace(0) @f14
!md64 = i64 0
!md65 = !{!md42, !md0, !md43}
!md66 = !{!md44, !md1, !md45}
!md67 = !{!md46, !md2, !md42}
!md68 = !{!md46, !md3, !md47}
!md69 = !{!md46, !md4, !md47}
!md70 = !{!md46, !md5, !md47}
!md71 = !{!md46, !md6, !md48}
!md72 = !{!md46, !md7, !md49}
!md73 = !{!md46, !md8, !md50}
!md74 = !{}
!md75 = !{!md52, !md9, !md10, !md52, !md44, !md11, !md12, !md44, !md13, !md45, !md14, !md45, !md15, !md16, !md17, !md18}
!md76 = !{!md44, !md19, !md15, !md16, !md17, !md20}
!md77 = !{!md75, !md76}
!md78 = !{!md51, !md74, !md77}
!md79 = !{!md53, !md74, !md77}
!md80 = !{!md42, !md21, !md15, !md16, !md17, !md22}
!md81 = !{!md75, !md76, !md80}
!md82 = !{!md54, !md74, !md81}
!md83 = !{!md55, !md74, !md81}
!md84 = !{!md56, !md74, !md77}
!md85 = !{!md57, !md74, !md77}
!md86 = !{!md58, !md74, !md77}
!md87 = !{!md44, !md9, !md23, !md45, !md10, !md44, !md44, !md24, !md12, !md42, !md13, !md45, !md14, !md45, !md15, !md16, !md17, !md25}
!md88 = !{!md42, !md19, !md15, !md16, !md17, !md20}
!md89 = !{!md75, !md87, !md88}
!md90 = !{!md59, !md74, !md89}
!md91 = !{!md61, !md26, !md15, !md16, !md17, !md27}
!md92 = !{!md45, !md28, !md15, !md29, !md17, !md30}
!md93 = !{!md75, !md76, !md80, !md91, !md92}
!md94 = !{!md60, !md74, !md93}
!md95 = !{!md62, !md74, !md77}
!md96 = !{!md44, !md9, !md10, !md52, !md44, !md11, !md12, !md61, !md13, !md45, !md14, !md45, !md15, !md16, !md17, !md31}
!md97 = !{!md75, !md96, !md88}
!md98 = !{!md63, !md74, !md97}
!md99 = !{!md32}
!md100 = !{!md33}
!md101 = !{!md34}
!md102 = !{!md35}
!md103 = !{!md42, !md49, !md52}
!md104 = !{!md36, !md45, !md52, !md52}
!md105 = !{!md39}
!md106 = !{!md38, !md105, !md64}
!md107 = !{!md37, !md106, !md64}
!md108 = !{!md107, !md107, !md64}
!"llvm.module.flags" = !{!md65, !md66, !md67, !md68, !md69, !md70, !md71, !md72, !md73}
!"air.kernel" = !{!md78, !md79, !md82, !md83, !md84, !md85, !md86, !md90, !md94, !md95, !md98}
!"air.compile_options" = !{!md99, !md100, !md101}
!"llvm.ident" = !{!md102}
!"air.version" = !{!md103}
!"air.language_version" = !{!md104}
