; LLVM IR from libxsmm/libxsmm :: src (generator_gemm_common_aarch64)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.libxsmm_gp_reg_mapping_struct = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.libxsmm_gemm_descriptor = type <{ i32, i32, i32, i32, i32, i32, i32, i8, [3 x i8], i8, i64, i64, i8, i32, i32, i32, i16, i16, i8, i8, i8, i8, i16, i16, i16, i16, i16, i16, i32, i32, i32, i8 }>
%struct.libxsmm_micro_kernel_config = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [4 x i32], [4 x i32], [4 x i32], [4 x i32], [4 x i32], [4 x i32], i32, [2 x %struct.libxsmm_blocking_info_t], %struct.libxsmm_tile_config, i32, i32, i32, i32, i32, i32, i32, i32, ptr, i32, i32, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.libxsmm_blocking_info_t = type { i32, [4 x i32], i32, i32 }
%struct.libxsmm_tile_config = type { i8, i16, i8, i16, i8, i16, i8, i16, i8, i16, i8, i16, i8, i16, i8, i16, i8 }

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

declare void @libxsmm_aarch64_instruction_alu_set_imm64(ptr noundef, i32 noundef, i64 noundef) #1

declare void @libxsmm_aarch64_instruction_alu_compute_imm12(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i8 noundef zeroext) #1

declare void @libxsmm_aarch64_instruction_alu_compute_shifted_reg(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

declare i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef) #1

declare i32 @libxsmm_cpuid_arm_mmla_gemm_pack_b_to_vnnit_on_stack() #1

declare i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @libxsmm_generator_gemm_setval_stack_var_aarch64(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @libxsmm_generator_gemm_setup_stack_frame_fill_ext_gemm_stack_vars_aarch64(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @libxsmm_generator_gemm_setup_stack_frame_allocate_scratch_aarch64(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_gemm_setup_stack_frame_aarch64(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  %12 = load ptr, ptr %7, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %12, i32 0, i32 23
  %14 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %14, ptr %9, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  %15 = load ptr, ptr %7, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %15, i32 0, i32 22
  %17 = load i32, ptr %16, align 4, !tbaa !13
  store i32 %17, ptr %10, align 4, !tbaa !12
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  call void @libxsmm_aarch64_instruction_alu_compute_imm12(ptr noundef %18, i32 noundef 285212678, i32 noundef 63, i32 noundef 61, i32 noundef 0, i8 noundef zeroext 0)
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  call void @libxsmm_aarch64_instruction_alu_compute_imm12(ptr noundef %19, i32 noundef 1358954502, i32 noundef 63, i32 noundef 63, i32 noundef 192, i8 noundef zeroext 0)
  %20 = load ptr, ptr %6, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %20, i32 0, i32 6
  %22 = load i32, ptr %21, align 1, !tbaa !14
  %23 = and i32 32768, %22
  %24 = icmp eq i32 %23, 32768
  br i1 %24, label %60, label %25

25:                                               ; preds = %4
  %26 = call i32 @libxsmm_cpuid_arm_mmla_gemm_pack_b_to_vnnit_on_stack()
  %27 = icmp ugt i32 %26, 0
  br i1 %27, label %28, label %34

28:                                               ; preds = %25
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %29, i32 0, i32 6
  %31 = load i32, ptr %30, align 1, !tbaa !14
  %32 = and i32 %31, 2048
  %33 = icmp ugt i32 %32, 0
  br i1 %33, label %60, label %34

34:                                               ; preds = %28, %25
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %35, i32 0, i32 6
  %37 = load i32, ptr %36, align 1, !tbaa !14
  %38 = and i32 1, %37
  %39 = icmp ugt i32 %38, 0
  br i1 %39, label %60, label %40

40:                                               ; preds = %34
  %41 = load ptr, ptr %8, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %41, i32 0, i32 123
  %43 = load i32, ptr %42, align 4, !tbaa !18
  %44 = icmp ugt i32 %43, 0
  br i1 %44, label %60, label %45

45:                                               ; preds = %40
  %46 = load ptr, ptr %8, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %46, i32 0, i32 125
  %48 = load i32, ptr %47, align 4, !tbaa !21
  %49 = icmp ugt i32 %48, 0
  br i1 %49, label %60, label %50

50:                                               ; preds = %45
  %51 = load ptr, ptr %8, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %51, i32 0, i32 126
  %53 = load i32, ptr %52, align 8, !tbaa !22
  %54 = icmp ugt i32 %53, 0
  br i1 %54, label %60, label %55

55:                                               ; preds = %50
  %56 = load ptr, ptr %8, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %56, i32 0, i32 127
  %58 = load i32, ptr %57, align 4, !tbaa !23
  %59 = icmp ugt i32 %58, 0
  br i1 %59, label %60, label %65

60:                                               ; preds = %55, %50, %45, %40, %34, %28, %4
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  %62 = load ptr, ptr %6, align 8, !tbaa !5
  %63 = load ptr, ptr %8, align 8, !tbaa !5
  %64 = load ptr, ptr %7, align 8, !tbaa !5
  call void @libxsmm_generator_gemm_setup_stack_frame_fill_ext_gemm_stack_vars_aarch64(ptr noundef %61, ptr noundef %62, ptr noundef %63, ptr noundef %64)
  br label %90

65:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %66, i32 0, i32 8
  %68 = getelementptr inbounds [3 x i8], ptr %67, i64 0, i64 0
  %69 = call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef %68)
  %70 = icmp eq i32 12, %69
  br i1 %70, label %71, label %77

71:                                               ; preds = %65
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %72, i32 0, i32 8
  %74 = getelementptr inbounds [3 x i8], ptr %73, i64 0, i64 0
  %75 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef %74)
  %76 = icmp eq i32 1, %75
  br label %77

77:                                               ; preds = %71, %65
  %78 = phi i1 [ false, %65 ], [ %76, %71 ]
  %79 = zext i1 %78 to i64
  %80 = select i1 %78, i32 1, i32 0
  store i32 %80, ptr %11, align 4, !tbaa !12
  %81 = load i32, ptr %11, align 4, !tbaa !12
  %82 = icmp eq i32 %81, 1
  br i1 %82, label %83, label %89

83:                                               ; preds = %77
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  %85 = load i32, ptr %9, align 4, !tbaa !12
  %86 = load ptr, ptr %7, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %86, i32 0, i32 20
  %88 = load i32, ptr %87, align 4, !tbaa !24
  call void @libxsmm_generator_gemm_setval_stack_var_aarch64(ptr noundef %84, i32 noundef 5, i32 noundef %85, i32 noundef %88)
  br label %89

89:                                               ; preds = %83, %77
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  br label %90

90:                                               ; preds = %89, %60
  %91 = load ptr, ptr %5, align 8, !tbaa !5
  %92 = load i32, ptr %9, align 4, !tbaa !12
  call void @libxsmm_aarch64_instruction_alu_set_imm64(ptr noundef %91, i32 noundef %92, i64 noundef -64)
  %93 = load ptr, ptr %5, align 8, !tbaa !5
  %94 = load i32, ptr %10, align 4, !tbaa !12
  call void @libxsmm_aarch64_instruction_alu_compute_imm12(ptr noundef %93, i32 noundef 285212678, i32 noundef 63, i32 noundef %94, i32 noundef 0, i8 noundef zeroext 0)
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = load i32, ptr %10, align 4, !tbaa !12
  %97 = load i32, ptr %9, align 4, !tbaa !12
  %98 = load i32, ptr %10, align 4, !tbaa !12
  call void @libxsmm_aarch64_instruction_alu_compute_shifted_reg(ptr noundef %95, i32 noundef 167772167, i32 noundef %96, i32 noundef %97, i32 noundef %98, i32 noundef 0, i32 noundef 0)
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  %100 = load i32, ptr %10, align 4, !tbaa !12
  call void @libxsmm_aarch64_instruction_alu_compute_imm12(ptr noundef %99, i32 noundef 285212678, i32 noundef %100, i32 noundef 63, i32 noundef 0, i8 noundef zeroext 0)
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = load ptr, ptr %6, align 8, !tbaa !5
  %103 = load ptr, ptr %7, align 8, !tbaa !5
  %104 = load ptr, ptr %8, align 8, !tbaa !5
  call void @libxsmm_generator_gemm_setup_stack_frame_allocate_scratch_aarch64(ptr noundef %101, ptr noundef %102, ptr noundef %103, ptr noundef %104)
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 92}
!10 = !{!"libxsmm_gp_reg_mapping_struct", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !11, i64 72, !11, i64 76, !11, i64 80, !11, i64 84, !11, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !11, i64 104, !11, i64 108, !11, i64 112, !11, i64 116, !11, i64 120, !11, i64 124, !11, i64 128}
!11 = !{!"int", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!10, !11, i64 88}
!14 = !{!15, !11, i64 24}
!15 = !{!"libxsmm_gemm_descriptor", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !7, i64 28, !7, i64 29, !7, i64 32, !16, i64 33, !16, i64 41, !7, i64 49, !11, i64 50, !11, i64 54, !11, i64 58, !17, i64 62, !17, i64 64, !7, i64 66, !7, i64 67, !7, i64 68, !7, i64 69, !17, i64 70, !17, i64 72, !17, i64 74, !17, i64 76, !17, i64 78, !17, i64 80, !11, i64 82, !11, i64 86, !11, i64 90, !7, i64 94}
!16 = !{!"long long", !7, i64 0}
!17 = !{!"short", !7, i64 0}
!18 = !{!19, !11, i64 660}
!19 = !{!"libxsmm_micro_kernel_config", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !11, i64 72, !11, i64 76, !11, i64 80, !7, i64 84, !11, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !11, i64 104, !11, i64 108, !11, i64 112, !11, i64 116, !11, i64 120, !11, i64 124, !11, i64 128, !11, i64 132, !11, i64 136, !11, i64 140, !11, i64 144, !11, i64 148, !11, i64 152, !11, i64 156, !11, i64 160, !11, i64 164, !11, i64 168, !11, i64 172, !11, i64 176, !11, i64 180, !11, i64 184, !11, i64 188, !11, i64 192, !11, i64 196, !11, i64 200, !11, i64 204, !11, i64 208, !11, i64 212, !11, i64 216, !11, i64 220, !11, i64 224, !11, i64 228, !11, i64 232, !11, i64 236, !11, i64 240, !11, i64 244, !11, i64 248, !11, i64 252, !11, i64 256, !11, i64 260, !11, i64 264, !11, i64 268, !11, i64 272, !11, i64 276, !11, i64 280, !11, i64 284, !11, i64 288, !11, i64 292, !11, i64 296, !11, i64 300, !11, i64 304, !11, i64 308, !11, i64 312, !11, i64 316, !11, i64 320, !11, i64 324, !11, i64 328, !11, i64 332, !11, i64 336, !11, i64 340, !11, i64 344, !11, i64 348, !11, i64 352, !11, i64 356, !11, i64 360, !7, i64 364, !7, i64 380, !7, i64 396, !7, i64 412, !7, i64 428, !7, i64 444, !11, i64 460, !7, i64 464, !20, i64 520, !11, i64 556, !11, i64 560, !11, i64 564, !11, i64 568, !11, i64 572, !11, i64 576, !11, i64 580, !11, i64 584, !6, i64 592, !11, i64 600, !11, i64 604, !11, i64 608, !11, i64 612, !6, i64 616, !11, i64 624, !11, i64 628, !11, i64 632, !11, i64 636, !11, i64 640, !11, i64 644, !11, i64 648, !11, i64 652, !11, i64 656, !11, i64 660, !11, i64 664, !11, i64 668, !11, i64 672, !11, i64 676, !11, i64 680}
!20 = !{!"libxsmm_tile_config", !7, i64 0, !17, i64 2, !7, i64 4, !17, i64 6, !7, i64 8, !17, i64 10, !7, i64 12, !17, i64 14, !7, i64 16, !17, i64 18, !7, i64 20, !17, i64 22, !7, i64 24, !17, i64 26, !7, i64 28, !17, i64 30, !7, i64 32}
!21 = !{!19, !11, i64 668}
!22 = !{!19, !11, i64 672}
!23 = !{!19, !11, i64 676}
!24 = !{!10, !11, i64 80}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

declare void @libxsmm_aarch64_instruction_alu_set_imm64(ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #0

declare void @libxsmm_aarch64_instruction_alu_compute_imm12(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i8 noundef zeroext) local_unnamed_addr #0

declare void @libxsmm_aarch64_instruction_alu_compute_shifted_reg(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

declare i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef) local_unnamed_addr #0

declare i32 @libxsmm_cpuid_arm_mmla_gemm_pack_b_to_vnnit_on_stack() local_unnamed_addr #0

declare i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @libxsmm_generator_gemm_setval_stack_var_aarch64(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @libxsmm_generator_gemm_setup_stack_frame_fill_ext_gemm_stack_vars_aarch64(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @libxsmm_generator_gemm_setup_stack_frame_allocate_scratch_aarch64(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_gemm_setup_stack_frame_aarch64(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #1 {
  %5 = getelementptr inbounds i8, ptr %2, i64 92
  %6 = load i32, ptr %5, align 4, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %2, i64 88
  %8 = load i32, ptr %7, align 4, !tbaa !10
  tail call void @libxsmm_aarch64_instruction_alu_compute_imm12(ptr noundef %0, i32 noundef 285212678, i32 noundef 63, i32 noundef 61, i32 noundef 0, i8 noundef zeroext 0) #2
  tail call void @libxsmm_aarch64_instruction_alu_compute_imm12(ptr noundef %0, i32 noundef 1358954502, i32 noundef 63, i32 noundef 63, i32 noundef 192, i8 noundef zeroext 0) #2
  %9 = getelementptr inbounds i8, ptr %1, i64 24
  %10 = load i32, ptr %9, align 1, !tbaa !11
  %11 = and i32 %10, 32768
  %.not = icmp eq i32 %11, 0
  br i1 %.not, label %12, label %28

12:                                               ; preds = %4
  %13 = tail call i32 @libxsmm_cpuid_arm_mmla_gemm_pack_b_to_vnnit_on_stack() #2
  %.not34 = icmp eq i32 %13, 0
  %.pre = load i32, ptr %9, align 1, !tbaa !11
  %14 = and i32 %.pre, 2048
  %.not35 = icmp eq i32 %14, 0
  %or.cond = select i1 %.not34, i1 true, i1 %.not35
  %15 = and i32 %.pre, 1
  %.not36 = icmp eq i32 %15, 0
  %or.cond41 = select i1 %or.cond, i1 %.not36, i1 false
  br i1 %or.cond41, label %16, label %28

16:                                               ; preds = %12
  %17 = getelementptr inbounds i8, ptr %3, i64 660
  %18 = load i32, ptr %17, align 4, !tbaa !15
  %.not37 = icmp eq i32 %18, 0
  br i1 %.not37, label %19, label %28

19:                                               ; preds = %16
  %20 = getelementptr inbounds i8, ptr %3, i64 668
  %21 = load i32, ptr %20, align 4, !tbaa !19
  %.not38 = icmp eq i32 %21, 0
  br i1 %.not38, label %22, label %28

22:                                               ; preds = %19
  %23 = getelementptr inbounds i8, ptr %3, i64 672
  %24 = load i32, ptr %23, align 8, !tbaa !20
  %.not39 = icmp eq i32 %24, 0
  br i1 %.not39, label %25, label %28

25:                                               ; preds = %22
  %26 = getelementptr inbounds i8, ptr %3, i64 676
  %27 = load i32, ptr %26, align 4, !tbaa !21
  %.not40 = icmp eq i32 %27, 0
  br i1 %.not40, label %29, label %28

28:                                               ; preds = %12, %25, %22, %19, %16, %4
  tail call void @libxsmm_generator_gemm_setup_stack_frame_fill_ext_gemm_stack_vars_aarch64(ptr noundef %0, ptr noundef nonnull %1, ptr noundef %3, ptr noundef nonnull %2)
  br label %.critedge

29:                                               ; preds = %25
  %30 = getelementptr inbounds i8, ptr %1, i64 29
  %31 = tail call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef nonnull %30) #2
  %32 = icmp eq i32 %31, 12
  br i1 %32, label %33, label %.critedge

33:                                               ; preds = %29
  %34 = tail call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef nonnull %30) #2
  %35 = icmp eq i32 %34, 1
  br i1 %35, label %36, label %.critedge

36:                                               ; preds = %33
  %37 = getelementptr inbounds i8, ptr %2, i64 80
  %38 = load i32, ptr %37, align 4, !tbaa !22
  tail call void @libxsmm_generator_gemm_setval_stack_var_aarch64(ptr noundef %0, i32 noundef 5, i32 noundef %6, i32 noundef %38)
  br label %.critedge

.critedge:                                        ; preds = %33, %36, %29, %28
  tail call void @libxsmm_aarch64_instruction_alu_set_imm64(ptr noundef %0, i32 noundef %6, i64 noundef -64) #2
  tail call void @libxsmm_aarch64_instruction_alu_compute_imm12(ptr noundef %0, i32 noundef 285212678, i32 noundef 63, i32 noundef %8, i32 noundef 0, i8 noundef zeroext 0) #2
  tail call void @libxsmm_aarch64_instruction_alu_compute_shifted_reg(ptr noundef %0, i32 noundef 167772167, i32 noundef %8, i32 noundef %6, i32 noundef %8, i32 noundef 0, i32 noundef 0) #2
  tail call void @libxsmm_aarch64_instruction_alu_compute_imm12(ptr noundef %0, i32 noundef 285212678, i32 noundef %8, i32 noundef 63, i32 noundef 0, i8 noundef zeroext 0) #2
  tail call void @libxsmm_generator_gemm_setup_stack_frame_allocate_scratch_aarch64(ptr noundef %0, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef %3)
  ret void
}

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 92}
!6 = !{!"libxsmm_gp_reg_mapping_struct", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !7, i64 56, !7, i64 60, !7, i64 64, !7, i64 68, !7, i64 72, !7, i64 76, !7, i64 80, !7, i64 84, !7, i64 88, !7, i64 92, !7, i64 96, !7, i64 100, !7, i64 104, !7, i64 108, !7, i64 112, !7, i64 116, !7, i64 120, !7, i64 124, !7, i64 128}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 88}
!11 = !{!12, !7, i64 24}
!12 = !{!"libxsmm_gemm_descriptor", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !8, i64 28, !8, i64 29, !8, i64 32, !13, i64 33, !13, i64 41, !8, i64 49, !7, i64 50, !7, i64 54, !7, i64 58, !14, i64 62, !14, i64 64, !8, i64 66, !8, i64 67, !8, i64 68, !8, i64 69, !14, i64 70, !14, i64 72, !14, i64 74, !14, i64 76, !14, i64 78, !14, i64 80, !7, i64 82, !7, i64 86, !7, i64 90, !8, i64 94}
!13 = !{!"long long", !8, i64 0}
!14 = !{!"short", !8, i64 0}
!15 = !{!16, !7, i64 660}
!16 = !{!"libxsmm_micro_kernel_config", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !7, i64 56, !7, i64 60, !7, i64 64, !7, i64 68, !7, i64 72, !7, i64 76, !7, i64 80, !8, i64 84, !7, i64 88, !7, i64 92, !7, i64 96, !7, i64 100, !7, i64 104, !7, i64 108, !7, i64 112, !7, i64 116, !7, i64 120, !7, i64 124, !7, i64 128, !7, i64 132, !7, i64 136, !7, i64 140, !7, i64 144, !7, i64 148, !7, i64 152, !7, i64 156, !7, i64 160, !7, i64 164, !7, i64 168, !7, i64 172, !7, i64 176, !7, i64 180, !7, i64 184, !7, i64 188, !7, i64 192, !7, i64 196, !7, i64 200, !7, i64 204, !7, i64 208, !7, i64 212, !7, i64 216, !7, i64 220, !7, i64 224, !7, i64 228, !7, i64 232, !7, i64 236, !7, i64 240, !7, i64 244, !7, i64 248, !7, i64 252, !7, i64 256, !7, i64 260, !7, i64 264, !7, i64 268, !7, i64 272, !7, i64 276, !7, i64 280, !7, i64 284, !7, i64 288, !7, i64 292, !7, i64 296, !7, i64 300, !7, i64 304, !7, i64 308, !7, i64 312, !7, i64 316, !7, i64 320, !7, i64 324, !7, i64 328, !7, i64 332, !7, i64 336, !7, i64 340, !7, i64 344, !7, i64 348, !7, i64 352, !7, i64 356, !7, i64 360, !8, i64 364, !8, i64 380, !8, i64 396, !8, i64 412, !8, i64 428, !8, i64 444, !7, i64 460, !8, i64 464, !17, i64 520, !7, i64 556, !7, i64 560, !7, i64 564, !7, i64 568, !7, i64 572, !7, i64 576, !7, i64 580, !7, i64 584, !18, i64 592, !7, i64 600, !7, i64 604, !7, i64 608, !7, i64 612, !18, i64 616, !7, i64 624, !7, i64 628, !7, i64 632, !7, i64 636, !7, i64 640, !7, i64 644, !7, i64 648, !7, i64 652, !7, i64 656, !7, i64 660, !7, i64 664, !7, i64 668, !7, i64 672, !7, i64 676, !7, i64 680}
!17 = !{!"libxsmm_tile_config", !8, i64 0, !14, i64 2, !8, i64 4, !14, i64 6, !8, i64 8, !14, i64 10, !8, i64 12, !14, i64 14, !8, i64 16, !14, i64 18, !8, i64 20, !14, i64 22, !8, i64 24, !14, i64 26, !8, i64 28, !14, i64 30, !8, i64 32}
!18 = !{!"any pointer", !8, i64 0}
!19 = !{!16, !7, i64 668}
!20 = !{!16, !7, i64 672}
!21 = !{!16, !7, i64 676}
!22 = !{!6, !7, i64 80}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass