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

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

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

@.str = external hidden unnamed_addr constant [87 x i8], align 1
@libxsmm_ninit = external global i32, align 4
@libxsmm_verbosity = external global i32, align 4
@__func__.libxsmm_generator_gemm_avx2_microkernel_bf16_vnni_srf = external hidden unnamed_addr constant [54 x i8], align 1

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

declare i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_gemm_avx2_microkernel_bf16_vnni_srf(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5) #2 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %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 %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store i32 %4, ptr %11, align 4, !tbaa !9
  store i32 %5, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  %22 = load i32, ptr %11, align 4, !tbaa !9
  %23 = load ptr, ptr %9, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %23, i32 0, i32 2
  %25 = load i32, ptr %24, align 8, !tbaa !11
  %26 = urem i32 %22, %25
  %27 = icmp eq i32 %26, 0
  br i1 %27, label %28, label %34

28:                                               ; preds = %6
  %29 = load i32, ptr %11, align 4, !tbaa !9
  %30 = load ptr, ptr %9, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %30, i32 0, i32 2
  %32 = load i32, ptr %31, align 8, !tbaa !11
  %33 = udiv i32 %29, %32
  br label %41

34:                                               ; preds = %6
  %35 = load i32, ptr %11, align 4, !tbaa !9
  %36 = load ptr, ptr %9, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %36, i32 0, i32 2
  %38 = load i32, ptr %37, align 8, !tbaa !11
  %39 = udiv i32 %35, %38
  %40 = add i32 %39, 1
  br label %41

41:                                               ; preds = %34, %28
  %42 = phi i32 [ %33, %28 ], [ %40, %34 ]
  store i32 %42, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  store i32 0, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  store i32 0, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  %43 = load i32, ptr %12, align 4, !tbaa !9
  %44 = load i32, ptr %13, align 4, !tbaa !9
  %45 = mul i32 %43, %44
  %46 = sub i32 16, %45
  store i32 %46, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  store i32 0, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  store i32 0, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #3
  store i32 1, ptr %19, align 4, !tbaa !9
  %47 = load i32, ptr %12, align 4, !tbaa !9
  %48 = call i32 @libxsmm_cpuid_x86_srf_gemm_set_n_max_blocking()
  %49 = icmp ugt i32 %47, %48
  br i1 %49, label %53, label %50

50:                                               ; preds = %41
  %51 = load i32, ptr %12, align 4, !tbaa !9
  %52 = icmp ult i32 %51, 1
  br i1 %52, label %53, label %62

53:                                               ; preds = %50, %41
  %54 = load ptr, ptr %7, align 8, !tbaa !5
  %55 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %56 = icmp ult i32 1, %55
  br i1 %56, label %57, label %59

57:                                               ; preds = %53
  %58 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %60

59:                                               ; preds = %53
  br label %60

60:                                               ; preds = %59, %57
  %61 = phi i32 [ %58, %57 ], [ 1, %59 ]
  call void @libxsmm_handle_error(ptr noundef %54, i32 noundef 90016, ptr noundef @__func__.libxsmm_generator_gemm_avx2_microkernel_bf16_vnni_srf, ptr noundef @.str, i32 noundef 1517, i32 noundef %61)
  store i32 1, ptr %20, align 4
  br label %389

62:                                               ; preds = %50
  %63 = load ptr, ptr %10, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %63, i32 0, i32 6
  %65 = load i32, ptr %64, align 1, !tbaa !15
  %66 = and i32 %65, 2
  %67 = icmp ugt i32 %66, 0
  br i1 %67, label %68, label %77

68:                                               ; preds = %62
  %69 = load ptr, ptr %7, align 8, !tbaa !5
  %70 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %71 = icmp ult i32 1, %70
  br i1 %71, label %72, label %74

72:                                               ; preds = %68
  %73 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %75

74:                                               ; preds = %68
  br label %75

75:                                               ; preds = %74, %72
  %76 = phi i32 [ %73, %72 ], [ 1, %74 ]
  call void @libxsmm_handle_error(ptr noundef %69, i32 noundef 90039, ptr noundef @__func__.libxsmm_generator_gemm_avx2_microkernel_bf16_vnni_srf, ptr noundef @.str, i32 noundef 1523, i32 noundef %76)
  store i32 1, ptr %20, align 4
  br label %389

77:                                               ; preds = %62
  %78 = load ptr, ptr %10, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %78, i32 0, i32 6
  %80 = load i32, ptr %79, align 1, !tbaa !15
  %81 = and i32 %80, 2048
  %82 = icmp eq i32 %81, 2048
  br i1 %82, label %83, label %89

83:                                               ; preds = %77
  %84 = load ptr, ptr %10, 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_AB_COMMON_PREC(ptr noundef %86)
  %88 = call i32 @libxsmm_cpuid_dot_pack_factor(i32 noundef %87)
  store i32 %88, ptr %19, align 4, !tbaa !9
  br label %89

89:                                               ; preds = %83, %77
  %90 = load ptr, ptr %9, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %90, i32 0, i32 11
  %92 = load i32, ptr %91, align 4, !tbaa !18
  %93 = icmp ne i32 %92, 0
  br i1 %93, label %94, label %100

94:                                               ; preds = %89
  %95 = load ptr, ptr %7, align 8, !tbaa !5
  %96 = load ptr, ptr %9, align 8, !tbaa !5
  %97 = load ptr, ptr %8, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %97, i32 0, i32 22
  %99 = load i32, ptr %98, align 4, !tbaa !19
  call void @libxsmm_generator_gemm_getval_stack_var(ptr noundef %95, ptr noundef %96, i32 noundef 22, i32 noundef %99)
  br label %100

