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

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

%struct.libxsmm_loop_label_tracker_struct = type { [512 x i32], i32 }
%struct.libxsmm_gp_reg_mapping_struct = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%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 }>

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_gemm_sse_avx_avx2_avx512_kernel_wrapper(ptr noundef %0, ptr noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %struct.libxsmm_loop_label_tracker_struct, align 4
  %6 = alloca %struct.libxsmm_gp_reg_mapping_struct, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2052, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 132, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  %10 = load ptr, ptr %4, align 8, !tbaa !5
  %11 = call i32 @libxsmm_x86_is_Amxfp4_Bfp32_gemm(ptr noundef %10)
  store i32 %11, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  %12 = load ptr, ptr %4, align 8, !tbaa !5
  %13 = call i32 @libxsmm_x86_is_Amxfp4_Bi8_gemm(ptr noundef %12)
  store i32 %13, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  %15 = call i32 @libxsmm_x86_is_Amxfp4_Bbf16_gemm(ptr noundef %14)
  store i32 %15, ptr %9, align 4, !tbaa !9
  call void @libxsmm_reset_x86_gp_reg_mapping(ptr noundef %6)
  %16 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 0
  store i32 7, ptr %16, align 4, !tbaa !11
  %17 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 0
  %18 = load i32, ptr %17, align 4, !tbaa !11
  %19 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 1
  store i32 %18, ptr %19, align 4, !tbaa !13
  %20 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 3
  store i32 6, ptr %20, align 4, !tbaa !14
  %21 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 5
  store i32 2, ptr %21, align 4, !tbaa !15
  %22 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 6
  store i32 1, ptr %22, align 4, !tbaa !16
  %23 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 8
  store i32 8, ptr %23, align 4, !tbaa !17
  %24 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 21
  store i32 9, ptr %24, align 4, !tbaa !18
  %25 = load ptr, ptr %4, 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_AB_COMMON_PREC(ptr noundef %27)
  %29 = icmp eq i32 12, %28
  br i1 %29, label %30, label %43

30:                                               ; preds = %2
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %31, i32 0, i32 8
  %33 = getelementptr inbounds [3 x i8], ptr %32, i64 0, i64 0
  %34 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef %33)
  %35 = icmp eq i32 1, %34
  br i1 %35, label %36, label %43

36:                                               ; preds = %30
  %37 = load i32, ptr %8, align 4, !tbaa !9
  %38 = icmp eq i32 %37, 0
  br i1 %38, label %39, label %43

39:                                               ; preds = %36
  %40 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 20
  store i32 1, ptr %40, align 4, !tbaa !19
  %41 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 6
  store i32 8, ptr %41, align 4, !tbaa !16
  %42 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 8
  store i32 9, ptr %42, align 4, !tbaa !17
  br label %118

43:                                               ; preds = %36, %30, %2
  %44 = load i32, ptr %7, align 4, !tbaa !9
  %45 = icmp ugt i32 %44, 0
  br i1 %45, label %52, label %46

46:                                               ; preds = %43
  %47 = load i32, ptr %9, align 4, !tbaa !9
  %48 = icmp ugt i32 %47, 0
  br i1 %48, label %52, label %49

49:                                               ; preds = %46
  %50 = load i32, ptr %8, align 4, !tbaa !9
  %51 = icmp ugt i32 %50, 0
  br i1 %51, label %52, label %59

52:                                               ; preds = %49, %46, %43
  %53 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 20
  store i32 1, ptr %53, align 4, !tbaa !19
  %54 = load i32, ptr %8, align 4, !tbaa !9
  %55 = icmp ugt i32 %54, 0
  br i1 %55, label %56, label %58

56:                                               ; preds = %52
  %57 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 21
  store i32 3, ptr %57, align 4, !tbaa !18
  br label %58

58:                                               ; preds = %56, %52
  br label %117

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

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

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

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

83:                                               ; preds = %77, %65, %59
  %84 = load ptr, ptr %4, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %84, i32 0, i32 8
  %86 = getelementptr inbounds [3 x i8], ptr %85, i64 0, i64 0
  %87 = call i32 @LIBXSMM_GEMM_GETENUM_A_PREC(ptr noundef %86)
  %88 = icmp eq i32 12, %87
  br i1 %88, label %89, label %112

89:                                               ; preds = %83
  %90 = load ptr, ptr %4, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %90, i32 0, i32 8
  %92 = getelementptr inbounds [3 x i8], ptr %91, i64 0, i64 0
  %93 = call i32 @LIBXSMM_GEMM_GETENUM_B_PREC(ptr noundef %92)
  %94 = icmp eq i32 2, %93
  br i1 %94, label %95, label %112

95:                                               ; preds = %89
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %96, i32 0, i32 8
  %98 = getelementptr inbounds [3 x i8], ptr %97, i64 0, i64 0
  %99 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef %98)
  %100 = icmp eq i32 2, %99
  br i1 %100, label %107, label %101

101:                                              ; preds = %95
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %102, i32 0, i32 8
  %104 = getelementptr inbounds [3 x i8], ptr %103, i64 0, i64 0
  %105 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef %104)
  %106 = icmp eq i32 1, %105
  br i1 %106, label %107, label %112

107:                                              ; preds = %101, %95, %77, %71
  %108 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 20
  store i32 3, ptr %108, align 4, !tbaa !19
  %109 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 21
  store i32 1, ptr %109, align 4, !tbaa !18
  %110 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 6
  store i32 8, ptr %110, align 4, !tbaa !16
  %111 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 8
  store i32 9, ptr %111, align 4, !tbaa !17
  br label %116

