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

; 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_generated_code = type { ptr, i32, i32, i32, i32, i32, i32 }

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_gemm_avx512_kloop_kernel(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) #0 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %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
  %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 ptr, align 8
  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 i32 %4, ptr %12, align 4, !tbaa !9
  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 4, ptr %15) #3
  store i32 0, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  store i32 1, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  %28 = load i32, ptr %12, align 4, !tbaa !9
  %29 = load ptr, ptr %10, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %29, i32 0, i32 2
  %31 = load i32, ptr %30, align 8, !tbaa !11
  %32 = urem i32 %28, %31
  %33 = icmp eq i32 %32, 0
  br i1 %33, label %34, label %40

34:                                               ; preds = %7
  %35 = load i32, ptr %12, align 4, !tbaa !9
  %36 = load ptr, ptr %10, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %36, i32 0, i32 2
  %38 = load i32, ptr %37, align 8, !tbaa !11
  %39 = udiv i32 %35, %38
  br label %47

40:                                               ; preds = %7
  %41 = load i32, ptr %12, align 4, !tbaa !9
  %42 = load ptr, ptr %10, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %42, i32 0, i32 2
  %44 = load i32, ptr %43, align 8, !tbaa !11
  %45 = udiv i32 %41, %44
  %46 = add i32 %45, 1
  br label %47

47:                                               ; preds = %40, %34
  %48 = phi i32 [ %39, %34 ], [ %46, %40 ]
  store i32 %48, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  %49 = load ptr, ptr %11, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %49, i32 0, i32 8
  %51 = getelementptr inbounds [3 x i8], ptr %50, i64 0, i64 0
  %52 = call i32 @LIBXSMM_GEMM_GETENUM_A_PREC(ptr noundef %51)
  %53 = icmp eq i32 4, %52
  br i1 %53, label %54, label %60

54:                                               ; preds = %47
  %55 = load ptr, ptr %11, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %55, i32 0, i32 8
  %57 = getelementptr inbounds [3 x i8], ptr %56, i64 0, i64 0
  %58 = call i32 @LIBXSMM_GEMM_GETENUM_B_PREC(ptr noundef %57)
  %59 = icmp eq i32 3, %58
  br label %60

60:                                               ; preds = %54, %47
  %61 = phi i1 [ false, %47 ], [ %59, %54 ]
  %62 = zext i1 %61 to i64
  %63 = select i1 %61, i32 1, i32 0
  store i32 %63, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #3
  %64 = load ptr, ptr %11, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %64, i32 0, i32 8
  %66 = getelementptr inbounds [3 x i8], ptr %65, i64 0, i64 0
  %67 = call i32 @LIBXSMM_GEMM_GETENUM_A_PREC(ptr noundef %66)
  %68 = icmp eq i32 12, %67
  br i1 %68, label %69, label %75

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

75:                                               ; preds = %69, %60
  %76 = phi i1 [ false, %60 ], [ %74, %69 ]
  %77 = zext i1 %76 to i64
  %78 = select i1 %76, i32 1, i32 0
  store i32 %78, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #3
  %79 = load ptr, ptr %11, 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_A_PREC(ptr noundef %81)
  %83 = icmp eq i32 12, %82
  br i1 %83, label %84, label %90

84:                                               ; preds = %75
  %85 = load ptr, ptr %11, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %85, i32 0, i32 8
  %87 = getelementptr inbounds [3 x i8], ptr %86, i64 0, i64 0
  %88 = call i32 @LIBXSMM_GEMM_GETENUM_B_PREC(ptr noundef %87)
  %89 = icmp eq i32 2, %88
  br label %90

90:                                               ; preds = %84, %75
  %91 = phi i1 [ false, %75 ], [ %89, %84 ]
  %92 = zext i1 %91 to i64
  %93 = select i1 %91, i32 1, i32 0
  store i32 %93, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #3
  %94 = load ptr, ptr %11, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %94, i32 0, i32 6
  %96 = load i32, ptr %95, align 1, !tbaa !15
  %97 = and i32 %96, 2097152
  %98 = icmp ugt i32 %97, 0
  br i1 %98, label %99, label %127

99:                                               ; preds = %90
  %100 = load ptr, ptr %11, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %100, i32 0, i32 8
  %102 = getelementptr inbounds [3 x i8], ptr %101, i64 0, i64 0
  %103 = call i32 @LIBXSMM_GEMM_GETENUM_A_PREC(ptr noundef %102)
  %104 = icmp eq i32 12, %103
  br i1 %104, label %105, label %125

105:                                              ; preds = %99
  %106 = load ptr, ptr %11, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %106, i32 0, i32 8
  %108 = getelementptr inbounds [3 x i8], ptr %107, i64 0, i64 0
  %109 = call i32 @LIBXSMM_GEMM_GETENUM_B_PREC(ptr noundef %108)
  %110 = icmp eq i32 3, %109
  br i1 %110, label %111, label %125

111:                                              ; preds = %105
  %112 = load ptr, ptr %11, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %112, i32 0, i32 8
  %114 = getelementptr inbounds [3 x i8], ptr %113, i64 0, i64 0
  %115 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef %114)
  %116 = icmp eq i32 3, %115
  br i1 %116, label %123, label %117

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

123:                                              ; preds = %117, %111
  %124 = phi i1 [ true, %111 ], [ %122, %117 ]
  br label %125

125:                                              ; preds = %123, %105, %99
  %126 = phi i1 [ false, %105 ], [ false, %99 ], [ %124, %123 ]
  br label %127

127:                                              ; preds = %125, %90
  %128 = phi i1 [ false, %90 ], [ %126, %125 ]
  %129 = zext i1 %128 to i64
  %130 = select i1 %128, i32 1, i32 0
  store i32 %130, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #3
  %131 = load ptr, ptr %11, align 8, !tbaa !5
  %132 = call i32 @libxsmm_x86_is_Ai4_Bi8_gemm(ptr noundef %131)
  store i32 %132, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #3
  %133 = load ptr, ptr %11, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %133, i32 0, i32 8
  %135 = getelementptr inbounds [3 x i8], ptr %134, i64 0, i64 0
  %136 = call i32 @LIBXSMM_GEMM_GETENUM_A_PREC(ptr noundef %135)
  %137 = icmp eq i32 3, %136
  br i1 %137, label %138, label %144

138:                                              ; preds = %127
  %139 = load ptr, ptr %11, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %139, i32 0, i32 8
  %141 = getelementptr inbounds [3 x i8], ptr %140, i64 0, i64 0
  %142 = call i32 @LIBXSMM_GEMM_GETENUM_B_PREC(ptr noundef %141)
  %143 = icmp eq i32 3, %142
  br label %144

144:                                              ; preds = %138, %127
  %145 = phi i1 [ false, %127 ], [ %143, %138 ]
  %146 = zext i1 %145 to i64
  %147 = select i1 %145, i32 1, i32 0
  store i32 %147, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #3
  %148 = load i32, ptr %20, align 4, !tbaa !9
  %149 = icmp ugt i32 %148, 0
  br i1 %149, label %150, label %155

150:                                              ; preds = %144
  %151 = load ptr, ptr %10, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %151, i32 0, i32 14
  %153 = load i32, ptr %152, align 8, !tbaa !18
  %154 = icmp eq i32 %153, -268032430
  br label %155

155:                                              ; preds = %150, %144
  %156 = phi i1 [ false, %144 ], [ %154, %150 ]
  %157 = zext i1 %156 to i64
  %158 = select i1 %156, i32 1, i32 0
  store i32 %158, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #3
  %159 = load ptr, ptr %11, 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_AB_COMMON_PREC(ptr noundef %161)
  %163 = icmp eq i32 12, %162
  br i1 %163, label %164, label %192

164:                                              ; preds = %155
  %165 = load ptr, ptr %11, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %165, i32 0, i32 6
  %167 = load i32, ptr %166, align 1, !tbaa !15
  %168 = and i32 %167, 256
  %169 = icmp eq i32 %168, 0
  br i1 %169, label %170, label %176

170:                                              ; preds = %164
  %171 = load ptr, ptr %11, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %171, i32 0, i32 6
  %173 = load i32, ptr %172, align 1, !tbaa !15
  %174 = and i32 %173, 512
  %175 = icmp eq i32 %174, 0
  br i1 %175, label %190, label %176

176:                                              ; preds = %170, %164
  %177 = load ptr, ptr %11, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %177, i32 0, i32 6
  %179 = load i32, ptr %178, align 1, !tbaa !15
  %180 = and i32 %179, 256
  %181 = icmp ugt i32 %180, 0
  br i1 %181, label %182, label %188

182:                                              ; preds = %176
  %183 = load ptr, ptr %11, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %183, i32 0, i32 6
  %185 = load i32, ptr %184, align 1, !tbaa !15
  %186 = and i32 %185, 512
  %187 = icmp ugt i32 %186, 0
  br label %188

188:                                              ; preds = %182, %176
  %189 = phi i1 [ false, %176 ], [ %187, %182 ]
  br label %190

190:                                              ; preds = %188, %170
  %191 = phi i1 [ true, %170 ], [ %189, %188 ]
  br label %192

192:                                              ; preds = %190, %155
  %193 = phi i1 [ false, %155 ], [ %191, %190 ]
  %194 = zext i1 %193 to i32
  store i32 %194, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #3
  %195 = load ptr, ptr %8, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %195, i32 0, i32 6
  %197 = load i32, ptr %196, align 4, !tbaa !19
  %198 = icmp ne i32 %197, 1103
  br i1 %198, label %199, label %211

199:                                              ; preds = %192
  %200 = load ptr, ptr %11, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %200, i32 0, i32 8
  %202 = getelementptr inbounds [3 x i8], ptr %201, i64 0, i64 0
  %203 = call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef %202)
  %204 = icmp eq i32 2, %203
  br i1 %204, label %205, label %211

205:                                              ; preds = %199
  %206 = load ptr, ptr %11, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %206, i32 0, i32 6
  %208 = load i32, ptr %207, align 1, !tbaa !15
  %209 = and i32 %208, 2048
  %210 = icmp ugt i32 %209, 0
  br label %211

211:                                              ; preds = %205, %199, %192
  %212 = phi i1 [ false, %199 ], [ false, %192 ], [ %210, %205 ]
  %213 = zext i1 %212 to i32
  store i32 %213, ptr %26, align 4, !tbaa !9
  %214 = load ptr, ptr %11, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %214, i32 0, i32 6
  %216 = load i32, ptr %215, align 1, !tbaa !15
  %217 = and i32 %216, 2048
  %218 = icmp eq i32 %217, 2048
  br i1 %218, label %219, label %225

219:                                              ; preds = %211
  %220 = load ptr, ptr %11, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %220, i32 0, i32 8
  %222 = getelementptr inbounds [3 x i8], ptr %221, i64 0, i64 0
  %223 = call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef %222)
  %224 = call i32 @libxsmm_cpuid_dot_pack_factor(i32 noundef %223)
  store i32 %224, ptr %16, align 4, !tbaa !9
  br label %225

225:                                              ; preds = %219, %211
  %226 = load i32, ptr %17, align 4, !tbaa !9
  %227 = icmp eq i32 %226, 1
  br i1 %227, label %228, label %271

228:                                              ; preds = %225
  %229 = load ptr, ptr %11, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %229, i32 0, i32 6
  %231 = load i32, ptr %230, align 1, !tbaa !15
  %232 = and i32 %231, 8388608
  %233 = icmp eq i32 %232, 0
  br i1 %233, label %234, label %271

234:                                              ; preds = %228
  %235 = load i32, ptr %18, align 4, !tbaa !9
  %236 = icmp eq i32 %235, 0
  br i1 %236, label %237, label %271

237:                                              ; preds = %234
  %238 = load i32, ptr %19, align 4, !tbaa !9
  %239 = icmp eq i32 %238, 0
  br i1 %239, label %240, label %271

240:                                              ; preds = %237
  %241 = load i32, ptr %20, align 4, !tbaa !9
  %242 = icmp eq i32 %241, 0
  br i1 %242, label %243, label %271

243:                                              ; preds = %240
  %244 = load i32, ptr %21, align 4, !tbaa !9
  %245 = icmp eq i32 %244, 0
  br i1 %245, label %246, label %271

246:                                              ; preds = %243
  %247 = load i32, ptr %22, align 4, !tbaa !9
  %248 = icmp eq i32 %247, 0
  br i1 %248, label %249, label %271

249:                                              ; preds = %246
  %250 = load i32, ptr %23, align 4, !tbaa !9
  %251 = icmp eq i32 %250, 0
  br i1 %251, label %252, label %271

252:                                              ; preds = %249
  %253 = load i32, ptr %25, align 4, !tbaa !9
  %254 = icmp eq i32 %253, 0
  br i1 %254, label %255, label %271

255:                                              ; preds = %252
  %256 = load ptr, ptr %11, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %256, i32 0, i32 8
  %258 = getelementptr inbounds [3 x i8], ptr %257, i64 0, i64 0
  %259 = call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef %258)
  %260 = icmp ne i32 4, %259
  br i1 %260, label %261, label %271

261:                                              ; preds = %255
  %262 = load i32, ptr %26, align 4, !tbaa !9
  %263 = icmp eq i32 %262, 0
  br i1 %263, label %264, label %271

264:                                              ; preds = %261
  %265 = load ptr, ptr %8, align 8, !tbaa !5
  %266 = load ptr, ptr %9, align 8, !tbaa !5
  %267 = load ptr, ptr %10, align 8, !tbaa !5
  %268 = load ptr, ptr %11, align 8, !tbaa !5
  %269 = load i32, ptr %13, align 4, !tbaa !9
  %270 = load i32, ptr %14, align 4, !tbaa !9
  call void @libxsmm_generator_gemm_avx512_microkernel_fsdbcst(ptr noundef %265, ptr noundef %266, ptr noundef %267, ptr noundef %268, i32 noundef %269, i32 noundef %270)
  br label %369

271:                                              ; preds = %261, %255, %252, %249, %246, %243, %240, %237, %234, %228, %225
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #3
  %272 = load i32, ptr %20, align 4, !tbaa !9
  %273 = icmp ugt i32 %272, 0
  br i1 %273, label %286, label %274

274:                                              ; preds = %271
  %275 = load i32, ptr %21, align 4, !tbaa !9
  %276 = icmp ugt i32 %275, 0
  br i1 %276, label %286, label %277

277:                                              ; preds = %274
  %278 = load ptr, ptr %11, align 8, !tbaa !5
  %279 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %278, i32 0, i32 6
  %280 = load i32, ptr %279, align 1, !tbaa !15
  %281 = and i32 %280, 8388608
  %282 = icmp ugt i32 %281, 0
  br i1 %282, label %286, label %283

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

286:                                              ; preds = %283, %277, %274, %271
  %287 = load i32, ptr %24, align 4, !tbaa !9
  %288 = icmp ugt i32 %287, 0
  br i1 %288, label %292, label %289

289:                                              ; preds = %286
  %290 = load i32, ptr %21, align 4, !tbaa !9
  %291 = icmp ugt i32 %290, 0
  br i1 %291, label %292, label %293

292:                                              ; preds = %289, %286
  store i32 2, ptr %16, align 4, !tbaa !9
  br label %301

293:                                              ; preds = %289
  %294 = load i32, ptr %22, align 4, !tbaa !9
  %295 = icmp ugt i32 %294, 0
  br i1 %295, label %296, label %299

296:                                              ; preds = %293
  %297 = load i32, ptr %16, align 4, !tbaa !9
  %298 = mul i32 %297, 2
  store i32 %298, ptr %16, align 4, !tbaa !9
  br label %300

299:                                              ; preds = %293
  store i32 1, ptr %16, align 4, !tbaa !9
  br label %300

300:                                              ; preds = %299, %296
  br label %301

301:                                              ; preds = %300, %292
  store ptr @libxsmm_generator_gemm_avx512_microkernel_nofsdbcst, ptr %27, align 8, !tbaa !5
  br label %351

302:                                              ; preds = %283
  %303 = load ptr, ptr %8, align 8, !tbaa !5
  %304 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %303, i32 0, i32 6
  %305 = load i32, ptr %304, align 4, !tbaa !19
  %306 = icmp uge i32 %305, 1051
  br i1 %306, label %307, label %331

307:                                              ; preds = %302
  %308 = load ptr, ptr %8, align 8, !tbaa !5
  %309 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %308, i32 0, i32 6
  %310 = load i32, ptr %309, align 4, !tbaa !19
  %311 = icmp ult i32 %310, 1101
  br i1 %311, label %312, label %331

312:                                              ; preds = %307
  %313 = load ptr, ptr %8, align 8, !tbaa !5
  %314 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %313, i32 0, i32 6
  %315 = load i32, ptr %314, align 4, !tbaa !19
  %316 = icmp ne i32 %315, 1053
  br i1 %316, label %317, label %324

317:                                              ; preds = %312
  %318 = load ptr, ptr %11, align 8, !tbaa !5
  %319 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %318, i32 0, i32 8
  %320 = getelementptr inbounds [3 x i8], ptr %319, i64 0, i64 0
  %321 = call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef %320)
  %322 = icmp eq i32 2, %321
  br i1 %322, label %323, label %324

323:                                              ; preds = %317
  store ptr @libxsmm_generator_gemm_avx512_microkernel_m8_bf16_emu_nofsdbcst, ptr %27, align 8, !tbaa !5
  br label %330

324:                                              ; preds = %317, %312
  %325 = load i32, ptr %25, align 4, !tbaa !9
  %326 = icmp ne i32 %325, 0
  br i1 %326, label %327, label %328

327:                                              ; preds = %324
  store ptr @libxsmm_generator_gemm_avx512_microkernel_m8_i8_ss_uu_emu_nofsdbcst, ptr %27, align 8, !tbaa !5
  br label %329

328:                                              ; preds = %324
  store ptr @libxsmm_generator_gemm_avx512_microkernel_m8_nofsdbcst, ptr %27, align 8, !tbaa !5
  br label %329

329:                                              ; preds = %328, %327
  br label %330

330:                                              ; preds = %329, %323
  br label %350

331:                                              ; preds = %307, %302
  %332 = load ptr, ptr %8, align 8, !tbaa !5
  %333 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %332, i32 0, i32 6
  %334 = load i32, ptr %333, align 4, !tbaa !19
  %335 = icmp ne i32 %334, 1103
  br i1 %335, label %336, label %343

336:                                              ; preds = %331
  %337 = load ptr, ptr %11, align 8, !tbaa !5
  %338 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %337, i32 0, i32 8
  %339 = getelementptr inbounds [3 x i8], ptr %338, i64 0, i64 0
  %340 = call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef %339)
  %341 = icmp eq i32 2, %340
  br i1 %341, label %342, label %343

342:                                              ; preds = %336
  store ptr @libxsmm_generator_gemm_avx512_microkernel_bf16_emu_nofsdbcst, ptr %27, align 8, !tbaa !5
  br label %349

343:                                              ; preds = %336, %331
  %344 = load i32, ptr %25, align 4, !tbaa !9
  %345 = icmp ne i32 %344, 0
  br i1 %345, label %346, label %347

346:                                              ; preds = %343
  store ptr @libxsmm_generator_gemm_avx512_microkernel_i8_ss_uu_emu_nofsdbcst, ptr %27, align 8, !tbaa !5
  br label %348

347:                                              ; preds = %343
  store ptr @libxsmm_generator_gemm_avx512_microkernel_nofsdbcst, ptr %27, align 8, !tbaa !5
  br label %348

348:                                              ; preds = %347, %346
  br label %349

349:                                              ; preds = %348, %342
  br label %350

350:                                              ; preds = %349, %330
  br label %351

351:                                              ; preds = %350, %301
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %352

352:                                              ; preds = %364, %351
  %353 = load i32, ptr %15, align 4, !tbaa !9
  %354 = load i32, ptr %14, align 4, !tbaa !9
  %355 = icmp ult i32 %353, %354
  br i1 %355, label %356, label %368

356:                                              ; preds = %352
  %357 = load ptr, ptr %27, align 8, !tbaa !5
  %358 = load ptr, ptr %8, align 8, !tbaa !5
  %359 = load ptr, ptr %9, align 8, !tbaa !5
  %360 = load ptr, ptr %10, align 8, !tbaa !5
  %361 = load ptr, ptr %11, align 8, !tbaa !5
  %362 = load i32, ptr %12, align 4, !tbaa !9
  %363 = load i32, ptr %13, align 4, !tbaa !9
  call void %357(ptr noundef %358, ptr noundef %359, ptr noundef %360, ptr noundef %361, i32 noundef %362, i32 noundef %363)
  br label %364

364:                                              ; preds = %356
  %365 = load i32, ptr %16, align 4, !tbaa !9
  %366 = load i32, ptr %15, align 4, !tbaa !9
  %367 = add i32 %366, %365
  store i32 %367, ptr %15, align 4, !tbaa !9
  br label %352, !llvm.loop !21

368:                                              ; preds = %352
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #3
  br label %369

369:                                              ; preds = %368, %264
  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 4, ptr %15) #3
  ret void
}

; 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

declare i32 @libxsmm_x86_is_Ai4_Bi8_gemm(ptr noundef) #2

declare i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef) #2

declare i32 @libxsmm_cpuid_dot_pack_factor(i32 noundef) #2

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

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

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

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

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

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

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

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

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 8}
!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 = !{!16, !10, i64 24}
!16 = !{!"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, !17, i64 33, !17, 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}
!17 = !{!"long long", !7, i64 0}
!18 = !{!12, !10, i64 56}
!19 = !{!20, !10, i64 28}
!20 = !{!"libxsmm_generated_code", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}


; 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
define dso_local void @libxsmm_generator_gemm_avx512_kloop_kernel(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) local_unnamed_addr #0 {
  %8 = getelementptr inbounds i8, ptr %2, i64 8
  %9 = load i32, ptr %8, align 8, !tbaa !5
  %10 = urem i32 %4, %9
  %11 = icmp ne i32 %10, 0
  %12 = udiv i32 %4, %9
  %13 = zext i1 %11 to i32
  %14 = add i32 %12, %13
  %15 = getelementptr inbounds i8, ptr %3, i64 29
  %16 = tail call i32 @LIBXSMM_GEMM_GETENUM_A_PREC(ptr noundef nonnull %15) #2
  %17 = icmp eq i32 %16, 4
  br i1 %17, label %18, label %21

18:                                               ; preds = %7
  %19 = tail call i32 @LIBXSMM_GEMM_GETENUM_B_PREC(ptr noundef nonnull %15) #2
  %20 = icmp eq i32 %19, 3
  br label %21

21:                                               ; preds = %18, %7
  %22 = phi i1 [ false, %7 ], [ %20, %18 ]
  %23 = tail call i32 @LIBXSMM_GEMM_GETENUM_A_PREC(ptr noundef nonnull %15) #2
  %24 = icmp eq i32 %23, 12
  br i1 %24, label %25, label %28

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

28:                                               ; preds = %25, %21
  %29 = phi i1 [ false, %21 ], [ %27, %25 ]
  %30 = tail call i32 @LIBXSMM_GEMM_GETENUM_A_PREC(ptr noundef nonnull %15) #2
  %31 = icmp eq i32 %30, 12
  br i1 %31, label %32, label %35

32:                                               ; preds = %28
  %33 = tail call i32 @LIBXSMM_GEMM_GETENUM_B_PREC(ptr noundef nonnull %15) #2
  %34 = icmp eq i32 %33, 2
  br label %35

35:                                               ; preds = %32, %28
  %36 = phi i1 [ false, %28 ], [ %34, %32 ]
  %37 = getelementptr inbounds i8, ptr %3, i64 24
  %38 = load i32, ptr %37, align 1, !tbaa !13
  %39 = and i32 %38, 2097152
  %.not = icmp eq i32 %39, 0
  br i1 %.not, label %52, label %40

40:                                               ; preds = %35
  %41 = tail call i32 @LIBXSMM_GEMM_GETENUM_A_PREC(ptr noundef nonnull %15) #2
  %42 = icmp eq i32 %41, 12
  br i1 %42, label %43, label %52

43:                                               ; preds = %40
  %44 = tail call i32 @LIBXSMM_GEMM_GETENUM_B_PREC(ptr noundef nonnull %15) #2
  %45 = icmp eq i32 %44, 3
  br i1 %45, label %46, label %52

46:                                               ; preds = %43
  %47 = tail call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef nonnull %15) #2
  %48 = icmp eq i32 %47, 3
  br i1 %48, label %52, label %49

49:                                               ; preds = %46
  %50 = tail call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef nonnull %15) #2
  %51 = icmp eq i32 %50, 1
  br label %52

52:                                               ; preds = %40, %43, %49, %46, %35
  %53 = phi i1 [ false, %35 ], [ false, %43 ], [ false, %40 ], [ true, %46 ], [ %51, %49 ]
  %54 = tail call i32 @libxsmm_x86_is_Ai4_Bi8_gemm(ptr noundef nonnull %3) #2
  %55 = tail call i32 @LIBXSMM_GEMM_GETENUM_A_PREC(ptr noundef nonnull %15) #2
  %56 = icmp eq i32 %55, 3
  br i1 %56, label %57, label %60

57:                                               ; preds = %52
  %58 = tail call i32 @LIBXSMM_GEMM_GETENUM_B_PREC(ptr noundef nonnull %15) #2
  %59 = icmp ne i32 %58, 3
  br label %60

60:                                               ; preds = %57, %52
  %61 = phi i1 [ true, %52 ], [ %59, %57 ]
  br i1 %36, label %62, label %66

62:                                               ; preds = %60
  %63 = getelementptr inbounds i8, ptr %2, i64 56
  %64 = load i32, ptr %63, align 8, !tbaa !16
  %65 = icmp eq i32 %64, -268032430
  br label %66

66:                                               ; preds = %62, %60
  %67 = phi i1 [ false, %60 ], [ %65, %62 ]
  %68 = tail call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef nonnull %15) #2
  %69 = icmp eq i32 %68, 12
  br i1 %69, label %70, label %73

70:                                               ; preds = %66
  %71 = load i32, ptr %37, align 1, !tbaa !13
  %72 = and i32 %71, 768
  %or.cond107 = icmp eq i32 %72, 0
  %spec.select109 = icmp eq i32 %72, 768
  %spec.select113 = or i1 %or.cond107, %spec.select109
  br label %73

73:                                               ; preds = %70, %66
  %74 = phi i1 [ false, %66 ], [ %spec.select113, %70 ]
  %75 = getelementptr inbounds i8, ptr %0, i64 28
  %76 = load i32, ptr %75, align 4, !tbaa !17
  %.not100 = icmp eq i32 %76, 1103
  br i1 %.not100, label %._crit_edge, label %77

._crit_edge:                                      ; preds = %73
  %.pre = load i32, ptr %37, align 1, !tbaa !13
  br label %83

77:                                               ; preds = %73
  %78 = tail call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef nonnull %15) #2
  %79 = icmp eq i32 %78, 2
  %.pre112 = load i32, ptr %37, align 1, !tbaa !13
  br i1 %79, label %80, label %83

80:                                               ; preds = %77
  %81 = and i32 %.pre112, 2048
  %82 = icmp ne i32 %81, 0
  br label %83

83:                                               ; preds = %._crit_edge, %80, %77
  %84 = phi i32 [ %.pre112, %77 ], [ %.pre, %._crit_edge ], [ %.pre112, %80 ]
  %85 = phi i1 [ false, %77 ], [ false, %._crit_edge ], [ %82, %80 ]
  %86 = and i32 %84, 2048
  %.not101 = icmp eq i32 %86, 0
  br i1 %.not101, label %90, label %87

87:                                               ; preds = %83
  %88 = tail call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef nonnull %15) #2
  %89 = tail call i32 @libxsmm_cpuid_dot_pack_factor(i32 noundef %88) #2
  br label %90

90:                                               ; preds = %87, %83
  %.097 = phi i32 [ %89, %87 ], [ 1, %83 ]
  %91 = icmp eq i32 %14, 1
  br i1 %91, label %92, label %106

92:                                               ; preds = %90
  %93 = load i32, ptr %37, align 1, !tbaa !13
  %94 = and i32 %93, 8388608
  %95 = icmp eq i32 %94, 0
  %96 = xor i1 %22, true
  %or.cond = select i1 %95, i1 %96, i1 false
  %97 = xor i1 %29, true
  %or.cond3 = select i1 %or.cond, i1 %97, i1 false
  %98 = xor i1 %36, true
  %or.cond5 = select i1 %or.cond3, i1 %98, i1 false
  %99 = xor i1 %53, true
  %or.cond7 = select i1 %or.cond5, i1 %99, i1 false
  %100 = icmp eq i32 %54, 0
  %or.cond9 = select i1 %or.cond7, i1 %100, i1 false
  %or.cond11 = select i1 %or.cond9, i1 %61, i1 false
  %101 = xor i1 %74, true
  %or.cond13 = and i1 %or.cond11, %101
  br i1 %or.cond13, label %102, label %106

102:                                              ; preds = %92
  %103 = tail call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef nonnull %15) #2
  %104 = icmp eq i32 %103, 4
  %or.cond15.not = select i1 %104, i1 true, i1 %85
  br i1 %or.cond15.not, label %106, label %105

105:                                              ; preds = %102
  tail call void @libxsmm_generator_gemm_avx512_microkernel_fsdbcst(ptr noundef nonnull %0, ptr noundef %1, ptr noundef nonnull %2, ptr noundef nonnull %3, i32 noundef %5, i32 noundef %6)
  br label %.loopexit

106:                                              ; preds = %102, %92, %90
  %or.cond17 = select i1 %36, i1 true, i1 %53
  br i1 %or.cond17, label %112, label %107

107:                                              ; preds = %106
  %108 = load i32, ptr %37, align 1, !tbaa !13
  %109 = and i32 %108, 8388608
  %110 = icmp ne i32 %109, 0
  %111 = icmp ne i32 %54, 0
  %or.cond19 = select i1 %110, i1 true, i1 %111
  br i1 %or.cond19, label %112, label %115

112:                                              ; preds = %107, %106
  %or.cond21 = select i1 %67, i1 true, i1 %53
  br i1 %or.cond21, label %128, label %113

113:                                              ; preds = %112
  %.not105 = icmp eq i32 %54, 0
  %114 = shl i32 %.097, 1
  %spec.select = select i1 %.not105, i32 1, i32 %114
  br label %128

115:                                              ; preds = %107
  %116 = load i32, ptr %75, align 4, !tbaa !17
  %117 = add i32 %116, -1051
  %or.cond108 = icmp ult i32 %117, 50
  br i1 %or.cond108, label %118, label %123

118:                                              ; preds = %115
  %.not104 = icmp eq i32 %116, 1053
  br i1 %.not104, label %122, label %119

119:                                              ; preds = %118
  %120 = tail call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef nonnull %15) #2
  %121 = icmp eq i32 %120, 2
  br i1 %121, label %128, label %122

122:                                              ; preds = %119, %118
  %libxsmm_generator_gemm_avx512_microkernel_m8_i8_ss_uu_emu_nofsdbcst.libxsmm_generator_gemm_avx512_microkernel_m8_nofsdbcst = select i1 %74, ptr @libxsmm_generator_gemm_avx512_microkernel_m8_i8_ss_uu_emu_nofsdbcst, ptr @libxsmm_generator_gemm_avx512_microkernel_m8_nofsdbcst
  br label %128

123:                                              ; preds = %115
  %.not103 = icmp eq i32 %116, 1103
  br i1 %.not103, label %127, label %124

124:                                              ; preds = %123
  %125 = tail call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef nonnull %15) #2
  %126 = icmp eq i32 %125, 2
  br i1 %126, label %128, label %127

127:                                              ; preds = %124, %123
  %libxsmm_generator_gemm_avx512_microkernel_i8_ss_uu_emu_nofsdbcst.libxsmm_generator_gemm_avx512_microkernel_nofsdbcst = select i1 %74, ptr @libxsmm_generator_gemm_avx512_microkernel_i8_ss_uu_emu_nofsdbcst, ptr @libxsmm_generator_gemm_avx512_microkernel_nofsdbcst
  br label %128

128:                                              ; preds = %113, %127, %124, %122, %119, %112
  %.2 = phi i32 [ 2, %112 ], [ %.097, %119 ], [ %.097, %122 ], [ %.097, %124 ], [ %.097, %127 ], [ %spec.select, %113 ]
  %.0 = phi ptr [ @libxsmm_generator_gemm_avx512_microkernel_nofsdbcst, %112 ], [ @libxsmm_generator_gemm_avx512_microkernel_m8_bf16_emu_nofsdbcst, %119 ], [ %libxsmm_generator_gemm_avx512_microkernel_m8_i8_ss_uu_emu_nofsdbcst.libxsmm_generator_gemm_avx512_microkernel_m8_nofsdbcst, %122 ], [ @libxsmm_generator_gemm_avx512_microkernel_bf16_emu_nofsdbcst, %124 ], [ %libxsmm_generator_gemm_avx512_microkernel_i8_ss_uu_emu_nofsdbcst.libxsmm_generator_gemm_avx512_microkernel_nofsdbcst, %127 ], [ @libxsmm_generator_gemm_avx512_microkernel_nofsdbcst, %113 ]
  %.not111 = icmp eq i32 %6, 0
  br i1 %.not111, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %128, %.lr.ph
  %.096110 = phi i32 [ %129, %.lr.ph ], [ 0, %128 ]
  tail call void %.0(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5) #2
  %129 = add i32 %.096110, %.2
  %130 = icmp ult i32 %129, %6
  br i1 %130, label %.lr.ph, label %.loopexit, !llvm.loop !19

.loopexit:                                        ; preds = %.lr.ph, %128, %105
  ret void
}

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

declare i32 @libxsmm_x86_is_Ai4_Bi8_gemm(ptr noundef) local_unnamed_addr #1

declare i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef) local_unnamed_addr #1

declare i32 @libxsmm_cpuid_dot_pack_factor(i32 noundef) local_unnamed_addr #1

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

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

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

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

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

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

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

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 8}
!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 = !{!14, !7, i64 24}
!14 = !{!"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, !15, i64 33, !15, 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}
!15 = !{!"long long", !8, i64 0}
!16 = !{!6, !7, i64 56}
!17 = !{!18, !7, i64 28}
!18 = !{!"libxsmm_generated_code", !12, i64 0, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}


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