100:                                              ; preds = %94, %89
  %101 = load ptr, ptr %7, align 8, !tbaa !5
  %102 = load ptr, ptr %9, align 8, !tbaa !5
  %103 = load ptr, ptr %8, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %103, i32 0, i32 23
  %105 = load i32, ptr %104, align 4, !tbaa !21
  call void @libxsmm_generator_gemm_getval_stack_var(ptr noundef %101, ptr noundef %102, i32 noundef 23, i32 noundef %105)
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %106

106:                                              ; preds = %385, %100
  %107 = load i32, ptr %18, align 4, !tbaa !9
  %108 = icmp ult i32 %107, 2
  br i1 %108, label %109, label %388

109:                                              ; preds = %106
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %110

110:                                              ; preds = %142, %109
  %111 = load i32, ptr %14, align 4, !tbaa !9
  %112 = load i32, ptr %12, align 4, !tbaa !9
  %113 = icmp ult i32 %111, %112
  br i1 %113, label %114, label %145

114:                                              ; preds = %110
  %115 = load ptr, ptr %10, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %115, i32 0, i32 4
  %117 = load i32, ptr %116, align 1, !tbaa !22
  %118 = load i32, ptr %14, align 4, !tbaa !9
  %119 = mul i32 %117, %118
  %120 = load ptr, ptr %9, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %120, i32 0, i32 3
  %122 = load i32, ptr %121, align 4, !tbaa !23
  %123 = mul i32 %119, %122
  store i32 %123, ptr %17, align 4, !tbaa !9
  %124 = load i32, ptr %18, align 4, !tbaa !9
  %125 = icmp eq i32 %124, 0
  %126 = zext i1 %125 to i64
  %127 = select i1 %125, i32 2, i32 0
  %128 = load i32, ptr %17, align 4, !tbaa !9
  %129 = add nsw i32 %128, %127
  store i32 %129, ptr %17, align 4, !tbaa !9
  %130 = load ptr, ptr %7, align 8, !tbaa !5
  %131 = load ptr, ptr %9, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %131, i32 0, i32 0
  %133 = load i32, ptr %132, align 8, !tbaa !24
  %134 = load ptr, ptr %8, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %134, i32 0, i32 3
  %136 = load i32, ptr %135, align 4, !tbaa !25
  %137 = load i32, ptr %17, align 4, !tbaa !9
  %138 = load ptr, ptr %9, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %138, i32 0, i32 21
  %140 = load i8, ptr %139, align 4, !tbaa !26
  %141 = load i32, ptr %14, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_move(ptr noundef %130, i32 noundef %133, i32 noundef 1611014321, i32 noundef %136, i32 noundef 127, i32 noundef 0, i32 noundef %137, i8 noundef signext %140, i32 noundef %141, i32 noundef 0, i32 noundef 1, i32 noundef 0)
  br label %142

142:                                              ; preds = %114
  %143 = load i32, ptr %14, align 4, !tbaa !9
  %144 = add i32 %143, 1
  store i32 %144, ptr %14, align 4, !tbaa !9
  br label %110, !llvm.loop !27

145:                                              ; preds = %110
  %146 = load i32, ptr %18, align 4, !tbaa !9
  %147 = icmp eq i32 %146, 1
  br i1 %147, label %148, label %163

148:                                              ; preds = %145
  %149 = load ptr, ptr %9, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %149, i32 0, i32 3
  %151 = load i32, ptr %150, align 4, !tbaa !23
  %152 = load i32, ptr %19, align 4, !tbaa !9
  %153 = mul i32 %151, %152
  store i32 %153, ptr %17, align 4, !tbaa !9
  %154 = load ptr, ptr %7, align 8, !tbaa !5
  %155 = load ptr, ptr %9, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %155, i32 0, i32 16
  %157 = load i32, ptr %156, align 8, !tbaa !29
  %158 = load ptr, ptr %8, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %158, i32 0, i32 3
  %160 = load i32, ptr %159, align 4, !tbaa !25
  %161 = load i32, ptr %17, align 4, !tbaa !9
  %162 = sext i32 %161 to i64
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %154, i32 noundef %157, i32 noundef %160, i64 noundef %162)
  br label %163

163:                                              ; preds = %148, %145
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %164

164:                                              ; preds = %381, %163
  %165 = load i32, ptr %15, align 4, !tbaa !9
  %166 = load i32, ptr %13, align 4, !tbaa !9
  %167 = icmp ult i32 %165, %166
  br i1 %167, label %168, label %384

168:                                              ; preds = %164
  %169 = load ptr, ptr %9, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %169, i32 0, i32 11
  %171 = load i32, ptr %170, align 4, !tbaa !18
  %172 = icmp eq i32 %171, 0
  br i1 %172, label %183, label %173

173:                                              ; preds = %168
  %174 = load ptr, ptr %9, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %174, i32 0, i32 11
  %176 = load i32, ptr %175, align 4, !tbaa !18
  %177 = icmp eq i32 %176, 1
  br i1 %177, label %178, label %261

178:                                              ; preds = %173
  %179 = load i32, ptr %15, align 4, !tbaa !9
  %180 = load i32, ptr %13, align 4, !tbaa !9
  %181 = sub i32 %180, 1
  %182 = icmp ult i32 %179, %181
  br i1 %182, label %183, label %261