112:                                              ; preds = %101, %89, %83
  %113 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 20
  store i32 127, ptr %113, align 4, !tbaa !19
  %114 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 6
  store i32 1, ptr %114, align 4, !tbaa !16
  %115 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 8
  store i32 8, ptr %115, align 4, !tbaa !17
  br label %116

116:                                              ; preds = %112, %107
  br label %117

117:                                              ; preds = %116, %58
  br label %118

118:                                              ; preds = %117, %39
  %119 = load ptr, ptr %4, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %119, i32 0, i32 6
  %121 = load i32, ptr %120, align 1, !tbaa !20
  %122 = and i32 %121, 8388608
  %123 = icmp ne i32 %122, 0
  br i1 %123, label %124, label %128

124:                                              ; preds = %118
  %125 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 29
  store i32 1, ptr %125, align 4, !tbaa !24
  %126 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 31
  store i32 8, ptr %126, align 4, !tbaa !25
  %127 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 32
  store i32 9, ptr %127, align 4, !tbaa !26
  br label %128

128:                                              ; preds = %124, %118
  %129 = load ptr, ptr %4, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %129, i32 0, i32 6
  %131 = load i32, ptr %130, align 1, !tbaa !20
  %132 = and i32 %131, 65536
  %133 = icmp ne i32 %132, 0
  br i1 %133, label %140, label %134

134:                                              ; preds = %128
  %135 = load ptr, ptr %4, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %135, i32 0, i32 6
  %137 = load i32, ptr %136, align 1, !tbaa !20
  %138 = and i32 %137, 262144
  %139 = icmp ne i32 %138, 0
  br i1 %139, label %140, label %241

140:                                              ; preds = %134, %128
  %141 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 1
  store i32 7, ptr %141, align 4, !tbaa !13
  %142 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 3
  store i32 6, ptr %142, align 4, !tbaa !14
  %143 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 5
  store i32 2, ptr %143, align 4, !tbaa !15
  %144 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 13
  store i32 1, ptr %144, align 4, !tbaa !27
  %145 = load ptr, ptr %4, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %145, i32 0, i32 8
  %147 = getelementptr inbounds [3 x i8], ptr %146, i64 0, i64 0
  %148 = call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef %147)
  %149 = icmp eq i32 12, %148
  br i1 %149, label %150, label %163

150:                                              ; preds = %140
  %151 = load ptr, ptr %4, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %151, i32 0, i32 8
  %153 = getelementptr inbounds [3 x i8], ptr %152, i64 0, i64 0
  %154 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef %153)
  %155 = icmp eq i32 1, %154
  br i1 %155, label %156, label %163

156:                                              ; preds = %150
  %157 = load i32, ptr %8, align 4, !tbaa !9
  %158 = icmp eq i32 %157, 0
  br i1 %158, label %159, label %163

159:                                              ; preds = %156
  %160 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 20
  store i32 8, ptr %160, align 4, !tbaa !19
  %161 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 6
  store i32 9, ptr %161, align 4, !tbaa !16
  %162 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 8
  store i32 127, ptr %162, align 4, !tbaa !17
  br label %239

163:                                              ; preds = %156, %150, %140
  %164 = load i32, ptr %7, align 4, !tbaa !9
  %165 = icmp ugt i32 %164, 0
  br i1 %165, label %172, label %166

166:                                              ; preds = %163
  %167 = load i32, ptr %9, align 4, !tbaa !9
  %168 = icmp ugt i32 %167, 0
  br i1 %168, label %172, label %169

169:                                              ; preds = %166
  %170 = load i32, ptr %8, align 4, !tbaa !9
  %171 = icmp ugt i32 %170, 0
  br i1 %171, label %172, label %179

172:                                              ; preds = %169, %166, %163
  %173 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 20
  store i32 8, ptr %173, align 4, !tbaa !19
  %174 = load i32, ptr %8, align 4, !tbaa !9
  %175 = icmp ugt i32 %174, 0
  br i1 %175, label %176, label %178

176:                                              ; preds = %172
  %177 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 21
  store i32 3, ptr %177, align 4, !tbaa !18
  br label %178

178:                                              ; preds = %176, %172
  br label %238

179:                                              ; preds = %169
  %180 = load ptr, ptr %4, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %180, i32 0, i32 8
  %182 = getelementptr inbounds [3 x i8], ptr %181, i64 0, i64 0
  %183 = call i32 @LIBXSMM_GEMM_GETENUM_A_PREC(ptr noundef %182)
  %184 = icmp eq i32 12, %183
  br i1 %184, label %185, label %203

185:                                              ; preds = %179
  %186 = load ptr, ptr %4, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %186, i32 0, i32 8
  %188 = getelementptr inbounds [3 x i8], ptr %187, i64 0, i64 0
  %189 = call i32 @LIBXSMM_GEMM_GETENUM_B_PREC(ptr noundef %188)
  %190 = icmp eq i32 3, %189
  br i1 %190, label %191, label %203

191:                                              ; preds = %185
  %192 = load ptr, ptr %4, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %192, i32 0, i32 8
  %194 = getelementptr inbounds [3 x i8], ptr %193, i64 0, i64 0
  %195 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef %194)
  %196 = icmp eq i32 3, %195
  br i1 %196, label %227, label %197

197:                                              ; preds = %191
  %198 = load ptr, ptr %4, 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_C_PREC(ptr noundef %200)
  %202 = icmp eq i32 1, %201
  br i1 %202, label %227, label %203

203:                                              ; preds = %197, %185, %179
  %204 = load ptr, ptr %4, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %204, i32 0, i32 8
  %206 = getelementptr inbounds [3 x i8], ptr %205, i64 0, i64 0
  %207 = call i32 @LIBXSMM_GEMM_GETENUM_A_PREC(ptr noundef %206)
  %208 = icmp eq i32 12, %207
  br i1 %208, label %209, label %232

209:                                              ; preds = %203
  %210 = load ptr, ptr %4, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %210, i32 0, i32 8
  %212 = getelementptr inbounds [3 x i8], ptr %211, i64 0, i64 0
  %213 = call i32 @LIBXSMM_GEMM_GETENUM_B_PREC(ptr noundef %212)
  %214 = icmp eq i32 2, %213
  br i1 %214, label %215, label %232

215:                                              ; preds = %209
  %216 = load ptr, ptr %4, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %216, i32 0, i32 8
  %218 = getelementptr inbounds [3 x i8], ptr %217, i64 0, i64 0
  %219 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef %218)
  %220 = icmp eq i32 2, %219
  br i1 %220, label %227, label %221

221:                                              ; preds = %215
  %222 = load ptr, ptr %4, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %222, i32 0, i32 8
  %224 = getelementptr inbounds [3 x i8], ptr %223, i64 0, i64 0
  %225 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef %224)
  %226 = icmp eq i32 1, %225
  br i1 %226, label %227, label %232

227:                                              ; preds = %221, %215, %197, %191
  %228 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 20
  store i32 3, ptr %228, align 4, !tbaa !19
  %229 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 21
  store i32 8, ptr %229, align 4, !tbaa !18
  %230 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 6
  store i32 9, ptr %230, align 4, !tbaa !16
  %231 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 8
  store i32 127, ptr %231, align 4, !tbaa !17
  br label %237

232:                                              ; preds = %221, %209, %203
  %233 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 20
  store i32 127, ptr %233, align 4, !tbaa !19
  %234 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 6
  store i32 8, ptr %234, align 4, !tbaa !16
  %235 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 8
  store i32 9, ptr %235, align 4, !tbaa !17
  %236 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 21
  store i32 9, ptr %236, align 4, !tbaa !18
  br label %237

237:                                              ; preds = %232, %227
  br label %238

238:                                              ; preds = %237, %178
  br label %239

239:                                              ; preds = %238, %159
  %240 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 14
  store i32 13, ptr %240, align 4, !tbaa !28
  br label %345

241:                                              ; preds = %134
  %242 = load ptr, ptr %4, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %242, i32 0, i32 6
  %244 = load i32, ptr %243, align 1, !tbaa !20
  %245 = and i32 %244, 131072
  %246 = icmp ne i32 %245, 0
  br i1 %246, label %247, label %344

247:                                              ; preds = %241
  %248 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 1
  store i32 7, ptr %248, align 4, !tbaa !13
  %249 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 3
  store i32 6, ptr %249, align 4, !tbaa !14
  %250 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 5
  store i32 2, ptr %250, align 4, !tbaa !15
  %251 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 13
  store i32 1, ptr %251, align 4, !tbaa !27
  %252 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 7
  store i32 8, ptr %252, align 4, !tbaa !29
  %253 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 9
  store i32 9, ptr %253, align 4, !tbaa !30
  %254 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 21
  store i32 0, ptr %254, align 4, !tbaa !18
  %255 = load ptr, ptr %4, align 8, !tbaa !5
  %256 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %255, i32 0, i32 8
  %257 = getelementptr inbounds [3 x i8], ptr %256, i64 0, i64 0
  %258 = call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef %257)
  %259 = icmp eq i32 12, %258
  br i1 %259, label %260, label %271

260:                                              ; preds = %247
  %261 = load ptr, ptr %4, align 8, !tbaa !5
  %262 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %261, i32 0, i32 8
  %263 = getelementptr inbounds [3 x i8], ptr %262, i64 0, i64 0
  %264 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef %263)
  %265 = icmp eq i32 1, %264
  br i1 %265, label %266, label %271

266:                                              ; preds = %260
  %267 = load i32, ptr %8, align 4, !tbaa !9
  %268 = icmp eq i32 %267, 0
  br i1 %268, label %269, label %271

269:                                              ; preds = %266
  %270 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 20
  store i32 0, ptr %270, align 4, !tbaa !19
  br label %342

271:                                              ; preds = %266, %260, %247
  %272 = load i32, ptr %7, align 4, !tbaa !9
  %273 = icmp ugt i32 %272, 0
  br i1 %273, label %280, label %274

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

277:                                              ; preds = %274
  %278 = load i32, ptr %8, align 4, !tbaa !9
  %279 = icmp ugt i32 %278, 0
  br i1 %279, label %280, label %287

280:                                              ; preds = %277, %274, %271
  %281 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 20
  store i32 0, ptr %281, align 4, !tbaa !19
  %282 = load i32, ptr %8, align 4, !tbaa !9
  %283 = icmp ugt i32 %282, 0
  br i1 %283, label %284, label %286

284:                                              ; preds = %280
  %285 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 21
  store i32 3, ptr %285, align 4, !tbaa !18
  br label %286

286:                                              ; preds = %284, %280
  br label %341

287:                                              ; preds = %277
  %288 = load ptr, ptr %4, align 8, !tbaa !5
  %289 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %288, i32 0, i32 8
  %290 = getelementptr inbounds [3 x i8], ptr %289, i64 0, i64 0
  %291 = call i32 @LIBXSMM_GEMM_GETENUM_A_PREC(ptr noundef %290)
  %292 = icmp eq i32 12, %291
  br i1 %292, label %293, label %311

293:                                              ; preds = %287
  %294 = load ptr, ptr %4, align 8, !tbaa !5
  %295 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %294, i32 0, i32 8
  %296 = getelementptr inbounds [3 x i8], ptr %295, i64 0, i64 0
  %297 = call i32 @LIBXSMM_GEMM_GETENUM_B_PREC(ptr noundef %296)
  %298 = icmp eq i32 3, %297
  br i1 %298, label %299, label %311

299:                                              ; preds = %293
  %300 = load ptr, ptr %4, align 8, !tbaa !5
  %301 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %300, i32 0, i32 8
  %302 = getelementptr inbounds [3 x i8], ptr %301, i64 0, i64 0
  %303 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef %302)
  %304 = icmp eq i32 3, %303
  br i1 %304, label %335, label %305

305:                                              ; preds = %299
  %306 = load ptr, ptr %4, align 8, !tbaa !5
  %307 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %306, i32 0, i32 8
  %308 = getelementptr inbounds [3 x i8], ptr %307, i64 0, i64 0
  %309 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef %308)
  %310 = icmp eq i32 1, %309
  br i1 %310, label %335, label %311

311:                                              ; preds = %305, %293, %287
  %312 = load ptr, ptr %4, align 8, !tbaa !5
  %313 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %312, i32 0, i32 8
  %314 = getelementptr inbounds [3 x i8], ptr %313, i64 0, i64 0
  %315 = call i32 @LIBXSMM_GEMM_GETENUM_A_PREC(ptr noundef %314)
  %316 = icmp eq i32 12, %315
  br i1 %316, label %317, label %338

317:                                              ; preds = %311
  %318 = load ptr, ptr %4, 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_B_PREC(ptr noundef %320)
  %322 = icmp eq i32 2, %321
  br i1 %322, label %323, label %338

323:                                              ; preds = %317
  %324 = load ptr, ptr %4, align 8, !tbaa !5
  %325 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %324, i32 0, i32 8
  %326 = getelementptr inbounds [3 x i8], ptr %325, i64 0, i64 0
  %327 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef %326)
  %328 = icmp eq i32 2, %327
  br i1 %328, label %335, label %329

329:                                              ; preds = %323
  %330 = load ptr, ptr %4, align 8, !tbaa !5
  %331 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %330, i32 0, i32 8
  %332 = getelementptr inbounds [3 x i8], ptr %331, i64 0, i64 0
  %333 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef %332)
  %334 = icmp eq i32 1, %333
  br i1 %334, label %335, label %338

335:                                              ; preds = %329, %323, %305, %299
  %336 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 20
  store i32 3, ptr %336, align 4, !tbaa !19
  %337 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 21
  store i32 0, ptr %337, align 4, !tbaa !18
  br label %340

338:                                              ; preds = %329, %317, %311
  %339 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 20
  store i32 127, ptr %339, align 4, !tbaa !19
  br label %340

340:                                              ; preds = %338, %335
  br label %341

341:                                              ; preds = %340, %286
  br label %342

342:                                              ; preds = %341, %269
  %343 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 14
  store i32 13, ptr %343, align 4, !tbaa !28
  br label %344

344:                                              ; preds = %342, %241
  br label %345

345:                                              ; preds = %344, %239
  %346 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 10
  store i32 10, ptr %346, align 4, !tbaa !31
  %347 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 11
  store i32 11, ptr %347, align 4, !tbaa !32
  %348 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 12
  store i32 12, ptr %348, align 4, !tbaa !33
  %349 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 22
  store i32 14, ptr %349, align 4, !tbaa !34
  %350 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 23
  store i32 15, ptr %350, align 4, !tbaa !35
  %351 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 24
  store i32 3, ptr %351, align 4, !tbaa !36
  call void @libxsmm_reset_loop_label_tracker(ptr noundef %5)
  %352 = load ptr, ptr %3, align 8, !tbaa !5
  %353 = load ptr, ptr %4, align 8, !tbaa !5
  %354 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %353, i32 0, i32 7
  %355 = load i8, ptr %354, align 1, !tbaa !37
  %356 = zext i8 %355 to i32
  call void @libxsmm_x86_instruction_open_stream_gemm(ptr noundef %352, ptr noundef %6, i32 noundef 0, i32 noundef %356)
  %357 = load ptr, ptr %3, align 8, !tbaa !5
  %358 = load ptr, ptr %4, align 8, !tbaa !5
  call void @libxsmm_generator_gemm_sse_avx_avx2_avx512_kernel(ptr noundef %357, ptr noundef %5, ptr noundef %6, ptr noundef %358)
  %359 = load ptr, ptr %3, align 8, !tbaa !5
  %360 = load ptr, ptr %4, align 8, !tbaa !5
  %361 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %360, i32 0, i32 7
  %362 = load i8, ptr %361, align 1, !tbaa !37
  %363 = zext i8 %362 to i32
  call void @libxsmm_x86_instruction_close_stream_gemm(ptr noundef %359, ptr noundef %6, i32 noundef 0, i32 noundef %363)
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 132, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 2052, ptr %5) #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_x86_is_Amxfp4_Bfp32_gemm(ptr noundef) #2

declare i32 @libxsmm_x86_is_Amxfp4_Bi8_gemm(ptr noundef) #2

declare i32 @libxsmm_x86_is_Amxfp4_Bbf16_gemm(ptr noundef) #2

declare void @libxsmm_reset_x86_gp_reg_mapping(ptr noundef) #2

declare i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef) #2

declare i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef) #2

declare i32 @LIBXSMM_GEMM_GETENUM_A_PREC(ptr noundef) #2

declare i32 @LIBXSMM_GEMM_GETENUM_B_PREC(ptr noundef) #2

declare void @libxsmm_reset_loop_label_tracker(ptr noundef) #2

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

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

declare void @libxsmm_x86_instruction_close_stream_gemm(ptr noundef, ptr 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

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 0}
!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 4}
!14 = !{!12, !10, i64 12}
!15 = !{!12, !10, i64 20}
!16 = !{!12, !10, i64 24}
!17 = !{!12, !10, i64 32}
!18 = !{!12, !10, i64 84}
!19 = !{!12, !10, i64 80}
!20 = !{!21, !10, i64 24}
!21 = !{!"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, !22, i64 33, !22, i64 41, !7, i64 49, !10, i64 50, !10, i64 54, !10, i64 58, !23, i64 62, !23, i64 64, !7, i64 66, !7, i64 67, !7, i64 68, !7, i64 69, !23, i64 70, !23, i64 72, !23, i64 74, !23, i64 76, !23, i64 78, !23, i64 80, !10, i64 82, !10, i64 86, !10, i64 90, !7, i64 94}
!22 = !{!"long long", !7, i64 0}
!23 = !{!"short", !7, i64 0}
!24 = !{!12, !10, i64 116}
!25 = !{!12, !10, i64 124}
!26 = !{!12, !10, i64 128}
!27 = !{!12, !10, i64 52}
!28 = !{!12, !10, i64 56}
!29 = !{!12, !10, i64 28}
!30 = !{!12, !10, i64 36}
!31 = !{!12, !10, i64 40}
!32 = !{!12, !10, i64 44}
!33 = !{!12, !10, i64 48}
!34 = !{!12, !10, i64 88}
!35 = !{!12, !10, i64 92}
!36 = !{!12, !10, i64 96}
!37 = !{!21, !7, i64 28}


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

%struct.libxsmm_loop_label_tracker_struct = type { [512 x i32], i32 }
%struct.libxsmm_gp_reg_mapping_struct = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_gemm_sse_avx_avx2_avx512_kernel_wrapper(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = alloca %struct.libxsmm_loop_label_tracker_struct, align 4
  %4 = alloca %struct.libxsmm_gp_reg_mapping_struct, align 4
  call void @llvm.lifetime.start.p0(i64 2052, ptr nonnull %3) #3
  call void @llvm.lifetime.start.p0(i64 132, ptr nonnull %4) #3
  %5 = tail call i32 @libxsmm_x86_is_Amxfp4_Bfp32_gemm(ptr noundef %1) #3
  %6 = tail call i32 @libxsmm_x86_is_Amxfp4_Bi8_gemm(ptr noundef %1) #3
  %7 = tail call i32 @libxsmm_x86_is_Amxfp4_Bbf16_gemm(ptr noundef %1) #3
  call void @libxsmm_reset_x86_gp_reg_mapping(ptr noundef nonnull %4) #3
  store i32 7, ptr %4, align 4, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %4, i64 4
  store i32 7, ptr %8, align 4, !tbaa !10
  %9 = getelementptr inbounds i8, ptr %4, i64 12
  store i32 6, ptr %9, align 4, !tbaa !11
  %10 = getelementptr inbounds i8, ptr %4, i64 20
  store i32 2, ptr %10, align 4, !tbaa !12
  %11 = getelementptr inbounds i8, ptr %4, i64 24
  store i32 1, ptr %11, align 4, !tbaa !13
  %12 = getelementptr inbounds i8, ptr %4, i64 32
  store i32 8, ptr %12, align 4, !tbaa !14
  %13 = getelementptr inbounds i8, ptr %4, i64 84
  store i32 9, ptr %13, align 4, !tbaa !15
  %14 = getelementptr inbounds i8, ptr %1, i64 29
  %15 = call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef nonnull %14) #3
  %16 = icmp eq i32 %15, 12
  br i1 %16, label %17, label %23

17:                                               ; preds = %2
  %18 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef nonnull %14) #3
  %19 = icmp eq i32 %18, 1
  %20 = icmp eq i32 %6, 0
  %or.cond = select i1 %19, i1 %20, i1 false
  br i1 %or.cond, label %21, label %23

21:                                               ; preds = %17
  %22 = getelementptr inbounds i8, ptr %4, i64 80
  store i32 1, ptr %22, align 4, !tbaa !16
  store i32 8, ptr %11, align 4, !tbaa !13
  store i32 9, ptr %12, align 4, !tbaa !14
  br label %58

23:                                               ; preds = %17, %2
  %24 = icmp ne i32 %5, 0
  %25 = icmp ne i32 %7, 0
  %or.cond3 = select i1 %24, i1 true, i1 %25
  %26 = icmp ne i32 %6, 0
  %or.cond5 = select i1 %or.cond3, i1 true, i1 %26
  br i1 %or.cond5, label %27, label %30

27:                                               ; preds = %23
  %28 = getelementptr inbounds i8, ptr %4, i64 80
  store i32 1, ptr %28, align 4, !tbaa !16
  br i1 %26, label %29, label %58

29:                                               ; preds = %27
  store i32 3, ptr %13, align 4, !tbaa !15
  br label %58

30:                                               ; preds = %23
  %31 = call i32 @LIBXSMM_GEMM_GETENUM_A_PREC(ptr noundef nonnull %14) #3
  %32 = icmp eq i32 %31, 12
  br i1 %32, label %33, label %42

33:                                               ; preds = %30
  %34 = call i32 @LIBXSMM_GEMM_GETENUM_B_PREC(ptr noundef nonnull %14) #3
  %35 = icmp eq i32 %34, 3
  br i1 %35, label %36, label %42

36:                                               ; preds = %33
  %37 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef nonnull %14) #3
  %38 = icmp eq i32 %37, 3
  br i1 %38, label %54, label %39

39:                                               ; preds = %36
  %40 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef nonnull %14) #3
  %41 = icmp eq i32 %40, 1
  br i1 %41, label %54, label %42

42:                                               ; preds = %39, %33, %30
  %43 = call i32 @LIBXSMM_GEMM_GETENUM_A_PREC(ptr noundef nonnull %14) #3
  %44 = icmp eq i32 %43, 12
  br i1 %44, label %45, label %56

45:                                               ; preds = %42
  %46 = call i32 @LIBXSMM_GEMM_GETENUM_B_PREC(ptr noundef nonnull %14) #3
  %47 = icmp eq i32 %46, 2
  br i1 %47, label %48, label %56

48:                                               ; preds = %45
  %49 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef nonnull %14) #3
  %50 = icmp eq i32 %49, 2
  br i1 %50, label %54, label %51

51:                                               ; preds = %48
  %52 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef nonnull %14) #3
  %53 = icmp eq i32 %52, 1
  br i1 %53, label %54, label %56

54:                                               ; preds = %51, %48, %39, %36
  %55 = getelementptr inbounds i8, ptr %4, i64 80
  store i32 3, ptr %55, align 4, !tbaa !16
  store i32 1, ptr %13, align 4, !tbaa !15
  store i32 8, ptr %11, align 4, !tbaa !13
  store i32 9, ptr %12, align 4, !tbaa !14
  br label %58

56:                                               ; preds = %51, %45, %42
  %57 = getelementptr inbounds i8, ptr %4, i64 80
  store i32 127, ptr %57, align 4, !tbaa !16
  store i32 1, ptr %11, align 4, !tbaa !13
  store i32 8, ptr %12, align 4, !tbaa !14
  br label %58

58:                                               ; preds = %29, %27, %56, %54, %21
  %59 = getelementptr inbounds i8, ptr %1, i64 24
  %60 = load i32, ptr %59, align 1, !tbaa !17
  %61 = and i32 %60, 8388608
  %.not = icmp eq i32 %61, 0
  br i1 %.not, label %66, label %62

62:                                               ; preds = %58
  %63 = getelementptr inbounds i8, ptr %4, i64 116
  store i32 1, ptr %63, align 4, !tbaa !21
  %64 = getelementptr inbounds i8, ptr %4, i64 124
  store i32 8, ptr %64, align 4, !tbaa !22
  %65 = getelementptr inbounds i8, ptr %4, i64 128
  store i32 9, ptr %65, align 4, !tbaa !23
  br label %66

66:                                               ; preds = %62, %58
  %67 = and i32 %60, 327680
  %or.cond77 = icmp eq i32 %67, 0
  br i1 %or.cond77, label %113, label %68

68:                                               ; preds = %66
  store i32 7, ptr %8, align 4, !tbaa !10
  store i32 6, ptr %9, align 4, !tbaa !11
  store i32 2, ptr %10, align 4, !tbaa !12
  %69 = getelementptr inbounds i8, ptr %4, i64 52
  store i32 1, ptr %69, align 4, !tbaa !24
  %70 = call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef nonnull %14) #3
  %71 = icmp eq i32 %70, 12
  br i1 %71, label %72, label %78

72:                                               ; preds = %68
  %73 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef nonnull %14) #3
  %74 = icmp eq i32 %73, 1
  %75 = icmp eq i32 %6, 0
  %or.cond7 = select i1 %74, i1 %75, i1 false
  br i1 %or.cond7, label %76, label %78

76:                                               ; preds = %72
  %77 = getelementptr inbounds i8, ptr %4, i64 80
  store i32 8, ptr %77, align 4, !tbaa !16
  store i32 9, ptr %11, align 4, !tbaa !13
  store i32 127, ptr %12, align 4, !tbaa !14
  br label %.sink.split

78:                                               ; preds = %72, %68
  %79 = icmp ne i32 %5, 0
  %80 = icmp ne i32 %7, 0
  %or.cond9 = select i1 %79, i1 true, i1 %80
  %81 = icmp ne i32 %6, 0
  %or.cond11 = select i1 %or.cond9, i1 true, i1 %81
  br i1 %or.cond11, label %82, label %85

82:                                               ; preds = %78
  %83 = getelementptr inbounds i8, ptr %4, i64 80
  store i32 8, ptr %83, align 4, !tbaa !16
  br i1 %81, label %84, label %.sink.split

84:                                               ; preds = %82
  store i32 3, ptr %13, align 4, !tbaa !15
  br label %.sink.split

85:                                               ; preds = %78
  %86 = call i32 @LIBXSMM_GEMM_GETENUM_A_PREC(ptr noundef nonnull %14) #3
  %87 = icmp eq i32 %86, 12
  br i1 %87, label %88, label %97

88:                                               ; preds = %85
  %89 = call i32 @LIBXSMM_GEMM_GETENUM_B_PREC(ptr noundef nonnull %14) #3
  %90 = icmp eq i32 %89, 3
  br i1 %90, label %91, label %97

91:                                               ; preds = %88
  %92 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef nonnull %14) #3
  %93 = icmp eq i32 %92, 3
  br i1 %93, label %109, label %94

94:                                               ; preds = %91
  %95 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef nonnull %14) #3
  %96 = icmp eq i32 %95, 1
  br i1 %96, label %109, label %97

97:                                               ; preds = %94, %88, %85
  %98 = call i32 @LIBXSMM_GEMM_GETENUM_A_PREC(ptr noundef nonnull %14) #3
  %99 = icmp eq i32 %98, 12
  br i1 %99, label %100, label %111

100:                                              ; preds = %97
  %101 = call i32 @LIBXSMM_GEMM_GETENUM_B_PREC(ptr noundef nonnull %14) #3
  %102 = icmp eq i32 %101, 2
  br i1 %102, label %103, label %111

103:                                              ; preds = %100
  %104 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef nonnull %14) #3
  %105 = icmp eq i32 %104, 2
  br i1 %105, label %109, label %106

106:                                              ; preds = %103
  %107 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef nonnull %14) #3
  %108 = icmp eq i32 %107, 1
  br i1 %108, label %109, label %111

109:                                              ; preds = %106, %103, %94, %91
  %110 = getelementptr inbounds i8, ptr %4, i64 80
  store i32 3, ptr %110, align 4, !tbaa !16
  store i32 8, ptr %13, align 4, !tbaa !15
  store i32 9, ptr %11, align 4, !tbaa !13
  store i32 127, ptr %12, align 4, !tbaa !14
  br label %.sink.split

111:                                              ; preds = %106, %100, %97
  %112 = getelementptr inbounds i8, ptr %4, i64 80
  store i32 127, ptr %112, align 4, !tbaa !16
  store i32 8, ptr %11, align 4, !tbaa !13
  store i32 9, ptr %12, align 4, !tbaa !14
  store i32 9, ptr %13, align 4, !tbaa !15
  br label %.sink.split

113:                                              ; preds = %66
  %114 = and i32 %60, 131072
  %.not76 = icmp eq i32 %114, 0
  br i1 %.not76, label %163, label %115

115:                                              ; preds = %113
  store i32 7, ptr %8, align 4, !tbaa !10
  store i32 6, ptr %9, align 4, !tbaa !11
  store i32 2, ptr %10, align 4, !tbaa !12
  %116 = getelementptr inbounds i8, ptr %4, i64 52
  store i32 1, ptr %116, align 4, !tbaa !24
  %117 = getelementptr inbounds i8, ptr %4, i64 28
  store i32 8, ptr %117, align 4, !tbaa !25
  %118 = getelementptr inbounds i8, ptr %4, i64 36
  store i32 9, ptr %118, align 4, !tbaa !26
  store i32 0, ptr %13, align 4, !tbaa !15
  %119 = call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef nonnull %14) #3
  %120 = icmp eq i32 %119, 12
  br i1 %120, label %121, label %127

121:                                              ; preds = %115
  %122 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef nonnull %14) #3
  %123 = icmp eq i32 %122, 1
  %124 = icmp eq i32 %6, 0
  %or.cond13 = select i1 %123, i1 %124, i1 false
  br i1 %or.cond13, label %125, label %127

125:                                              ; preds = %121
  %126 = getelementptr inbounds i8, ptr %4, i64 80
  store i32 0, ptr %126, align 4, !tbaa !16
  br label %.sink.split

127:                                              ; preds = %121, %115
  %128 = icmp ne i32 %5, 0
  %129 = icmp ne i32 %7, 0
  %or.cond15 = select i1 %128, i1 true, i1 %129
  %130 = icmp ne i32 %6, 0
  %or.cond17 = select i1 %or.cond15, i1 true, i1 %130
  br i1 %or.cond17, label %131, label %134

131:                                              ; preds = %127
  %132 = getelementptr inbounds i8, ptr %4, i64 80
  store i32 0, ptr %132, align 4, !tbaa !16
  br i1 %130, label %133, label %.sink.split

133:                                              ; preds = %131
  store i32 3, ptr %13, align 4, !tbaa !15
  br label %.sink.split

134:                                              ; preds = %127
  %135 = call i32 @LIBXSMM_GEMM_GETENUM_A_PREC(ptr noundef nonnull %14) #3
  %136 = icmp eq i32 %135, 12
  br i1 %136, label %137, label %146

137:                                              ; preds = %134
  %138 = call i32 @LIBXSMM_GEMM_GETENUM_B_PREC(ptr noundef nonnull %14) #3
  %139 = icmp eq i32 %138, 3
  br i1 %139, label %140, label %146

140:                                              ; preds = %137
  %141 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef nonnull %14) #3
  %142 = icmp eq i32 %141, 3
  br i1 %142, label %158, label %143

143:                                              ; preds = %140
  %144 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef nonnull %14) #3
  %145 = icmp eq i32 %144, 1
  br i1 %145, label %158, label %146

146:                                              ; preds = %143, %137, %134
  %147 = call i32 @LIBXSMM_GEMM_GETENUM_A_PREC(ptr noundef nonnull %14) #3
  %148 = icmp eq i32 %147, 12
  br i1 %148, label %149, label %160

149:                                              ; preds = %146
  %150 = call i32 @LIBXSMM_GEMM_GETENUM_B_PREC(ptr noundef nonnull %14) #3
  %151 = icmp eq i32 %150, 2
  br i1 %151, label %152, label %160

152:                                              ; preds = %149
  %153 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef nonnull %14) #3
  %154 = icmp eq i32 %153, 2
  br i1 %154, label %158, label %155

155:                                              ; preds = %152
  %156 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef nonnull %14) #3
  %157 = icmp eq i32 %156, 1
  br i1 %157, label %158, label %160

158:                                              ; preds = %155, %152, %143, %140
  %159 = getelementptr inbounds i8, ptr %4, i64 80
  store i32 3, ptr %159, align 4, !tbaa !16
  store i32 0, ptr %13, align 4, !tbaa !15
  br label %.sink.split

160:                                              ; preds = %155, %149, %146
  %161 = getelementptr inbounds i8, ptr %4, i64 80
  store i32 127, ptr %161, align 4, !tbaa !16
  br label %.sink.split

.sink.split:                                      ; preds = %125, %158, %160, %131, %133, %76, %109, %111, %82, %84
  %162 = getelementptr inbounds i8, ptr %4, i64 56
  store i32 13, ptr %162, align 4, !tbaa !27
  br label %163

163:                                              ; preds = %.sink.split, %113
  %164 = getelementptr inbounds i8, ptr %4, i64 40
  store i32 10, ptr %164, align 4, !tbaa !28
  %165 = getelementptr inbounds i8, ptr %4, i64 44
  store i32 11, ptr %165, align 4, !tbaa !29
  %166 = getelementptr inbounds i8, ptr %4, i64 48
  store i32 12, ptr %166, align 4, !tbaa !30
  %167 = getelementptr inbounds i8, ptr %4, i64 88
  store i32 14, ptr %167, align 4, !tbaa !31
  %168 = getelementptr inbounds i8, ptr %4, i64 92
  store i32 15, ptr %168, align 4, !tbaa !32
  %169 = getelementptr inbounds i8, ptr %4, i64 96
  store i32 3, ptr %169, align 4, !tbaa !33
  call void @libxsmm_reset_loop_label_tracker(ptr noundef nonnull %3) #3
  %170 = getelementptr inbounds i8, ptr %1, i64 28
  %171 = load i8, ptr %170, align 1, !tbaa !34
  %172 = zext i8 %171 to i32
  call void @libxsmm_x86_instruction_open_stream_gemm(ptr noundef %0, ptr noundef nonnull %4, i32 noundef 0, i32 noundef %172) #3
  call void @libxsmm_generator_gemm_sse_avx_avx2_avx512_kernel(ptr noundef %0, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %1)
  %173 = load i8, ptr %170, align 1, !tbaa !34
  %174 = zext i8 %173 to i32
  call void @libxsmm_x86_instruction_close_stream_gemm(ptr noundef %0, ptr noundef nonnull %4, i32 noundef 0, i32 noundef %174) #3
  call void @llvm.lifetime.end.p0(i64 132, ptr nonnull %4) #3
  call void @llvm.lifetime.end.p0(i64 2052, ptr nonnull %3) #3
  ret void
}

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

declare i32 @libxsmm_x86_is_Amxfp4_Bfp32_gemm(ptr noundef) local_unnamed_addr #2

declare i32 @libxsmm_x86_is_Amxfp4_Bi8_gemm(ptr noundef) local_unnamed_addr #2

declare i32 @libxsmm_x86_is_Amxfp4_Bbf16_gemm(ptr noundef) local_unnamed_addr #2

declare void @libxsmm_reset_x86_gp_reg_mapping(ptr noundef) local_unnamed_addr #2

declare i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef) local_unnamed_addr #2

declare i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef) local_unnamed_addr #2

declare i32 @LIBXSMM_GEMM_GETENUM_A_PREC(ptr noundef) local_unnamed_addr #2

declare i32 @LIBXSMM_GEMM_GETENUM_B_PREC(ptr noundef) local_unnamed_addr #2

declare void @libxsmm_reset_loop_label_tracker(ptr noundef) local_unnamed_addr #2

declare void @libxsmm_x86_instruction_open_stream_gemm(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

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

declare void @libxsmm_x86_instruction_close_stream_gemm(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress 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 = { mustprogress 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, !7, i64 0}
!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 4}
!11 = !{!6, !7, i64 12}
!12 = !{!6, !7, i64 20}
!13 = !{!6, !7, i64 24}
!14 = !{!6, !7, i64 32}
!15 = !{!6, !7, i64 84}
!16 = !{!6, !7, i64 80}
!17 = !{!18, !7, i64 24}
!18 = !{!"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, !19, i64 33, !19, i64 41, !8, i64 49, !7, i64 50, !7, i64 54, !7, i64 58, !20, i64 62, !20, i64 64, !8, i64 66, !8, i64 67, !8, i64 68, !8, i64 69, !20, i64 70, !20, i64 72, !20, i64 74, !20, i64 76, !20, i64 78, !20, i64 80, !7, i64 82, !7, i64 86, !7, i64 90, !8, i64 94}
!19 = !{!"long long", !8, i64 0}
!20 = !{!"short", !8, i64 0}
!21 = !{!6, !7, i64 116}
!22 = !{!6, !7, i64 124}
!23 = !{!6, !7, i64 128}
!24 = !{!6, !7, i64 52}
!25 = !{!6, !7, i64 28}
!26 = !{!6, !7, i64 36}
!27 = !{!6, !7, i64 56}
!28 = !{!6, !7, i64 40}
!29 = !{!6, !7, i64 44}
!30 = !{!6, !7, i64 48}
!31 = !{!6, !7, i64 88}
!32 = !{!6, !7, i64 92}
!33 = !{!6, !7, i64 96}
!34 = !{!18, !8, i64 28}


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