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), ptr addrspace(1), i32)
%t5 = type void (ptr addrspace(1), i32)
%t6 = type i32 (ptr addrspace(0), i32, i32)
%t7 = type i32 (i32, i32)
%t9 = type i1 (ptr addrspace(1))
%t10 = type i32 (ptr addrspace(1))
%t11 = type ptr addrspace(0) (ptr addrspace(1), i32)
%t13 = type [2 x i32]
c11 = %t13 [26, 5]

define %t4 @f0 "visible_table_dispatch" 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 @f5 [air FunctionTable(IsNull)](%a1) arg0( Ref nocapture )
  br %i0, bb4, bb1
bb1:
  %i2 = tail call i32 @f6 [air FunctionTable(Size)](%a1) arg0( Ref nocapture )
  %i3 = icmp eq %i2, i32 0
  br %i3, bb4, bb2
bb2:
  %i5 = urem i32 %a2, %i2
  %i6 = tail call ptr addrspace(0) @f7 [air FunctionTable(GetFunctionPointer)](%a1, %i5) arg0( Ref nocapture )
  %i7 = icmp eq %i6, ptr addrspace(0) zeroinitializer
  br %i7, bb4, bb3
bb3:
  %i9 = bitcast %i6 to ptr addrspace(0)
  %i10 = tail call i32 %t7 %i9(%a2, i32 3) convergent "no-builtins"=""
  br bb4
bb4:
  %i12 = phi i32 [i32 4294967295, bb0], [i32 4294967294, bb1], [%i10, bb3], [i32 4294967293, bb2]
  %i13 = zext %a2 to i64
  %i14 = getelementptr inbounds i32, %a0, %i13
  store %i12, %i14, align 4
  ret void
}

define %t5 @f1 "visible_pointer_dispatch" 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 @f2(ptr addrspace(0) @f3, %a1, i32 5) convergent "no-builtins"=""
  %i1 = tail call i32 @f2(ptr addrspace(0) @f4, %a1, i32 2) convergent "no-builtins"=""
  %i2 = add i32 %i1, %i0
  %i3 = zext %a1 to i64
  %i4 = getelementptr inbounds i32, %a0, %i3
  store %i2, %i4, align 4
  ret void
}

define internal %t6 @f2 "_ZL5applyPFjjjEjj" fastcc 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( Ref nocapture ) {
bb0:
  %i0 = tail call i32 %t7 %a0(%a1, %a2) convergent "no-builtins"=""
  ret %i0
}

declare %t7 @f3 "table_add.MTL_VISIBLE_FN_REF", section "air.externally_defined"

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

declare %t9 @f5 "air.is_null_visible_function_table" memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture )

declare %t10 @f6 "air.get_size_visible_function_table" memory(Ref, NoModRef, NoModRef) %a0( Ref nocapture )

declare %t11 @f7 "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.visible_function_table"
!md20 = !"air.read"
!md21 = !"visible_function_table"
!md22 = !"ops"
!md23 = !"air.thread_position_in_grid"
!md24 = !"tid"
!md25 = !"air.compile.denorms_disable"
!md26 = !"air.compile.fast_math_enable"
!md27 = !"air.compile.framebuffer_fetch_enable"
!md28 = !"air.visible_function_reference"
!md29 = !"table_add"
!md30 = !"table_mul"
!md31 = !"Apple metal version 32023.883 (metalfe-32023.883)"
!md32 = !"Metal"
!md33 = !"air-alias-scope-arg(0)"
!md34 = !"int"
!md35 = !"omnipotent char"
!md36 = !"Simple C++ TBAA"
!md37 = i32 2
!md38 = %t13 c11
!md39 = i32 1
!md40 = i32 4
!md41 = i32 7
!md42 = i32 31
!md43 = i32 128
!md44 = i32 8
!md45 = i32 16
!md46 = ptr addrspace(0) @f0
!md47 = i32 0
!md48 = ptr addrspace(0) @f1
!md49 = ptr addrspace(0) @f3
!md50 = ptr addrspace(0) @f4
!md51 = i64 0
!md52 = !{!md37, !md0, !md38}
!md53 = !{!md39, !md1, !md40}
!md54 = !{!md41, !md2, !md37}
!md55 = !{!md41, !md3, !md42}
!md56 = !{!md41, !md4, !md42}
!md57 = !{!md41, !md5, !md42}
!md58 = !{!md41, !md6, !md43}
!md59 = !{!md41, !md7, !md44}
!md60 = !{!md41, !md8, !md45}
!md61 = !{}
!md62 = !{!md47, !md9, !md10, !md47, !md39, !md11, !md12, !md39, !md13, !md40, !md14, !md40, !md15, !md16, !md17, !md18}
!md63 = !{!md39, !md19, !md10, !md39, !md39, !md20, !md15, !md21, !md17, !md22}
!md64 = !{!md37, !md23, !md15, !md16, !md17, !md24}
!md65 = !{!md62, !md63, !md64}
!md66 = !{!md46, !md61, !md65}
!md67 = !{!md39, !md23, !md15, !md16, !md17, !md24}
!md68 = !{!md62, !md67}
!md69 = !{!md48, !md61, !md68}
!md70 = !{!md25}
!md71 = !{!md26}
!md72 = !{!md27}
!md73 = !{!md28, !md49, !md29}
!md74 = !{!md28, !md50, !md30}
!md75 = !{!md31}
!md76 = !{!md37, !md44, !md47}
!md77 = !{!md32, !md40, !md47, !md47}
!md78 = !{!md36}
!md79 = !{!md35, !md78, !md51}
!md80 = !{!md34, !md79, !md51}
!md81 = !{!md80, !md80, !md51}
!"llvm.module.flags" = !{!md52, !md53, !md54, !md55, !md56, !md57, !md58, !md59, !md60}
!"air.kernel" = !{!md66, !md69}
!"air.compile_options" = !{!md70, !md71, !md72}
!"air.visible_function_references" = !{!md73, !md74}
!"llvm.ident" = !{!md75}
!"air.version" = !{!md76}
!"air.language_version" = !{!md77}
