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

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

@.str = external hidden unnamed_addr constant [90 x i8], align 1
@libxsmm_ninit = external global i32, align 4
@libxsmm_verbosity = external global i32, align 4
@__func__.libxsmm_generator_gemm_sse_avx_avx2_avx512_kloop = external hidden unnamed_addr constant [49 x i8], align 1

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

declare i32 @libxsmm_x86_is_Amxfp4_Bfp32_gemm(ptr noundef) #1

declare i32 @libxsmm_x86_is_Amxfp4_Bi8_gemm(ptr noundef) #1

declare i32 @libxsmm_x86_is_Amxfp4_Bbf16_gemm(ptr noundef) #1

declare i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef) #1

declare i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef) #1

declare i32 @LIBXSMM_GEMM_GETENUM_A_PREC(ptr noundef) #1

declare i32 @LIBXSMM_GEMM_GETENUM_B_PREC(ptr 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_x86_is_Ai4_Bi8_gemm(ptr noundef) #1

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

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

declare void @libxsmm_x86_instruction_vec_compute_2reg(ptr noundef, i32 noundef, i8 noundef signext, i32 noundef, i32 noundef) #1

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_gemm_sse_avx_avx2_avx512_kloop(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %5, i32 noundef %6) #2 {
  %8 = alloca ptr, align 8
  %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 ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i8, align 1
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store i32 %5, ptr %13, align 4, !tbaa !9
  store i32 %6, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  store i32 0, 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 1, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #3
  %35 = load ptr, ptr %12, align 8, !tbaa !5
  %36 = call i32 @libxsmm_x86_is_Amxfp4_Bbf16_gemm(ptr noundef %35)
  store i32 %36, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #3
  %37 = load ptr, ptr %12, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %37, i32 0, i32 8
  %39 = getelementptr inbounds [3 x i8], ptr %38, i64 0, i64 0
  %40 = call i32 @LIBXSMM_GEMM_GETENUM_A_PREC(ptr noundef %39)
  %41 = icmp eq i32 12, %40
  br i1 %41, label %42, label %51

42:                                               ; preds = %7
  %43 = load i32, ptr %19, align 4, !tbaa !9
  %44 = icmp eq i32 %43, 0
  br i1 %44, label %45, label %51

45:                                               ; preds = %42
  %46 = load ptr, ptr %12, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %46, i32 0, i32 8
  %48 = getelementptr inbounds [3 x i8], ptr %47, i64 0, i64 0
  %49 = call i32 @LIBXSMM_GEMM_GETENUM_B_PREC(ptr noundef %48)
  %50 = icmp eq i32 2, %49
  br label %51

51:                                               ; preds = %45, %42, %7
  %52 = phi i1 [ false, %42 ], [ false, %7 ], [ %50, %45 ]
  %53 = zext i1 %52 to i64
  %54 = select i1 %52, i32 1, i32 0
  store i32 %54, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #3
  %55 = load ptr, ptr %12, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %55, i32 0, i32 6
  %57 = load i32, ptr %56, align 1, !tbaa !11
  %58 = and i32 %57, 2097152
  %59 = icmp ugt i32 %58, 0
  br i1 %59, label %60, label %88

60:                                               ; preds = %51
  %61 = load ptr, ptr %12, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %61, i32 0, i32 8
  %63 = getelementptr inbounds [3 x i8], ptr %62, i64 0, i64 0
  %64 = call i32 @LIBXSMM_GEMM_GETENUM_A_PREC(ptr noundef %63)
  %65 = icmp eq i32 12, %64
  br i1 %65, label %66, label %86

66:                                               ; preds = %60
  %67 = load ptr, ptr %12, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %67, i32 0, i32 8
  %69 = getelementptr inbounds [3 x i8], ptr %68, i64 0, i64 0
  %70 = call i32 @LIBXSMM_GEMM_GETENUM_B_PREC(ptr noundef %69)
  %71 = icmp eq i32 3, %70
  br i1 %71, label %72, label %86

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

78:                                               ; preds = %72
  %79 = load ptr, ptr %12, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %79, i32 0, i32 8
  %81 = getelementptr inbounds [3 x i8], ptr %80, i64 0, i64 0
  %82 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef %81)
  %83 = icmp eq i32 1, %82
  br label %84

84:                                               ; preds = %78, %72
  %85 = phi i1 [ true, %72 ], [ %83, %78 ]
  br label %86

86:                                               ; preds = %84, %66, %60
  %87 = phi i1 [ false, %66 ], [ false, %60 ], [ %85, %84 ]
  br label %88

88:                                               ; preds = %86, %51
  %89 = phi i1 [ false, %51 ], [ %87, %86 ]
  %90 = zext i1 %89 to i64
  %91 = select i1 %89, i32 1, i32 0
  store i32 %91, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #3
  %92 = load ptr, ptr %11, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %92, i32 0, i32 14
  %94 = load i32, ptr %93, align 8, !tbaa !15
  %95 = icmp eq i32 %94, -268032430
  %96 = zext i1 %95 to i64
  %97 = select i1 %95, i32 1, i32 0
  store i32 %97, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #3
  %98 = load ptr, ptr %12, align 8, !tbaa !5
  %99 = call i32 @libxsmm_x86_is_Amxfp4_Bfp32_gemm(ptr noundef %98)
  store i32 %99, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #3
  %100 = load ptr, ptr %12, align 8, !tbaa !5
  %101 = call i32 @libxsmm_x86_is_Amxfp4_Bi8_gemm(ptr noundef %100)
  store i32 %101, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #3
  %102 = load ptr, ptr %12, align 8, !tbaa !5
  %103 = call i32 @libxsmm_x86_is_Ai4_Bi8_gemm(ptr noundef %102)
  store i32 %103, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #3
  %104 = load ptr, ptr %12, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %104, i32 0, i32 8
  %106 = getelementptr inbounds [3 x i8], ptr %105, i64 0, i64 0
  %107 = call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef %106)
  %108 = icmp eq i32 12, %107
  br i1 %108, label %109, label %137

109:                                              ; preds = %88
  %110 = load ptr, ptr %12, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %110, i32 0, i32 6
  %112 = load i32, ptr %111, align 1, !tbaa !11
  %113 = and i32 %112, 256
  %114 = icmp eq i32 %113, 0
  br i1 %114, label %115, label %121

115:                                              ; preds = %109
  %116 = load ptr, ptr %12, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %116, i32 0, i32 6
  %118 = load i32, ptr %117, align 1, !tbaa !11
  %119 = and i32 %118, 512
  %120 = icmp eq i32 %119, 0
  br i1 %120, label %135, label %121

121:                                              ; preds = %115, %109
  %122 = load ptr, ptr %12, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %122, i32 0, i32 6
  %124 = load i32, ptr %123, align 1, !tbaa !11
  %125 = and i32 %124, 256
  %126 = icmp ugt i32 %125, 0
  br i1 %126, label %127, label %133

127:                                              ; preds = %121
  %128 = load ptr, ptr %12, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %128, i32 0, i32 6
  %130 = load i32, ptr %129, align 1, !tbaa !11
  %131 = and i32 %130, 512
  %132 = icmp ugt i32 %131, 0
  br label %133

133:                                              ; preds = %127, %121
  %134 = phi i1 [ false, %121 ], [ %132, %127 ]
  br label %135

135:                                              ; preds = %133, %115
  %136 = phi i1 [ true, %115 ], [ %134, %133 ]
  br label %137

137:                                              ; preds = %135, %88
  %138 = phi i1 [ false, %88 ], [ %136, %135 ]
  %139 = zext i1 %138 to i32
  store i32 %139, ptr %26, align 4, !tbaa !9
  store i32 4, ptr %16, align 4, !tbaa !9
  store i32 23, ptr %17, align 4, !tbaa !9
  %140 = load ptr, ptr %12, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %140, i32 0, i32 6
  %142 = load i32, ptr %141, align 1, !tbaa !11
  %143 = and i32 %142, 2048
  %144 = icmp eq i32 %143, 2048
  br i1 %144, label %145, label %159

145:                                              ; preds = %137
  %146 = load ptr, ptr %12, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %146, i32 0, i32 8
  %148 = getelementptr inbounds [3 x i8], ptr %147, i64 0, i64 0
  %149 = call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef %148)
  %150 = call i32 @libxsmm_cpuid_dot_pack_factor(i32 noundef %149)
  store i32 %150, ptr %18, align 4, !tbaa !9
  %151 = load i32, ptr %16, align 4, !tbaa !9
  %152 = load i32, ptr %18, align 4, !tbaa !9
  %153 = mul i32 %151, %152
  store i32 %153, ptr %16, align 4, !tbaa !9
  %154 = load i32, ptr %17, align 4, !tbaa !9
  %155 = add i32 %154, 1
  %156 = load i32, ptr %18, align 4, !tbaa !9
  %157 = mul i32 %155, %156
  %158 = sub i32 %157, 1
  store i32 %158, ptr %17, align 4, !tbaa !9
  br label %159

159:                                              ; preds = %145, %137
  %160 = load i32, ptr %26, align 4, !tbaa !9
  %161 = icmp ne i32 %160, 0
  br i1 %161, label %162, label %173

162:                                              ; preds = %159
  %163 = load ptr, ptr %8, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %163, i32 0, i32 6
  %165 = load i32, ptr %164, align 4, !tbaa !18
  %166 = icmp eq i32 %165, 1101
  br i1 %166, label %172, label %167

167:                                              ; preds = %162
  %168 = load ptr, ptr %8, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %168, i32 0, i32 6
  %170 = load i32, ptr %169, align 4, !tbaa !18
  %171 = icmp eq i32 %170, 1051
  br i1 %171, label %172, label %173

172:                                              ; preds = %167, %162
  store i32 8, ptr %16, align 4, !tbaa !9
  store i32 23, ptr %17, align 4, !tbaa !9
  br label %173

173:                                              ; preds = %172, %167, %159
  %174 = load i32, ptr %20, align 4, !tbaa !9
  %175 = icmp ugt i32 %174, 0
  br i1 %175, label %176, label %182

176:                                              ; preds = %173
  %177 = load i32, ptr %22, align 4, !tbaa !9
  %178 = icmp ugt i32 %177, 0
  br i1 %178, label %179, label %180

179:                                              ; preds = %176
  store i32 4, ptr %16, align 4, !tbaa !9
  store i32 13, ptr %17, align 4, !tbaa !9
  br label %181

180:                                              ; preds = %176
  store i32 2, ptr %16, align 4, !tbaa !9
  store i32 5, ptr %17, align 4, !tbaa !9
  br label %181

181:                                              ; preds = %180, %179
  br label %182

182:                                              ; preds = %181, %173
  %183 = load i32, ptr %17, align 4, !tbaa !9
  %184 = load i32, ptr %16, align 4, !tbaa !9
  %185 = icmp ult i32 %183, %184
  br i1 %185, label %186, label %195

186:                                              ; preds = %182
  %187 = load ptr, ptr %8, align 8, !tbaa !5
  %188 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %189 = icmp ult i32 1, %188
  br i1 %189, label %190, label %192

190:                                              ; preds = %186
  %191 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %193

192:                                              ; preds = %186
  br label %193

193:                                              ; preds = %192, %190
  %194 = phi i32 [ %191, %190 ], [ 1, %192 ]
  call void @libxsmm_handle_error(ptr noundef %187, i32 noundef 90018, ptr noundef @__func__.libxsmm_generator_gemm_sse_avx_avx2_avx512_kloop, ptr noundef @.str, i32 noundef 1156, i32 noundef %194)
  store i32 1, ptr %27, align 4
  br label %561

195:                                              ; preds = %182
  %196 = load i32, ptr %21, align 4, !tbaa !9
  %197 = icmp ugt i32 %196, 0
  br i1 %197, label %198, label %199

198:                                              ; preds = %195
  store i32 4, ptr %16, align 4, !tbaa !9
  store i32 8, ptr %17, align 4, !tbaa !9
  br label %199

199:                                              ; preds = %198, %195
  %200 = load i32, ptr %23, align 4, !tbaa !9
  %201 = icmp ugt i32 %200, 0
  br i1 %201, label %208, label %202

202:                                              ; preds = %199
  %203 = load i32, ptr %19, align 4, !tbaa !9
  %204 = icmp ugt i32 %203, 0
  br i1 %204, label %208, label %205

205:                                              ; preds = %202
  %206 = load i32, ptr %24, align 4, !tbaa !9
  %207 = icmp ugt i32 %206, 0
  br i1 %207, label %208, label %212

208:                                              ; preds = %205, %202, %199
  store i32 32, ptr %16, align 4, !tbaa !9
  %209 = load ptr, ptr %12, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %209, i32 0, i32 2
  %211 = load i32, ptr %210, align 1, !tbaa !20
  store i32 %211, ptr %17, align 4, !tbaa !9
  br label %212

212:                                              ; preds = %208, %205
  %213 = load ptr, ptr %8, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %213, i32 0, i32 6
  %215 = load i32, ptr %214, align 4, !tbaa !18
  %216 = icmp ult i32 %215, 1
  br i1 %216, label %217, label %226

217:                                              ; preds = %212
  %218 = load ptr, ptr %8, align 8, !tbaa !5
  %219 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %220 = icmp ult i32 1, %219
  br i1 %220, label %221, label %223

221:                                              ; preds = %217
  %222 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %224

223:                                              ; preds = %217
  br label %224

224:                                              ; preds = %223, %221
  %225 = phi i32 [ %222, %221 ], [ 1, %223 ]
  call void @libxsmm_handle_error(ptr noundef %218, i32 noundef 90005, ptr noundef @__func__.libxsmm_generator_gemm_sse_avx_avx2_avx512_kloop, ptr noundef @.str, i32 noundef 1172, i32 noundef %225)
  store i32 1, ptr %27, align 4
  br label %561

226:                                              ; preds = %212
  %227 = load i32, ptr %23, align 4, !tbaa !9
  %228 = icmp ugt i32 %227, 0
  br i1 %228, label %235, label %229

229:                                              ; preds = %226
  %230 = load i32, ptr %19, align 4, !tbaa !9
  %231 = icmp ugt i32 %230, 0
  br i1 %231, label %235, label %232

232:                                              ; preds = %229
  %233 = load i32, ptr %24, align 4, !tbaa !9
  %234 = icmp ugt i32 %233, 0
  br i1 %234, label %235, label %236

235:                                              ; preds = %232, %229, %226
  store ptr @libxsmm_generator_gemm_avx2_kloop_kernel, ptr %15, align 8, !tbaa !5
  br label %283

236:                                              ; preds = %232
  %237 = load ptr, ptr %8, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %237, i32 0, i32 6
  %239 = load i32, ptr %238, align 4, !tbaa !18
  %240 = icmp ule i32 %239, 1004
  br i1 %240, label %241, label %242

241:                                              ; preds = %236
  store ptr @libxsmm_generator_gemm_sse_kloop_kernel, ptr %15, align 8, !tbaa !5
  br label %282

242:                                              ; preds = %236
  %243 = load ptr, ptr %8, align 8, !tbaa !5
  %244 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %243, i32 0, i32 6
  %245 = load i32, ptr %244, align 4, !tbaa !18
  %246 = icmp eq i32 %245, 1005
  br i1 %246, label %247, label %248

247:                                              ; preds = %242
  store ptr @libxsmm_generator_gemm_avx_kloop_kernel, ptr %15, align 8, !tbaa !5
  br label %281

248:                                              ; preds = %242
  %249 = load ptr, ptr %8, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %249, i32 0, i32 6
  %251 = load i32, ptr %250, align 4, !tbaa !18
  %252 = icmp uge i32 %251, 1006
  br i1 %252, label %253, label %259

253:                                              ; preds = %248
  %254 = load ptr, ptr %8, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %254, i32 0, i32 6
  %256 = load i32, ptr %255, align 4, !tbaa !18
  %257 = icmp ult i32 %256, 1041
  br i1 %257, label %258, label %259

258:                                              ; preds = %253
  store ptr @libxsmm_generator_gemm_avx2_kloop_kernel, ptr %15, align 8, !tbaa !5
  br label %280

259:                                              ; preds = %253, %248
  %260 = load ptr, ptr %8, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %260, i32 0, i32 6
  %262 = load i32, ptr %261, align 4, !tbaa !18
  %263 = icmp uge i32 %262, 1051
  br i1 %263, label %264, label %270

264:                                              ; preds = %259
  %265 = load ptr, ptr %8, align 8, !tbaa !5
  %266 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %265, i32 0, i32 6
  %267 = load i32, ptr %266, align 4, !tbaa !18
  %268 = icmp ule i32 %267, 1999
  br i1 %268, label %269, label %270

269:                                              ; preds = %264
  store ptr @libxsmm_generator_gemm_avx512_kloop_kernel, ptr %15, align 8, !tbaa !5
  br label %279

270:                                              ; preds = %264, %259
  %271 = load ptr, ptr %8, align 8, !tbaa !5
  %272 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %273 = icmp ult i32 1, %272
  br i1 %273, label %274, label %276

274:                                              ; preds = %270
  %275 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %277

276:                                              ; preds = %270
  br label %277

277:                                              ; preds = %276, %274
  %278 = phi i32 [ %275, %274 ], [ 1, %276 ]
  call void @libxsmm_handle_error(ptr noundef %271, i32 noundef 90005, ptr noundef @__func__.libxsmm_generator_gemm_sse_avx_avx2_avx512_kloop, ptr noundef @.str, i32 noundef 1185, i32 noundef %278)
  store i32 1, ptr %27, align 4
  br label %561

279:                                              ; preds = %269
  br label %280

280:                                              ; preds = %279, %258
  br label %281

281:                                              ; preds = %280, %247
  br label %282

282:                                              ; preds = %281, %241
  br label %283

283:                                              ; preds = %282, %235
  br label %284

284:                                              ; preds = %283
  %285 = load i32, ptr %25, align 4, !tbaa !9
  %286 = icmp ugt i32 %285, 0
  br i1 %286, label %287, label %403

287:                                              ; preds = %284
  %288 = load ptr, ptr %12, align 8, !tbaa !5
  %289 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %288, i32 0, i32 6
  %290 = load i32, ptr %289, align 1, !tbaa !11
  %291 = and i32 %290, 33554432
  %292 = icmp ugt i32 %291, 0
  br i1 %292, label %293, label %403

293:                                              ; preds = %287
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #3
  %294 = load i32, ptr %13, align 4, !tbaa !9
  %295 = load ptr, ptr %11, align 8, !tbaa !5
  %296 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %295, i32 0, i32 2
  %297 = load i32, ptr %296, align 8, !tbaa !21
  %298 = urem i32 %294, %297
  %299 = icmp eq i32 %298, 0
  br i1 %299, label %300, label %306

300:                                              ; preds = %293
  %301 = load i32, ptr %13, align 4, !tbaa !9
  %302 = load ptr, ptr %11, align 8, !tbaa !5
  %303 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %302, i32 0, i32 2
  %304 = load i32, ptr %303, align 8, !tbaa !21
  %305 = udiv i32 %301, %304
  br label %313

306:                                              ; preds = %293
  %307 = load i32, ptr %13, align 4, !tbaa !9
  %308 = load ptr, ptr %11, align 8, !tbaa !5
  %309 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %308, i32 0, i32 2
  %310 = load i32, ptr %309, align 8, !tbaa !21
  %311 = udiv i32 %307, %310
  %312 = add i32 %311, 1
  br label %313

313:                                              ; preds = %306, %300
  %314 = phi i32 [ %305, %300 ], [ %312, %306 ]
  store i32 %314, ptr %28, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #3
  %315 = load ptr, ptr %8, align 8, !tbaa !5
  %316 = load ptr, ptr %11, align 8, !tbaa !5
  %317 = load ptr, ptr %10, align 8, !tbaa !5
  %318 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %317, i32 0, i32 24
  %319 = load i32, ptr %318, align 4, !tbaa !22
  call void @libxsmm_generator_gemm_getval_stack_var(ptr noundef %315, ptr noundef %316, i32 noundef 35, i32 noundef %319)
  store i32 0, ptr %29, align 4, !tbaa !9
  br label %320

320:                                              ; preds = %399, %313
  %321 = load i32, ptr %29, align 4, !tbaa !9
  %322 = load i32, ptr %28, align 4, !tbaa !9
  %323 = icmp ult i32 %321, %322
  br i1 %323, label %324, label %402

324:                                              ; preds = %320
  call void @llvm.lifetime.start.p0(i64 1, ptr %30) #3
  store i8 120, ptr %30, align 1, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #3
  %325 = load i32, ptr %29, align 4, !tbaa !9
  %326 = add i32 3, %325
  store i32 %326, ptr %31, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #3
  store i32 2, ptr %32, align 4, !tbaa !9
  %327 = load ptr, ptr %8, align 8, !tbaa !5
  %328 = load ptr, ptr %10, align 8, !tbaa !5
  %329 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %328, i32 0, i32 24
  %330 = load i32, ptr %329, align 4, !tbaa !22
  %331 = load i32, ptr %29, align 4, !tbaa !9
  %332 = load ptr, ptr %11, align 8, !tbaa !5
  %333 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %332, i32 0, i32 2
  %334 = load i32, ptr %333, align 8, !tbaa !21
  %335 = mul i32 %331, %334
  %336 = load ptr, ptr %11, align 8, !tbaa !5
  %337 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %336, i32 0, i32 4
  %338 = load i32, ptr %337, align 8, !tbaa !25
  %339 = mul i32 %335, %338
  %340 = load i8, ptr %30, align 1, !tbaa !24
  %341 = load i32, ptr %31, align 4, !tbaa !9
  %342 = load i32, ptr %29, align 4, !tbaa !9
  %343 = load i32, ptr %28, align 4, !tbaa !9
  %344 = sub i32 %343, 1
  %345 = icmp eq i32 %342, %344
  br i1 %345, label %346, label %350

346:                                              ; preds = %324
  %347 = load ptr, ptr %11, align 8, !tbaa !5
  %348 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %347, i32 0, i32 11
  %349 = load i32, ptr %348, align 4, !tbaa !26
  br label %351

350:                                              ; preds = %324
  br label %351

351:                                              ; preds = %350, %346
  %352 = phi i32 [ %349, %346 ], [ 0, %350 ]
  call void @libxsmm_x86_instruction_unified_vec_move(ptr noundef %327, i32 noundef -536406417, i32 noundef %330, i32 noundef 127, i32 noundef 0, i32 noundef %339, i8 noundef signext %340, i32 noundef %341, i32 noundef %352, i32 noundef 1, i32 noundef 0)
  %353 = load ptr, ptr %8, align 8, !tbaa !5
  %354 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %353, i32 0, i32 6
  %355 = load i32, ptr %354, align 4, !tbaa !18
  %356 = icmp uge i32 %355, 1104
  br i1 %356, label %357, label %365

357:                                              ; preds = %351
  %358 = load ptr, ptr %8, align 8, !tbaa !5
  %359 = load ptr, ptr %11, align 8, !tbaa !5
  %360 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %359, i32 0, i32 21
  %361 = load i8, ptr %360, align 4, !tbaa !27
  %362 = load i32, ptr %31, align 4, !tbaa !9
  %363 = load i32, ptr %32, align 4, !tbaa !9
  %364 = load i32, ptr %31, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_compute_3reg(ptr noundef %358, i32 noundef -268097907, i8 noundef signext %361, i32 noundef %362, i32 noundef %363, i32 noundef %364)
  br label %398

365:                                              ; preds = %351
  %366 = load ptr, ptr %8, align 8, !tbaa !5
  %367 = load ptr, ptr %11, align 8, !tbaa !5
  %368 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %367, i32 0, i32 21
  %369 = load i8, ptr %368, align 4, !tbaa !27
  %370 = load i32, ptr %31, align 4, !tbaa !9
  %371 = load i32, ptr %31, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_compute_2reg(ptr noundef %366, i32 noundef 537207857, i8 noundef signext %369, i32 noundef %370, i32 noundef %371)
  %372 = load ptr, ptr %8, align 8, !tbaa !5
  %373 = load ptr, ptr %11, align 8, !tbaa !5
  %374 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %373, i32 0, i32 21
  %375 = load i8, ptr %374, align 4, !tbaa !27
  %376 = load i32, ptr %31, align 4, !tbaa !9
  %377 = load i32, ptr %32, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_compute_2reg_imm8(ptr noundef %372, i32 noundef 611128946, i8 noundef signext %375, i32 noundef %376, i32 noundef %377, i32 noundef 8)
  %378 = load ptr, ptr %8, align 8, !tbaa !5
  %379 = load ptr, ptr %11, align 8, !tbaa !5
  %380 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %379, i32 0, i32 21
  %381 = load i8, ptr %380, align 4, !tbaa !27
  %382 = load i32, ptr %32, align 4, !tbaa !9
  %383 = load i32, ptr %31, align 4, !tbaa !9
  %384 = load i32, ptr %31, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_compute_3reg(ptr noundef %378, i32 noundef 805639915, i8 noundef signext %381, i32 noundef %382, i32 noundef %383, i32 noundef %384)
  %385 = load ptr, ptr %8, align 8, !tbaa !5
  %386 = load ptr, ptr %11, align 8, !tbaa !5
  %387 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %386, i32 0, i32 21
  %388 = load i8, ptr %387, align 4, !tbaa !27
  %389 = load i32, ptr %31, align 4, !tbaa !9
  %390 = load i32, ptr %32, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_compute_2reg_imm8(ptr noundef %385, i32 noundef 611128946, i8 noundef signext %388, i32 noundef %389, i32 noundef %390, i32 noundef 16)
  %391 = load ptr, ptr %8, align 8, !tbaa !5
  %392 = load ptr, ptr %11, align 8, !tbaa !5
  %393 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %392, i32 0, i32 21
  %394 = load i8, ptr %393, align 4, !tbaa !27
  %395 = load i32, ptr %32, align 4, !tbaa !9
  %396 = load i32, ptr %31, align 4, !tbaa !9
  %397 = load i32, ptr %31, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_compute_3reg(ptr noundef %391, i32 noundef 805639915, i8 noundef signext %394, i32 noundef %395, i32 noundef %396, i32 noundef %397)
  br label %398

398:                                              ; preds = %365, %357
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #3
  br label %399

399:                                              ; preds = %398
  %400 = load i32, ptr %29, align 4, !tbaa !9
  %401 = add i32 %400, 1
  store i32 %401, ptr %29, align 4, !tbaa !9
  br label %320, !llvm.loop !28

402:                                              ; preds = %320
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #3
  br label %403

403:                                              ; preds = %402, %287, %284
  %404 = load i32, ptr %20, align 4, !tbaa !9
  %405 = icmp ugt i32 %404, 0
  br i1 %405, label %406, label %414

406:                                              ; preds = %403
  %407 = load i32, ptr %22, align 4, !tbaa !9
  %408 = icmp eq i32 %407, 0
  br i1 %408, label %409, label %414

409:                                              ; preds = %406
  %410 = load ptr, ptr %8, align 8, !tbaa !5
  %411 = load ptr, ptr %10, align 8, !tbaa !5
  %412 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %411, i32 0, i32 24
  %413 = load i32, ptr %412, align 4, !tbaa !22
  call void @libxsmm_generator_vcvtneps2bf16_avx512_prep_stack(ptr noundef %410, i32 noundef %413)
  br label %414

414:                                              ; preds = %409, %406, %403
  %415 = load ptr, ptr %12, align 8, !tbaa !5
  %416 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %415, i32 0, i32 2
  %417 = load i32, ptr %416, align 1, !tbaa !20
  %418 = load i32, ptr %16, align 4, !tbaa !9
  %419 = urem i32 %417, %418
  %420 = icmp eq i32 %419, 0
  br i1 %420, label %421, label %451

421:                                              ; preds = %414
  %422 = load i32, ptr %17, align 4, !tbaa !9
  %423 = load ptr, ptr %12, align 8, !tbaa !5
  %424 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %423, i32 0, i32 2
  %425 = load i32, ptr %424, align 1, !tbaa !20
  %426 = icmp ult i32 %422, %425
  br i1 %426, label %427, label %451

427:                                              ; preds = %421
  %428 = load ptr, ptr %8, align 8, !tbaa !5
  %429 = load ptr, ptr %9, align 8, !tbaa !5
  %430 = load ptr, ptr %10, align 8, !tbaa !5
  %431 = load ptr, ptr %11, align 8, !tbaa !5
  %432 = load i32, ptr %13, align 4, !tbaa !9
  %433 = load i32, ptr %16, align 4, !tbaa !9
  call void @libxsmm_generator_gemm_header_kloop(ptr noundef %428, ptr noundef %429, ptr noundef %430, ptr noundef %431, i32 noundef %432, i32 noundef %433)
  %434 = load ptr, ptr %15, align 8, !tbaa !5
  %435 = load ptr, ptr %8, align 8, !tbaa !5
  %436 = load ptr, ptr %10, align 8, !tbaa !5
  %437 = load ptr, ptr %11, align 8, !tbaa !5
  %438 = load ptr, ptr %12, align 8, !tbaa !5
  %439 = load i32, ptr %13, align 4, !tbaa !9
  %440 = load i32, ptr %14, align 4, !tbaa !9
  %441 = load i32, ptr %16, align 4, !tbaa !9
  call void %434(ptr noundef %435, ptr noundef %436, ptr noundef %437, ptr noundef %438, i32 noundef %439, i32 noundef %440, i32 noundef %441)
  %442 = load ptr, ptr %8, align 8, !tbaa !5
  %443 = load ptr, ptr %9, align 8, !tbaa !5
  %444 = load ptr, ptr %10, align 8, !tbaa !5
  %445 = load ptr, ptr %11, align 8, !tbaa !5
  %446 = load ptr, ptr %12, align 8, !tbaa !5
  %447 = load i32, ptr %13, align 4, !tbaa !9
  %448 = load ptr, ptr %12, align 8, !tbaa !5
  %449 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %448, i32 0, i32 2
  %450 = load i32, ptr %449, align 1, !tbaa !20
  call void @libxsmm_generator_gemm_footer_kloop(ptr noundef %442, ptr noundef %443, ptr noundef %444, ptr noundef %445, ptr noundef %446, i32 noundef %447, i32 noundef %450, i32 noundef 1)
  br label %549

451:                                              ; preds = %421, %414
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #3
  store i32 0, ptr %33, align 4, !tbaa !9
  %452 = load ptr, ptr %12, align 8, !tbaa !5
  %453 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %452, i32 0, i32 2
  %454 = load i32, ptr %453, align 1, !tbaa !20
  %455 = load i32, ptr %17, align 4, !tbaa !9
  %456 = icmp ule i32 %454, %455
  br i1 %456, label %457, label %468

457:                                              ; preds = %451
  %458 = load ptr, ptr %15, align 8, !tbaa !5
  %459 = load ptr, ptr %8, align 8, !tbaa !5
  %460 = load ptr, ptr %10, align 8, !tbaa !5
  %461 = load ptr, ptr %11, align 8, !tbaa !5
  %462 = load ptr, ptr %12, align 8, !tbaa !5
  %463 = load i32, ptr %13, align 4, !tbaa !9
  %464 = load i32, ptr %14, align 4, !tbaa !9
  %465 = load ptr, ptr %12, align 8, !tbaa !5
  %466 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %465, i32 0, i32 2
  %467 = load i32, ptr %466, align 1, !tbaa !20
  call void %458(ptr noundef %459, ptr noundef %460, ptr noundef %461, ptr noundef %462, i32 noundef %463, i32 noundef %464, i32 noundef %467)
  br label %513

468:                                              ; preds = %451
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #3
  %469 = load ptr, ptr %12, align 8, !tbaa !5
  %470 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %469, i32 0, i32 2
  %471 = load i32, ptr %470, align 1, !tbaa !20
  %472 = load i32, ptr %16, align 4, !tbaa !9
  %473 = udiv i32 %471, %472
  %474 = load i32, ptr %16, align 4, !tbaa !9
  %475 = mul i32 %473, %474
  store i32 %475, ptr %34, align 4, !tbaa !9
  %476 = load i32, ptr %34, align 4, !tbaa !9
  %477 = icmp ugt i32 %476, 0
  br i1 %477, label %478, label %500

478:                                              ; preds = %468
  %479 = load ptr, ptr %8, align 8, !tbaa !5
  %480 = load ptr, ptr %9, align 8, !tbaa !5
  %481 = load ptr, ptr %10, align 8, !tbaa !5
  %482 = load ptr, ptr %11, align 8, !tbaa !5
  %483 = load i32, ptr %13, align 4, !tbaa !9
  %484 = load i32, ptr %16, align 4, !tbaa !9
  call void @libxsmm_generator_gemm_header_kloop(ptr noundef %479, ptr noundef %480, ptr noundef %481, ptr noundef %482, i32 noundef %483, i32 noundef %484)
  %485 = load ptr, ptr %15, align 8, !tbaa !5
  %486 = load ptr, ptr %8, align 8, !tbaa !5
  %487 = load ptr, ptr %10, align 8, !tbaa !5
  %488 = load ptr, ptr %11, align 8, !tbaa !5
  %489 = load ptr, ptr %12, align 8, !tbaa !5
  %490 = load i32, ptr %13, align 4, !tbaa !9
  %491 = load i32, ptr %14, align 4, !tbaa !9
  %492 = load i32, ptr %16, align 4, !tbaa !9
  call void %485(ptr noundef %486, ptr noundef %487, ptr noundef %488, ptr noundef %489, i32 noundef %490, i32 noundef %491, i32 noundef %492)
  %493 = load ptr, ptr %8, align 8, !tbaa !5
  %494 = load ptr, ptr %9, align 8, !tbaa !5
  %495 = load ptr, ptr %10, align 8, !tbaa !5
  %496 = load ptr, ptr %11, align 8, !tbaa !5
  %497 = load ptr, ptr %12, align 8, !tbaa !5
  %498 = load i32, ptr %13, align 4, !tbaa !9
  %499 = load i32, ptr %34, align 4, !tbaa !9
  call void @libxsmm_generator_gemm_footer_kloop(ptr noundef %493, ptr noundef %494, ptr noundef %495, ptr noundef %496, ptr noundef %497, i32 noundef %498, i32 noundef %499, i32 noundef 0)
  br label %500

500:                                              ; preds = %478, %468
  %501 = load ptr, ptr %15, align 8, !tbaa !5
  %502 = load ptr, ptr %8, align 8, !tbaa !5
  %503 = load ptr, ptr %10, align 8, !tbaa !5
  %504 = load ptr, ptr %11, align 8, !tbaa !5
  %505 = load ptr, ptr %12, align 8, !tbaa !5
  %506 = load i32, ptr %13, align 4, !tbaa !9
  %507 = load i32, ptr %14, align 4, !tbaa !9
  %508 = load ptr, ptr %12, align 8, !tbaa !5
  %509 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %508, i32 0, i32 2
  %510 = load i32, ptr %509, align 1, !tbaa !20
  %511 = load i32, ptr %34, align 4, !tbaa !9
  %512 = sub i32 %510, %511
  call void %501(ptr noundef %502, ptr noundef %503, ptr noundef %504, ptr noundef %505, i32 noundef %506, i32 noundef %507, i32 noundef %512)
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #3
  br label %513

513:                                              ; preds = %500, %457
  %514 = load ptr, ptr %12, align 8, !tbaa !5
  %515 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %514, i32 0, i32 6
  %516 = load i32, ptr %515, align 1, !tbaa !11
  %517 = and i32 %516, 2
  %518 = icmp ugt i32 %517, 0
  br i1 %518, label %519, label %531

519:                                              ; preds = %513
  %520 = load ptr, ptr %12, align 8, !tbaa !5
  %521 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %520, i32 0, i32 4
  %522 = load i32, ptr %521, align 1, !tbaa !30
  %523 = load ptr, ptr %12, align 8, !tbaa !5
  %524 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %523, i32 0, i32 2
  %525 = load i32, ptr %524, align 1, !tbaa !20
  %526 = mul i32 %522, %525
  %527 = load ptr, ptr %11, align 8, !tbaa !5
  %528 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %527, i32 0, i32 4
  %529 = load i32, ptr %528, align 8, !tbaa !25
  %530 = mul i32 %526, %529
  store i32 %530, ptr %33, align 4, !tbaa !9
  br label %539

531:                                              ; preds = %513
  %532 = load ptr, ptr %12, align 8, !tbaa !5
  %533 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %532, i32 0, i32 2
  %534 = load i32, ptr %533, align 1, !tbaa !20
  %535 = load ptr, ptr %11, align 8, !tbaa !5
  %536 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %535, i32 0, i32 4
  %537 = load i32, ptr %536, align 8, !tbaa !25
  %538 = mul i32 %534, %537
  store i32 %538, ptr %33, align 4, !tbaa !9
  br label %539

539:                                              ; preds = %531, %519
  %540 = load ptr, ptr %8, align 8, !tbaa !5
  %541 = load ptr, ptr %11, align 8, !tbaa !5
  %542 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %541, i32 0, i32 17
  %543 = load i32, ptr %542, align 4, !tbaa !31
  %544 = load ptr, ptr %10, align 8, !tbaa !5
  %545 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %544, i32 0, i32 3
  %546 = load i32, ptr %545, align 4, !tbaa !32
  %547 = load i32, ptr %33, align 4, !tbaa !9
  %548 = sext i32 %547 to i64
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %540, i32 noundef %543, i32 noundef %546, i64 noundef %548)
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #3
  br label %549

549:                                              ; preds = %539, %427
  %550 = load i32, ptr %20, align 4, !tbaa !9
  %551 = icmp ugt i32 %550, 0
  br i1 %551, label %552, label %560

552:                                              ; preds = %549
  %553 = load i32, ptr %22, align 4, !tbaa !9
  %554 = icmp eq i32 %553, 0
  br i1 %554, label %555, label %560

555:                                              ; preds = %552
  %556 = load ptr, ptr %8, align 8, !tbaa !5
  %557 = load ptr, ptr %10, align 8, !tbaa !5
  %558 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %557, i32 0, i32 24
  %559 = load i32, ptr %558, align 4, !tbaa !22
  call void @libxsmm_generator_vcvtneps2bf16_avx512_clean_stack(ptr noundef %556, i32 noundef %559)
  br label %560

560:                                              ; preds = %555, %552, %549
  store i32 0, ptr %27, align 4
  br label %561

561:                                              ; preds = %560, %277, %224, %193
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #3
  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
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  %562 = load i32, ptr %27, align 4
  switch i32 %562, label %564 [
    i32 0, label %563
    i32 1, label %563
  ]

563:                                              ; preds = %561, %561
  ret void

564:                                              ; preds = %561
  unreachable
}

declare i32 @libxsmm_cpuid_dot_pack_factor(i32 noundef) #1

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

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

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

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

declare void @libxsmm_x86_instruction_unified_vec_move(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i8 noundef signext, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1

declare void @libxsmm_x86_instruction_vec_compute_3reg(ptr noundef, i32 noundef, i8 noundef signext, i32 noundef, i32 noundef, i32 noundef) #1

declare void @libxsmm_x86_instruction_vec_compute_2reg_imm8(ptr noundef, i32 noundef, i8 noundef signext, i32 noundef, i32 noundef, i32 noundef) #1

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

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

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

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

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 24}
!12 = !{!"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, !13, i64 33, !13, 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}
!13 = !{!"long long", !7, i64 0}
!14 = !{!"short", !7, i64 0}
!15 = !{!16, !10, i64 56}
!16 = !{!"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, !17, 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}
!17 = !{!"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}
!18 = !{!19, !10, i64 28}
!19 = !{!"libxsmm_generated_code", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28}
!20 = !{!12, !10, i64 8}
!21 = !{!16, !10, i64 8}
!22 = !{!23, !10, i64 96}
!23 = !{!"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}
!24 = !{!7, !7, i64 0}
!25 = !{!16, !10, i64 16}
!26 = !{!16, !10, i64 44}
!27 = !{!16, !7, i64 84}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = !{!12, !10, i64 16}
!31 = !{!16, !10, i64 68}
!32 = !{!23, !10, i64 12}


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

@.str = external hidden unnamed_addr constant [90 x i8], align 1
@libxsmm_ninit = external local_unnamed_addr global i32, align 4
@libxsmm_verbosity = external local_unnamed_addr global i32, align 4
@__func__.libxsmm_generator_gemm_sse_avx_avx2_avx512_kloop = external hidden unnamed_addr constant [49 x i8], align 1

declare i32 @libxsmm_x86_is_Amxfp4_Bfp32_gemm(ptr noundef) local_unnamed_addr #0

declare i32 @libxsmm_x86_is_Amxfp4_Bi8_gemm(ptr noundef) local_unnamed_addr #0

declare i32 @libxsmm_x86_is_Amxfp4_Bbf16_gemm(ptr noundef) local_unnamed_addr #0

declare i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef) local_unnamed_addr #0

declare i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef) local_unnamed_addr #0

declare i32 @LIBXSMM_GEMM_GETENUM_A_PREC(ptr noundef) local_unnamed_addr #0

declare i32 @LIBXSMM_GEMM_GETENUM_B_PREC(ptr noundef) local_unnamed_addr #0

declare i32 @libxsmm_x86_is_Ai4_Bi8_gemm(ptr noundef) local_unnamed_addr #0

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

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

declare void @libxsmm_x86_instruction_vec_compute_2reg(ptr noundef, i32 noundef, i8 noundef signext, i32 noundef, i32 noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_gemm_sse_avx_avx2_avx512_kloop(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %5, i32 noundef %6) local_unnamed_addr #1 {
  %8 = tail call i32 @libxsmm_x86_is_Amxfp4_Bbf16_gemm(ptr noundef %4) #2
  %9 = getelementptr inbounds i8, ptr %4, i64 29
  %10 = tail call i32 @LIBXSMM_GEMM_GETENUM_A_PREC(ptr noundef nonnull %9) #2
  %11 = icmp eq i32 %10, 12
  %12 = icmp eq i32 %8, 0
  %or.cond = select i1 %11, i1 %12, i1 false
  br i1 %or.cond, label %13, label %16

13:                                               ; preds = %7
  %14 = tail call i32 @LIBXSMM_GEMM_GETENUM_B_PREC(ptr noundef nonnull %9) #2
  %15 = icmp eq i32 %14, 2
  br label %16

16:                                               ; preds = %13, %7
  %17 = phi i1 [ false, %7 ], [ %15, %13 ]
  %18 = getelementptr inbounds i8, ptr %4, i64 24
  %19 = load i32, ptr %18, align 1, !tbaa !5
  %20 = and i32 %19, 2097152
  %.not = icmp eq i32 %20, 0
  br i1 %.not, label %33, label %21

21:                                               ; preds = %16
  %22 = tail call i32 @LIBXSMM_GEMM_GETENUM_A_PREC(ptr noundef nonnull %9) #2
  %23 = icmp eq i32 %22, 12
  br i1 %23, label %24, label %33

24:                                               ; preds = %21
  %25 = tail call i32 @LIBXSMM_GEMM_GETENUM_B_PREC(ptr noundef nonnull %9) #2
  %26 = icmp eq i32 %25, 3
  br i1 %26, label %27, label %33

27:                                               ; preds = %24
  %28 = tail call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef nonnull %9) #2
  %29 = icmp eq i32 %28, 3
  br i1 %29, label %33, label %30

30:                                               ; preds = %27
  %31 = tail call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef nonnull %9) #2
  %32 = icmp eq i32 %31, 1
  br label %33

33:                                               ; preds = %21, %24, %30, %27, %16
  %34 = phi i1 [ false, %16 ], [ false, %24 ], [ false, %21 ], [ true, %27 ], [ %32, %30 ]
  %35 = getelementptr inbounds i8, ptr %3, i64 56
  %36 = load i32, ptr %35, align 8, !tbaa !12
  %37 = icmp ne i32 %36, -268032430
  %38 = tail call i32 @libxsmm_x86_is_Amxfp4_Bfp32_gemm(ptr noundef nonnull %4) #2
  %39 = tail call i32 @libxsmm_x86_is_Amxfp4_Bi8_gemm(ptr noundef nonnull %4) #2
  %40 = tail call i32 @libxsmm_x86_is_Ai4_Bi8_gemm(ptr noundef nonnull %4) #2
  %41 = tail call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef nonnull %9) #2
  %42 = icmp eq i32 %41, 12
  %.pre = load i32, ptr %18, align 1, !tbaa !5
  br i1 %42, label %43, label %45

43:                                               ; preds = %33
  %44 = and i32 %.pre, 768
  %or.cond224 = icmp eq i32 %44, 0
  %spec.select240 = icmp eq i32 %44, 768
  %spec.select244 = or i1 %or.cond224, %spec.select240
  br label %45

45:                                               ; preds = %43, %33
  %46 = phi i1 [ false, %33 ], [ %spec.select244, %43 ]
  %47 = and i32 %.pre, 2048
  %.not217 = icmp eq i32 %47, 0
  br i1 %.not217, label %54, label %48

48:                                               ; preds = %45
  %49 = tail call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef nonnull %9) #2
  %50 = tail call i32 @libxsmm_cpuid_dot_pack_factor(i32 noundef %49) #2
  %51 = shl i32 %50, 2
  %52 = mul i32 %50, 24
  %53 = add i32 %52, -1
  br label %54

54:                                               ; preds = %48, %45
  %.0203 = phi i32 [ %53, %48 ], [ 23, %45 ]
  %.0202 = phi i32 [ %51, %48 ], [ 4, %45 ]
  br i1 %46, label %55, label %59

55:                                               ; preds = %54
  %56 = getelementptr inbounds i8, ptr %0, i64 28
  %57 = load i32, ptr %56, align 4, !tbaa !16
  switch i32 %57, label %59 [
    i32 1101, label %58
    i32 1051, label %58
  ]

58:                                               ; preds = %55, %55
  br label %59

59:                                               ; preds = %55, %58, %54
  %.1204 = phi i32 [ 23, %58 ], [ %.0203, %54 ], [ %.0203, %55 ]
  %.1 = phi i32 [ 8, %58 ], [ %.0202, %54 ], [ %.0202, %55 ]
  %. = select i1 %37, i32 5, i32 13
  %.225 = select i1 %37, i32 2, i32 4
  %.2205 = select i1 %17, i32 %., i32 %.1204
  %.2 = select i1 %17, i32 %.225, i32 %.1
  %60 = icmp ult i32 %.2205, %.2
  br i1 %60, label %61, label %66

61:                                               ; preds = %59
  %62 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !18
  %63 = icmp ugt i32 %62, 1
  %64 = load i32, ptr @libxsmm_verbosity, align 4
  %65 = select i1 %63, i32 %64, i32 1
  tail call void @libxsmm_handle_error(ptr noundef %0, i32 noundef 90018, ptr noundef nonnull @__func__.libxsmm_generator_gemm_sse_avx_avx2_avx512_kloop, ptr noundef nonnull @.str, i32 noundef 1156, i32 noundef %65) #2
  br label %182

66:                                               ; preds = %59
  %spec.select = select i1 %34, i32 8, i32 %.2205
  %spec.select226 = select i1 %34, i32 4, i32 %.2
  %67 = icmp ne i32 %38, 0
  %68 = icmp ne i32 %8, 0
  %or.cond3 = select i1 %67, i1 true, i1 %68
  %69 = icmp ne i32 %39, 0
  %or.cond5 = select i1 %or.cond3, i1 true, i1 %69
  br i1 %or.cond5, label %70, label %.thread

70:                                               ; preds = %66
  %71 = getelementptr inbounds i8, ptr %4, i64 8
  %72 = load i32, ptr %71, align 1, !tbaa !19
  %73 = getelementptr inbounds i8, ptr %0, i64 28
  %74 = load i32, ptr %73, align 4, !tbaa !16
  %75 = icmp eq i32 %74, 0
  br i1 %75, label %79, label %96

.thread:                                          ; preds = %66
  %76 = getelementptr inbounds i8, ptr %0, i64 28
  %77 = load i32, ptr %76, align 4, !tbaa !16
  %78 = icmp eq i32 %77, 0
  br i1 %78, label %79, label %.thread233

79:                                               ; preds = %.thread, %70
  %80 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !18
  %81 = icmp ugt i32 %80, 1
  %82 = load i32, ptr @libxsmm_verbosity, align 4
  %83 = select i1 %81, i32 %82, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90005, ptr noundef nonnull @__func__.libxsmm_generator_gemm_sse_avx_avx2_avx512_kloop, ptr noundef nonnull @.str, i32 noundef 1172, i32 noundef %83) #2
  br label %182

.thread233:                                       ; preds = %.thread
  %84 = icmp ult i32 %77, 1005
  br i1 %84, label %96, label %85

85:                                               ; preds = %.thread233
  %86 = icmp eq i32 %77, 1005
  br i1 %86, label %96, label %87

87:                                               ; preds = %85
  %88 = icmp ult i32 %77, 1041
  br i1 %88, label %96, label %89

89:                                               ; preds = %87
  %90 = add i32 %77, -1051
  %or.cond227 = icmp ult i32 %90, 949
  br i1 %or.cond227, label %96, label %91

91:                                               ; preds = %89
  %92 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !18
  %93 = icmp ugt i32 %92, 1
  %94 = load i32, ptr @libxsmm_verbosity, align 4
  %95 = select i1 %93, i32 %94, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90005, ptr noundef nonnull @__func__.libxsmm_generator_gemm_sse_avx_avx2_avx512_kloop, ptr noundef nonnull @.str, i32 noundef 1185, i32 noundef %95) #2
  br label %182

96:                                               ; preds = %70, %89, %87, %85, %.thread233
  %.4207231239 = phi i32 [ %spec.select, %.thread233 ], [ %spec.select, %85 ], [ %spec.select, %87 ], [ %spec.select, %89 ], [ %72, %70 ]
  %.4232237 = phi i32 [ %spec.select226, %.thread233 ], [ %spec.select226, %85 ], [ %spec.select226, %87 ], [ %spec.select226, %89 ], [ 32, %70 ]
  %97 = phi ptr [ %76, %.thread233 ], [ %76, %85 ], [ %76, %87 ], [ %76, %89 ], [ %73, %70 ]
  %.0 = phi ptr [ @libxsmm_generator_gemm_sse_kloop_kernel, %.thread233 ], [ @libxsmm_generator_gemm_avx_kloop_kernel, %85 ], [ @libxsmm_generator_gemm_avx2_kloop_kernel, %87 ], [ @libxsmm_generator_gemm_avx512_kloop_kernel, %89 ], [ @libxsmm_generator_gemm_avx2_kloop_kernel, %70 ]
  %.not218 = icmp eq i32 %40, 0
  br i1 %.not218, label %.loopexit, label %98

98:                                               ; preds = %96
  %99 = load i32, ptr %18, align 1, !tbaa !5
  %100 = and i32 %99, 33554432
  %.not219 = icmp eq i32 %100, 0
  br i1 %.not219, label %.loopexit, label %101

101:                                              ; preds = %98
  %102 = getelementptr inbounds i8, ptr %3, i64 8
  %103 = load i32, ptr %102, align 8, !tbaa !20
  %104 = urem i32 %5, %103
  %105 = icmp ne i32 %104, 0
  %106 = udiv i32 %5, %103
  %107 = zext i1 %105 to i32
  %108 = add i32 %106, %107
  %109 = getelementptr inbounds i8, ptr %2, i64 96
  %110 = load i32, ptr %109, align 4, !tbaa !21
  tail call void @libxsmm_generator_gemm_getval_stack_var(ptr noundef nonnull %0, ptr noundef nonnull %3, i32 noundef 35, i32 noundef %110) #2
  %.not242 = icmp eq i32 %108, 0
  br i1 %.not242, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %101
  %111 = getelementptr inbounds i8, ptr %3, i64 16
  %112 = add i32 %108, -1
  %113 = getelementptr inbounds i8, ptr %3, i64 44
  %114 = getelementptr inbounds i8, ptr %3, i64 84
  br label %115

115:                                              ; preds = %.lr.ph, %136
  %.0208241 = phi i32 [ 0, %.lr.ph ], [ %137, %136 ]
  %116 = add i32 %.0208241, 3
  %117 = load i32, ptr %109, align 4, !tbaa !21
  %118 = load i32, ptr %102, align 8, !tbaa !20
  %119 = mul i32 %118, %.0208241
  %120 = load i32, ptr %111, align 8, !tbaa !23
  %121 = mul i32 %119, %120
  %122 = icmp eq i32 %.0208241, %112
  br i1 %122, label %123, label %125

123:                                              ; preds = %115
  %124 = load i32, ptr %113, align 4, !tbaa !24
  br label %125

125:                                              ; preds = %115, %123
  %126 = phi i32 [ %124, %123 ], [ 0, %115 ]
  tail call void @libxsmm_x86_instruction_unified_vec_move(ptr noundef %0, i32 noundef -536406417, i32 noundef %117, i32 noundef 127, i32 noundef 0, i32 noundef %121, i8 noundef signext 120, i32 noundef %116, i32 noundef %126, i32 noundef 1, i32 noundef 0) #2
  %127 = load i32, ptr %97, align 4, !tbaa !16
  %128 = icmp ugt i32 %127, 1103
  %129 = load i8, ptr %114, align 4, !tbaa !25
  br i1 %128, label %130, label %131

130:                                              ; preds = %125
  tail call void @libxsmm_x86_instruction_vec_compute_3reg(ptr noundef %0, i32 noundef -268097907, i8 noundef signext %129, i32 noundef %116, i32 noundef 2, i32 noundef %116) #2
  br label %136

131:                                              ; preds = %125
  tail call void @libxsmm_x86_instruction_vec_compute_2reg(ptr noundef %0, i32 noundef 537207857, i8 noundef signext %129, i32 noundef %116, i32 noundef %116) #2
  %132 = load i8, ptr %114, align 4, !tbaa !25
  tail call void @libxsmm_x86_instruction_vec_compute_2reg_imm8(ptr noundef %0, i32 noundef 611128946, i8 noundef signext %132, i32 noundef %116, i32 noundef 2, i32 noundef 8) #2
  %133 = load i8, ptr %114, align 4, !tbaa !25
  tail call void @libxsmm_x86_instruction_vec_compute_3reg(ptr noundef %0, i32 noundef 805639915, i8 noundef signext %133, i32 noundef 2, i32 noundef %116, i32 noundef %116) #2
  %134 = load i8, ptr %114, align 4, !tbaa !25
  tail call void @libxsmm_x86_instruction_vec_compute_2reg_imm8(ptr noundef %0, i32 noundef 611128946, i8 noundef signext %134, i32 noundef %116, i32 noundef 2, i32 noundef 16) #2
  %135 = load i8, ptr %114, align 4, !tbaa !25
  tail call void @libxsmm_x86_instruction_vec_compute_3reg(ptr noundef %0, i32 noundef 805639915, i8 noundef signext %135, i32 noundef 2, i32 noundef %116, i32 noundef %116) #2
  br label %136

