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

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

%struct.libxsmm_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 }

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

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

declare i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef) #1

declare i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef) #1

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

; Function Attrs: nounwind uwtable
define dso_local i32 @libxsmm_generator_gemm_aarch64_update_m_blocking(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  store i32 %3, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  store i32 0, ptr %9, align 4, !tbaa !9
  %10 = load i32, ptr %7, align 4, !tbaa !9
  %11 = icmp eq i32 %10, 2001
  br i1 %11, label %18, label %12

12:                                               ; preds = %4
  %13 = load i32, ptr %7, align 4, !tbaa !9
  %14 = icmp eq i32 %13, 2002
  br i1 %14, label %18, label %15

15:                                               ; preds = %12
  %16 = load i32, ptr %7, align 4, !tbaa !9
  %17 = icmp eq i32 %16, 2101
  br i1 %17, label %18, label %85

18:                                               ; preds = %15, %12, %4
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %19, i32 0, i32 8
  %21 = getelementptr inbounds [3 x i8], ptr %20, i64 0, i64 0
  %22 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef %21)
  %23 = icmp eq i32 1, %22
  br i1 %23, label %30, label %24

24:                                               ; preds = %18
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %25, i32 0, i32 8
  %27 = getelementptr inbounds [3 x i8], ptr %26, i64 0, i64 0
  %28 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef %27)
  %29 = icmp eq i32 2, %28
  br i1 %29, label %30, label %85

30:                                               ; preds = %24, %18
  %31 = load i32, ptr %8, align 4, !tbaa !9
  %32 = icmp eq i32 %31, 16
  br i1 %32, label %33, label %55

33:                                               ; preds = %30
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %34, i32 0, i32 0
  %36 = load i32, ptr %35, align 1, !tbaa !11
  %37 = urem i32 %36, 16
  store i32 %37, ptr %9, align 4, !tbaa !9
  %38 = load i32, ptr %9, align 4, !tbaa !9
  %39 = icmp eq i32 %38, 15
  br i1 %39, label %40, label %41

40:                                               ; preds = %33
  store i32 12, ptr %9, align 4, !tbaa !9
  br label %41

41:                                               ; preds = %40, %33
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %42, i32 0, i32 30
  %44 = load i32, ptr %43, align 8, !tbaa !15
  %45 = icmp ugt i32 %44, 0
  br i1 %45, label %46, label %54

46:                                               ; preds = %41
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %47, i32 0, i32 0
  %49 = load i32, ptr %48, align 1, !tbaa !11
  %50 = urem i32 %49, 16
  %51 = icmp eq i32 %50, 15
  br i1 %51, label %52, label %53

52:                                               ; preds = %46
  store i32 8, ptr %9, align 4, !tbaa !9
  br label %53

53:                                               ; preds = %52, %46
  br label %54

54:                                               ; preds = %53, %41
  br label %84

55:                                               ; preds = %30
  %56 = load i32, ptr %8, align 4, !tbaa !9
  %57 = icmp eq i32 %56, 12
  br i1 %57, label %58, label %68

58:                                               ; preds = %55
  %59 = load ptr, ptr %6, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %59, i32 0, i32 0
  %61 = load i32, ptr %60, align 1, !tbaa !11
  %62 = icmp ne i32 %61, 12
  br i1 %62, label %63, label %68

63:                                               ; preds = %58
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %64, i32 0, i32 0
  %66 = load i32, ptr %65, align 1, !tbaa !11
  %67 = urem i32 %66, 4
  store i32 %67, ptr %9, align 4, !tbaa !9
  br label %83

68:                                               ; preds = %58, %55
  %69 = load i32, ptr %8, align 4, !tbaa !9
  %70 = icmp eq i32 %69, 8
  br i1 %70, label %71, label %81

71:                                               ; preds = %68
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %72, i32 0, i32 0
  %74 = load i32, ptr %73, align 1, !tbaa !11
  %75 = icmp ne i32 %74, 8
  br i1 %75, label %76, label %81

76:                                               ; preds = %71
  %77 = load ptr, ptr %6, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %77, i32 0, i32 0
  %79 = load i32, ptr %78, align 1, !tbaa !11
  %80 = urem i32 %79, 8
  store i32 %80, ptr %9, align 4, !tbaa !9
  br label %82

81:                                               ; preds = %71, %68
  br label %82

82:                                               ; preds = %81, %76
  br label %83

83:                                               ; preds = %82, %63
  br label %84

84:                                               ; preds = %83, %54
  br label %277

85:                                               ; preds = %24, %15
  %86 = load i32, ptr %7, align 4, !tbaa !9
  %87 = icmp eq i32 %86, 2001
  br i1 %87, label %97, label %88

88:                                               ; preds = %85
  %89 = load i32, ptr %7, align 4, !tbaa !9
  %90 = icmp eq i32 %89, 2002
  br i1 %90, label %97, label %91

91:                                               ; preds = %88
  %92 = load i32, ptr %7, align 4, !tbaa !9
  %93 = icmp eq i32 %92, 2101
  br i1 %93, label %97, label %94

94:                                               ; preds = %91
  %95 = load i32, ptr %7, align 4, !tbaa !9
  %96 = icmp eq i32 %95, 2501
  br i1 %96, label %97, label %113

97:                                               ; preds = %94, %91, %88, %85
  %98 = load ptr, ptr %6, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %98, i32 0, i32 8
  %100 = getelementptr inbounds [3 x i8], ptr %99, i64 0, i64 0
  %101 = call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef %100)
  %102 = icmp eq i32 0, %101
  br i1 %102, label %103, label %113

103:                                              ; preds = %97
  %104 = load i32, ptr %8, align 4, !tbaa !9
  %105 = icmp eq i32 %104, 8
  br i1 %105, label %106, label %111

106:                                              ; preds = %103
  %107 = load ptr, ptr %6, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %107, i32 0, i32 0
  %109 = load i32, ptr %108, align 1, !tbaa !11
  %110 = urem i32 %109, 8
  store i32 %110, ptr %9, align 4, !tbaa !9
  br label %112

111:                                              ; preds = %103
  br label %112

112:                                              ; preds = %111, %106
  br label %276

113:                                              ; preds = %97, %94
  %114 = load i32, ptr %7, align 4, !tbaa !9
  %115 = icmp eq i32 %114, 2301
  br i1 %115, label %119, label %116

116:                                              ; preds = %113
  %117 = load i32, ptr %7, align 4, !tbaa !9
  %118 = icmp eq i32 %117, 2302
  br i1 %118, label %119, label %147

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

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

131:                                              ; preds = %125
  %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_C_PREC(ptr noundef %134)
  %136 = icmp eq i32 2, %135
  br i1 %136, label %137, label %147

137:                                              ; preds = %131, %125, %119
  %138 = load i32, ptr %8, align 4, !tbaa !9
  %139 = icmp eq i32 %138, 32
  br i1 %139, label %140, label %145

140:                                              ; preds = %137
  %141 = load ptr, ptr %6, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %141, i32 0, i32 0
  %143 = load i32, ptr %142, align 1, !tbaa !11
  %144 = urem i32 %143, 32
  store i32 %144, ptr %9, align 4, !tbaa !9
  br label %146

145:                                              ; preds = %137
  br label %146

146:                                              ; preds = %145, %140
  br label %275

147:                                              ; preds = %131, %116
  %148 = load i32, ptr %7, align 4, !tbaa !9
  %149 = icmp eq i32 %148, 2301
  br i1 %149, label %153, label %150

150:                                              ; preds = %147
  %151 = load i32, ptr %7, align 4, !tbaa !9
  %152 = icmp eq i32 %151, 2302
  br i1 %152, label %153, label %169

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

159:                                              ; preds = %153
  %160 = load i32, ptr %8, align 4, !tbaa !9
  %161 = icmp eq i32 %160, 16
  br i1 %161, label %162, label %167

162:                                              ; preds = %159
  %163 = load ptr, ptr %6, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %163, i32 0, i32 0
  %165 = load i32, ptr %164, align 1, !tbaa !11
  %166 = urem i32 %165, 16
  store i32 %166, ptr %9, align 4, !tbaa !9
  br label %168

167:                                              ; preds = %159
  br label %168

168:                                              ; preds = %167, %162
  br label %274

169:                                              ; preds = %153, %150
  %170 = load i32, ptr %7, align 4, !tbaa !9
  %171 = icmp eq i32 %170, 2401
  br i1 %171, label %175, label %172

172:                                              ; preds = %169
  %173 = load i32, ptr %7, align 4, !tbaa !9
  %174 = icmp eq i32 %173, 2402
  br i1 %174, label %175, label %191

175:                                              ; preds = %172, %169
  %176 = load ptr, ptr %6, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %176, i32 0, i32 8
  %178 = getelementptr inbounds [3 x i8], ptr %177, i64 0, i64 0
  %179 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef %178)
  %180 = icmp eq i32 1, %179
  br i1 %180, label %181, label %191

181:                                              ; preds = %175
  %182 = load i32, ptr %8, align 4, !tbaa !9
  %183 = icmp eq i32 %182, 64
  br i1 %183, label %184, label %189

184:                                              ; preds = %181
  %185 = load ptr, ptr %6, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %185, i32 0, i32 0
  %187 = load i32, ptr %186, align 1, !tbaa !11
  %188 = urem i32 %187, 64
  store i32 %188, ptr %9, align 4, !tbaa !9
  br label %190

189:                                              ; preds = %181
  br label %190

190:                                              ; preds = %189, %184
  br label %273

191:                                              ; preds = %175, %172
  %192 = load i32, ptr %7, align 4, !tbaa !9
  %193 = icmp eq i32 %192, 2401
  br i1 %193, label %197, label %194

194:                                              ; preds = %191
  %195 = load i32, ptr %7, align 4, !tbaa !9
  %196 = icmp eq i32 %195, 2402
  br i1 %196, label %197, label %213

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

203:                                              ; preds = %197
  %204 = load i32, ptr %8, align 4, !tbaa !9
  %205 = icmp eq i32 %204, 32
  br i1 %205, label %206, label %211

206:                                              ; preds = %203
  %207 = load ptr, ptr %6, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %207, i32 0, i32 0
  %209 = load i32, ptr %208, align 1, !tbaa !11
  %210 = urem i32 %209, 32
  store i32 %210, ptr %9, align 4, !tbaa !9
  br label %212

211:                                              ; preds = %203
  br label %212

212:                                              ; preds = %211, %206
  br label %272

213:                                              ; preds = %197, %194
  %214 = load i32, ptr %7, align 4, !tbaa !9
  %215 = icmp eq i32 %214, 2201
  br i1 %215, label %219, label %216

216:                                              ; preds = %213
  %217 = load i32, ptr %7, align 4, !tbaa !9
  %218 = icmp eq i32 %217, 2202
  br i1 %218, label %219, label %247

219:                                              ; preds = %216, %213
  %220 = load ptr, ptr %6, 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_C_PREC(ptr noundef %222)
  %224 = icmp eq i32 1, %223
  br i1 %224, label %237, label %225

225:                                              ; preds = %219
  %226 = load ptr, ptr %6, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %226, i32 0, i32 8
  %228 = getelementptr inbounds [3 x i8], ptr %227, i64 0, i64 0
  %229 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef %228)
  %230 = icmp eq i32 8, %229
  br i1 %230, label %237, label %231

231:                                              ; preds = %225
  %232 = load ptr, ptr %6, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %232, i32 0, i32 8
  %234 = getelementptr inbounds [3 x i8], ptr %233, i64 0, i64 0
  %235 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef %234)
  %236 = icmp eq i32 2, %235
  br i1 %236, label %237, label %247

237:                                              ; preds = %231, %225, %219
  %238 = load i32, ptr %8, align 4, !tbaa !9
  %239 = icmp eq i32 %238, 16
  br i1 %239, label %240, label %245

240:                                              ; preds = %237
  %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 !11
  %244 = urem i32 %243, 16
  store i32 %244, ptr %9, align 4, !tbaa !9
  br label %246

245:                                              ; preds = %237
  br label %246

246:                                              ; preds = %245, %240
  br label %271

247:                                              ; preds = %231, %216
  %248 = load i32, ptr %7, align 4, !tbaa !9
  %249 = icmp eq i32 %248, 2201
  br i1 %249, label %253, label %250

250:                                              ; preds = %247
  %251 = load i32, ptr %7, align 4, !tbaa !9
  %252 = icmp eq i32 %251, 2202
  br i1 %252, label %253, label %269

253:                                              ; preds = %250, %247
  %254 = load ptr, ptr %6, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %254, i32 0, i32 8
  %256 = getelementptr inbounds [3 x i8], ptr %255, i64 0, i64 0
  %257 = call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef %256)
  %258 = icmp eq i32 0, %257
  br i1 %258, label %259, label %269

259:                                              ; preds = %253
  %260 = load i32, ptr %8, align 4, !tbaa !9
  %261 = icmp eq i32 %260, 8
  br i1 %261, label %262, label %267

262:                                              ; preds = %259
  %263 = load ptr, ptr %6, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %263, i32 0, i32 0
  %265 = load i32, ptr %264, align 1, !tbaa !11
  %266 = urem i32 %265, 8
  store i32 %266, ptr %9, align 4, !tbaa !9
  br label %268

267:                                              ; preds = %259
  br label %268

268:                                              ; preds = %267, %262
  br label %270

269:                                              ; preds = %253, %250
  br label %270

270:                                              ; preds = %269, %268
  br label %271

271:                                              ; preds = %270, %246
  br label %272

272:                                              ; preds = %271, %212
  br label %273

273:                                              ; preds = %272, %190
  br label %274

274:                                              ; preds = %273, %168
  br label %275

275:                                              ; preds = %274, %146
  br label %276

276:                                              ; preds = %275, %112
  br label %277

277:                                              ; preds = %276, %84
  %278 = load ptr, ptr %5, align 8, !tbaa !5
  %279 = load i32, ptr %7, align 4, !tbaa !9
  %280 = load ptr, ptr %6, align 8, !tbaa !5
  call void @libxsmm_generator_gemm_init_micro_kernel_config_aarch64(ptr noundef %278, i32 noundef %279, ptr noundef %280)
  %281 = load i32, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  ret i32 %281
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

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

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

declare i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef) local_unnamed_addr #0

declare i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 64) i32 @libxsmm_generator_gemm_aarch64_update_m_blocking(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #1 {
  switch i32 %2, label %35 [
    i32 2101, label %5
    i32 2002, label %5
    i32 2001, label %5
    i32 2501, label %26
  ]

5:                                                ; preds = %4, %4, %4
  %6 = getelementptr inbounds i8, ptr %1, i64 29
  %7 = tail call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef nonnull %6) #2
  %8 = icmp eq i32 %7, 1
  br i1 %8, label %12, label %9

9:                                                ; preds = %5
  %10 = tail call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef nonnull %6) #2
  %11 = icmp eq i32 %10, 2
  br i1 %11, label %12, label %25

12:                                               ; preds = %9, %5
  switch i32 %3, label %.critedge92 [
    i32 16, label %13
    i32 12, label %19
    i32 8, label %22
  ]

13:                                               ; preds = %12
  %14 = load i32, ptr %1, align 1, !tbaa !5
  %15 = and i32 %14, 15
  %16 = icmp eq i32 %15, 15
  %spec.store.select = select i1 %16, i32 12, i32 %15
  %17 = getelementptr inbounds i8, ptr %0, i64 120
  %18 = load i32, ptr %17, align 8, !tbaa !12
  %.not87 = icmp eq i32 %18, 0
  %spec.select = select i1 %16, i32 8, i32 %15
  %spec.select93 = select i1 %.not87, i32 %spec.store.select, i32 %spec.select
  br label %.critedge92

19:                                               ; preds = %12
  %20 = load i32, ptr %1, align 1, !tbaa !5
  %21 = and i32 %20, 3
  br label %.critedge92

22:                                               ; preds = %12
  %23 = load i32, ptr %1, align 1, !tbaa !5
  %24 = and i32 %23, 7
  br label %.critedge92

25:                                               ; preds = %9
  switch i32 %2, label %.critedge92 [
    i32 2001, label %26
    i32 2101, label %26
    i32 2002, label %26
  ]

26:                                               ; preds = %25, %4, %25, %25
  %27 = getelementptr inbounds i8, ptr %1, i64 29
  %28 = tail call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef nonnull %27) #2
  %29 = icmp eq i32 %28, 0
  br i1 %29, label %30, label %35

30:                                               ; preds = %26
  %31 = icmp eq i32 %3, 8
  br i1 %31, label %32, label %.critedge92

32:                                               ; preds = %30
  %33 = load i32, ptr %1, align 1, !tbaa !5
  %34 = and i32 %33, 7
  br label %.critedge92

35:                                               ; preds = %4, %26
  %36 = add i32 %2, -2301
  %or.cond11 = icmp ult i32 %36, 2
  br i1 %or.cond11, label %37, label %.critedge

37:                                               ; preds = %35
  %38 = getelementptr inbounds i8, ptr %1, i64 29
  %39 = tail call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef nonnull %38) #2
  %40 = icmp eq i32 %39, 1
  br i1 %40, label %47, label %41

41:                                               ; preds = %37
  %42 = tail call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef nonnull %38) #2
  %43 = icmp eq i32 %42, 8
  br i1 %43, label %47, label %44

44:                                               ; preds = %41
  %45 = tail call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef nonnull %38) #2
  %46 = icmp eq i32 %45, 2
  br i1 %46, label %47, label %52

47:                                               ; preds = %44, %41, %37
  %48 = icmp eq i32 %3, 32
  br i1 %48, label %49, label %.critedge92

49:                                               ; preds = %47
  %50 = load i32, ptr %1, align 1, !tbaa !5
  %51 = and i32 %50, 31
  br label %.critedge92

52:                                               ; preds = %44
  %53 = tail call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef nonnull %38) #2
  %54 = icmp eq i32 %53, 0
  %55 = icmp eq i32 %3, 16
  %or.cond = and i1 %55, %54
  br i1 %or.cond, label %56, label %.critedge92

56:                                               ; preds = %52
  %57 = load i32, ptr %1, align 1, !tbaa !5
  %58 = and i32 %57, 15
  br label %.critedge92

.critedge:                                        ; preds = %35
  %59 = add i32 %2, -2401
  %or.cond15 = icmp ult i32 %59, 2
  br i1 %or.cond15, label %60, label %.critedge90

60:                                               ; preds = %.critedge
  %61 = getelementptr inbounds i8, ptr %1, i64 29
  %62 = tail call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef nonnull %61) #2
  %63 = icmp eq i32 %62, 1
  br i1 %63, label %64, label %69

64:                                               ; preds = %60
  %65 = icmp eq i32 %3, 64
  br i1 %65, label %66, label %.critedge92

66:                                               ; preds = %64
  %67 = load i32, ptr %1, align 1, !tbaa !5
  %68 = and i32 %67, 63
  br label %.critedge92

69:                                               ; preds = %60
  %70 = tail call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef nonnull %61) #2
  %71 = icmp eq i32 %70, 0
  %72 = icmp eq i32 %3, 32
  %or.cond100 = and i1 %72, %71
  br i1 %or.cond100, label %73, label %.critedge92

73:                                               ; preds = %69
  %74 = load i32, ptr %1, align 1, !tbaa !5
  %75 = and i32 %74, 31
  br label %.critedge92

.critedge90:                                      ; preds = %.critedge
  %76 = add i32 %2, -2201
  %or.cond19 = icmp ult i32 %76, 2
  br i1 %or.cond19, label %77, label %.critedge92

77:                                               ; preds = %.critedge90
  %78 = getelementptr inbounds i8, ptr %1, i64 29
  %79 = tail call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef nonnull %78) #2
  %80 = icmp eq i32 %79, 1
  br i1 %80, label %87, label %81

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

84:                                               ; preds = %81
  %85 = tail call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef nonnull %78) #2
  %86 = icmp eq i32 %85, 2
  br i1 %86, label %87, label %92

87:                                               ; preds = %84, %81, %77
  %88 = icmp eq i32 %3, 16
  br i1 %88, label %89, label %.critedge92

89:                                               ; preds = %87
  %90 = load i32, ptr %1, align 1, !tbaa !5
  %91 = and i32 %90, 15
  br label %.critedge92

92:                                               ; preds = %84
  %93 = tail call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef nonnull %78) #2
  %94 = icmp eq i32 %93, 0
  %95 = icmp eq i32 %3, 8
  %or.cond23 = and i1 %95, %94
  br i1 %or.cond23, label %96, label %.critedge92

96:                                               ; preds = %92
  %97 = load i32, ptr %1, align 1, !tbaa !5
  %98 = and i32 %97, 7
  br label %.critedge92

.critedge92:                                      ; preds = %19, %52, %25, %69, %13, %22, %.critedge90, %12, %30, %32, %56, %73, %96, %92, %89, %87, %66, %64, %49, %47
  %.0 = phi i32 [ %34, %32 ], [ 0, %30 ], [ %51, %49 ], [ 0, %47 ], [ %58, %56 ], [ %68, %66 ], [ 0, %64 ], [ %75, %73 ], [ %91, %89 ], [ 0, %87 ], [ %98, %96 ], [ 0, %92 ], [ 0, %12 ], [ %24, %22 ], [ 0, %.critedge90 ], [ %spec.select93, %13 ], [ 0, %69 ], [ 0, %25 ], [ 0, %52 ], [ %21, %19 ]
  tail call void @libxsmm_generator_gemm_init_micro_kernel_config_aarch64(ptr noundef %0, i32 noundef %2, ptr noundef %1)
  ret i32 %.0
}

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }

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

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


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