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), ptr addrspace(1), ptr addrspace(1), i32, i32, i32)
%t7 = type <64 x float> (<64 x float>, <64 x float>, <64 x float>)
%t10 = type <64 x half> (<64 x half>, <64 x half>, <64 x half>)
%t13 = type <64 x float> (ptr addrspace(1), <2 x i64>, <2 x i64>, <2 x i64>)
%t14 = type <64 x half> (ptr addrspace(1), <2 x i64>, <2 x i64>, <2 x i64>)
%t16 = type [2 x i32]
c8 = %t16 [27, 0]
c22 = <2 x i64> [8, 8]
c23 = <2 x i64> [1, 8]

define %t4 @f0 "dsm_whole_by_buffer" convergent "approx-func-fp-math"="true" "frame-pointer"="all" "min-legal-vector-width"="2048" "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 "air-buffer-no-alias"="" ) %a1( Ref nocapture "air-buffer-no-alias"="" ) %a2( Mod nocapture "air-buffer-no-alias"="" ) %a3( Ref nocapture "air-buffer-no-alias"="" ) {
bb0:
  %i0 = tail call reassoc nnan ninf nsz arcp contract afn <64 x float> @f3 [air SimdMatrix(Load8x8 { elem: F32, space: Device })](%a0, <2 x i64> c22, <2 x i64> c23, <2 x i64> zeroinitializer) convergent arg0( Ref nocapture )
  %i1 = getelementptr inbounds float, %a0, i64 64
  %i2 = tail call reassoc nnan ninf nsz arcp contract afn <64 x float> @f3 [air SimdMatrix(Load8x8 { elem: F32, space: Device })](%i1, <2 x i64> c22, <2 x i64> c23, <2 x i64> zeroinitializer) convergent arg0( Ref nocapture )
  %i3 = getelementptr inbounds float, %a0, i64 128
  %i4 = tail call reassoc nnan ninf nsz arcp contract afn <64 x float> @f3 [air SimdMatrix(Load8x8 { elem: F32, space: Device })](%i3, <2 x i64> c22, <2 x i64> c23, <2 x i64> zeroinitializer) convergent arg0( Ref nocapture )
  %i5 = tail call reassoc nnan ninf nsz arcp contract afn <64 x half> @f4 [air SimdMatrix(Load8x8 { elem: F16, space: Device })](%a1, <2 x i64> c22, <2 x i64> c23, <2 x i64> zeroinitializer) convergent arg0( Ref nocapture )
  %i6 = getelementptr inbounds half, %a1, i64 64
  %i7 = tail call reassoc nnan ninf nsz arcp contract afn <64 x half> @f4 [air SimdMatrix(Load8x8 { elem: F16, space: Device })](%i6, <2 x i64> c22, <2 x i64> c23, <2 x i64> zeroinitializer) convergent arg0( Ref nocapture )
  %i8 = getelementptr inbounds half, %a1, i64 128
  %i9 = tail call reassoc nnan ninf nsz arcp contract afn <64 x half> @f4 [air SimdMatrix(Load8x8 { elem: F16, space: Device })](%i8, <2 x i64> c22, <2 x i64> c23, <2 x i64> zeroinitializer) convergent arg0( Ref nocapture )
  %i10 = zext %a6 to i64
  %i11 = getelementptr inbounds i32, %a3, %i10
  %i12 = load i32, %i11, align 4
  %i13 = icmp eq %i12, i32 0
  br %i13, bb2, bb1
bb1:
  %i15 = tail call reassoc nnan ninf nsz arcp contract afn <64 x float> @f1 [air SimdMatrix(MultiplyAccumulate8x8 { result: F32, lhs: F32, rhs: F32, acc: F32 })](%i0, %i2, %i4) convergent
  %i16 = tail call reassoc nnan ninf nsz arcp contract afn <64 x half> @f2 [air SimdMatrix(MultiplyAccumulate8x8 { result: F16, lhs: F16, rhs: F16, acc: F16 })](%i5, %i7, %i9) convergent
  %i17 = extractelement %i15, i64 0
  %i18 = shl i32 %a4, i32 1
  %i19 = zext %i18 to i64
  %i20 = getelementptr inbounds float, %a2, %i19
  store %i17, %i20, align 4
  %i22 = extractelement %i15, i64 1
  %i23 = or i32 %i18, i32 1
  %i24 = zext %i23 to i64
  %i25 = getelementptr inbounds float, %a2, %i24
  store %i22, %i25, align 4
  %i27 = extractelement %i16, i64 0
  %i28 = fpext %i27 to float
  %i29 = add i32 %a5, %a4
  %i30 = shl i32 %i29, i32 1
  %i31 = zext %i30 to i64
  %i32 = getelementptr inbounds float, %a2, %i31
  store %i28, %i32, align 4
  %i34 = extractelement %i16, i64 1
  %i35 = fpext %i34 to float
  %i36 = or i32 %i30, i32 1
  %i37 = zext %i36 to i64
  %i38 = getelementptr inbounds float, %a2, %i37
  store %i35, %i38, align 4
  br bb2
bb2:
  ret void
}

declare %t7 @f1 "air.simdgroup_matrix_8x8_multiply_accumulate.v64f32.v64f32.v64f32.v64f32" convergent

declare %t10 @f2 "air.simdgroup_matrix_8x8_multiply_accumulate.v64f16.v64f16.v64f16.v64f16" convergent

declare %t13 @f3 "air.simdgroup_matrix_8x8_load.v64f32.p1f32" convergent memory(Ref, Ref, Ref) %a0( Ref nocapture )

declare %t14 @f4 "air.simdgroup_matrix_8x8_load.v64f16.p1f16" convergent memory(Ref, Ref, Ref) %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"
!md12 = !"air.address_space"
!md13 = !"air.arg_type_size"
!md14 = !"air.arg_type_align_size"
!md15 = !"air.arg_type_name"
!md16 = !"float"
!md17 = !"air.arg_name"
!md18 = !"in"
!md19 = !"half"
!md20 = !"hin"
!md21 = !"air.read_write"
!md22 = !"out"
!md23 = !"uint"
!md24 = !"sel"
!md25 = !"air.thread_position_in_grid"
!md26 = !"g"
!md27 = !"air.threads_per_grid"
!md28 = !"n"
!md29 = !"air.simdgroup_index_in_threadgroup"
!md30 = !"sg"
!md31 = !"air.compile.denorms_disable"
!md32 = !"air.compile.fast_math_enable"
!md33 = !"air.compile.framebuffer_fetch_enable"
!md34 = !"Apple metal version 32023.921 (metalfe-32023.921.6)"
!md35 = !"Metal"
!md36 = i32 2
!md37 = %t16 c8
!md38 = i32 1
!md39 = i32 4
!md40 = i32 7
!md41 = i32 31
!md42 = i32 128
!md43 = i32 8
!md44 = i32 16
!md45 = ptr addrspace(0) @f0
!md46 = i32 0
!md47 = i32 3
!md48 = i32 5
!md49 = i32 6
!md50 = !{!md36, !md0, !md37}
!md51 = !{!md38, !md1, !md39}
!md52 = !{!md40, !md2, !md36}
!md53 = !{!md40, !md3, !md41}
!md54 = !{!md40, !md4, !md41}
!md55 = !{!md40, !md5, !md41}
!md56 = !{!md40, !md6, !md42}
!md57 = !{!md40, !md7, !md43}
!md58 = !{!md40, !md8, !md44}
!md59 = !{}
!md60 = !{!md46, !md9, !md10, !md46, !md38, !md11, !md12, !md38, !md13, !md39, !md14, !md39, !md15, !md16, !md17, !md18}
!md61 = !{!md38, !md9, !md10, !md38, !md38, !md11, !md12, !md38, !md13, !md36, !md14, !md36, !md15, !md19, !md17, !md20}
!md62 = !{!md36, !md9, !md10, !md36, !md38, !md21, !md12, !md38, !md13, !md39, !md14, !md39, !md15, !md16, !md17, !md22}
!md63 = !{!md47, !md9, !md10, !md47, !md38, !md11, !md12, !md38, !md13, !md39, !md14, !md39, !md15, !md23, !md17, !md24}
!md64 = !{!md39, !md25, !md15, !md23, !md17, !md26}
!md65 = !{!md48, !md27, !md15, !md23, !md17, !md28}
!md66 = !{!md49, !md29, !md15, !md23, !md17, !md30}
!md67 = !{!md60, !md61, !md62, !md63, !md64, !md65, !md66}
!md68 = !{!md45, !md59, !md67}
!md69 = !{!md31}
!md70 = !{!md32}
!md71 = !{!md33}
!md72 = !{!md34}
!md73 = !{!md36, !md43, !md46}
!md74 = !{!md35, !md39, !md46, !md46}
!"llvm.module.flags" = !{!md50, !md51, !md52, !md53, !md54, !md55, !md56, !md57, !md58}
!"air.kernel" = !{!md68}
!"air.compile_options" = !{!md69, !md70, !md71}
!"llvm.ident" = !{!md72}
!"air.version" = !{!md73}
!"air.language_version" = !{!md74}