183:                                              ; preds = %178, %168
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #3
  %184 = load i32, ptr %18, align 4, !tbaa !9
  %185 = icmp eq i32 %184, 0
  %186 = zext i1 %185 to i64
  %187 = select i1 %185, i32 1611079856, i32 1611014320
  store i32 %187, ptr %21, align 4, !tbaa !9
  %188 = load ptr, ptr %7, align 8, !tbaa !5
  %189 = load i32, ptr %21, align 4, !tbaa !9
  %190 = load ptr, ptr %8, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %190, i32 0, i32 1
  %192 = load i32, ptr %191, align 4, !tbaa !30
  %193 = load ptr, ptr %9, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %193, i32 0, i32 3
  %195 = load i32, ptr %194, align 4, !tbaa !23
  %196 = load ptr, ptr %9, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %196, i32 0, i32 2
  %198 = load i32, ptr %197, align 8, !tbaa !11
  %199 = mul i32 %195, %198
  %200 = load i32, ptr %15, align 4, !tbaa !9
  %201 = mul i32 %199, %200
  %202 = load i32, ptr %19, align 4, !tbaa !9
  %203 = mul i32 %201, %202
  %204 = load ptr, ptr %9, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %204, i32 0, i32 21
  %206 = load i8, ptr %205, align 4, !tbaa !26
  %207 = load i32, ptr %12, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_unified_vec_move(ptr noundef %188, i32 noundef %189, i32 noundef %192, i32 noundef 127, i32 noundef 0, i32 noundef %203, i8 noundef signext %206, i32 noundef %207, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  %208 = load i32, ptr %15, align 4, !tbaa !9
  %209 = load i32, ptr %13, align 4, !tbaa !9
  %210 = sub i32 %209, 1
  %211 = icmp eq i32 %208, %210
  br i1 %211, label %212, label %235

212:                                              ; preds = %183
  %213 = load i32, ptr %18, align 4, !tbaa !9
  %214 = icmp eq i32 %213, 1
  br i1 %214, label %215, label %235

215:                                              ; preds = %212
  %216 = load ptr, ptr %7, align 8, !tbaa !5
  %217 = load ptr, ptr %9, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %217, i32 0, i32 16
  %219 = load i32, ptr %218, align 8, !tbaa !29
  %220 = load ptr, ptr %8, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %220, i32 0, i32 1
  %222 = load i32, ptr %221, align 4, !tbaa !30
  %223 = load ptr, ptr %10, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %223, i32 0, i32 3
  %225 = load i32, ptr %224, align 1, !tbaa !31
  %226 = zext i32 %225 to i64
  %227 = load ptr, ptr %9, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %227, i32 0, i32 3
  %229 = load i32, ptr %228, align 4, !tbaa !23
  %230 = zext i32 %229 to i64
  %231 = mul nsw i64 %226, %230
  %232 = load i32, ptr %19, align 4, !tbaa !9
  %233 = zext i32 %232 to i64
  %234 = mul nsw i64 %231, %233
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %216, i32 noundef %219, i32 noundef %222, i64 noundef %234)
  br label %235

235:                                              ; preds = %215, %212, %183
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %236

236:                                              ; preds = %257, %235
  %237 = load i32, ptr %14, align 4, !tbaa !9
  %238 = load i32, ptr %12, align 4, !tbaa !9
  %239 = icmp ult i32 %237, %238
  br i1 %239, label %240, label %260

240:                                              ; preds = %236
  %241 = load ptr, ptr %7, align 8, !tbaa !5
  %242 = load ptr, ptr %9, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %242, i32 0, i32 14
  %244 = load i32, ptr %243, align 8, !tbaa !32
  %245 = load ptr, ptr %9, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %245, i32 0, i32 21
  %247 = load i8, ptr %246, align 4, !tbaa !26
  %248 = load i32, ptr %12, align 4, !tbaa !9
  %249 = load i32, ptr %14, align 4, !tbaa !9
  %250 = load i32, ptr %16, align 4, !tbaa !9
  %251 = load i32, ptr %15, align 4, !tbaa !9
  %252 = add i32 %250, %251
  %253 = load i32, ptr %13, align 4, !tbaa !9
  %254 = load i32, ptr %14, align 4, !tbaa !9
  %255 = mul i32 %253, %254
  %256 = add i32 %252, %255
  call void @libxsmm_x86_instruction_vec_compute_3reg(ptr noundef %241, i32 noundef %244, i8 noundef signext %247, i32 noundef %248, i32 noundef %249, i32 noundef %256)
  br label %257

257:                                              ; preds = %240
  %258 = load i32, ptr %14, align 4, !tbaa !9
  %259 = add i32 %258, 1
  store i32 %259, ptr %14, align 4, !tbaa !9
  br label %236, !llvm.loop !33

260:                                              ; preds = %236
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #3
  br label %380

261:                                              ; preds = %178, %173
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %262

262:                                              ; preds = %376, %261
  %263 = load i32, ptr %14, align 4, !tbaa !9
  %264 = load i32, ptr %12, align 4, !tbaa !9
  %265 = icmp ult i32 %263, %264
  br i1 %265, label %266, label %379

266:                                              ; preds = %262
  %267 = load ptr, ptr %7, align 8, !tbaa !5
  %268 = load ptr, ptr %9, align 8, !tbaa !5
  %269 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %268, i32 0, i32 0
  %270 = load i32, ptr %269, align 8, !tbaa !24
  %271 = load ptr, ptr %8, align 8, !tbaa !5
  %272 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %271, i32 0, i32 22
  %273 = load i32, ptr %272, align 4, !tbaa !19
  %274 = load i32, ptr %12, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_move(ptr noundef %267, i32 noundef %270, i32 noundef 537138704, i32 noundef %273, i32 noundef 127, i32 noundef 0, i32 noundef 0, i8 noundef signext 121, i32 noundef %274, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  %275 = load ptr, ptr %7, align 8, !tbaa !5
  %276 = load ptr, ptr %9, align 8, !tbaa !5
  %277 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %276, i32 0, i32 6
  %278 = load i32, ptr %277, align 8, !tbaa !34
  %279 = load ptr, ptr %8, align 8, !tbaa !5
  %280 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %279, i32 0, i32 1
  %281 = load i32, ptr %280, align 4, !tbaa !30
  %282 = load ptr, ptr %9, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %282, i32 0, i32 3
  %284 = load i32, ptr %283, align 4, !tbaa !23
  %285 = load ptr, ptr %9, align 8, !tbaa !5
  %286 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %285, i32 0, i32 2
  %287 = load i32, ptr %286, align 8, !tbaa !11
  %288 = mul i32 %284, %287
  %289 = load i32, ptr %15, align 4, !tbaa !9
  %290 = mul i32 %288, %289
  %291 = load i32, ptr %19, align 4, !tbaa !9
  %292 = mul i32 %290, %291
  %293 = load ptr, ptr %9, align 8, !tbaa !5
  %294 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %293, i32 0, i32 21
  %295 = load i8, ptr %294, align 4, !tbaa !26
  %296 = load i32, ptr %12, align 4, !tbaa !9
  %297 = load i32, ptr %15, align 4, !tbaa !9
  %298 = load i32, ptr %13, align 4, !tbaa !9
  %299 = sub i32 %298, 1
  %300 = icmp eq i32 %297, %299
  br i1 %300, label %301, label %305

301:                                              ; preds = %266
  %302 = load ptr, ptr %9, align 8, !tbaa !5
  %303 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %302, i32 0, i32 11
  %304 = load i32, ptr %303, align 4, !tbaa !18
  br label %306

305:                                              ; preds = %266
  br label %306

306:                                              ; preds = %305, %301
  %307 = phi i32 [ %304, %301 ], [ 0, %305 ]
  %308 = load i32, ptr %12, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_unified_vec_move(ptr noundef %275, i32 noundef %278, i32 noundef %281, i32 noundef 127, i32 noundef 0, i32 noundef %292, i8 noundef signext %295, i32 noundef %296, i32 noundef %307, i32 noundef %308, i32 noundef 0)
  %309 = load i32, ptr %18, align 4, !tbaa !9
  %310 = icmp eq i32 %309, 0
  br i1 %310, label %311, label %319

311:                                              ; preds = %306
  %312 = load ptr, ptr %7, align 8, !tbaa !5
  %313 = load ptr, ptr %9, align 8, !tbaa !5
  %314 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %313, i32 0, i32 21
  %315 = load i8, ptr %314, align 4, !tbaa !26
  %316 = load i32, ptr %12, align 4, !tbaa !9
  %317 = load i32, ptr %14, align 4, !tbaa !9
  %318 = load i32, ptr %12, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_compute_3reg_imm8(ptr noundef %312, i32 noundef 1879912462, i8 noundef signext %315, i32 noundef %316, i32 noundef %317, i32 noundef %318, i32 noundef 170)
  br label %326

319:                                              ; preds = %306
  %320 = load ptr, ptr %7, align 8, !tbaa !5
  %321 = load ptr, ptr %9, align 8, !tbaa !5
  %322 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %321, i32 0, i32 21
  %323 = load i8, ptr %322, align 4, !tbaa !26
  %324 = load i32, ptr %12, align 4, !tbaa !9
  %325 = load i32, ptr %12, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_compute_2reg_imm8(ptr noundef %320, i32 noundef 611128946, i8 noundef signext %323, i32 noundef %324, i32 noundef %325, i32 noundef 16)
  br label %326

326:                                              ; preds = %319, %311
  %327 = load i32, ptr %15, align 4, !tbaa !9
  %328 = load i32, ptr %13, align 4, !tbaa !9
  %329 = sub i32 %328, 1
  %330 = icmp eq i32 %327, %329
  br i1 %330, label %331, label %359

331:                                              ; preds = %326
  %332 = load i32, ptr %14, align 4, !tbaa !9
  %333 = load i32, ptr %12, align 4, !tbaa !9
  %334 = sub i32 %333, 1
  %335 = icmp eq i32 %332, %334
  br i1 %335, label %336, label %359

336:                                              ; preds = %331
  %337 = load i32, ptr %18, align 4, !tbaa !9
  %338 = icmp eq i32 %337, 1
  br i1 %338, label %339, label %359

339:                                              ; preds = %336
  %340 = load ptr, ptr %7, align 8, !tbaa !5
  %341 = load ptr, ptr %9, align 8, !tbaa !5
  %342 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %341, i32 0, i32 16
  %343 = load i32, ptr %342, align 8, !tbaa !29
  %344 = load ptr, ptr %8, align 8, !tbaa !5
  %345 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %344, i32 0, i32 1
  %346 = load i32, ptr %345, align 4, !tbaa !30
  %347 = load ptr, ptr %10, align 8, !tbaa !5
  %348 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %347, i32 0, i32 3
  %349 = load i32, ptr %348, align 1, !tbaa !31
  %350 = zext i32 %349 to i64
  %351 = load ptr, ptr %9, align 8, !tbaa !5
  %352 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %351, i32 0, i32 3
  %353 = load i32, ptr %352, align 4, !tbaa !23
  %354 = zext i32 %353 to i64
  %355 = mul nsw i64 %350, %354
  %356 = load i32, ptr %19, align 4, !tbaa !9
  %357 = zext i32 %356 to i64
  %358 = mul nsw i64 %355, %357
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %340, i32 noundef %343, i32 noundef %346, i64 noundef %358)
  br label %359

359:                                              ; preds = %339, %336, %331, %326
  %360 = load ptr, ptr %7, align 8, !tbaa !5
  %361 = load ptr, ptr %9, align 8, !tbaa !5
  %362 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %361, i32 0, i32 14
  %363 = load i32, ptr %362, align 8, !tbaa !32
  %364 = load ptr, ptr %9, align 8, !tbaa !5
  %365 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %364, i32 0, i32 21
  %366 = load i8, ptr %365, align 4, !tbaa !26
  %367 = load i32, ptr %12, align 4, !tbaa !9
  %368 = load i32, ptr %14, align 4, !tbaa !9
  %369 = load i32, ptr %16, align 4, !tbaa !9
  %370 = load i32, ptr %15, align 4, !tbaa !9
  %371 = add i32 %369, %370
  %372 = load i32, ptr %13, align 4, !tbaa !9
  %373 = load i32, ptr %14, align 4, !tbaa !9
  %374 = mul i32 %372, %373
  %375 = add i32 %371, %374
  call void @libxsmm_x86_instruction_vec_compute_3reg(ptr noundef %360, i32 noundef %363, i8 noundef signext %366, i32 noundef %367, i32 noundef %368, i32 noundef %375)
  br label %376

376:                                              ; preds = %359
  %377 = load i32, ptr %14, align 4, !tbaa !9
  %378 = add i32 %377, 1
  store i32 %378, ptr %14, align 4, !tbaa !9
  br label %262, !llvm.loop !35

379:                                              ; preds = %262
  br label %380

380:                                              ; preds = %379, %260
  br label %381

381:                                              ; preds = %380
  %382 = load i32, ptr %15, align 4, !tbaa !9
  %383 = add i32 %382, 1
  store i32 %383, ptr %15, align 4, !tbaa !9
  br label %164, !llvm.loop !36

384:                                              ; preds = %164
  br label %385

385:                                              ; preds = %384
  %386 = load i32, ptr %18, align 4, !tbaa !9
  %387 = add i32 %386, 1
  store i32 %387, ptr %18, align 4, !tbaa !9
  br label %106, !llvm.loop !37

388:                                              ; preds = %106
  store i32 0, ptr %20, align 4
  br label %389

389:                                              ; preds = %388, %75, %60
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  %390 = load i32, ptr %20, align 4
  switch i32 %390, label %392 [
    i32 0, label %391
    i32 1, label %391
  ]

391:                                              ; preds = %389, %389
  ret void

392:                                              ; preds = %389
  unreachable
}

declare i32 @libxsmm_cpuid_dot_pack_factor(i32 noundef) #1

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

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

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

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

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

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

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

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

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

declare i32 @libxsmm_cpuid_x86_srf_gemm_set_n_max_blocking() #1

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

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

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

@.str = external hidden unnamed_addr constant [87 x i8], align 1
@libxsmm_ninit = external local_unnamed_addr global i32, align 4
@libxsmm_verbosity = external local_unnamed_addr global i32, align 4
@__func__.libxsmm_generator_gemm_avx2_microkernel_bf16_vnni_srf = external hidden unnamed_addr constant [54 x i8], align 1

declare i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_gemm_avx2_microkernel_bf16_vnni_srf(ptr noundef %0, ptr nocapture noundef readonly %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5) local_unnamed_addr #1 {
  %7 = getelementptr inbounds i8, ptr %2, i64 8
  %8 = load i32, ptr %7, align 8, !tbaa !5
  %9 = urem i32 %4, %8
  %10 = icmp ne i32 %9, 0
  %11 = udiv i32 %4, %8
  %12 = zext i1 %10 to i32
  %13 = add i32 %11, %12
  %.fr168 = freeze i32 %13
  %14 = mul i32 %.fr168, %5
  %15 = sub i32 16, %14
  %16 = tail call i32 @libxsmm_cpuid_x86_srf_gemm_set_n_max_blocking() #2
  %17 = add i32 %5, -1
  %or.cond.not = icmp ult i32 %17, %16
  br i1 %or.cond.not, label %23, label %18

18:                                               ; preds = %6
  %19 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !13
  %20 = icmp ugt i32 %19, 1
  %21 = load i32, ptr @libxsmm_verbosity, align 4
  %22 = select i1 %20, i32 %21, i32 1
  tail call void @libxsmm_handle_error(ptr noundef %0, i32 noundef 90016, ptr noundef nonnull @__func__.libxsmm_generator_gemm_avx2_microkernel_bf16_vnni_srf, ptr noundef nonnull @.str, i32 noundef 1517, i32 noundef %22) #2
  br label %.loopexit146

23:                                               ; preds = %6
  %24 = getelementptr inbounds i8, ptr %3, i64 24
  %25 = load i32, ptr %24, align 1, !tbaa !14
  %26 = and i32 %25, 2
  %.not = icmp eq i32 %26, 0
  br i1 %.not, label %32, label %27

27:                                               ; preds = %23
  %28 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !13
  %29 = icmp ugt i32 %28, 1
  %30 = load i32, ptr @libxsmm_verbosity, align 4
  %31 = select i1 %29, i32 %30, i32 1
  tail call void @libxsmm_handle_error(ptr noundef %0, i32 noundef 90039, ptr noundef nonnull @__func__.libxsmm_generator_gemm_avx2_microkernel_bf16_vnni_srf, ptr noundef nonnull @.str, i32 noundef 1523, i32 noundef %31) #2
  br label %.loopexit146

32:                                               ; preds = %23
  %33 = and i32 %25, 2048
  %.not143 = icmp eq i32 %33, 0
  br i1 %.not143, label %38, label %34

34:                                               ; preds = %32
  %35 = getelementptr inbounds i8, ptr %3, i64 29
  %36 = tail call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef nonnull %35) #2
  %37 = tail call i32 @libxsmm_cpuid_dot_pack_factor(i32 noundef %36) #2
  br label %38

38:                                               ; preds = %34, %32
  %.0137 = phi i32 [ %37, %34 ], [ 1, %32 ]
  %39 = getelementptr inbounds i8, ptr %2, i64 44
  %40 = load i32, ptr %39, align 4, !tbaa !17
  %.not144 = icmp eq i32 %40, 0
  br i1 %.not144, label %44, label %41

41:                                               ; preds = %38
  %42 = getelementptr inbounds i8, ptr %1, i64 88
  %43 = load i32, ptr %42, align 4, !tbaa !18
  tail call void @libxsmm_generator_gemm_getval_stack_var(ptr noundef %0, ptr noundef nonnull %2, i32 noundef 22, i32 noundef %43) #2
  br label %44

44:                                               ; preds = %41, %38
  %45 = getelementptr inbounds i8, ptr %1, i64 92
  %46 = load i32, ptr %45, align 4, !tbaa !20
  tail call void @libxsmm_generator_gemm_getval_stack_var(ptr noundef %0, ptr noundef nonnull %2, i32 noundef 23, i32 noundef %46) #2
  %47 = getelementptr inbounds i8, ptr %3, i64 16
  %48 = getelementptr inbounds i8, ptr %2, i64 12
  %49 = getelementptr inbounds i8, ptr %1, i64 12
  %50 = getelementptr inbounds i8, ptr %2, i64 84
  %51 = getelementptr inbounds i8, ptr %2, i64 64
  %.not169 = icmp eq i32 %.fr168, 0
  %52 = add i32 %.fr168, -1
  %53 = getelementptr inbounds i8, ptr %1, i64 4
  %54 = getelementptr inbounds i8, ptr %3, i64 12
  %55 = zext i32 %.0137 to i64
  %56 = getelementptr inbounds i8, ptr %2, i64 56
  %57 = getelementptr inbounds i8, ptr %1, i64 88
  %58 = getelementptr inbounds i8, ptr %2, i64 24
  br i1 %.not169, label %.preheader.us160.preheader, label %.preheader.us

.preheader.us:                                    ; preds = %44, %._crit_edge158.us
  %59 = phi i32 [ 0, %._crit_edge158.us ], [ 2, %44 ]
  %60 = phi i1 [ true, %._crit_edge158.us ], [ false, %44 ]
  %61 = phi i1 [ false, %._crit_edge158.us ], [ true, %44 ]
  br label %130

._crit_edge.us:                                   ; preds = %130
  br i1 %60, label %62, label %.lr.ph157.us

62:                                               ; preds = %._crit_edge.us
  %63 = load i32, ptr %48, align 4, !tbaa !21
  %64 = mul i32 %63, %.0137
  %65 = load i32, ptr %51, align 8, !tbaa !22
  %66 = load i32, ptr %49, align 4, !tbaa !23
  %67 = sext i32 %64 to i64
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef %65, i32 noundef %66, i64 noundef %67) #2
  br label %.lr.ph157.us

.lr.ph157.us:                                     ; preds = %62, %._crit_edge.us
  %68 = select i1 %61, i32 1611079856, i32 1611014320
  br label %69

69:                                               ; preds = %.lr.ph157.us, %.loopexit.us
  %.0139154.us = phi i32 [ 0, %.lr.ph157.us ], [ %97, %.loopexit.us ]
  %70 = load i32, ptr %39, align 4, !tbaa !17
  switch i32 %70, label %.lr.ph153.us [
    i32 0, label %73
    i32 1, label %71
  ]

71:                                               ; preds = %69
  %72 = icmp ult i32 %.0139154.us, %52
  br i1 %72, label %73, label %.lr.ph153.us

73:                                               ; preds = %71, %69
  %74 = load i32, ptr %53, align 4, !tbaa !24
  %75 = load i32, ptr %48, align 4, !tbaa !21
  %76 = load i32, ptr %7, align 8, !tbaa !5
  %77 = mul i32 %.0139154.us, %.0137
  %78 = mul i32 %77, %75
  %79 = mul i32 %78, %76
  %80 = load i8, ptr %50, align 4, !tbaa !25
  tail call void @libxsmm_x86_instruction_unified_vec_move(ptr noundef %0, i32 noundef %68, i32 noundef %74, i32 noundef 127, i32 noundef 0, i32 noundef %79, i8 noundef signext %80, i32 noundef %5, i32 noundef 0, i32 noundef 0, i32 noundef 0) #2
  %81 = icmp eq i32 %.0139154.us, %52
  %or.cond3.us = and i1 %60, %81
  br i1 %or.cond3.us, label %82, label %.lr.ph150.us

82:                                               ; preds = %73
  %83 = load i32, ptr %51, align 8, !tbaa !22
  %84 = load i32, ptr %53, align 4, !tbaa !24
  %85 = load i32, ptr %54, align 1, !tbaa !26
  %86 = zext i32 %85 to i64
  %87 = load i32, ptr %48, align 4, !tbaa !21
  %88 = zext i32 %87 to i64
  %89 = mul nuw i64 %86, %55
  %90 = mul i64 %89, %88
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef %83, i32 noundef %84, i64 noundef %90) #2
  br label %.lr.ph150.us

91:                                               ; preds = %.lr.ph150.us, %91
  %.1148.us = phi i32 [ 0, %.lr.ph150.us ], [ %96, %91 ]
  %92 = load i32, ptr %56, align 8, !tbaa !27
  %93 = load i8, ptr %50, align 4, !tbaa !25
  %94 = mul i32 %.1148.us, %.fr168
  %95 = add i32 %140, %94
  tail call void @libxsmm_x86_instruction_vec_compute_3reg(ptr noundef %0, i32 noundef %92, i8 noundef signext %93, i32 noundef %5, i32 noundef %.1148.us, i32 noundef %95) #2
  %96 = add nuw i32 %.1148.us, 1
  %exitcond173.not = icmp eq i32 %96, %5
  br i1 %exitcond173.not, label %.loopexit.us, label %91, !llvm.loop !28

.loopexit.us:                                     ; preds = %91, %124
  %97 = add nuw i32 %.0139154.us, 1
  %exitcond175.not = icmp eq i32 %97, %.fr168
  br i1 %exitcond175.not, label %._crit_edge158.us, label %69, !llvm.loop !30

98:                                               ; preds = %.lr.ph153.us, %124
  %.2151.us = phi i32 [ 0, %.lr.ph153.us ], [ %129, %124 ]
  %99 = load i32, ptr %2, align 8, !tbaa !31
  %100 = load i32, ptr %57, align 4, !tbaa !18
  tail call void @libxsmm_x86_instruction_vec_move(ptr noundef %0, i32 noundef %99, i32 noundef 537138704, i32 noundef %100, i32 noundef 127, i32 noundef 0, i32 noundef 0, i8 noundef signext 121, i32 noundef %5, i32 noundef 0, i32 noundef 0, i32 noundef 0) #2
  %101 = load i32, ptr %58, align 8, !tbaa !32
  %102 = load i32, ptr %53, align 4, !tbaa !24
  %103 = load i32, ptr %48, align 4, !tbaa !21
  %104 = load i32, ptr %7, align 8, !tbaa !5
  %105 = mul i32 %141, %103
  %106 = mul i32 %105, %104
  %107 = load i8, ptr %50, align 4, !tbaa !25
  br i1 %142, label %108, label %110

108:                                              ; preds = %98
  %109 = load i32, ptr %39, align 4, !tbaa !17
  br label %110

110:                                              ; preds = %108, %98
  %111 = phi i32 [ %109, %108 ], [ 0, %98 ]
  tail call void @libxsmm_x86_instruction_unified_vec_move(ptr noundef %0, i32 noundef %101, i32 noundef %102, i32 noundef 127, i32 noundef 0, i32 noundef %106, i8 noundef signext %107, i32 noundef %5, i32 noundef %111, i32 noundef %5, i32 noundef 0) #2
  %112 = load i8, ptr %50, align 4, !tbaa !25
  br i1 %61, label %.thread, label %113

.thread:                                          ; preds = %110
  tail call void @libxsmm_x86_instruction_vec_compute_3reg_imm8(ptr noundef %0, i32 noundef 1879912462, i8 noundef signext %112, i32 noundef %5, i32 noundef %.2151.us, i32 noundef %5, i32 noundef 170) #2
  br label %124

113:                                              ; preds = %110
  tail call void @libxsmm_x86_instruction_vec_compute_2reg_imm8(ptr noundef %0, i32 noundef 611128946, i8 noundef signext %112, i32 noundef %5, i32 noundef %5, i32 noundef 16) #2
  %114 = icmp eq i32 %.2151.us, %17
  %or.cond5.us = and i1 %60, %114
  %or.cond.us = and i1 %142, %or.cond5.us
  br i1 %or.cond.us, label %115, label %124

115:                                              ; preds = %113
  %116 = load i32, ptr %51, align 8, !tbaa !22
  %117 = load i32, ptr %53, align 4, !tbaa !24
  %118 = load i32, ptr %54, align 1, !tbaa !26
  %119 = zext i32 %118 to i64
  %120 = load i32, ptr %48, align 4, !tbaa !21
  %121 = zext i32 %120 to i64
  %122 = mul nuw i64 %119, %55
  %123 = mul i64 %122, %121
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef %116, i32 noundef %117, i64 noundef %123) #2
  br label %124

124:                                              ; preds = %.thread, %115, %113
  %125 = load i32, ptr %56, align 8, !tbaa !27
  %126 = load i8, ptr %50, align 4, !tbaa !25
  %127 = mul i32 %.2151.us, %.fr168
  %128 = add i32 %143, %127
  tail call void @libxsmm_x86_instruction_vec_compute_3reg(ptr noundef %0, i32 noundef %125, i8 noundef signext %126, i32 noundef %5, i32 noundef %.2151.us, i32 noundef %128) #2
  %129 = add nuw i32 %.2151.us, 1
  %exitcond174.not = icmp eq i32 %129, %5
  br i1 %exitcond174.not, label %.loopexit.us, label %98, !llvm.loop !33

130:                                              ; preds = %.preheader.us, %130
  %.0147.us = phi i32 [ 0, %.preheader.us ], [ %139, %130 ]
  %131 = load i32, ptr %47, align 1, !tbaa !34
  %132 = mul i32 %131, %.0147.us
  %133 = load i32, ptr %48, align 4, !tbaa !21
  %134 = mul i32 %132, %133
  %135 = add nsw i32 %134, %59
  %136 = load i32, ptr %2, align 8, !tbaa !31
  %137 = load i32, ptr %49, align 4, !tbaa !23
  %138 = load i8, ptr %50, align 4, !tbaa !25
  tail call void @libxsmm_x86_instruction_vec_move(ptr noundef %0, i32 noundef %136, i32 noundef 1611014321, i32 noundef %137, i32 noundef 127, i32 noundef 0, i32 noundef %135, i8 noundef signext %138, i32 noundef %.0147.us, i32 noundef 0, i32 noundef 1, i32 noundef 0) #2
  %139 = add nuw i32 %.0147.us, 1
  %exitcond.not = icmp eq i32 %139, %5
  br i1 %exitcond.not, label %._crit_edge.us, label %130, !llvm.loop !35

.lr.ph150.us:                                     ; preds = %73, %82
  %140 = add i32 %.0139154.us, %15
  br label %91

.lr.ph153.us:                                     ; preds = %69, %71
  %141 = mul i32 %.0139154.us, %.0137
  %142 = icmp eq i32 %.0139154.us, %52
  %143 = add i32 %.0139154.us, %15
  br label %98

._crit_edge158.us:                                ; preds = %.loopexit.us
  br i1 %61, label %.preheader.us, label %.loopexit146, !llvm.loop !36

.preheader.us160.1:                               ; preds = %.preheader.us160.preheader, %.preheader.us160.1
  %.0147.us162.1 = phi i32 [ %151, %.preheader.us160.1 ], [ 0, %.preheader.us160.preheader ]
  %144 = load i32, ptr %47, align 1, !tbaa !34
  %145 = mul i32 %144, %.0147.us162.1
  %146 = load i32, ptr %48, align 4, !tbaa !21
  %147 = mul i32 %145, %146
  %148 = load i32, ptr %2, align 8, !tbaa !31
  %149 = load i32, ptr %49, align 4, !tbaa !23
  %150 = load i8, ptr %50, align 4, !tbaa !25
  tail call void @libxsmm_x86_instruction_vec_move(ptr noundef %0, i32 noundef %148, i32 noundef 1611014321, i32 noundef %149, i32 noundef 127, i32 noundef 0, i32 noundef %147, i8 noundef signext %150, i32 noundef %.0147.us162.1, i32 noundef 0, i32 noundef 1, i32 noundef 0) #2
  %151 = add nuw i32 %.0147.us162.1, 1
  %exitcond176.1.not = icmp eq i32 %151, %5
  br i1 %exitcond176.1.not, label %.loopexit146.loopexit170, label %.preheader.us160.1, !llvm.loop !35

.loopexit146.loopexit170:                         ; preds = %.preheader.us160.1
  %152 = load i32, ptr %48, align 4, !tbaa !21
  %153 = mul i32 %152, %.0137
  %154 = load i32, ptr %51, align 8, !tbaa !22
  %155 = load i32, ptr %49, align 4, !tbaa !23
  %156 = sext i32 %153 to i64
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef %154, i32 noundef %155, i64 noundef %156) #2
  br label %.loopexit146

.preheader.us160.preheader:                       ; preds = %44, %.preheader.us160.preheader
  %.0147.us162 = phi i32 [ %165, %.preheader.us160.preheader ], [ 0, %44 ]
  %157 = load i32, ptr %47, align 1, !tbaa !34
  %158 = mul i32 %157, %.0147.us162
  %159 = load i32, ptr %48, align 4, !tbaa !21
  %160 = mul i32 %158, %159
  %161 = add nsw i32 %160, 2
  %162 = load i32, ptr %2, align 8, !tbaa !31
  %163 = load i32, ptr %49, align 4, !tbaa !23
  %164 = load i8, ptr %50, align 4, !tbaa !25
  tail call void @libxsmm_x86_instruction_vec_move(ptr noundef %0, i32 noundef %162, i32 noundef 1611014321, i32 noundef %163, i32 noundef 127, i32 noundef 0, i32 noundef %161, i8 noundef signext %164, i32 noundef %.0147.us162, i32 noundef 0, i32 noundef 1, i32 noundef 0) #2
  %165 = add nuw i32 %.0147.us162, 1
  %exitcond176.not = icmp eq i32 %165, %5
  br i1 %exitcond176.not, label %.preheader.us160.1, label %.preheader.us160.preheader, !llvm.loop !35

.loopexit146:                                     ; preds = %._crit_edge158.us, %.loopexit146.loopexit170, %27, %18
  ret void
}

declare i32 @libxsmm_cpuid_dot_pack_factor(i32 noundef) local_unnamed_addr #0

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

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

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

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

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

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

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

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

declare i32 @libxsmm_cpuid_x86_srf_gemm_set_n_max_blocking() local_unnamed_addr #0

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

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

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


; Effective O3 passes: ADCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass