; LLVM IR from libxsmm/libxsmm :: src (generator_packed_gemm_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_generated_code = type { ptr, i32, i32, i32, i32, i32, i32 }
%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_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 }
%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 }>

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_packed_gemm_aarch64_store_C(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7) #2 {
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store ptr %2, ptr %11, align 8, !tbaa !5
  store ptr %3, ptr %12, align 8, !tbaa !5
  store i32 %4, ptr %13, align 4, !tbaa !9
  store i32 %5, ptr %14, align 4, !tbaa !9
  store i32 %6, ptr %15, align 4, !tbaa !9
  store i32 %7, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  store i32 0, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  store i32 0, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #3
  %20 = load ptr, ptr %9, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %20, i32 0, i32 6
  %22 = load i32, ptr %21, align 4, !tbaa !11
  %23 = icmp uge i32 %22, 2201
  br i1 %23, label %24, label %29

24:                                               ; preds = %8
  %25 = load ptr, ptr %9, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %25, i32 0, i32 6
  %27 = load i32, ptr %26, align 4, !tbaa !11
  %28 = icmp ule i32 %27, 2999
  br label %29

29:                                               ; preds = %24, %8
  %30 = phi i1 [ false, %8 ], [ %28, %24 ]
  %31 = zext i1 %30 to i32
  store i32 %31, ptr %19, align 4, !tbaa !9
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %32

32:                                               ; preds = %105, %29
  %33 = load i32, ptr %17, align 4, !tbaa !9
  %34 = load i32, ptr %13, align 4, !tbaa !9
  %35 = icmp ult i32 %33, %34
  br i1 %35, label %36, label %108

36:                                               ; preds = %32
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %37

37:                                               ; preds = %77, %36
  %38 = load i32, ptr %18, align 4, !tbaa !9
  %39 = load i32, ptr %14, align 4, !tbaa !9
  %40 = icmp ult i32 %38, %39
  br i1 %40, label %41, label %80

41:                                               ; preds = %37
  %42 = load ptr, ptr %9, align 8, !tbaa !5
  %43 = load ptr, ptr %10, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %43, i32 0, i32 5
  %45 = load i32, ptr %44, align 4, !tbaa !13
  %46 = load ptr, ptr %10, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %46, i32 0, i32 24
  %48 = load i32, ptr %47, align 4, !tbaa !15
  %49 = load i32, ptr %17, align 4, !tbaa !9
  %50 = load i32, ptr %14, align 4, !tbaa !9
  %51 = mul i32 %49, %50
  %52 = load i32, ptr %18, align 4, !tbaa !9
  %53 = add i32 %51, %52
  %54 = load ptr, ptr %11, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %54, i32 0, i32 5
  %56 = load i32, ptr %55, align 4, !tbaa !16
  %57 = load i32, ptr %15, align 4, !tbaa !9
  %58 = load i32, ptr %19, align 4, !tbaa !9
  %59 = trunc i32 %58 to i8
  call void @libxsmm_generator_vloadstore_masked_vreg_aarch64(ptr noundef %42, i32 noundef %45, i32 noundef %48, i32 noundef %53, i32 noundef %56, i32 noundef %57, i32 noundef 0, i32 noundef 1, i8 noundef zeroext 1, i8 noundef zeroext %59)
  %60 = load ptr, ptr %9, align 8, !tbaa !5
  %61 = load ptr, ptr %10, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %61, i32 0, i32 5
  %63 = load i32, ptr %62, align 4, !tbaa !13
  %64 = load ptr, ptr %10, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %64, i32 0, i32 24
  %66 = load i32, ptr %65, align 4, !tbaa !15
  %67 = load ptr, ptr %10, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %67, i32 0, i32 5
  %69 = load i32, ptr %68, align 4, !tbaa !13
  %70 = load i32, ptr %16, align 4, !tbaa !9
  %71 = zext i32 %70 to i64
  %72 = load ptr, ptr %11, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %72, i32 0, i32 5
  %74 = load i32, ptr %73, align 4, !tbaa !16
  %75 = zext i32 %74 to i64
  %76 = mul nsw i64 %71, %75
  call void @libxsmm_aarch64_instruction_alu_compute_imm64(ptr noundef %60, i32 noundef 4096, i32 noundef %63, i32 noundef %66, i32 noundef %69, i64 noundef %76)
  br label %77

77:                                               ; preds = %41
  %78 = load i32, ptr %18, align 4, !tbaa !9
  %79 = add i32 %78, 1
  store i32 %79, ptr %18, align 4, !tbaa !9
  br label %37, !llvm.loop !20

80:                                               ; preds = %37
  %81 = load ptr, ptr %9, align 8, !tbaa !5
  %82 = load ptr, ptr %10, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %82, i32 0, i32 5
  %84 = load i32, ptr %83, align 4, !tbaa !13
  %85 = load ptr, ptr %10, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %85, i32 0, i32 24
  %87 = load i32, ptr %86, align 4, !tbaa !15
  %88 = load ptr, ptr %10, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %88, i32 0, i32 5
  %90 = load i32, ptr %89, align 4, !tbaa !13
  %91 = load ptr, ptr %12, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %91, i32 0, i32 5
  %93 = load i32, ptr %92, align 1, !tbaa !22
  %94 = load i32, ptr %14, align 4, !tbaa !9
  %95 = sub i32 %93, %94
  %96 = zext i32 %95 to i64
  %97 = load i32, ptr %16, align 4, !tbaa !9
  %98 = zext i32 %97 to i64
  %99 = mul nsw i64 %96, %98
  %100 = load ptr, ptr %11, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %100, i32 0, i32 5
  %102 = load i32, ptr %101, align 4, !tbaa !16
  %103 = zext i32 %102 to i64
  %104 = mul nsw i64 %99, %103
  call void @libxsmm_aarch64_instruction_alu_compute_imm64(ptr noundef %81, i32 noundef 4096, i32 noundef %84, i32 noundef %87, i32 noundef %90, i64 noundef %104)
  br label %105

105:                                              ; preds = %80
  %106 = load i32, ptr %17, align 4, !tbaa !9
  %107 = add i32 %106, 1
  store i32 %107, ptr %17, align 4, !tbaa !9
  br label %32, !llvm.loop !25