136:                                              ; preds = %131, %130
  %137 = add nuw i32 %.0208241, 1
  %exitcond.not = icmp eq i32 %137, %108
  br i1 %exitcond.not, label %.loopexit, label %115, !llvm.loop !26

.loopexit:                                        ; preds = %136, %101, %98, %96
  %or.cond11 = select i1 %17, i1 %37, i1 false
  br i1 %or.cond11, label %138, label %141

138:                                              ; preds = %.loopexit
  %139 = getelementptr inbounds i8, ptr %2, i64 96
  %140 = load i32, ptr %139, align 4, !tbaa !21
  tail call void @libxsmm_generator_vcvtneps2bf16_avx512_prep_stack(ptr noundef %0, i32 noundef %140) #2
  br label %141

141:                                              ; preds = %138, %.loopexit
  %142 = getelementptr inbounds i8, ptr %4, i64 8
  %143 = load i32, ptr %142, align 1, !tbaa !19
  %.fr = freeze i32 %143
  %144 = urem i32 %.fr, %.4232237
  %145 = icmp eq i32 %144, 0
  %146 = icmp ult i32 %.4207231239, %.fr
  %or.cond228 = select i1 %145, i1 %146, i1 false
  br i1 %or.cond228, label %147, label %149

147:                                              ; preds = %141
  tail call void @libxsmm_generator_gemm_header_kloop(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef nonnull %3, i32 noundef %5, i32 noundef %.4232237) #2
  tail call void %.0(ptr noundef %0, ptr noundef %2, ptr noundef nonnull %3, ptr noundef nonnull %4, i32 noundef %5, i32 noundef %6, i32 noundef %.4232237) #2, !callees !28
  %148 = load i32, ptr %142, align 1, !tbaa !19
  tail call void @libxsmm_generator_gemm_footer_kloop(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef nonnull %3, ptr noundef nonnull %4, i32 noundef %5, i32 noundef %148, i32 noundef 1) #2
  br label %178

149:                                              ; preds = %141
  br i1 %146, label %150, label %156

150:                                              ; preds = %149
  %151 = sub nuw i32 %.fr, %144
  %.not221 = icmp eq i32 %.fr, %144
  br i1 %.not221, label %153, label %152

152:                                              ; preds = %150
  tail call void @libxsmm_generator_gemm_header_kloop(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef nonnull %3, i32 noundef %5, i32 noundef %.4232237) #2
  tail call void %.0(ptr noundef %0, ptr noundef %2, ptr noundef nonnull %3, ptr noundef nonnull %4, i32 noundef %5, i32 noundef %6, i32 noundef %.4232237) #2, !callees !28
  tail call void @libxsmm_generator_gemm_footer_kloop(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef nonnull %3, ptr noundef nonnull %4, i32 noundef %5, i32 noundef %151, i32 noundef 0) #2
  %.pre243 = load i32, ptr %142, align 1, !tbaa !19
  br label %153

153:                                              ; preds = %152, %150
  %154 = phi i32 [ %.pre243, %152 ], [ %.fr, %150 ]
  %155 = sub i32 %154, %151
  br label %156

156:                                              ; preds = %149, %153
  %.sink = phi i32 [ %155, %153 ], [ %.fr, %149 ]
  tail call void %.0(ptr noundef %0, ptr noundef %2, ptr noundef nonnull %3, ptr noundef nonnull %4, i32 noundef %5, i32 noundef %6, i32 noundef %.sink) #2
  %157 = load i32, ptr %18, align 1, !tbaa !5
  %158 = and i32 %157, 2
  %.not222 = icmp eq i32 %158, 0
  br i1 %.not222, label %167, label %159

159:                                              ; preds = %156
  %160 = getelementptr inbounds i8, ptr %4, i64 16
  %161 = load i32, ptr %160, align 1, !tbaa !29
  %162 = load i32, ptr %142, align 1, !tbaa !19
  %163 = mul i32 %162, %161
  %164 = getelementptr inbounds i8, ptr %3, i64 16
  %165 = load i32, ptr %164, align 8, !tbaa !23
  %166 = mul i32 %163, %165
  br label %172

167:                                              ; preds = %156
  %168 = load i32, ptr %142, align 1, !tbaa !19
  %169 = getelementptr inbounds i8, ptr %3, i64 16
  %170 = load i32, ptr %169, align 8, !tbaa !23
  %171 = mul i32 %170, %168
  br label %172

172:                                              ; preds = %167, %159
  %.0201 = phi i32 [ %166, %159 ], [ %171, %167 ]
  %173 = getelementptr inbounds i8, ptr %3, i64 68
  %174 = load i32, ptr %173, align 4, !tbaa !30
  %175 = getelementptr inbounds i8, ptr %2, i64 12
  %176 = load i32, ptr %175, align 4, !tbaa !31
  %177 = sext i32 %.0201 to i64
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef %174, i32 noundef %176, i64 noundef %177) #2
  br label %178

178:                                              ; preds = %172, %147
  br i1 %or.cond11, label %179, label %182

179:                                              ; preds = %178
  %180 = getelementptr inbounds i8, ptr %2, i64 96
  %181 = load i32, ptr %180, align 4, !tbaa !21
  tail call void @libxsmm_generator_vcvtneps2bf16_avx512_clean_stack(ptr noundef %0, i32 noundef %181) #2
  br label %182

182:                                              ; preds = %178, %179, %91, %79, %61
  ret void
}

declare i32 @libxsmm_cpuid_dot_pack_factor(i32 noundef) local_unnamed_addr #0

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

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

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

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

declare void @libxsmm_x86_instruction_unified_vec_move(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i8 noundef signext, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

declare void @libxsmm_x86_instruction_vec_compute_3reg(ptr noundef, i32 noundef, i8 noundef signext, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

declare void @libxsmm_x86_instruction_vec_compute_2reg_imm8(ptr noundef, i32 noundef, i8 noundef signext, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

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

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

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

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

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 24}
!6 = !{!"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, !10, i64 33, !10, 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}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long long", !8, i64 0}
!11 = !{!"short", !8, i64 0}
!12 = !{!13, !7, i64 56}
!13 = !{!"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, !14, 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, !15, i64 592, !7, i64 600, !7, i64 604, !7, i64 608, !7, i64 612, !15, 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}
!14 = !{!"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}
!15 = !{!"any pointer", !8, i64 0}
!16 = !{!17, !7, i64 28}
!17 = !{!"libxsmm_generated_code", !15, i64 0, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28}
!18 = !{!7, !7, i64 0}
!19 = !{!6, !7, i64 8}
!20 = !{!13, !7, i64 8}
!21 = !{!22, !7, i64 96}
!22 = !{!"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}
!23 = !{!13, !7, i64 16}
!24 = !{!13, !7, i64 44}
!25 = !{!13, !8, i64 84}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{ptr @libxsmm_generator_gemm_avx2_kloop_kernel, ptr @libxsmm_generator_gemm_avx512_kloop_kernel, ptr @libxsmm_generator_gemm_avx_kloop_kernel, ptr @libxsmm_generator_gemm_sse_kloop_kernel}
!29 = !{!6, !7, i64 16}
!30 = !{!13, !7, i64 68}
!31 = !{!22, !7, i64 12}


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