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

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

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

@.str = external hidden unnamed_addr constant [82 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [27 x i8], align 1
@__PRETTY_FUNCTION__.libxsmm_generator_gemm_setup_stack_frame_allocate_scratch_rv64 = external hidden unnamed_addr constant [190 x i8], align 1

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

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

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

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

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

declare i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_gemm_setup_stack_frame_allocate_scratch_rv64(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %22 = load ptr, ptr %7, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %22, i32 0, i32 23
  %24 = load i32, ptr %23, align 4, !tbaa !11
  store i32 %24, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %25, i32 0, i32 22
  %27 = load i32, ptr %26, align 4, !tbaa !13
  store i32 %27, ptr %12, align 4, !tbaa !9
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %28, i32 0, i32 6
  %30 = load i32, ptr %29, align 1, !tbaa !14
  %31 = and i32 32768, %30
  %32 = icmp eq i32 %31, 32768
  br i1 %32, label %33, label %34

33:                                               ; preds = %4
  store i32 2048, ptr %9, align 4, !tbaa !9
  br label %34

34:                                               ; preds = %33, %4
  %35 = load ptr, ptr %8, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %35, i32 0, i32 35
  %37 = load i32, ptr %36, align 4, !tbaa !18
  %38 = icmp ugt i32 %37, 0
  br i1 %38, label %39, label %49

39:                                               ; preds = %34
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %40, i32 0, i32 1
  %42 = load i32, ptr %41, align 1, !tbaa !21
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %43, i32 0, i32 0
  %45 = load i32, ptr %44, align 1, !tbaa !22
  %46 = mul i32 %42, %45
  %47 = mul i32 %46, 4
  %48 = add i32 2048, %47
  store i32 %48, ptr %9, align 4, !tbaa !9
  br label %49

49:                                               ; preds = %39, %34
  %50 = load i32, ptr %9, align 4, !tbaa !9
  %51 = urem i32 %50, 64
  %52 = icmp eq i32 %51, 0
  br i1 %52, label %53, label %54

53:                                               ; preds = %49
  br label %61

54:                                               ; preds = %49
  %55 = load i32, ptr %9, align 4, !tbaa !9
  %56 = add i32 %55, 63
  %57 = udiv i32 %56, 64
  %58 = mul i32 %57, 64
  %59 = load i32, ptr %9, align 4, !tbaa !9
  %60 = sub i32 %58, %59
  br label %61

61:                                               ; preds = %54, %53
  %62 = phi i32 [ 0, %53 ], [ %60, %54 ]
  store i32 %62, ptr %10, align 4, !tbaa !9
  %63 = load i32, ptr %10, align 4, !tbaa !9
  %64 = load i32, ptr %9, align 4, !tbaa !9
  %65 = add i32 %64, %63
  store i32 %65, ptr %9, align 4, !tbaa !9
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %66, i32 0, i32 6
  %68 = load i32, ptr %67, align 1, !tbaa !14
  %69 = and i32 1, %68
  %70 = icmp ugt i32 %69, 0
  br i1 %70, label %71, label %370

71:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %72, i32 0, i32 6
  %74 = load i32, ptr %73, align 1, !tbaa !14
  %75 = and i32 %74, 262144
  %76 = icmp ugt i32 %75, 0
  %77 = zext i1 %76 to i64
  %78 = select i1 %76, i32 1, i32 0
  store i32 %78, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %79 = load ptr, ptr %6, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %79, i32 0, i32 6
  %81 = load i32, ptr %80, align 1, !tbaa !14
  %82 = and i32 %81, 131072
  %83 = icmp ugt i32 %82, 0
  %84 = zext i1 %83 to i64
  %85 = select i1 %83, i32 1, i32 0
  store i32 %85, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %86 = load ptr, ptr %6, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %86, i32 0, i32 6
  %88 = load i32, ptr %87, align 1, !tbaa !14
  %89 = and i32 %88, 65536
  %90 = icmp ugt i32 %89, 0
  %91 = zext i1 %90 to i64
  %92 = select i1 %90, i32 1, i32 0
  store i32 %92, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %93 = load i32, ptr %13, align 4, !tbaa !9
  %94 = icmp eq i32 %93, 1
  br i1 %94, label %101, label %95

95:                                               ; preds = %71
  %96 = load i32, ptr %14, align 4, !tbaa !9
  %97 = icmp eq i32 %96, 1
  br i1 %97, label %101, label %98

98:                                               ; preds = %95
  %99 = load i32, ptr %15, align 4, !tbaa !9
  %100 = icmp eq i32 %99, 1
  br label %101

101:                                              ; preds = %98, %95, %71
  %102 = phi i1 [ true, %95 ], [ true, %71 ], [ %100, %98 ]
  %103 = zext i1 %102 to i64
  %104 = select i1 %102, i32 1, i32 0
  store i32 %104, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %105 = load ptr, ptr %6, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %105, i32 0, i32 6
  %107 = load i32, ptr %106, align 1, !tbaa !14
  %108 = and i32 1, %107
  %109 = icmp ugt i32 %108, 0
  br i1 %109, label %110, label %238

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

116:                                              ; preds = %110
  br label %236

117:                                              ; preds = %110
  %118 = load ptr, ptr %6, 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_AB_COMMON_PREC(ptr noundef %120)
  %122 = icmp eq i32 1, %121
  br i1 %122, label %123, label %124

123:                                              ; preds = %117
  br label %234

124:                                              ; preds = %117
  %125 = load ptr, ptr %6, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %125, i32 0, i32 8
  %127 = getelementptr inbounds [3 x i8], ptr %126, i64 0, i64 0
  %128 = call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef %127)
  %129 = icmp eq i32 2, %128
  br i1 %129, label %130, label %131

130:                                              ; preds = %124
  br label %232

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

137:                                              ; preds = %131
  br label %230

138:                                              ; preds = %131
  %139 = load ptr, ptr %6, 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_AB_COMMON_PREC(ptr noundef %141)
  %143 = icmp eq i32 4, %142
  br i1 %143, label %144, label %145

144:                                              ; preds = %138
  br label %228

145:                                              ; preds = %138
  %146 = load ptr, ptr %6, 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 = icmp eq i32 5, %149
  br i1 %150, label %151, label %152

151:                                              ; preds = %145
  br label %226

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

158:                                              ; preds = %152
  br label %224

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

165:                                              ; preds = %159
  br label %222

166:                                              ; preds = %159
  %167 = load ptr, ptr %6, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %167, i32 0, i32 8
  %169 = getelementptr inbounds [3 x i8], ptr %168, i64 0, i64 0
  %170 = call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef %169)
  %171 = icmp eq i32 8, %170
  br i1 %171, label %172, label %173

172:                                              ; preds = %166
  br label %220

173:                                              ; preds = %166
  %174 = load ptr, ptr %6, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %174, i32 0, i32 8
  %176 = getelementptr inbounds [3 x i8], ptr %175, i64 0, i64 0
  %177 = call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef %176)
  %178 = icmp eq i32 9, %177
  br i1 %178, label %179, label %180

179:                                              ; preds = %173
  br label %218

180:                                              ; preds = %173
  %181 = load ptr, ptr %6, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %181, i32 0, i32 8
  %183 = getelementptr inbounds [3 x i8], ptr %182, i64 0, i64 0
  %184 = call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef %183)
  %185 = icmp eq i32 10, %184
  br i1 %185, label %186, label %187

186:                                              ; preds = %180
  br label %216

187:                                              ; preds = %180
  %188 = load ptr, ptr %6, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %188, i32 0, i32 8
  %190 = getelementptr inbounds [3 x i8], ptr %189, i64 0, i64 0
  %191 = call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef %190)
  %192 = icmp eq i32 11, %191
  br i1 %192, label %193, label %194

193:                                              ; preds = %187
  br label %214

194:                                              ; preds = %187
  %195 = load ptr, ptr %6, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %195, i32 0, i32 8
  %197 = getelementptr inbounds [3 x i8], ptr %196, i64 0, i64 0
  %198 = call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef %197)
  %199 = icmp eq i32 12, %198
  br i1 %199, label %200, label %201

200:                                              ; preds = %194
  br label %212

201:                                              ; preds = %194
  %202 = load ptr, ptr %6, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %202, i32 0, i32 8
  %204 = getelementptr inbounds [3 x i8], ptr %203, i64 0, i64 0
  %205 = call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef %204)
  %206 = icmp eq i32 13, %205
  br i1 %206, label %207, label %208

207:                                              ; preds = %201
  br label %210

208:                                              ; preds = %201
  call void @__assert_fail(ptr noundef @.str.1, ptr noundef @.str, i32 noundef 169, ptr noundef @__PRETTY_FUNCTION__.libxsmm_generator_gemm_setup_stack_frame_allocate_scratch_rv64) #5
  unreachable

209:                                              ; No predecessors!
  br label %210

210:                                              ; preds = %209, %207
  %211 = phi i32 [ 1, %207 ], [ 0, %209 ]
  br label %212

212:                                              ; preds = %210, %200
  %213 = phi i32 [ 1, %200 ], [ %211, %210 ]
  br label %214

214:                                              ; preds = %212, %193
  %215 = phi i32 [ 2, %193 ], [ %213, %212 ]
  br label %216

216:                                              ; preds = %214, %186
  %217 = phi i32 [ 2, %186 ], [ %215, %214 ]
  br label %218

218:                                              ; preds = %216, %179
  %219 = phi i32 [ 4, %179 ], [ %217, %216 ]
  br label %220

220:                                              ; preds = %218, %172
  %221 = phi i32 [ 4, %172 ], [ %219, %218 ]
  br label %222

222:                                              ; preds = %220, %165
  %223 = phi i32 [ 8, %165 ], [ %221, %220 ]
  br label %224

224:                                              ; preds = %222, %158
  %225 = phi i32 [ 8, %158 ], [ %223, %222 ]
  br label %226

226:                                              ; preds = %224, %151
  %227 = phi i32 [ 1, %151 ], [ %225, %224 ]
  br label %228

228:                                              ; preds = %226, %144
  %229 = phi i32 [ 1, %144 ], [ %227, %226 ]
  br label %230

230:                                              ; preds = %228, %137
  %231 = phi i32 [ 2, %137 ], [ %229, %228 ]
  br label %232

232:                                              ; preds = %230, %130
  %233 = phi i32 [ 2, %130 ], [ %231, %230 ]
  br label %234

234:                                              ; preds = %232, %123
  %235 = phi i32 [ 4, %123 ], [ %233, %232 ]
  br label %236

236:                                              ; preds = %234, %116
  %237 = phi i32 [ 8, %116 ], [ %235, %234 ]
  br label %239

238:                                              ; preds = %101
  br label %239

239:                                              ; preds = %238, %236
  %240 = phi i32 [ %237, %236 ], [ 4, %238 ]
  store i32 %240, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  %241 = load ptr, ptr %6, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %241, i32 0, i32 0
  %243 = load i32, ptr %242, align 1, !tbaa !22
  %244 = load ptr, ptr %6, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %244, i32 0, i32 2
  %246 = load i32, ptr %245, align 1, !tbaa !23
  %247 = mul i32 %243, %246
  %248 = load i32, ptr %17, align 4, !tbaa !9
  %249 = mul i32 %247, %248
  store i32 %249, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  %250 = load ptr, ptr %6, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %250, i32 0, i32 2
  %252 = load i32, ptr %251, align 1, !tbaa !23
  %253 = load ptr, ptr %6, align 8, !tbaa !5
  %254 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %253, i32 0, i32 1
  %255 = load i32, ptr %254, align 1, !tbaa !21
  %256 = mul i32 %252, %255
  %257 = load i32, ptr %17, align 4, !tbaa !9
  %258 = mul i32 %256, %257
  store i32 %258, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  %259 = load i32, ptr %18, align 4, !tbaa !9
  %260 = urem i32 %259, 64
  %261 = icmp eq i32 %260, 0
  br i1 %261, label %262, label %263

262:                                              ; preds = %239
  br label %270

263:                                              ; preds = %239
  %264 = load i32, ptr %18, align 4, !tbaa !9
  %265 = add i32 %264, 63
  %266 = udiv i32 %265, 64
  %267 = mul i32 %266, 64
  %268 = load i32, ptr %18, align 4, !tbaa !9
  %269 = sub i32 %267, %268
  br label %270

270:                                              ; preds = %263, %262
  %271 = phi i32 [ 0, %262 ], [ %269, %263 ]
  store i32 %271, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  %272 = load i32, ptr %19, align 4, !tbaa !9
  %273 = urem i32 %272, 64
  %274 = icmp eq i32 %273, 0
  br i1 %274, label %275, label %276

275:                                              ; preds = %270
  br label %283

276:                                              ; preds = %270
  %277 = load i32, ptr %19, align 4, !tbaa !9
  %278 = add i32 %277, 63
  %279 = udiv i32 %278, 64
  %280 = mul i32 %279, 64
  %281 = load i32, ptr %19, align 4, !tbaa !9
  %282 = sub i32 %280, %281
  br label %283

283:                                              ; preds = %276, %275
  %284 = phi i32 [ 0, %275 ], [ %282, %276 ]
  store i32 %284, ptr %21, align 4, !tbaa !9
  %285 = load i32, ptr %20, align 4, !tbaa !9
  %286 = load i32, ptr %18, align 4, !tbaa !9
  %287 = add i32 %286, %285
  store i32 %287, ptr %18, align 4, !tbaa !9
  %288 = load i32, ptr %21, align 4, !tbaa !9
  %289 = load i32, ptr %19, align 4, !tbaa !9
  %290 = add i32 %289, %288
  store i32 %290, ptr %19, align 4, !tbaa !9
  %291 = load i32, ptr %16, align 4, !tbaa !9
  %292 = icmp eq i32 %291, 0
  br i1 %292, label %293, label %308

293:                                              ; preds = %283
  %294 = load ptr, ptr %5, align 8, !tbaa !5
  %295 = load i32, ptr %11, align 4, !tbaa !9
  call void @libxsmm_rv64_instruction_alu_compute_imm12(ptr noundef %294, i32 noundef 19, i32 noundef 2, i32 noundef %295, i32 noundef 0)
  %296 = load ptr, ptr %5, align 8, !tbaa !5
  %297 = load i32, ptr %11, align 4, !tbaa !9
  %298 = load i32, ptr %12, align 4, !tbaa !9
  %299 = load i32, ptr %11, align 4, !tbaa !9
  %300 = load i32, ptr %18, align 4, !tbaa !9
  %301 = mul i32 -1, %300
  %302 = zext i32 %301 to i64
  call void @libxsmm_rv64_instruction_alu_compute_imm64(ptr noundef %296, i32 noundef 51, i32 noundef %297, i32 noundef %298, i32 noundef %299, i64 noundef %302)
  %303 = load ptr, ptr %5, align 8, !tbaa !5
  %304 = load i32, ptr %11, align 4, !tbaa !9
  call void @libxsmm_rv64_instruction_alu_compute_imm12(ptr noundef %303, i32 noundef 19, i32 noundef %304, i32 noundef 2, i32 noundef 0)
  %305 = load ptr, ptr %5, align 8, !tbaa !5
  %306 = load i32, ptr %12, align 4, !tbaa !9
  %307 = load i32, ptr %11, align 4, !tbaa !9
  call void @libxsmm_generator_gemm_setval_stack_var_rv64(ptr noundef %305, i32 noundef 21, i32 noundef %306, i32 noundef %307)
  br label %358

308:                                              ; preds = %283
  %309 = load ptr, ptr %5, align 8, !tbaa !5
  %310 = load i32, ptr %11, align 4, !tbaa !9
  call void @libxsmm_generator_gemm_getval_stack_var_rv64(ptr noundef %309, i32 noundef 20, i32 noundef %310)
  %311 = load ptr, ptr %5, align 8, !tbaa !5
  %312 = load i32, ptr %12, align 4, !tbaa !9
  %313 = load i32, ptr %18, align 4, !tbaa !9
  %314 = zext i32 %313 to i64
  call void @libxsmm_rv64_instruction_alu_set_imm64(ptr noundef %311, i32 noundef %312, i64 noundef %314)
  %315 = load ptr, ptr %5, align 8, !tbaa !5
  %316 = load i32, ptr %11, align 4, !tbaa !9
  %317 = load i32, ptr %12, align 4, !tbaa !9
  %318 = load i32, ptr %11, align 4, !tbaa !9
  call void @libxsmm_rv64_instruction_alu_compute(ptr noundef %315, i32 noundef 33554483, i32 noundef %316, i32 noundef %317, i32 noundef %318)
  %319 = load ptr, ptr %5, align 8, !tbaa !5
  %320 = load i32, ptr %12, align 4, !tbaa !9
  call void @libxsmm_rv64_instruction_alu_compute_imm12(ptr noundef %319, i32 noundef 19, i32 noundef 2, i32 noundef %320, i32 noundef 0)
  %321 = load ptr, ptr %5, align 8, !tbaa !5
  %322 = load i32, ptr %12, align 4, !tbaa !9
  %323 = load i32, ptr %11, align 4, !tbaa !9
  %324 = load i32, ptr %12, align 4, !tbaa !9
  call void @libxsmm_rv64_instruction_alu_compute_imm64(ptr noundef %321, i32 noundef 1073741875, i32 noundef %322, i32 noundef %323, i32 noundef %324, i64 noundef 0)
  %325 = load ptr, ptr %5, align 8, !tbaa !5
  %326 = load i32, ptr %12, align 4, !tbaa !9
  call void @libxsmm_rv64_instruction_alu_compute_imm12(ptr noundef %325, i32 noundef 19, i32 noundef %326, i32 noundef 2, i32 noundef 0)
  %327 = load ptr, ptr %5, align 8, !tbaa !5
  %328 = load i32, ptr %11, align 4, !tbaa !9
  %329 = load i32, ptr %12, align 4, !tbaa !9
  call void @libxsmm_generator_gemm_setval_stack_var_rv64(ptr noundef %327, i32 noundef 21, i32 noundef %328, i32 noundef %329)
  %330 = load i32, ptr %14, align 4, !tbaa !9
  %331 = icmp sgt i32 %330, 0
  br i1 %331, label %335, label %332

332:                                              ; preds = %308
  %333 = load i32, ptr %15, align 4, !tbaa !9
  %334 = icmp sgt i32 %333, 0
  br i1 %334, label %335, label %357

335:                                              ; preds = %332, %308
  %336 = load ptr, ptr %5, align 8, !tbaa !5
  %337 = load i32, ptr %11, align 4, !tbaa !9
  call void @libxsmm_generator_gemm_getval_stack_var_rv64(ptr noundef %336, i32 noundef 20, i32 noundef %337)
  %338 = load ptr, ptr %5, align 8, !tbaa !5
  %339 = load i32, ptr %12, align 4, !tbaa !9
  %340 = load i32, ptr %19, align 4, !tbaa !9
  %341 = zext i32 %340 to i64
  call void @libxsmm_rv64_instruction_alu_set_imm64(ptr noundef %338, i32 noundef %339, i64 noundef %341)
  %342 = load ptr, ptr %5, align 8, !tbaa !5
  %343 = load i32, ptr %11, align 4, !tbaa !9
  %344 = load i32, ptr %12, align 4, !tbaa !9
  %345 = load i32, ptr %11, align 4, !tbaa !9
  call void @libxsmm_rv64_instruction_alu_compute_imm64(ptr noundef %342, i32 noundef 33554483, i32 noundef %343, i32 noundef %344, i32 noundef %345, i64 noundef 0)
  %346 = load ptr, ptr %5, align 8, !tbaa !5
  %347 = load i32, ptr %12, align 4, !tbaa !9
  call void @libxsmm_rv64_instruction_alu_compute_imm12(ptr noundef %346, i32 noundef 19, i32 noundef 2, i32 noundef %347, i32 noundef 0)
  %348 = load ptr, ptr %5, align 8, !tbaa !5
  %349 = load i32, ptr %12, align 4, !tbaa !9
  %350 = load i32, ptr %11, align 4, !tbaa !9
  %351 = load i32, ptr %12, align 4, !tbaa !9
  call void @libxsmm_rv64_instruction_alu_compute_imm64(ptr noundef %348, i32 noundef 1073741875, i32 noundef %349, i32 noundef %350, i32 noundef %351, i64 noundef 0)
  %352 = load ptr, ptr %5, align 8, !tbaa !5
  %353 = load i32, ptr %12, align 4, !tbaa !9
  call void @libxsmm_rv64_instruction_alu_compute_imm12(ptr noundef %352, i32 noundef 19, i32 noundef %353, i32 noundef 2, i32 noundef 0)
  %354 = load ptr, ptr %5, align 8, !tbaa !5
  %355 = load i32, ptr %11, align 4, !tbaa !9
  %356 = load i32, ptr %12, align 4, !tbaa !9
  call void @libxsmm_generator_gemm_setval_stack_var_rv64(ptr noundef %354, i32 noundef 25, i32 noundef %355, i32 noundef %356)
  br label %357

357:                                              ; preds = %335, %332
  br label %358

358:                                              ; preds = %357, %293
  %359 = load ptr, ptr %5, align 8, !tbaa !5
  %360 = load i32, ptr %11, align 4, !tbaa !9
  call void @libxsmm_rv64_instruction_alu_compute_imm12(ptr noundef %359, i32 noundef 19, i32 noundef 2, i32 noundef %360, i32 noundef 0)
  %361 = load ptr, ptr %5, align 8, !tbaa !5
  %362 = load i32, ptr %11, align 4, !tbaa !9
  %363 = load i32, ptr %12, align 4, !tbaa !9
  %364 = load i32, ptr %11, align 4, !tbaa !9
  call void @libxsmm_rv64_instruction_alu_compute_imm64(ptr noundef %361, i32 noundef 51, i32 noundef %362, i32 noundef %363, i32 noundef %364, i64 noundef 128)
  %365 = load ptr, ptr %5, align 8, !tbaa !5
  %366 = load i32, ptr %11, align 4, !tbaa !9
  call void @libxsmm_rv64_instruction_alu_compute_imm12(ptr noundef %365, i32 noundef 19, i32 noundef %366, i32 noundef 2, i32 noundef 0)
  %367 = load ptr, ptr %5, align 8, !tbaa !5
  %368 = load i32, ptr %12, align 4, !tbaa !9
  %369 = load i32, ptr %11, align 4, !tbaa !9
  call void @libxsmm_generator_gemm_setval_stack_var_rv64(ptr noundef %367, i32 noundef 26, i32 noundef %368, i32 noundef %369)
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  br label %370

370:                                              ; preds = %358, %61
  %371 = load i32, ptr %9, align 4, !tbaa !9
  %372 = icmp ugt i32 %371, 0
  br i1 %372, label %373, label %387

373:                                              ; preds = %370
  %374 = load ptr, ptr %5, align 8, !tbaa !5
  %375 = load i32, ptr %11, align 4, !tbaa !9
  call void @libxsmm_rv64_instruction_alu_compute_imm12(ptr noundef %374, i32 noundef 19, i32 noundef 2, i32 noundef %375, i32 noundef 0)
  %376 = load ptr, ptr %5, align 8, !tbaa !5
  %377 = load i32, ptr %11, align 4, !tbaa !9
  %378 = load i32, ptr %12, align 4, !tbaa !9
  %379 = load i32, ptr %11, align 4, !tbaa !9
  %380 = load i32, ptr %9, align 4, !tbaa !9
  %381 = zext i32 %380 to i64
  call void @libxsmm_rv64_instruction_alu_compute_imm64(ptr noundef %376, i32 noundef 1073741875, i32 noundef %377, i32 noundef %378, i32 noundef %379, i64 noundef %381)
  %382 = load ptr, ptr %5, align 8, !tbaa !5
  %383 = load i32, ptr %11, align 4, !tbaa !9
  call void @libxsmm_rv64_instruction_alu_compute_imm12(ptr noundef %382, i32 noundef 19, i32 noundef %383, i32 noundef 2, i32 noundef 0)
  %384 = load ptr, ptr %5, align 8, !tbaa !5
  %385 = load i32, ptr %12, align 4, !tbaa !9
  %386 = load i32, ptr %11, align 4, !tbaa !9
  call void @libxsmm_generator_gemm_setval_stack_var_rv64(ptr noundef %384, i32 noundef 6, i32 noundef %385, i32 noundef %386)
  br label %387

387:                                              ; preds = %373, %370
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  ret void
}

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

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

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

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

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 = { noreturn nounwind "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 #4 = { nounwind }
attributes #5 = { noreturn 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 92}
!12 = !{!"libxsmm_gp_reg_mapping_struct", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 116, !10, i64 120, !10, i64 124, !10, i64 128}
!13 = !{!12, !10, i64 88}
!14 = !{!15, !10, i64 24}
!15 = !{!"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, !16, i64 33, !16, i64 41, !7, i64 49, !10, i64 50, !10, i64 54, !10, i64 58, !17, i64 62, !17, i64 64, !7, i64 66, !7, i64 67, !7, i64 68, !7, i64 69, !17, i64 70, !17, i64 72, !17, i64 74, !17, i64 76, !17, i64 78, !17, i64 80, !10, i64 82, !10, i64 86, !10, i64 90, !7, i64 94}
!16 = !{!"long long", !7, i64 0}
!17 = !{!"short", !7, i64 0}
!18 = !{!19, !10, i64 140}
!19 = !{!"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, !20, 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}
!20 = !{!"libxsmm_tile_config", !7, i64 0, !17, i64 2, !7, i64 4, !17, i64 6, !7, i64 8, !17, i64 10, !7, i64 12, !17, i64 14, !7, i64 16, !17, i64 18, !7, i64 20, !17, i64 22, !7, i64 24, !17, i64 26, !7, i64 28, !17, i64 30, !7, i64 32}
!21 = !{!15, !10, i64 4}
!22 = !{!15, !10, i64 0}
!23 = !{!15, !10, i64 8}


; 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 [82 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [27 x i8], align 1
@__PRETTY_FUNCTION__.libxsmm_generator_gemm_setup_stack_frame_allocate_scratch_rv64 = external hidden unnamed_addr constant [190 x i8], align 1

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

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

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

declare i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_gemm_setup_stack_frame_allocate_scratch_rv64(ptr noundef %0, ptr noundef %1, ptr nocapture noundef readonly %2, ptr nocapture noundef readonly %3) local_unnamed_addr #0 {
  %5 = getelementptr inbounds i8, ptr %2, i64 92
  %6 = load i32, ptr %5, align 4, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %2, i64 88
  %8 = load i32, ptr %7, align 4, !tbaa !10
  %9 = getelementptr inbounds i8, ptr %1, i64 24
  %10 = load i32, ptr %9, align 1, !tbaa !11
  %11 = lshr i32 %10, 4
  %spec.select = and i32 %11, 2048
  %12 = getelementptr inbounds i8, ptr %3, i64 140
  %13 = load i32, ptr %12, align 4, !tbaa !15
  %.not131 = icmp eq i32 %13, 0
  br i1 %.not131, label %21, label %14

14:                                               ; preds = %4
  %15 = getelementptr inbounds i8, ptr %1, i64 4
  %16 = load i32, ptr %15, align 1, !tbaa !19
  %17 = load i32, ptr %1, align 1, !tbaa !20
  %18 = shl i32 %16, 2
  %19 = mul i32 %18, %17
  %20 = add i32 %19, 2048
  br label %21

21:                                               ; preds = %14, %4
  %.1 = phi i32 [ %20, %14 ], [ %spec.select, %4 ]
  %.1.biased = add i32 %.1, 63
  %22 = and i32 %.1.biased, -64
  %23 = and i32 %10, 1
  %.not132 = icmp eq i32 %23, 0
  br i1 %.not132, label %91, label %24

24:                                               ; preds = %21
  %25 = and i32 %10, 458752
  %26 = icmp eq i32 %25, 0
  %27 = getelementptr inbounds i8, ptr %1, i64 29
  %28 = tail call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef nonnull %27) #3
  %29 = icmp eq i32 %28, 0
  br i1 %29, label %70, label %30

30:                                               ; preds = %24
  %31 = tail call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef nonnull %27) #3
  %32 = icmp eq i32 %31, 1
  br i1 %32, label %70, label %33

33:                                               ; preds = %30
  %34 = tail call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef nonnull %27) #3
  %35 = icmp eq i32 %34, 2
  br i1 %35, label %70, label %36

36:                                               ; preds = %33
  %37 = tail call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef nonnull %27) #3
  %38 = icmp eq i32 %37, 3
  br i1 %38, label %70, label %39

39:                                               ; preds = %36
  %40 = tail call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef nonnull %27) #3
  %41 = icmp eq i32 %40, 4
  br i1 %41, label %70, label %42

42:                                               ; preds = %39
  %43 = tail call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef nonnull %27) #3
  %44 = icmp eq i32 %43, 5
  br i1 %44, label %70, label %45

45:                                               ; preds = %42
  %46 = tail call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef nonnull %27) #3
  %47 = icmp eq i32 %46, 6
  br i1 %47, label %70, label %48

48:                                               ; preds = %45
  %49 = tail call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef nonnull %27) #3
  %50 = icmp eq i32 %49, 7
  br i1 %50, label %70, label %51

51:                                               ; preds = %48
  %52 = tail call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef nonnull %27) #3
  %53 = icmp eq i32 %52, 8
  br i1 %53, label %70, label %54

54:                                               ; preds = %51
  %55 = tail call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef nonnull %27) #3
  %56 = icmp eq i32 %55, 9
  br i1 %56, label %70, label %57

57:                                               ; preds = %54
  %58 = tail call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef nonnull %27) #3
  %59 = icmp eq i32 %58, 10
  br i1 %59, label %70, label %60

60:                                               ; preds = %57
  %61 = tail call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef nonnull %27) #3
  %62 = icmp eq i32 %61, 11
  br i1 %62, label %70, label %63

63:                                               ; preds = %60
  %64 = tail call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef nonnull %27) #3
  %65 = icmp eq i32 %64, 12
  br i1 %65, label %70, label %66

66:                                               ; preds = %63
  %67 = tail call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef nonnull %27) #3
  %68 = icmp eq i32 %67, 13
  br i1 %68, label %70, label %69

69:                                               ; preds = %66
  tail call void @__assert_fail(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str, i32 noundef 169, ptr noundef nonnull @__PRETTY_FUNCTION__.libxsmm_generator_gemm_setup_stack_frame_allocate_scratch_rv64) #4
  unreachable

70:                                               ; preds = %24, %33, %39, %45, %51, %57, %63, %66, %60, %54, %48, %42, %36, %30
  %71 = phi i32 [ 8, %24 ], [ 4, %30 ], [ 2, %33 ], [ 2, %36 ], [ 1, %39 ], [ 1, %42 ], [ 8, %45 ], [ 8, %48 ], [ 4, %51 ], [ 4, %54 ], [ 2, %57 ], [ 2, %60 ], [ 1, %63 ], [ 1, %66 ]
  %72 = load i32, ptr %1, align 1, !tbaa !20
  %73 = getelementptr inbounds i8, ptr %1, i64 8
  %74 = load i32, ptr %73, align 1, !tbaa !21
  %75 = mul i32 %74, %71
  %76 = mul i32 %75, %72
  %77 = getelementptr inbounds i8, ptr %1, i64 4
  %78 = load i32, ptr %77, align 1, !tbaa !19
  %79 = mul i32 %75, %78
  %.biased = add i32 %76, 63
  %80 = and i32 %.biased, -64
  %.biased135 = add i32 %79, 63
  %81 = and i32 %.biased135, -64
  br i1 %26, label %82, label %85

82:                                               ; preds = %70
  tail call void @libxsmm_rv64_instruction_alu_compute_imm12(ptr noundef %0, i32 noundef 19, i32 noundef 2, i32 noundef %6, i32 noundef 0) #3
  %83 = sub i32 0, %80
  %84 = zext i32 %83 to i64
  tail call void @libxsmm_rv64_instruction_alu_compute_imm64(ptr noundef %0, i32 noundef 51, i32 noundef %6, i32 noundef %8, i32 noundef %6, i64 noundef %84) #3
  tail call void @libxsmm_rv64_instruction_alu_compute_imm12(ptr noundef %0, i32 noundef 19, i32 noundef %6, i32 noundef 2, i32 noundef 0) #3
  tail call void @libxsmm_generator_gemm_setval_stack_var_rv64(ptr noundef %0, i32 noundef 21, i32 noundef %8, i32 noundef %6)
  br label %90

85:                                               ; preds = %70
  tail call void @libxsmm_generator_gemm_getval_stack_var_rv64(ptr noundef %0, i32 noundef 20, i32 noundef %6)
  %86 = zext i32 %80 to i64
  tail call void @libxsmm_rv64_instruction_alu_set_imm64(ptr noundef %0, i32 noundef %8, i64 noundef %86) #3
  tail call void @libxsmm_rv64_instruction_alu_compute(ptr noundef %0, i32 noundef 33554483, i32 noundef %6, i32 noundef %8, i32 noundef %6) #3
  tail call void @libxsmm_rv64_instruction_alu_compute_imm12(ptr noundef %0, i32 noundef 19, i32 noundef 2, i32 noundef %8, i32 noundef 0) #3
  tail call void @libxsmm_rv64_instruction_alu_compute_imm64(ptr noundef %0, i32 noundef 1073741875, i32 noundef %8, i32 noundef %6, i32 noundef %8, i64 noundef 0) #3
  tail call void @libxsmm_rv64_instruction_alu_compute_imm12(ptr noundef %0, i32 noundef 19, i32 noundef %8, i32 noundef 2, i32 noundef 0) #3
  tail call void @libxsmm_generator_gemm_setval_stack_var_rv64(ptr noundef %0, i32 noundef 21, i32 noundef %6, i32 noundef %8)
  %87 = and i32 %10, 196608
  %or.cond3.not = icmp eq i32 %87, 0
  br i1 %or.cond3.not, label %90, label %88

88:                                               ; preds = %85
  tail call void @libxsmm_generator_gemm_getval_stack_var_rv64(ptr noundef %0, i32 noundef 20, i32 noundef %6)
  %89 = zext i32 %81 to i64
  tail call void @libxsmm_rv64_instruction_alu_set_imm64(ptr noundef %0, i32 noundef %8, i64 noundef %89) #3
  tail call void @libxsmm_rv64_instruction_alu_compute_imm64(ptr noundef %0, i32 noundef 33554483, i32 noundef %6, i32 noundef %8, i32 noundef %6, i64 noundef 0) #3
  tail call void @libxsmm_rv64_instruction_alu_compute_imm12(ptr noundef %0, i32 noundef 19, i32 noundef 2, i32 noundef %8, i32 noundef 0) #3
  tail call void @libxsmm_rv64_instruction_alu_compute_imm64(ptr noundef %0, i32 noundef 1073741875, i32 noundef %8, i32 noundef %6, i32 noundef %8, i64 noundef 0) #3
  tail call void @libxsmm_rv64_instruction_alu_compute_imm12(ptr noundef %0, i32 noundef 19, i32 noundef %8, i32 noundef 2, i32 noundef 0) #3
  tail call void @libxsmm_generator_gemm_setval_stack_var_rv64(ptr noundef %0, i32 noundef 25, i32 noundef %6, i32 noundef %8)
  br label %90

90:                                               ; preds = %88, %85, %82
  tail call void @libxsmm_rv64_instruction_alu_compute_imm12(ptr noundef %0, i32 noundef 19, i32 noundef 2, i32 noundef %6, i32 noundef 0) #3
  tail call void @libxsmm_rv64_instruction_alu_compute_imm64(ptr noundef %0, i32 noundef 51, i32 noundef %6, i32 noundef %8, i32 noundef %6, i64 noundef 128) #3
  tail call void @libxsmm_rv64_instruction_alu_compute_imm12(ptr noundef %0, i32 noundef 19, i32 noundef %6, i32 noundef 2, i32 noundef 0) #3
  tail call void @libxsmm_generator_gemm_setval_stack_var_rv64(ptr noundef %0, i32 noundef 26, i32 noundef %8, i32 noundef %6)
  br label %91

91:                                               ; preds = %90, %21
  %.not134 = icmp eq i32 %22, 0
  br i1 %.not134, label %94, label %92

92:                                               ; preds = %91
  tail call void @libxsmm_rv64_instruction_alu_compute_imm12(ptr noundef %0, i32 noundef 19, i32 noundef 2, i32 noundef %6, i32 noundef 0) #3
  %93 = zext i32 %22 to i64
  tail call void @libxsmm_rv64_instruction_alu_compute_imm64(ptr noundef %0, i32 noundef 1073741875, i32 noundef %6, i32 noundef %8, i32 noundef %6, i64 noundef %93) #3
  tail call void @libxsmm_rv64_instruction_alu_compute_imm12(ptr noundef %0, i32 noundef 19, i32 noundef %6, i32 noundef 2, i32 noundef 0) #3
  tail call void @libxsmm_generator_gemm_setval_stack_var_rv64(ptr noundef %0, i32 noundef 6, i32 noundef %8, i32 noundef %6)
  br label %94

94:                                               ; preds = %92, %91
  ret void
}

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

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

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

declare void @libxsmm_rv64_instruction_alu_compute(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #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 = { "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 = { noreturn nounwind "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 }
attributes #4 = { noreturn nounwind }

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

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass