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 [4 x ptr addrspace(0)]
%t6 = type void (ptr addrspace(1), i32)
%t7 = type i32 (i32)
%t8 = type void (ptr addrspace(1), ptr addrspace(1), i32)
%t9 = type void (ptr addrspace(1), i32, i32)
%t10 = type void (i32, i32)
%t12 = type i64 (i64)
%t13 = type ptr addrspace(0) (ptr addrspace(1), i32)
%t15 = type [2 x i32]
%t18 = type [3 x ptr addrspace(0)]
%t19 = type [2 x ptr addrspace(0)]
c30 = %t15 [27, 0]
c48 = i64 ptrtoint (@f2)
c49 = i64 ptrtoint (@f1)
@g0 "_ZZ15fpc_threadgroupPU9MTLdevicejjjE4slot" = internal addrspace(3) global %t2 undef, align 8

define %t6 @f0 "fpc_select" 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 1
  %i1 = icmp eq %i0, i32 0
  %i2 = select ptr addrspace(0) %i1, ptr addrspace(0) @f2, ptr addrspace(0) @f1
  %i3 = tail call i32 %t7 %i2(%a1) convergent "no-builtins"=""
  %i4 = zext %a1 to i64
  %i5 = getelementptr inbounds i32, %a0, %i4
  store %i3, %i5, align 4
  ret void
}

declare %t7 @f1 "fpc_inc.MTL_VISIBLE_FN_REF", section "air.externally_defined"

declare %t7 @f2 "fpc_dbl.MTL_VISIBLE_FN_REF", section "air.externally_defined"

define %t8 @f3 "fpc_phi" 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( Mod nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = urem i32 %a2, i32 3
  switch %i0, bb3 [ 0: bb1 1: bb2 ]
bb1:
  %i2 = zext %a2 to i64
  %i3 = getelementptr inbounds i32, %a1, %i2
  store i32 10, %i3, align 4
  br bb4
bb2:
  %i6 = zext %a2 to i64
  %i7 = getelementptr inbounds i32, %a1, %i6
  store i32 11, %i7, align 4
  br bb4
bb3:
  %i10 = zext %a2 to i64
  %i11 = getelementptr inbounds i32, %a1, %i10
  store i32 12, %i11, align 4
  br bb4
bb4:
  %i14 = phi i64 [%i6, bb2], [%i10, bb3], [%i2, bb1]
  %i15 = phi ptr addrspace(0) [ptr addrspace(0) @f2, bb2], [ptr addrspace(0) @f4, bb3], [ptr addrspace(0) @f1, bb1]
  %i16 = add i32 %a2, i32 5
  %i17 = tail call i32 %t7 %i15(%i16) convergent "no-builtins"=""
  %i18 = getelementptr inbounds i32, %a0, %i14
  store %i17, %i18, align 4
  ret void
}

declare %t7 @f4 "fpc_sq.MTL_VISIBLE_FN_REF", section "air.externally_defined"

define %t6 @f5 "fpc_loop" 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:
  br bb2
bb1:
  %i1 = zext %a1 to i64
  %i2 = getelementptr inbounds i32, %a0, %i1
  store %i8, %i2, align 4
  ret void
bb2:
  %i5 = phi i32 [i32 0, bb0], [%i12, bb2]
  %i6 = phi i32 [%a1, bb0], [%i8, bb2]
  %i7 = phi ptr addrspace(0) [ptr addrspace(0) @f1, bb0], [%i11, bb2]
  %i8 = tail call i32 %t7 %i7(%i6) convergent "no-builtins"=""
  %i9 = and i32 %i8, i32 1
  %i10 = icmp eq %i9, i32 0
  %i11 = select ptr addrspace(0) %i10, ptr addrspace(0) @f2, ptr addrspace(0) @f1
  %i12 = add nuw nsw i32 %i5, i32 1
  %i13 = icmp eq %i12, i32 4
  br %i13, bb1, bb2, !llvm.loop LoopHints { unroll: Default, must_progress: true }
}

define %t6 @f6 "fpc_private_array" 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 = alloca %t18, i32 1, align 8
  %i1 = bitcast %i0 to ptr addrspace(0)
  %i2 = getelementptr inbounds %t18, %i0, i64 0, i64 0
  store ptr addrspace(0) @f1, %i2, align 8
  %i4 = getelementptr inbounds %t18, %i0, i64 0, i64 1
  store ptr addrspace(0) @f2, %i4, align 8
  %i6 = getelementptr inbounds %t18, %i0, i64 0, i64 2
  store ptr addrspace(0) @f4, %i6, align 8
  %i8 = urem i32 %a1, i32 3
  %i9 = zext %i8 to i64
  %i10 = getelementptr inbounds %t18, %i0, i64 0, %i9
  %i11 = load ptr addrspace(0), %i10, align 8
  %i12 = tail call i32 %t7 %i11(%a1) convergent "no-builtins"=""
  %i13 = zext %a1 to i64
  %i14 = getelementptr inbounds i32, %a0, %i13
  store %i12, %i14, align 4
  ret void
}

define %t6 @f7 "fpc_compare" memory(Mod, NoModRef, NoModRef) "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 = alloca %t2, i32 1, align 8
  %i1 = bitcast %i0 to ptr addrspace(0)
  %i2 = getelementptr inbounds %t2, %i0, i64 0, i64 0
  store ptr addrspace(0) @f1, %i2, align 8
  %i4 = getelementptr inbounds %t2, %i0, i64 0, i64 1
  store ptr addrspace(0) @f2, %i4, align 8
  %i6 = getelementptr inbounds %t2, %i0, i64 0, i64 2
  store ptr addrspace(0) @f4, %i6, align 8
  %i8 = getelementptr inbounds %t2, %i0, i64 0, i64 3
  store ptr addrspace(0) @f1, %i8, align 8
  %i10 = and i32 %a1, i32 3
  %i11 = zext %i10 to i64
  %i12 = getelementptr inbounds %t2, %i0, i64 0, %i11
  %i13 = load ptr addrspace(0), %i12, align 8
  %i14 = lshr i32 %a1, i32 2
  %i15 = and i32 %i14, i32 3
  %i16 = zext %i15 to i64
  %i17 = getelementptr inbounds %t2, %i0, i64 0, %i16
  %i18 = load ptr addrspace(0), %i17, align 8
  %i19 = icmp eq %i13, %i18
  %i20 = zext %i19 to i32
  %i21 = icmp eq %i13, ptr addrspace(0) @f1
  %i22 = select i32 %i21, i32 2, i32 0
  %i23 = icmp eq %i13, ptr addrspace(0) zeroinitializer
  %i24 = select i32 %i23, i32 0, i32 4
  %i25 = icmp eq %i18, ptr addrspace(0) @f4
  %i26 = select i32 %i25, i32 8, i32 0
  %i27 = or i32 %i24, %i22
  %i28 = or i32 %i27, %i20
  %i29 = or i32 %i28, %i26
  %i30 = zext %a1 to i64
  %i31 = getelementptr inbounds i32, %a0, %i30
  store %i29, %i31, align 4
  ret void
}

define %t9 @f8 "fpc_threadgroup" 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 %a2, i32 4
  br %i0, bb1, bb4
bb1:
  %i2 = and i32 %a2, i32 1
  %i3 = icmp eq %i2, i32 0
  %i4 = zext %a2 to i64
  %i5 = getelementptr inbounds %t2, ptr addrspace(3) @g0, i64 0, %i4
  br %i3, bb3, bb2
bb2:
  store ptr addrspace(0) @f1, %i5, align 8
  br bb4
bb3:
  store ptr addrspace(0) @f4, %i5, align 8
  br bb4
bb4:
  tail call void @f22 [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
  %i12 = and i32 %a1, i32 3
  %i13 = zext %i12 to i64
  %i14 = getelementptr inbounds %t2, ptr addrspace(3) @g0, i64 0, %i13
  %i15 = load ptr addrspace(0), %i14, align 8
  %i16 = tail call i32 %t7 %i15(%a1) convergent "no-builtins"=""
  %i17 = zext %a1 to i64
  %i18 = getelementptr inbounds i32, %a0, %i17
  store %i16, %i18, align 4
  ret void
}

define %t8 @f9 "fpc_int_back" 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( nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = and i32 %a2, i32 1
  %i1 = icmp eq %i0, i32 0
  %i2 = select i64 %i1, i64 c48, i64 c49
  %i3 = zext %a2 to i64
  %i4 = getelementptr inbounds i64, %a1, %i3
  store %i2, %i4, align 8
  tail call void @f22 [air Sync(Barrier { name: Threadgroup, flags: MemFlags { device: true, threadgroup: false, texture: false, threadgroup_imageblock: false, object_data: false }, order: None, scope: Threadgroup, memory: Threadgroup })](i32 1, i32 1) convergent
  %i7 = xor i32 %a2, i32 1
  %i8 = zext %i7 to i64
  %i9 = getelementptr inbounds i64, %a1, %i8
  %i10 = load i64, %i9, align 8
  %i11 = inttoptr %i10 to ptr addrspace(0)
  %i12 = tail call i32 %t7 %i11(%a2) convergent "no-builtins"=""
  %i13 = getelementptr inbounds i32, %a0, %i3
  store %i12, %i13, align 4
  ret void
}

define %t8 @f10 "fpc_table_mix" 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( Ref nocapture ) {
bb0:
  %i0 = urem i32 %a2, i32 3
  %i1 = tail call ptr addrspace(0) @f24 [air FunctionTable(GetFunctionPointer)](%a1, %i0) arg0( Ref nocapture )
  %i2 = bitcast %i1 to ptr addrspace(0)
  %i3 = and i32 %a2, i32 4
  %i4 = icmp eq %i3, i32 0
  %i5 = select ptr addrspace(0) %i4, ptr addrspace(0) @f4, %i2
  %i6 = tail call i32 %t7 %i5(%a2) convergent "no-builtins"=""
  %i7 = icmp eq %i1, ptr addrspace(0) @f1
  %i8 = select i32 %i7, i32 1000, i32 0
  %i9 = add i32 %i8, %i6
  %i10 = icmp eq %i5, ptr addrspace(0) @f4
  %i11 = select i32 %i10, i32 2000, i32 0
  %i12 = add i32 %i9, %i11
  %i13 = zext %a2 to i64
  %i14 = getelementptr inbounds i32, %a0, %i13
  store %i12, %i14, align 4
  ret void
}

define %t8 @f11 "fpc_table_store" 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( Ref nocapture ) {
bb0:
  %i0 = alloca %t19, i32 1, align 8
  %i1 = bitcast %i0 to ptr addrspace(0)
  %i2 = urem i32 %a2, i32 3
  %i3 = tail call ptr addrspace(0) @f24 [air FunctionTable(GetFunctionPointer)](%a1, %i2) arg0( Ref nocapture )
  %i4 = bitcast %i0 to ptr addrspace(0)
  store %i3, %i4, align 8
  %i6 = getelementptr inbounds %t19, %i0, i64 0, i64 1
  store ptr addrspace(0) @f4, %i6, align 8
  %i8 = lshr i32 %a2, i32 1
  %i9 = and i32 %i8, i32 1
  %i10 = zext %i9 to i64
  %i11 = getelementptr inbounds %t19, %i0, i64 0, %i10
  %i12 = load ptr addrspace(0), %i11, align 8
  %i13 = tail call i32 %t7 %i12(%a2) convergent "no-builtins"=""
  %i14 = zext %a2 to i64
  %i15 = getelementptr inbounds i32, %a0, %i14
  store %i13, %i15, align 4
  ret void
}

define %t8 @f12 "fpc_recurse" 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( Ref nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = and i32 %a2, i32 1
  %i1 = icmp eq %i0, i32 0
  %i2 = select ptr addrspace(0) %i1, ptr addrspace(0) @f14, ptr addrspace(0) @f13
  %i3 = zext %a2 to i64
  %i4 = getelementptr inbounds i32, %a1, %i3
  %i5 = load i32, %i4, align 4
  %i6 = tail call i32 %t7 %i2(%i5) convergent "no-builtins"=""
  %i7 = getelementptr inbounds i32, %a0, %i3
  store %i6, %i7, align 4
  ret void
}

declare %t7 @f13 "fpc_rec_odd.MTL_VISIBLE_FN_REF", section "air.externally_defined"

declare %t7 @f14 "fpc_rec_even.MTL_VISIBLE_FN_REF", section "air.externally_defined"

define %t6 @f15 "fpc_own_select" 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 1
  %i1 = icmp eq %i0, i32 0
  %i2 = select ptr addrspace(0) %i1, ptr addrspace(0) @f17, ptr addrspace(0) @f16
  %i3 = tail call i32 %t7 %i2(%a1) convergent "no-builtins"=""
  %i4 = zext %a1 to i64
  %i5 = getelementptr inbounds i32, %a0, %i4
  store %i3, %i5, align 4
  ret void
}

define internal %t7 @f16 "_ZL7own_incj" memory(NoModRef, NoModRef, NoModRef) "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" {
bb0:
  %i0 = add i32 %a0, i32 1
  ret %i0
}

define internal %t7 @f17 "_ZL7own_dblj" memory(NoModRef, NoModRef, NoModRef) "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" {
bb0:
  %i0 = shl i32 %a0, i32 1
  ret %i0
}

define %t6 @f18 "fpc_own_private_array" 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 = alloca %t18, i32 1, align 8
  %i1 = bitcast %i0 to ptr addrspace(0)
  %i2 = getelementptr inbounds %t18, %i0, i64 0, i64 0
  store ptr addrspace(0) @f16, %i2, align 8
  %i4 = getelementptr inbounds %t18, %i0, i64 0, i64 1
  store ptr addrspace(0) @f17, %i4, align 8
  %i6 = getelementptr inbounds %t18, %i0, i64 0, i64 2
  store ptr addrspace(0) @f19, %i6, align 8
  %i8 = urem i32 %a1, i32 3
  %i9 = zext %i8 to i64
  %i10 = getelementptr inbounds %t18, %i0, i64 0, %i9
  %i11 = load ptr addrspace(0), %i10, align 8
  %i12 = tail call i32 %t7 %i11(%a1) convergent "no-builtins"=""
  %i13 = zext %a1 to i64
  %i14 = getelementptr inbounds i32, %a0, %i13
  store %i12, %i14, align 4
  ret void
}

define internal %t7 @f19 "_ZL6own_sqj" memory(NoModRef, NoModRef, NoModRef) "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" {
bb0:
  %i0 = mul i32 %a0, %a0
  ret %i0
}

define %t6 @f20 "fpc_own_compare" memory(Mod, NoModRef, NoModRef) "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 = alloca %t2, i32 1, align 8
  %i1 = bitcast %i0 to ptr addrspace(0)
  %i2 = getelementptr inbounds %t2, %i0, i64 0, i64 0
  store ptr addrspace(0) @f16, %i2, align 8
  %i4 = getelementptr inbounds %t2, %i0, i64 0, i64 1
  store ptr addrspace(0) @f17, %i4, align 8
  %i6 = getelementptr inbounds %t2, %i0, i64 0, i64 2
  store ptr addrspace(0) @f19, %i6, align 8
  %i8 = getelementptr inbounds %t2, %i0, i64 0, i64 3
  store ptr addrspace(0) @f16, %i8, align 8
  %i10 = and i32 %a1, i32 3
  %i11 = zext %i10 to i64
  %i12 = getelementptr inbounds %t2, %i0, i64 0, %i11
  %i13 = load ptr addrspace(0), %i12, align 8
  %i14 = lshr i32 %a1, i32 2
  %i15 = and i32 %i14, i32 3
  %i16 = zext %i15 to i64
  %i17 = getelementptr inbounds %t2, %i0, i64 0, %i16
  %i18 = load ptr addrspace(0), %i17, align 8
  %i19 = icmp eq %i13, %i18
  %i20 = zext %i19 to i32
  %i21 = icmp eq %i13, ptr addrspace(0) @f16
  %i22 = select i32 %i21, i32 2, i32 0
  %i23 = icmp eq %i13, ptr addrspace(0) zeroinitializer
  %i24 = select i32 %i23, i32 0, i32 4
  %i25 = icmp eq %i18, ptr addrspace(0) @f19
  %i26 = select i32 %i25, i32 8, i32 0
  %i27 = or i32 %i24, %i22
  %i28 = or i32 %i27, %i20
  %i29 = or i32 %i28, %i26
  %i30 = zext %a1 to i64
  %i31 = getelementptr inbounds i32, %a0, %i30
  store %i29, %i31, align 4
  ret void
}

define %t6 @f21 "fpc_wide" memory(Mod, NoModRef, NoModRef) "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 = zext %a1 to i64
  %i1 = mul nuw i64 %i0, i64 4294967297
  %i2 = tail call i64 @f23 [air Math(Math { f: Popcount, precision: Precise, ty: NumTy { elem: I64, lanes: 1 } })](%i1)
  %i3 = trunc %i2 to i32
  %i4 = getelementptr inbounds i32, %a0, %i0
  store %i3, %i4, align 4
  ret void
}

declare %t10 @f22 "air.wg.barrier" convergent

declare %t12 @f23 "air.popcount.i64" memory(NoModRef, NoModRef, NoModRef)

declare %t13 @f24 "air.get_function_pointer_visible_function_table" memory(Ref, NoModRef, NoModRef) %a0( 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.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_position_in_grid"
!md20 = !"tid"
!md21 = !"side"
!md22 = !"air.thread_position_in_threadgroup"
!md23 = !"lid"
!md24 = !"ulong"
!md25 = !"bits"
!md26 = !"air.visible_function_table"
!md27 = !"air.read"
!md28 = !"visible_function_table"
!md29 = !"t"
!md30 = !"depth"
!md31 = !"air.compile.denorms_disable"
!md32 = !"air.compile.fast_math_enable"
!md33 = !"air.compile.framebuffer_fetch_enable"
!md34 = !"air.visible_function_reference"
!md35 = !"fpc_inc"
!md36 = !"fpc_dbl"
!md37 = !"fpc_sq"
!md38 = !"fpc_rec_odd"
!md39 = !"fpc_rec_even"
!md40 = !"Apple metal version 32023.921 (metalfe-32023.921.6)"
!md41 = !"Metal"
!md42 = !"int"
!md43 = !"omnipotent char"
!md44 = !"Simple C++ TBAA"
!md45 = !"air-alias-scope-arg(0)"
!md46 = !"air-alias-scope-arg(1)"
!md47 = !"any pointer"
!md48 = i32 2
!md49 = %t15 c30
!md50 = i32 1
!md51 = i32 4
!md52 = i32 7
!md53 = i32 31
!md54 = i32 128
!md55 = i32 8
!md56 = i32 16
!md57 = ptr addrspace(0) @f0
!md58 = i32 0
!md59 = ptr addrspace(0) @f3
!md60 = ptr addrspace(0) @f5
!md61 = ptr addrspace(0) @f6
!md62 = ptr addrspace(0) @f7
!md63 = ptr addrspace(0) @f8
!md64 = ptr addrspace(0) @f9
!md65 = ptr addrspace(0) @f10
!md66 = ptr addrspace(0) @f11
!md67 = ptr addrspace(0) @f12
!md68 = ptr addrspace(0) @f15
!md69 = ptr addrspace(0) @f18
!md70 = ptr addrspace(0) @f20
!md71 = ptr addrspace(0) @f21
!md72 = ptr addrspace(0) @f1
!md73 = ptr addrspace(0) @f2
!md74 = ptr addrspace(0) @f4
!md75 = ptr addrspace(0) @f13
!md76 = ptr addrspace(0) @f14
!md77 = i64 0
!md78 = !{!md48, !md0, !md49}
!md79 = !{!md50, !md1, !md51}
!md80 = !{!md52, !md2, !md48}
!md81 = !{!md52, !md3, !md53}
!md82 = !{!md52, !md4, !md53}
!md83 = !{!md52, !md5, !md53}
!md84 = !{!md52, !md6, !md54}
!md85 = !{!md52, !md7, !md55}
!md86 = !{!md52, !md8, !md56}
!md87 = !{}
!md88 = !{!md58, !md9, !md10, !md58, !md50, !md11, !md12, !md50, !md13, !md51, !md14, !md51, !md15, !md16, !md17, !md18}
!md89 = !{!md50, !md19, !md15, !md16, !md17, !md20}
!md90 = !{!md88, !md89}
!md91 = !{!md57, !md87, !md90}
!md92 = !{!md50, !md9, !md10, !md50, !md50, !md11, !md12, !md50, !md13, !md51, !md14, !md51, !md15, !md16, !md17, !md21}
!md93 = !{!md48, !md19, !md15, !md16, !md17, !md20}
!md94 = !{!md88, !md92, !md93}
!md95 = !{!md59, !md87, !md94}
!md96 = !{!md60, !md87, !md90}
!md97 = !{!md61, !md87, !md90}
!md98 = !{!md62, !md87, !md90}
!md99 = !{!md48, !md22, !md15, !md16, !md17, !md23}
!md100 = !{!md88, !md89, !md99}
!md101 = !{!md63, !md87, !md100}
!md102 = !{!md50, !md9, !md10, !md50, !md50, !md11, !md12, !md50, !md13, !md55, !md14, !md55, !md15, !md24, !md17, !md25}
!md103 = !{!md88, !md102, !md93}
!md104 = !{!md64, !md87, !md103}
!md105 = !{!md50, !md26, !md10, !md50, !md50, !md27, !md15, !md28, !md17, !md29}
!md106 = !{!md88, !md105, !md93}
!md107 = !{!md65, !md87, !md106}
!md108 = !{!md66, !md87, !md106}
!md109 = !{!md50, !md9, !md10, !md48, !md50, !md27, !md12, !md50, !md13, !md51, !md14, !md51, !md15, !md16, !md17, !md30}
!md110 = !{!md88, !md109, !md93}
!md111 = !{!md67, !md87, !md110}
!md112 = !{!md68, !md87, !md90}
!md113 = !{!md69, !md87, !md90}
!md114 = !{!md70, !md87, !md90}
!md115 = !{!md71, !md87, !md90}
!md116 = !{!md31}
!md117 = !{!md32}
!md118 = !{!md33}
!md119 = !{!md34, !md72, !md35}
!md120 = !{!md34, !md73, !md36}
!md121 = !{!md34, !md74, !md37}
!md122 = !{!md34, !md75, !md38}
!md123 = !{!md34, !md76, !md39}
!md124 = !{!md40}
!md125 = !{!md48, !md55, !md58}
!md126 = !{!md41, !md51, !md58, !md58}
!md127 = !{!md44}
!md128 = !{!md43, !md127, !md77}
!md129 = !{!md42, !md128, !md77}
!md130 = !{!md129, !md129, !md77}
!md131 = !{!md47, !md128, !md77}
!md132 = !{!md131, !md131, !md77}
!"llvm.module.flags" = !{!md78, !md79, !md80, !md81, !md82, !md83, !md84, !md85, !md86}
!"air.kernel" = !{!md91, !md95, !md96, !md97, !md98, !md101, !md104, !md107, !md108, !md111, !md112, !md113, !md114, !md115}
!"air.compile_options" = !{!md116, !md117, !md118}
!"air.visible_function_references" = !{!md119, !md120, !md121, !md122, !md123}
!"llvm.ident" = !{!md124}
!"air.version" = !{!md125}
!"air.language_version" = !{!md126}
