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

; 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_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 }>
%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 }

; Function Attrs: nounwind uwtable
declare dso_local i32 @libxsmm_x86_is_Amxfp4_Bi8_gemm(ptr noundef) #0

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

declare i32 @LIBXSMM_GEMM_GETENUM_A_PREC(ptr noundef) #2

declare i32 @LIBXSMM_GEMM_GETENUM_B_PREC(ptr noundef) #2

declare i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef) #2

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @libxsmm_x86_is_Amxfp4_Bfp32_gemm(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @libxsmm_x86_is_Amxfp4_Bbf16_gemm(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @libxsmm_x86_is_Ai4_Bi8_gemm(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @libxsmm_x86_is_Abf8_Bbf16_gemm(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @libxsmm_x86_is_Abf8_Bf16_gemm(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @libxsmm_x86_is_Ahf8_Bbf16_gemm(ptr noundef) #0

declare void @libxsmm_x86_instruction_alu_reg(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #2

declare void @libxsmm_x86_instruction_alu_imm(ptr noundef, i32 noundef, i32 noundef, i64 noundef) #2

declare i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef) #2

declare void @libxsmm_x86_instruction_alu_imm_i64(ptr noundef, i32 noundef, i32 noundef, i64 noundef) #2

declare void @libxsmm_x86_instruction_push_reg(ptr noundef, i32 noundef) #2

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_gemm_setup_stack_frame(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
  %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
  %12 = alloca i32, align 4
  %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
  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
  store i32 10, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = call i32 @libxsmm_x86_is_Ai4_Bi8_gemm(ptr noundef %19)
  store i32 %20, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = call i32 @libxsmm_x86_is_Amxfp4_Bbf16_gemm(ptr noundef %21)
  store i32 %22, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  %24 = call i32 @libxsmm_x86_is_Amxfp4_Bfp32_gemm(ptr noundef %23)
  store i32 %24, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = call i32 @libxsmm_x86_is_Amxfp4_Bi8_gemm(ptr noundef %25)
  store i32 %26, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = call i32 @libxsmm_x86_is_Abf8_Bbf16_gemm(ptr noundef %27)
  store i32 %28, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = call i32 @libxsmm_x86_is_Abf8_Bf16_gemm(ptr noundef %29)
  store i32 %30, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = call i32 @libxsmm_x86_is_Ahf8_Bbf16_gemm(ptr noundef %31)
  store i32 %32, ptr %16, align 4, !tbaa !9
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  call void @libxsmm_x86_instruction_push_reg(ptr noundef %33, i32 noundef 5)
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = load ptr, ptr %8, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %35, i32 0, i32 20
  %37 = load i32, ptr %36, align 8, !tbaa !11
  call void @libxsmm_x86_instruction_alu_reg(ptr noundef %34, i32 noundef %37, i32 noundef 4, i32 noundef 5)
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %39, i32 0, i32 17
  %41 = load i32, ptr %40, align 4, !tbaa !15
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %38, i32 noundef %41, i32 noundef 4, i64 noundef 192)
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %42, i32 0, i32 6
  %44 = load i32, ptr %43, align 1, !tbaa !16
  %45 = and i32 32768, %44
  %46 = icmp eq i32 %45, 32768
  br i1 %46, label %108, label %47

47:                                               ; preds = %4
  %48 = load i32, ptr %10, align 4, !tbaa !9
  %49 = icmp ugt i32 %48, 0
  br i1 %49, label %108, label %50

50:                                               ; preds = %47
  %51 = load i32, ptr %11, align 4, !tbaa !9
  %52 = icmp ugt i32 %51, 0
  br i1 %52, label %108, label %53

53:                                               ; preds = %50
  %54 = load i32, ptr %12, align 4, !tbaa !9
  %55 = icmp ugt i32 %54, 0
  br i1 %55, label %108, label %56

56:                                               ; preds = %53
  %57 = load i32, ptr %13, align 4, !tbaa !9
  %58 = icmp ugt i32 %57, 0
  br i1 %58, label %108, label %59

59:                                               ; preds = %56
  %60 = load i32, ptr %14, align 4, !tbaa !9
  %61 = icmp ugt i32 %60, 0
  br i1 %61, label %108, label %62

62:                                               ; preds = %59
  %63 = load i32, ptr %15, align 4, !tbaa !9
  %64 = icmp ugt i32 %63, 0
  br i1 %64, label %108, label %65

65:                                               ; preds = %62
  %66 = load i32, ptr %16, align 4, !tbaa !9
  %67 = icmp ugt i32 %66, 0
  br i1 %67, label %108, label %68

68:                                               ; preds = %65
  %69 = load ptr, ptr %8, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %69, i32 0, i32 122
  %71 = load i32, ptr %70, align 8, !tbaa !19
  %72 = icmp ugt i32 %71, 0
  br i1 %72, label %108, label %73

73:                                               ; preds = %68
  %74 = load ptr, ptr %8, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %74, i32 0, i32 123
  %76 = load i32, ptr %75, align 4, !tbaa !20
  %77 = icmp ugt i32 %76, 0
  br i1 %77, label %108, label %78

78:                                               ; preds = %73
  %79 = load ptr, ptr %8, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %79, i32 0, i32 126
  %81 = load i32, ptr %80, align 8, !tbaa !21
  %82 = icmp ugt i32 %81, 0
  br i1 %82, label %108, label %83

83:                                               ; preds = %78
  %84 = load ptr, ptr %8, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %84, i32 0, i32 125
  %86 = load i32, ptr %85, align 4, !tbaa !22
  %87 = icmp ugt i32 %86, 0
  br i1 %87, label %108, label %88

88:                                               ; preds = %83
  %89 = load ptr, ptr %8, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %89, i32 0, i32 127
  %91 = load i32, ptr %90, align 4, !tbaa !23
  %92 = icmp ugt i32 %91, 0
  br i1 %92, label %108, label %93

93:                                               ; preds = %88
  %94 = load ptr, ptr %8, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %94, i32 0, i32 128
  %96 = load i32, ptr %95, align 8, !tbaa !24
  %97 = icmp ugt i32 %96, 0
  br i1 %97, label %108, label %98

98:                                               ; preds = %93
  %99 = load ptr, ptr %8, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %99, i32 0, i32 120
  %101 = load i32, ptr %100, align 8, !tbaa !25
  %102 = icmp ugt i32 %101, 0
  br i1 %102, label %108, label %103

103:                                              ; preds = %98
  %104 = load ptr, ptr %8, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %104, i32 0, i32 121
  %106 = load i32, ptr %105, align 4, !tbaa !26
  %107 = icmp ugt i32 %106, 0
  br i1 %107, label %108, label %113

108:                                              ; preds = %103, %98, %93, %88, %83, %78, %73, %68, %65, %62, %59, %56, %53, %50, %47, %4
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  %110 = load ptr, ptr %6, align 8, !tbaa !5
  %111 = load ptr, ptr %8, align 8, !tbaa !5
  %112 = load ptr, ptr %7, align 8, !tbaa !5
  call void @libxsmm_generator_gemm_setup_stack_frame_fill_ext_gemm_stack_vars(ptr noundef %109, ptr noundef %110, ptr noundef %111, ptr noundef %112)
  br label %196

113:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  %114 = load ptr, ptr %6, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %114, i32 0, i32 8
  %116 = getelementptr inbounds [3 x i8], ptr %115, i64 0, i64 0
  %117 = call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef %116)
  %118 = icmp eq i32 12, %117
  br i1 %118, label %119, label %125

119:                                              ; preds = %113
  %120 = load ptr, ptr %6, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %120, i32 0, i32 8
  %122 = getelementptr inbounds [3 x i8], ptr %121, i64 0, i64 0
  %123 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef %122)
  %124 = icmp eq i32 1, %123
  br label %125

125:                                              ; preds = %119, %113
  %126 = phi i1 [ false, %113 ], [ %124, %119 ]
  %127 = zext i1 %126 to i64
  %128 = select i1 %126, i32 1, i32 0
  store i32 %128, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  %129 = load ptr, ptr %6, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %129, i32 0, i32 8
  %131 = getelementptr inbounds [3 x i8], ptr %130, i64 0, i64 0
  %132 = call i32 @LIBXSMM_GEMM_GETENUM_A_PREC(ptr noundef %131)
  %133 = icmp eq i32 12, %132
  br i1 %133, label %134, label %152

134:                                              ; preds = %125
  %135 = load ptr, ptr %6, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %135, i32 0, i32 8
  %137 = getelementptr inbounds [3 x i8], ptr %136, i64 0, i64 0
  %138 = call i32 @LIBXSMM_GEMM_GETENUM_B_PREC(ptr noundef %137)
  %139 = icmp eq i32 3, %138
  br i1 %139, label %140, label %152

140:                                              ; preds = %134
  %141 = load ptr, ptr %6, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %141, i32 0, i32 8
  %143 = getelementptr inbounds [3 x i8], ptr %142, i64 0, i64 0
  %144 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef %143)
  %145 = icmp eq i32 3, %144
  br i1 %145, label %180, label %146

146:                                              ; preds = %140
  %147 = load ptr, ptr %6, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %147, i32 0, i32 8
  %149 = getelementptr inbounds [3 x i8], ptr %148, i64 0, i64 0
  %150 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef %149)
  %151 = icmp eq i32 1, %150
  br i1 %151, label %180, label %152

152:                                              ; preds = %146, %134, %125
  %153 = load ptr, ptr %6, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %153, i32 0, i32 8
  %155 = getelementptr inbounds [3 x i8], ptr %154, i64 0, i64 0
  %156 = call i32 @LIBXSMM_GEMM_GETENUM_A_PREC(ptr noundef %155)
  %157 = icmp eq i32 12, %156
  br i1 %157, label %158, label %178

158:                                              ; preds = %152
  %159 = load ptr, ptr %6, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %159, i32 0, i32 8
  %161 = getelementptr inbounds [3 x i8], ptr %160, i64 0, i64 0
  %162 = call i32 @LIBXSMM_GEMM_GETENUM_B_PREC(ptr noundef %161)
  %163 = icmp eq i32 2, %162
  br i1 %163, label %164, label %178

164:                                              ; preds = %158
  %165 = load ptr, ptr %6, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %165, i32 0, i32 8
  %167 = getelementptr inbounds [3 x i8], ptr %166, i64 0, i64 0
  %168 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef %167)
  %169 = icmp eq i32 2, %168
  br i1 %169, label %176, label %170

170:                                              ; preds = %164
  %171 = load ptr, ptr %6, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %171, i32 0, i32 8
  %173 = getelementptr inbounds [3 x i8], ptr %172, i64 0, i64 0
  %174 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef %173)
  %175 = icmp eq i32 1, %174
  br label %176

176:                                              ; preds = %170, %164
  %177 = phi i1 [ true, %164 ], [ %175, %170 ]
  br label %178

178:                                              ; preds = %176, %158, %152
  %179 = phi i1 [ false, %158 ], [ false, %152 ], [ %177, %176 ]
  br label %180

180:                                              ; preds = %178, %146, %140
  %181 = phi i1 [ true, %146 ], [ true, %140 ], [ %179, %178 ]
  %182 = zext i1 %181 to i64
  %183 = select i1 %181, i32 1, i32 0
  store i32 %183, ptr %18, align 4, !tbaa !9
  %184 = load i32, ptr %17, align 4, !tbaa !9
  %185 = icmp eq i32 %184, 1
  br i1 %185, label %189, label %186

186:                                              ; preds = %180
  %187 = load i32, ptr %18, align 4, !tbaa !9
  %188 = icmp eq i32 %187, 1
  br i1 %188, label %189, label %195

189:                                              ; preds = %186, %180
  %190 = load ptr, ptr %5, align 8, !tbaa !5
  %191 = load ptr, ptr %8, align 8, !tbaa !5
  %192 = load ptr, ptr %7, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %192, i32 0, i32 20
  %194 = load i32, ptr %193, align 4, !tbaa !27
  call void @libxsmm_generator_gemm_setval_stack_var(ptr noundef %190, ptr noundef %191, i32 noundef 5, i32 noundef %194)
  br label %195

195:                                              ; preds = %189, %186
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  br label %196

196:                                              ; preds = %195, %108
  %197 = load ptr, ptr %5, align 8, !tbaa !5
  %198 = load ptr, ptr %8, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %198, i32 0, i32 20
  %200 = load i32, ptr %199, align 8, !tbaa !11
  %201 = load i32, ptr %9, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_alu_imm_i64(ptr noundef %197, i32 noundef %200, i32 noundef %201, i64 noundef -64)
  %202 = load ptr, ptr %5, align 8, !tbaa !5
  %203 = load i32, ptr %9, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_alu_reg(ptr noundef %202, i32 noundef 30001, i32 noundef %203, i32 noundef 4)
  %204 = load ptr, ptr %5, align 8, !tbaa !5
  %205 = load ptr, ptr %6, align 8, !tbaa !5
  %206 = load ptr, ptr %8, align 8, !tbaa !5
  call void @libxsmm_generator_gemm_setup_stack_frame_allocate_scratch(ptr noundef %204, ptr noundef %205, ptr noundef %206)
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  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 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 80}
!12 = !{!"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, !13, 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}
!13 = !{!"libxsmm_tile_config", !7, i64 0, !14, i64 2, !7, i64 4, !14, i64 6, !7, i64 8, !14, i64 10, !7, i64 12, !14, i64 14, !7, i64 16, !14, i64 18, !7, i64 20, !14, i64 22, !7, i64 24, !14, i64 26, !7, i64 28, !14, i64 30, !7, i64 32}
!14 = !{!"short", !7, i64 0}
!15 = !{!12, !10, i64 68}
!16 = !{!17, !10, i64 24}
!17 = !{!"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, !18, i64 33, !18, i64 41, !7, i64 49, !10, i64 50, !10, i64 54, !10, i64 58, !14, i64 62, !14, i64 64, !7, i64 66, !7, i64 67, !7, i64 68, !7, i64 69, !14, i64 70, !14, i64 72, !14, i64 74, !14, i64 76, !14, i64 78, !14, i64 80, !10, i64 82, !10, i64 86, !10, i64 90, !7, i64 94}
!18 = !{!"long long", !7, i64 0}
!19 = !{!12, !10, i64 656}
!20 = !{!12, !10, i64 660}
!21 = !{!12, !10, i64 672}
!22 = !{!12, !10, i64 668}
!23 = !{!12, !10, i64 676}
!24 = !{!12, !10, i64 680}
!25 = !{!12, !10, i64 648}
!26 = !{!12, !10, i64 652}
!27 = !{!28, !10, i64 80}
!28 = !{!"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}


; 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"

; Function Attrs: nounwind uwtable
declare dso_local i32 @libxsmm_x86_is_Amxfp4_Bi8_gemm(ptr noundef) local_unnamed_addr #0

declare i32 @LIBXSMM_GEMM_GETENUM_A_PREC(ptr noundef) local_unnamed_addr #1

declare i32 @LIBXSMM_GEMM_GETENUM_B_PREC(ptr noundef) local_unnamed_addr #1

declare i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @libxsmm_x86_is_Amxfp4_Bfp32_gemm(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @libxsmm_x86_is_Amxfp4_Bbf16_gemm(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @libxsmm_x86_is_Ai4_Bi8_gemm(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @libxsmm_x86_is_Abf8_Bbf16_gemm(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @libxsmm_x86_is_Abf8_Bf16_gemm(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @libxsmm_x86_is_Ahf8_Bbf16_gemm(ptr noundef) local_unnamed_addr #0

declare void @libxsmm_x86_instruction_alu_reg(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

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

declare i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef) local_unnamed_addr #1

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

declare void @libxsmm_x86_instruction_push_reg(ptr 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(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

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

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_gemm_setup_stack_frame(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #0 {
  %5 = tail call i32 @libxsmm_x86_is_Ai4_Bi8_gemm(ptr noundef %1)
  %6 = tail call i32 @libxsmm_x86_is_Amxfp4_Bbf16_gemm(ptr noundef %1)
  %7 = tail call i32 @libxsmm_x86_is_Amxfp4_Bfp32_gemm(ptr noundef %1)
  %8 = tail call i32 @libxsmm_x86_is_Amxfp4_Bi8_gemm(ptr noundef %1)
  %9 = tail call i32 @libxsmm_x86_is_Abf8_Bbf16_gemm(ptr noundef %1)
  %10 = tail call i32 @libxsmm_x86_is_Abf8_Bf16_gemm(ptr noundef %1)
  %11 = tail call i32 @libxsmm_x86_is_Ahf8_Bbf16_gemm(ptr noundef %1)
  tail call void @libxsmm_x86_instruction_push_reg(ptr noundef %0, i32 noundef 5) #2
  %12 = getelementptr inbounds i8, ptr %3, i64 80
  %13 = load i32, ptr %12, align 8, !tbaa !5
  tail call void @libxsmm_x86_instruction_alu_reg(ptr noundef %0, i32 noundef %13, i32 noundef 4, i32 noundef 5) #2
  %14 = getelementptr inbounds i8, ptr %3, i64 68
  %15 = load i32, ptr %14, align 4, !tbaa !13
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef %15, i32 noundef 4, i64 noundef 192) #2
  %16 = getelementptr inbounds i8, ptr %1, i64 24
  %17 = load i32, ptr %16, align 1, !tbaa !14
  %18 = and i32 %17, 32768
  %19 = icmp ne i32 %18, 0
  %20 = icmp ne i32 %5, 0
  %or.cond = select i1 %19, i1 true, i1 %20
  %21 = icmp ne i32 %6, 0
  %or.cond3 = select i1 %or.cond, i1 true, i1 %21
  %22 = icmp ne i32 %7, 0
  %or.cond5 = select i1 %or.cond3, i1 true, i1 %22
  %23 = icmp ne i32 %8, 0
  %or.cond7 = select i1 %or.cond5, i1 true, i1 %23
  %24 = icmp ne i32 %9, 0
  %or.cond9 = select i1 %or.cond7, i1 true, i1 %24
  %25 = icmp ne i32 %10, 0
  %or.cond11 = select i1 %or.cond9, i1 true, i1 %25
  %26 = icmp ne i32 %11, 0
  %or.cond13 = select i1 %or.cond11, i1 true, i1 %26
  br i1 %or.cond13, label %51, label %27

27:                                               ; preds = %4
  %28 = getelementptr inbounds i8, ptr %3, i64 656
  %29 = load i32, ptr %28, align 8, !tbaa !17
  %.not = icmp eq i32 %29, 0
  br i1 %.not, label %30, label %51

30:                                               ; preds = %27
  %31 = getelementptr inbounds i8, ptr %3, i64 660
  %32 = load i32, ptr %31, align 4, !tbaa !18
  %.not69 = icmp eq i32 %32, 0
  br i1 %.not69, label %33, label %51

33:                                               ; preds = %30
  %34 = getelementptr inbounds i8, ptr %3, i64 672
  %35 = load i32, ptr %34, align 8, !tbaa !19
  %.not70 = icmp eq i32 %35, 0
  br i1 %.not70, label %36, label %51

36:                                               ; preds = %33
  %37 = getelementptr inbounds i8, ptr %3, i64 668
  %38 = load i32, ptr %37, align 4, !tbaa !20
  %.not71 = icmp eq i32 %38, 0
  br i1 %.not71, label %39, label %51

39:                                               ; preds = %36
  %40 = getelementptr inbounds i8, ptr %3, i64 676
  %41 = load i32, ptr %40, align 4, !tbaa !21
  %.not72 = icmp eq i32 %41, 0
  br i1 %.not72, label %42, label %51

42:                                               ; preds = %39
  %43 = getelementptr inbounds i8, ptr %3, i64 680
  %44 = load i32, ptr %43, align 8, !tbaa !22
  %.not73 = icmp eq i32 %44, 0
  br i1 %.not73, label %45, label %51

45:                                               ; preds = %42
  %46 = getelementptr inbounds i8, ptr %3, i64 648
  %47 = load i32, ptr %46, align 8, !tbaa !23
  %.not74 = icmp eq i32 %47, 0
  br i1 %.not74, label %48, label %51

48:                                               ; preds = %45
  %49 = getelementptr inbounds i8, ptr %3, i64 652
  %50 = load i32, ptr %49, align 4, !tbaa !24
  %.not75 = icmp eq i32 %50, 0
  br i1 %.not75, label %52, label %51

51:                                               ; preds = %48, %45, %42, %39, %36, %33, %30, %27, %4
  tail call void @libxsmm_generator_gemm_setup_stack_frame_fill_ext_gemm_stack_vars(ptr noundef %0, ptr noundef nonnull %1, ptr noundef nonnull %3, ptr noundef %2)
  br label %88

52:                                               ; preds = %48
  %53 = getelementptr inbounds i8, ptr %1, i64 29
  %54 = tail call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef nonnull %53) #2
  %55 = icmp eq i32 %54, 12
  br i1 %55, label %56, label %59

56:                                               ; preds = %52
  %57 = tail call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef nonnull %53) #2
  %58 = icmp eq i32 %57, 1
  br label %59

59:                                               ; preds = %56, %52
  %60 = phi i1 [ false, %52 ], [ %58, %56 ]
  %61 = tail call i32 @LIBXSMM_GEMM_GETENUM_A_PREC(ptr noundef nonnull %53) #2
  %62 = icmp eq i32 %61, 12
  br i1 %62, label %63, label %72

63:                                               ; preds = %59
  %64 = tail call i32 @LIBXSMM_GEMM_GETENUM_B_PREC(ptr noundef nonnull %53) #2
  %65 = icmp eq i32 %64, 3
  br i1 %65, label %66, label %72

66:                                               ; preds = %63
  %67 = tail call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef nonnull %53) #2
  %68 = icmp eq i32 %67, 3
  br i1 %68, label %.thread, label %69

69:                                               ; preds = %66
  %70 = tail call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef nonnull %53) #2
  %71 = icmp eq i32 %70, 1
  br i1 %71, label %.thread, label %72

72:                                               ; preds = %69, %63, %59
  %73 = tail call i32 @LIBXSMM_GEMM_GETENUM_A_PREC(ptr noundef nonnull %53) #2
  %74 = icmp eq i32 %73, 12
  br i1 %74, label %75, label %84

75:                                               ; preds = %72
  %76 = tail call i32 @LIBXSMM_GEMM_GETENUM_B_PREC(ptr noundef nonnull %53) #2
  %77 = icmp eq i32 %76, 2
  br i1 %77, label %78, label %84

78:                                               ; preds = %75
  %79 = tail call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef nonnull %53) #2
  %80 = icmp eq i32 %79, 2
  br i1 %80, label %.thread, label %81

81:                                               ; preds = %78
  %82 = tail call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef nonnull %53) #2
  %83 = icmp eq i32 %82, 1
  br label %84

84:                                               ; preds = %72, %75, %81
  %85 = phi i1 [ false, %75 ], [ false, %72 ], [ %83, %81 ]
  %or.cond15 = select i1 %60, i1 true, i1 %85
  br i1 %or.cond15, label %.thread, label %88

.thread:                                          ; preds = %78, %66, %69, %84
  %86 = getelementptr inbounds i8, ptr %2, i64 80
  %87 = load i32, ptr %86, align 4, !tbaa !25
  tail call void @libxsmm_generator_gemm_setval_stack_var(ptr noundef %0, ptr noundef nonnull %3, i32 noundef 5, i32 noundef %87)
  br label %88

88:                                               ; preds = %.thread, %84, %51
  %89 = load i32, ptr %12, align 8, !tbaa !5
  tail call void @libxsmm_x86_instruction_alu_imm_i64(ptr noundef %0, i32 noundef %89, i32 noundef 10, i64 noundef -64) #2
  tail call void @libxsmm_x86_instruction_alu_reg(ptr noundef %0, i32 noundef 30001, i32 noundef 10, i32 noundef 4) #2
  tail call void @libxsmm_generator_gemm_setup_stack_frame_allocate_scratch(ptr noundef %0, ptr noundef nonnull %1, ptr noundef nonnull %3)
  ret void
}

attributes #0 = { 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 #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 }

!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 80}
!6 = !{!"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, !10, 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, !12, i64 592, !7, i64 600, !7, i64 604, !7, i64 608, !7, i64 612, !12, 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}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"libxsmm_tile_config", !8, i64 0, !11, i64 2, !8, i64 4, !11, i64 6, !8, i64 8, !11, i64 10, !8, i64 12, !11, i64 14, !8, i64 16, !11, i64 18, !8, i64 20, !11, i64 22, !8, i64 24, !11, i64 26, !8, i64 28, !11, i64 30, !8, i64 32}
!11 = !{!"short", !8, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!6, !7, i64 68}
!14 = !{!15, !7, i64 24}
!15 = !{!"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, !16, i64 33, !16, i64 41, !8, i64 49, !7, i64 50, !7, i64 54, !7, i64 58, !11, i64 62, !11, i64 64, !8, i64 66, !8, i64 67, !8, i64 68, !8, i64 69, !11, i64 70, !11, i64 72, !11, i64 74, !11, i64 76, !11, i64 78, !11, i64 80, !7, i64 82, !7, i64 86, !7, i64 90, !8, i64 94}
!16 = !{!"long long", !8, i64 0}
!17 = !{!6, !7, i64 656}
!18 = !{!6, !7, i64 660}
!19 = !{!6, !7, i64 672}
!20 = !{!6, !7, i64 668}
!21 = !{!6, !7, i64 676}
!22 = !{!6, !7, i64 680}
!23 = !{!6, !7, i64 648}
!24 = !{!6, !7, i64 652}
!25 = !{!26, !7, i64 80}
!26 = !{!"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}


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