108:                                              ; preds = %32
  %109 = load ptr, ptr %9, align 8, !tbaa !5
  %110 = load ptr, ptr %10, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %110, i32 0, i32 5
  %112 = load i32, ptr %111, align 4, !tbaa !13
  %113 = load ptr, ptr %10, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %113, i32 0, i32 24
  %115 = load i32, ptr %114, align 4, !tbaa !15
  %116 = load ptr, ptr %10, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %116, i32 0, i32 5
  %118 = load i32, ptr %117, align 4, !tbaa !13
  %119 = load i32, ptr %13, align 4, !tbaa !9
  %120 = zext i32 %119 to i64
  %121 = load ptr, ptr %12, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %121, i32 0, i32 5
  %123 = load i32, ptr %122, align 1, !tbaa !22
  %124 = zext i32 %123 to i64
  %125 = mul nsw i64 %120, %124
  %126 = load i32, ptr %16, align 4, !tbaa !9
  %127 = zext i32 %126 to i64
  %128 = mul nsw i64 %125, %127
  %129 = load ptr, ptr %11, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %129, i32 0, i32 5
  %131 = load i32, ptr %130, align 4, !tbaa !16
  %132 = zext i32 %131 to i64
  %133 = mul nsw i64 %128, %132
  call void @libxsmm_aarch64_instruction_alu_compute_imm64(ptr noundef %109, i32 noundef 4097, i32 noundef %112, i32 noundef %115, i32 noundef %118, i64 noundef %133)
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 28}
!12 = !{!"libxsmm_generated_code", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28}
!13 = !{!14, !10, i64 20}
!14 = !{!"libxsmm_gp_reg_mapping_struct", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 116, !10, i64 120, !10, i64 124, !10, i64 128}
!15 = !{!14, !10, i64 96}
!16 = !{!17, !10, i64 20}
!17 = !{!"libxsmm_micro_kernel_config", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !10, i64 80, !7, i64 84, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 116, !10, i64 120, !10, i64 124, !10, i64 128, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144, !10, i64 148, !10, i64 152, !10, i64 156, !10, i64 160, !10, i64 164, !10, i64 168, !10, i64 172, !10, i64 176, !10, i64 180, !10, i64 184, !10, i64 188, !10, i64 192, !10, i64 196, !10, i64 200, !10, i64 204, !10, i64 208, !10, i64 212, !10, i64 216, !10, i64 220, !10, i64 224, !10, i64 228, !10, i64 232, !10, i64 236, !10, i64 240, !10, i64 244, !10, i64 248, !10, i64 252, !10, i64 256, !10, i64 260, !10, i64 264, !10, i64 268, !10, i64 272, !10, i64 276, !10, i64 280, !10, i64 284, !10, i64 288, !10, i64 292, !10, i64 296, !10, i64 300, !10, i64 304, !10, i64 308, !10, i64 312, !10, i64 316, !10, i64 320, !10, i64 324, !10, i64 328, !10, i64 332, !10, i64 336, !10, i64 340, !10, i64 344, !10, i64 348, !10, i64 352, !10, i64 356, !10, i64 360, !7, i64 364, !7, i64 380, !7, i64 396, !7, i64 412, !7, i64 428, !7, i64 444, !10, i64 460, !7, i64 464, !18, i64 520, !10, i64 556, !10, i64 560, !10, i64 564, !10, i64 568, !10, i64 572, !10, i64 576, !10, i64 580, !10, i64 584, !6, i64 592, !10, i64 600, !10, i64 604, !10, i64 608, !10, i64 612, !6, i64 616, !10, i64 624, !10, i64 628, !10, i64 632, !10, i64 636, !10, i64 640, !10, i64 644, !10, i64 648, !10, i64 652, !10, i64 656, !10, i64 660, !10, i64 664, !10, i64 668, !10, i64 672, !10, i64 676, !10, i64 680}
!18 = !{!"libxsmm_tile_config", !7, i64 0, !19, i64 2, !7, i64 4, !19, i64 6, !7, i64 8, !19, i64 10, !7, i64 12, !19, i64 14, !7, i64 16, !19, i64 18, !7, i64 20, !19, i64 22, !7, i64 24, !19, i64 26, !7, i64 28, !19, i64 30, !7, i64 32}
!19 = !{!"short", !7, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!23, !10, i64 20}
!23 = !{!"libxsmm_gemm_descriptor", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !7, i64 28, !7, i64 29, !7, i64 32, !24, i64 33, !24, i64 41, !7, i64 49, !10, i64 50, !10, i64 54, !10, i64 58, !19, i64 62, !19, i64 64, !7, i64 66, !7, i64 67, !7, i64 68, !7, i64 69, !19, i64 70, !19, i64 72, !19, i64 74, !19, i64 76, !19, i64 78, !19, i64 80, !10, i64 82, !10, i64 86, !10, i64 90, !7, i64 94}
!24 = !{!"long long", !7, i64 0}
!25 = distinct !{!25, !21}


; 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_compute_imm64(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i64 noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_packed_gemm_aarch64_store_C(ptr noundef %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, ptr nocapture noundef readonly %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7) local_unnamed_addr #1 {
  %9 = getelementptr inbounds i8, ptr %0, i64 28
  %10 = load i32, ptr %9, align 4, !tbaa !5
  %11 = add i32 %10, -2201
  %narrow = icmp ult i32 %11, 799
  %12 = zext i1 %narrow to i8
  %.not = icmp eq i32 %4, 0
  br i1 %.not, label %.._crit_edge44_crit_edge, label %.preheader.lr.ph

.._crit_edge44_crit_edge:                         ; preds = %8
  %.pre = zext i32 %7 to i64
  br label %._crit_edge44

.preheader.lr.ph:                                 ; preds = %8
  %.not45 = icmp eq i32 %5, 0
  %13 = getelementptr inbounds i8, ptr %1, i64 20
  %14 = getelementptr inbounds i8, ptr %1, i64 96
  %15 = getelementptr inbounds i8, ptr %2, i64 20
  %16 = zext i32 %7 to i64
  %17 = getelementptr inbounds i8, ptr %3, i64 20
  br i1 %.not45, label %.preheader, label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.lr.ph, %._crit_edge.us
  %.043.us = phi i32 [ %39, %._crit_edge.us ], [ 0, %.preheader.lr.ph ]
  %18 = mul i32 %.043.us, %5
  br label %19

19:                                               ; preds = %.preheader.us, %19
  %.03842.us = phi i32 [ 0, %.preheader.us ], [ %29, %19 ]
  %20 = load i32, ptr %13, align 4, !tbaa !11
  %21 = load i32, ptr %14, align 4, !tbaa !13
  %22 = add i32 %.03842.us, %18
  %23 = load i32, ptr %15, align 4, !tbaa !14
  tail call void @libxsmm_generator_vloadstore_masked_vreg_aarch64(ptr noundef %0, i32 noundef %20, i32 noundef %21, i32 noundef %22, i32 noundef %23, i32 noundef %6, i32 noundef 0, i32 noundef 1, i8 noundef zeroext 1, i8 noundef zeroext %12) #2
  %24 = load i32, ptr %13, align 4, !tbaa !11
  %25 = load i32, ptr %14, align 4, !tbaa !13
  %26 = load i32, ptr %15, align 4, !tbaa !14
  %27 = zext i32 %26 to i64
  %28 = mul nuw nsw i64 %27, %16
  tail call void @libxsmm_aarch64_instruction_alu_compute_imm64(ptr noundef %0, i32 noundef 4096, i32 noundef %24, i32 noundef %25, i32 noundef %24, i64 noundef %28) #2
  %29 = add nuw i32 %.03842.us, 1
  %exitcond.not = icmp eq i32 %29, %5
  br i1 %exitcond.not, label %._crit_edge.us, label %19, !llvm.loop !18

._crit_edge.us:                                   ; preds = %19
  %30 = load i32, ptr %13, align 4, !tbaa !11
  %31 = load i32, ptr %14, align 4, !tbaa !13
  %32 = load i32, ptr %17, align 1, !tbaa !20
  %33 = sub i32 %32, %5
  %34 = zext i32 %33 to i64
  %35 = mul nuw nsw i64 %34, %16
  %36 = load i32, ptr %15, align 4, !tbaa !14
  %37 = zext i32 %36 to i64
  %38 = mul nuw nsw i64 %35, %37
  tail call void @libxsmm_aarch64_instruction_alu_compute_imm64(ptr noundef %0, i32 noundef 4096, i32 noundef %30, i32 noundef %31, i32 noundef %30, i64 noundef %38) #2
  %39 = add nuw i32 %.043.us, 1
  %exitcond47.not = icmp eq i32 %39, %4
  br i1 %exitcond47.not, label %._crit_edge44, label %.preheader.us, !llvm.loop !23

.preheader:                                       ; preds = %.preheader.lr.ph, %.preheader
  %.043 = phi i32 [ %48, %.preheader ], [ 0, %.preheader.lr.ph ]
  %40 = load i32, ptr %13, align 4, !tbaa !11
  %41 = load i32, ptr %14, align 4, !tbaa !13
  %42 = load i32, ptr %17, align 1, !tbaa !20
  %43 = zext i32 %42 to i64
  %44 = mul nuw nsw i64 %43, %16
  %45 = load i32, ptr %15, align 4, !tbaa !14
  %46 = zext i32 %45 to i64
  %47 = mul nuw nsw i64 %44, %46
  tail call void @libxsmm_aarch64_instruction_alu_compute_imm64(ptr noundef %0, i32 noundef 4096, i32 noundef %40, i32 noundef %41, i32 noundef %40, i64 noundef %47) #2
  %48 = add nuw i32 %.043, 1
  %exitcond48.not = icmp eq i32 %48, %4
  br i1 %exitcond48.not, label %._crit_edge44, label %.preheader, !llvm.loop !23

._crit_edge44:                                    ; preds = %._crit_edge.us, %.preheader, %.._crit_edge44_crit_edge
  %.pre-phi = phi i64 [ %.pre, %.._crit_edge44_crit_edge ], [ %16, %.preheader ], [ %16, %._crit_edge.us ]
  %49 = getelementptr inbounds i8, ptr %1, i64 20
  %50 = load i32, ptr %49, align 4, !tbaa !11
  %51 = getelementptr inbounds i8, ptr %1, i64 96
  %52 = load i32, ptr %51, align 4, !tbaa !13
  %53 = zext i32 %4 to i64
  %54 = getelementptr inbounds i8, ptr %3, i64 20
  %55 = load i32, ptr %54, align 1, !tbaa !20
  %56 = zext i32 %55 to i64
  %57 = getelementptr inbounds i8, ptr %2, i64 20
  %58 = load i32, ptr %57, align 4, !tbaa !14
  %59 = zext i32 %58 to i64
  %60 = mul nuw i64 %.pre-phi, %53
  %61 = mul i64 %60, %56
  %62 = mul nuw nsw i64 %61, %59
  tail call void @libxsmm_aarch64_instruction_alu_compute_imm64(ptr noundef %0, i32 noundef 4097, i32 noundef %50, i32 noundef %52, i32 noundef %50, i64 noundef %62) #2
  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, !10, i64 28}
!6 = !{!"libxsmm_generated_code", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!12, !10, i64 20}
!12 = !{!"libxsmm_gp_reg_mapping_struct", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 116, !10, i64 120, !10, i64 124, !10, i64 128}
!13 = !{!12, !10, i64 96}
!14 = !{!15, !10, i64 20}
!15 = !{!"libxsmm_micro_kernel_config", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !10, i64 80, !8, i64 84, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 116, !10, i64 120, !10, i64 124, !10, i64 128, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144, !10, i64 148, !10, i64 152, !10, i64 156, !10, i64 160, !10, i64 164, !10, i64 168, !10, i64 172, !10, i64 176, !10, i64 180, !10, i64 184, !10, i64 188, !10, i64 192, !10, i64 196, !10, i64 200, !10, i64 204, !10, i64 208, !10, i64 212, !10, i64 216, !10, i64 220, !10, i64 224, !10, i64 228, !10, i64 232, !10, i64 236, !10, i64 240, !10, i64 244, !10, i64 248, !10, i64 252, !10, i64 256, !10, i64 260, !10, i64 264, !10, i64 268, !10, i64 272, !10, i64 276, !10, i64 280, !10, i64 284, !10, i64 288, !10, i64 292, !10, i64 296, !10, i64 300, !10, i64 304, !10, i64 308, !10, i64 312, !10, i64 316, !10, i64 320, !10, i64 324, !10, i64 328, !10, i64 332, !10, i64 336, !10, i64 340, !10, i64 344, !10, i64 348, !10, i64 352, !10, i64 356, !10, i64 360, !8, i64 364, !8, i64 380, !8, i64 396, !8, i64 412, !8, i64 428, !8, i64 444, !10, i64 460, !8, i64 464, !16, i64 520, !10, i64 556, !10, i64 560, !10, i64 564, !10, i64 568, !10, i64 572, !10, i64 576, !10, i64 580, !10, i64 584, !7, i64 592, !10, i64 600, !10, i64 604, !10, i64 608, !10, i64 612, !7, i64 616, !10, i64 624, !10, i64 628, !10, i64 632, !10, i64 636, !10, i64 640, !10, i64 644, !10, i64 648, !10, i64 652, !10, i64 656, !10, i64 660, !10, i64 664, !10, i64 668, !10, i64 672, !10, i64 676, !10, i64 680}
!16 = !{!"libxsmm_tile_config", !8, i64 0, !17, i64 2, !8, i64 4, !17, i64 6, !8, i64 8, !17, i64 10, !8, i64 12, !17, i64 14, !8, i64 16, !17, i64 18, !8, i64 20, !17, i64 22, !8, i64 24, !17, i64 26, !8, i64 28, !17, i64 30, !8, i64 32}
!17 = !{!"short", !8, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!21, !10, i64 20}
!21 = !{!"libxsmm_gemm_descriptor", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !8, i64 28, !8, i64 29, !8, i64 32, !22, i64 33, !22, i64 41, !8, i64 49, !10, i64 50, !10, i64 54, !10, i64 58, !17, i64 62, !17, i64 64, !8, i64 66, !8, i64 67, !8, i64 68, !8, i64 69, !17, i64 70, !17, i64 72, !17, i64 74, !17, i64 76, !17, i64 78, !17, i64 80, !10, i64 82, !10, i64 86, !10, i64 90, !8, i64 94}
!22 = !{!"long long", !8, i64 0}
!23 = distinct !{!23, !19}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass