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

@__func__.libxsmm_generator_gemm_avx2_microkernel_int8_int16_vnni_emu = external hidden unnamed_addr constant [60 x i8], align 1
@.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

; 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_int8_int16_vnni_emu(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
  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
  %20 = load i32, ptr %11, align 4, !tbaa !9
  %21 = load ptr, ptr %9, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %21, i32 0, i32 2
  %23 = load i32, ptr %22, align 8, !tbaa !11
  %24 = urem i32 %20, %23
  %25 = icmp eq i32 %24, 0
  br i1 %25, label %26, label %32

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

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

39:                                               ; preds = %32, %26
  %40 = phi i32 [ %31, %26 ], [ %38, %32 ]
  store i32 %40, 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
  %41 = load i32, ptr %12, align 4, !tbaa !9
  %42 = load i32, ptr %13, align 4, !tbaa !9
  %43 = mul i32 %41, %42
  %44 = sub i32 16, %43
  store i32 %44, 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 1, ptr %18, align 4, !tbaa !9
  %45 = load i32, ptr %12, align 4, !tbaa !9
  %46 = icmp ugt i32 %45, 3
  br i1 %46, label %50, label %47

47:                                               ; preds = %39
  %48 = load i32, ptr %12, align 4, !tbaa !9
  %49 = icmp ult i32 %48, 1
  br i1 %49, label %50, label %59

50:                                               ; preds = %47, %39
  %51 = load ptr, ptr %7, align 8, !tbaa !5
  %52 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %53 = icmp ult i32 1, %52
  br i1 %53, label %54, label %56

54:                                               ; preds = %50
  %55 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %57

56:                                               ; preds = %50
  br label %57

57:                                               ; preds = %56, %54
  %58 = phi i32 [ %55, %54 ], [ 1, %56 ]
  call void @libxsmm_handle_error(ptr noundef %51, i32 noundef 90016, ptr noundef @__func__.libxsmm_generator_gemm_avx2_microkernel_int8_int16_vnni_emu, ptr noundef @.str, i32 noundef 804, i32 noundef %58)
  store i32 1, ptr %19, align 4
  br label %346

59:                                               ; preds = %47
  %60 = load ptr, ptr %10, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %60, i32 0, i32 6
  %62 = load i32, ptr %61, align 1, !tbaa !15
  %63 = and i32 %62, 2048
  %64 = icmp eq i32 %63, 2048
  br i1 %64, label %65, label %71

65:                                               ; preds = %59
  %66 = load ptr, ptr %10, 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_AB_COMMON_PREC(ptr noundef %68)
  %70 = call i32 @libxsmm_cpuid_dot_pack_factor(i32 noundef %69)
  store i32 %70, ptr %18, align 4, !tbaa !9
  br label %71

71:                                               ; preds = %65, %59
  %72 = load ptr, ptr %9, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %72, i32 0, i32 11
  %74 = load i32, ptr %73, align 4, !tbaa !18
  %75 = icmp ne i32 %74, 0
  br i1 %75, label %76, label %82

76:                                               ; preds = %71
  %77 = load ptr, ptr %7, align 8, !tbaa !5
  %78 = load ptr, ptr %9, align 8, !tbaa !5
  %79 = load ptr, ptr %8, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %79, i32 0, i32 22
  %81 = load i32, ptr %80, align 4, !tbaa !19
  call void @libxsmm_generator_gemm_getval_stack_var(ptr noundef %77, ptr noundef %78, i32 noundef 22, i32 noundef %81)
  br label %82

82:                                               ; preds = %76, %71
  %83 = load ptr, ptr %7, align 8, !tbaa !5
  %84 = load ptr, ptr %9, align 8, !tbaa !5
  %85 = load ptr, ptr %8, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %85, i32 0, i32 23
  %87 = load i32, ptr %86, align 4, !tbaa !21
  call void @libxsmm_generator_gemm_getval_stack_var(ptr noundef %83, ptr noundef %84, i32 noundef 23, i32 noundef %87)
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %88

88:                                               ; preds = %132, %82
  %89 = load i32, ptr %14, align 4, !tbaa !9
  %90 = load i32, ptr %12, align 4, !tbaa !9
  %91 = icmp ult i32 %89, %90
  br i1 %91, label %92, label %135

92:                                               ; preds = %88
  %93 = load ptr, ptr %10, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %93, i32 0, i32 6
  %95 = load i32, ptr %94, align 1, !tbaa !15
  %96 = and i32 %95, 2
  %97 = icmp ugt i32 %96, 0
  br i1 %97, label %98, label %106

98:                                               ; preds = %92
  %99 = load i32, ptr %14, align 4, !tbaa !9
  %100 = load ptr, ptr %9, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %100, i32 0, i32 3
  %102 = load i32, ptr %101, align 4, !tbaa !22
  %103 = mul i32 %99, %102
  %104 = load i32, ptr %18, align 4, !tbaa !9
  %105 = mul i32 %103, %104
  store i32 %105, ptr %17, align 4, !tbaa !9
  br label %116

106:                                              ; preds = %92
  %107 = load ptr, ptr %10, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %107, i32 0, i32 4
  %109 = load i32, ptr %108, align 1, !tbaa !23
  %110 = load i32, ptr %14, align 4, !tbaa !9
  %111 = mul i32 %109, %110
  %112 = load ptr, ptr %9, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %112, i32 0, i32 3
  %114 = load i32, ptr %113, align 4, !tbaa !22
  %115 = mul i32 %111, %114
  store i32 %115, ptr %17, align 4, !tbaa !9
  br label %116

116:                                              ; preds = %106, %98
  %117 = load ptr, ptr %7, align 8, !tbaa !5
  %118 = load ptr, ptr %9, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %118, i32 0, i32 0
  %120 = load i32, ptr %119, align 8, !tbaa !24
  %121 = load ptr, ptr %9, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %121, i32 0, i32 7
  %123 = load i32, ptr %122, align 4, !tbaa !25
  %124 = load ptr, ptr %8, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %124, i32 0, i32 3
  %126 = load i32, ptr %125, align 4, !tbaa !26
  %127 = load i32, ptr %17, align 4, !tbaa !9
  %128 = load ptr, ptr %9, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %128, i32 0, i32 21
  %130 = load i8, ptr %129, align 4, !tbaa !27
  %131 = load i32, ptr %14, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_move(ptr noundef %117, i32 noundef %120, i32 noundef %123, i32 noundef %126, i32 noundef 127, i32 noundef 0, i32 noundef %127, i8 noundef signext %130, i32 noundef %131, i32 noundef 0, i32 noundef 1, i32 noundef 0)
  br label %132

132:                                              ; preds = %116
  %133 = load i32, ptr %14, align 4, !tbaa !9
  %134 = add i32 %133, 1
  store i32 %134, ptr %14, align 4, !tbaa !9
  br label %88, !llvm.loop !28

135:                                              ; preds = %88
  %136 = load ptr, ptr %10, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %136, i32 0, i32 6
  %138 = load i32, ptr %137, align 1, !tbaa !15
  %139 = and i32 %138, 2
  %140 = icmp ugt i32 %139, 0
  br i1 %140, label %141, label %149

141:                                              ; preds = %135
  %142 = load ptr, ptr %10, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %142, i32 0, i32 4
  %144 = load i32, ptr %143, align 1, !tbaa !23
  %145 = load ptr, ptr %9, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %145, i32 0, i32 3
  %147 = load i32, ptr %146, align 4, !tbaa !22
  %148 = mul i32 %144, %147
  store i32 %148, ptr %17, align 4, !tbaa !9
  br label %155

149:                                              ; preds = %135
  %150 = load ptr, ptr %9, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %150, i32 0, i32 3
  %152 = load i32, ptr %151, align 4, !tbaa !22
  %153 = load i32, ptr %18, align 4, !tbaa !9
  %154 = mul i32 %152, %153
  store i32 %154, ptr %17, align 4, !tbaa !9
  br label %155

155:                                              ; preds = %149, %141
  %156 = load ptr, ptr %7, align 8, !tbaa !5
  %157 = load ptr, ptr %9, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %157, i32 0, i32 16
  %159 = load i32, ptr %158, align 8, !tbaa !30
  %160 = load ptr, ptr %8, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %160, i32 0, i32 3
  %162 = load i32, ptr %161, align 4, !tbaa !26
  %163 = load i32, ptr %17, align 4, !tbaa !9
  %164 = sext i32 %163 to i64
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %156, i32 noundef %159, i32 noundef %162, i64 noundef %164)
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %165

165:                                              ; preds = %342, %155
  %166 = load i32, ptr %15, align 4, !tbaa !9
  %167 = load i32, ptr %13, align 4, !tbaa !9
  %168 = icmp ult i32 %166, %167
  br i1 %168, label %169, label %345

169:                                              ; preds = %165
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %170

170:                                              ; preds = %338, %169
  %171 = load i32, ptr %14, align 4, !tbaa !9
  %172 = load i32, ptr %12, align 4, !tbaa !9
  %173 = icmp ult i32 %171, %172
  br i1 %173, label %174, label %341

174:                                              ; preds = %170
  %175 = load i32, ptr %15, align 4, !tbaa !9
  %176 = load i32, ptr %13, align 4, !tbaa !9
  %177 = sub i32 %176, 1
  %178 = icmp eq i32 %175, %177
  br i1 %178, label %179, label %193

179:                                              ; preds = %174
  %180 = load ptr, ptr %9, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %180, i32 0, i32 11
  %182 = load i32, ptr %181, align 4, !tbaa !18
  %183 = icmp ne i32 %182, 0
  br i1 %183, label %184, label %193

184:                                              ; preds = %179
  %185 = load ptr, ptr %7, align 8, !tbaa !5
  %186 = load ptr, ptr %9, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %186, i32 0, i32 0
  %188 = load i32, ptr %187, align 8, !tbaa !24
  %189 = load ptr, ptr %8, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %189, i32 0, i32 22
  %191 = load i32, ptr %190, align 4, !tbaa !19
  %192 = load i32, ptr %12, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_move(ptr noundef %185, i32 noundef %188, i32 noundef 537138704, i32 noundef %191, i32 noundef 127, i32 noundef 0, i32 noundef 0, i8 noundef signext 121, i32 noundef %192, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  br label %193

193:                                              ; preds = %184, %179, %174
  %194 = load ptr, ptr %7, align 8, !tbaa !5
  %195 = load ptr, ptr %9, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %195, i32 0, i32 6
  %197 = load i32, ptr %196, align 8, !tbaa !31
  %198 = load ptr, ptr %8, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %198, i32 0, i32 1
  %200 = load i32, ptr %199, align 4, !tbaa !32
  %201 = load ptr, ptr %9, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %201, i32 0, i32 3
  %203 = load i32, ptr %202, align 4, !tbaa !22
  %204 = load ptr, ptr %9, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %204, i32 0, i32 2
  %206 = load i32, ptr %205, align 8, !tbaa !11
  %207 = mul i32 %203, %206
  %208 = load i32, ptr %15, align 4, !tbaa !9
  %209 = mul i32 %207, %208
  %210 = load i32, ptr %18, align 4, !tbaa !9
  %211 = mul i32 %209, %210
  %212 = load ptr, ptr %9, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %212, i32 0, i32 21
  %214 = load i8, ptr %213, align 4, !tbaa !27
  %215 = load i32, ptr %12, align 4, !tbaa !9
  %216 = load i32, ptr %15, align 4, !tbaa !9
  %217 = load i32, ptr %13, align 4, !tbaa !9
  %218 = sub i32 %217, 1
  %219 = icmp eq i32 %216, %218
  br i1 %219, label %220, label %224

220:                                              ; preds = %193
  %221 = load ptr, ptr %9, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %221, i32 0, i32 11
  %223 = load i32, ptr %222, align 4, !tbaa !18
  br label %225

224:                                              ; preds = %193
  br label %225

225:                                              ; preds = %224, %220
  %226 = phi i32 [ %223, %220 ], [ 0, %224 ]
  %227 = load i32, ptr %12, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_unified_vec_move(ptr noundef %194, i32 noundef %197, i32 noundef %200, i32 noundef 127, i32 noundef 0, i32 noundef %211, i8 noundef signext %214, i32 noundef %215, i32 noundef %226, i32 noundef %227, i32 noundef 0)
  %228 = load i32, ptr %15, align 4, !tbaa !9
  %229 = load i32, ptr %13, align 4, !tbaa !9
  %230 = sub i32 %229, 1
  %231 = icmp eq i32 %228, %230
  br i1 %231, label %232, label %257

232:                                              ; preds = %225
  %233 = load i32, ptr %14, align 4, !tbaa !9
  %234 = load i32, ptr %12, align 4, !tbaa !9
  %235 = sub i32 %234, 1
  %236 = icmp eq i32 %233, %235
  br i1 %236, label %237, label %257

237:                                              ; preds = %232
  %238 = load ptr, ptr %7, align 8, !tbaa !5
  %239 = load ptr, ptr %9, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %239, i32 0, i32 16
  %241 = load i32, ptr %240, align 8, !tbaa !30
  %242 = load ptr, ptr %8, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %242, i32 0, i32 1
  %244 = load i32, ptr %243, align 4, !tbaa !32
  %245 = load ptr, ptr %10, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %245, i32 0, i32 3
  %247 = load i32, ptr %246, align 1, !tbaa !33
  %248 = zext i32 %247 to i64
  %249 = load ptr, ptr %9, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %249, i32 0, i32 3
  %251 = load i32, ptr %250, align 4, !tbaa !22
  %252 = zext i32 %251 to i64
  %253 = mul nsw i64 %248, %252
  %254 = load i32, ptr %18, align 4, !tbaa !9
  %255 = zext i32 %254 to i64
  %256 = mul nsw i64 %253, %255
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %238, i32 noundef %241, i32 noundef %244, i64 noundef %256)
  br label %257

257:                                              ; preds = %237, %232, %225
  %258 = load ptr, ptr %10, align 8, !tbaa !5
  %259 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %258, i32 0, i32 8
  %260 = getelementptr inbounds [3 x i8], ptr %259, i64 0, i64 0
  %261 = call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef %260)
  %262 = icmp eq i32 12, %261
  br i1 %262, label %263, label %303

263:                                              ; preds = %257
  %264 = load ptr, ptr %10, align 8, !tbaa !5
  %265 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %264, i32 0, i32 6
  %266 = load i32, ptr %265, align 1, !tbaa !15
  %267 = and i32 %266, 256
  %268 = icmp ugt i32 %267, 0
  br i1 %268, label %269, label %277

269:                                              ; preds = %263
  %270 = load ptr, ptr %7, align 8, !tbaa !5
  %271 = load ptr, ptr %9, align 8, !tbaa !5
  %272 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %271, i32 0, i32 21
  %273 = load i8, ptr %272, align 4, !tbaa !27
  %274 = load i32, ptr %14, align 4, !tbaa !9
  %275 = load i32, ptr %12, align 4, !tbaa !9
  %276 = load i32, ptr %12, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_compute_3reg(ptr noundef %270, i32 noundef 805643780, i8 noundef signext %273, i32 noundef %274, i32 noundef %275, i32 noundef %276)
  br label %293

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

283:                                              ; preds = %277
  %284 = load ptr, ptr %7, align 8, !tbaa !5
  %285 = load ptr, ptr %9, align 8, !tbaa !5
  %286 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %285, i32 0, i32 21
  %287 = load i8, ptr %286, align 4, !tbaa !27
  %288 = load i32, ptr %12, align 4, !tbaa !9
  %289 = load i32, ptr %14, align 4, !tbaa !9
  %290 = load i32, ptr %12, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_compute_3reg(ptr noundef %284, i32 noundef 805643780, i8 noundef signext %287, i32 noundef %288, i32 noundef %289, i32 noundef %290)
  br label %292

291:                                              ; preds = %277
  br label %292

292:                                              ; preds = %291, %283
  br label %293

293:                                              ; preds = %292, %269
  %294 = load ptr, ptr %7, align 8, !tbaa !5
  %295 = load ptr, ptr %9, align 8, !tbaa !5
  %296 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %295, i32 0, i32 21
  %297 = load i8, ptr %296, align 4, !tbaa !27
  %298 = load ptr, ptr %8, align 8, !tbaa !5
  %299 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %298, i32 0, i32 23
  %300 = load i32, ptr %299, align 4, !tbaa !21
  %301 = load i32, ptr %12, align 4, !tbaa !9
  %302 = load i32, ptr %12, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_compute_mem_2reg(ptr noundef %294, i32 noundef 805639925, i8 noundef signext %297, i32 noundef %300, i32 noundef 127, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef %301, i32 noundef %302)
  br label %318

303:                                              ; preds = %257
  %304 = load ptr, ptr %10, align 8, !tbaa !5
  %305 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %304, i32 0, i32 8
  %306 = getelementptr inbounds [3 x i8], ptr %305, i64 0, i64 0
  %307 = call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef %306)
  %308 = icmp eq i32 10, %307
  br i1 %308, label %309, label %317

309:                                              ; preds = %303
  %310 = load ptr, ptr %7, align 8, !tbaa !5
  %311 = load ptr, ptr %9, align 8, !tbaa !5
  %312 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %311, i32 0, i32 21
  %313 = load i8, ptr %312, align 4, !tbaa !27
  %314 = load i32, ptr %12, align 4, !tbaa !9
  %315 = load i32, ptr %14, align 4, !tbaa !9
  %316 = load i32, ptr %12, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_compute_3reg(ptr noundef %310, i32 noundef 805639925, i8 noundef signext %313, i32 noundef %314, i32 noundef %315, i32 noundef %316)
  br label %317

317:                                              ; preds = %309, %303
  br label %318

318:                                              ; preds = %317, %293
  %319 = load ptr, ptr %7, align 8, !tbaa !5
  %320 = load ptr, ptr %9, align 8, !tbaa !5
  %321 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %320, i32 0, i32 21
  %322 = load i8, ptr %321, align 4, !tbaa !27
  %323 = load i32, ptr %12, align 4, !tbaa !9
  %324 = load i32, ptr %16, align 4, !tbaa !9
  %325 = load i32, ptr %15, align 4, !tbaa !9
  %326 = add i32 %324, %325
  %327 = load i32, ptr %13, align 4, !tbaa !9
  %328 = load i32, ptr %14, align 4, !tbaa !9
  %329 = mul i32 %327, %328
  %330 = add i32 %326, %329
  %331 = load i32, ptr %16, align 4, !tbaa !9
  %332 = load i32, ptr %15, align 4, !tbaa !9
  %333 = add i32 %331, %332
  %334 = load i32, ptr %13, align 4, !tbaa !9
  %335 = load i32, ptr %14, align 4, !tbaa !9
  %336 = mul i32 %334, %335
  %337 = add i32 %333, %336
  call void @libxsmm_x86_instruction_vec_compute_3reg(ptr noundef %319, i32 noundef 805639934, i8 noundef signext %322, i32 noundef %323, i32 noundef %330, i32 noundef %337)
  br label %338

338:                                              ; preds = %318
  %339 = load i32, ptr %14, align 4, !tbaa !9
  %340 = add i32 %339, 1
  store i32 %340, ptr %14, align 4, !tbaa !9
  br label %170, !llvm.loop !34

341:                                              ; preds = %170
  br label %342

342:                                              ; preds = %341
  %343 = load i32, ptr %15, align 4, !tbaa !9
  %344 = add i32 %343, 1
  store i32 %344, ptr %15, align 4, !tbaa !9
  br label %165, !llvm.loop !35

345:                                              ; preds = %165
  store i32 0, ptr %19, align 4
  br label %346

346:                                              ; preds = %345, %57
  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
  %347 = load i32, ptr %19, align 4
  switch i32 %347, label %349 [
    i32 0, label %348
    i32 1, label %348
  ]

348:                                              ; preds = %346, %346
  ret void

349:                                              ; preds = %346
  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_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_mem_2reg(ptr noundef, i32 noundef, i8 noundef signext, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #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 = !{!12, !10, i64 12}
!23 = !{!16, !10, i64 16}
!24 = !{!12, !10, i64 0}
!25 = !{!12, !10, i64 28}
!26 = !{!20, !10, i64 12}
!27 = !{!12, !7, i64 84}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = !{!12, !10, i64 64}
!31 = !{!12, !10, i64 24}
!32 = !{!20, !10, i64 4}
!33 = !{!16, !10, i64 12}
!34 = distinct !{!34, !29}
!35 = distinct !{!35, !29}


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

@__func__.libxsmm_generator_gemm_avx2_microkernel_int8_int16_vnni_emu = external hidden unnamed_addr constant [60 x i8], align 1
@.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

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_int8_int16_vnni_emu(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
  %14 = add i32 %5, -4
  %or.cond = icmp ult i32 %14, -3
  br i1 %or.cond, label %15, label %20

15:                                               ; preds = %6
  %16 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !13
  %17 = icmp ugt i32 %16, 1
  %18 = load i32, ptr @libxsmm_verbosity, align 4
  %19 = select i1 %17, i32 %18, i32 1
  tail call void @libxsmm_handle_error(ptr noundef %0, i32 noundef 90016, ptr noundef nonnull @__func__.libxsmm_generator_gemm_avx2_microkernel_int8_int16_vnni_emu, ptr noundef nonnull @.str, i32 noundef 804, i32 noundef %19) #2
  br label %.loopexit

20:                                               ; preds = %6
  %21 = getelementptr inbounds i8, ptr %3, i64 24
  %22 = load i32, ptr %21, align 1, !tbaa !14
  %23 = and i32 %22, 2048
  %.not = icmp eq i32 %23, 0
  br i1 %.not, label %28, label %24

24:                                               ; preds = %20
  %25 = getelementptr inbounds i8, ptr %3, i64 29
  %26 = tail call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef nonnull %25) #2
  %27 = tail call i32 @libxsmm_cpuid_dot_pack_factor(i32 noundef %26) #2
  br label %28

28:                                               ; preds = %24, %20
  %.0 = phi i32 [ %27, %24 ], [ 1, %20 ]
  %29 = getelementptr inbounds i8, ptr %2, i64 44
  %30 = load i32, ptr %29, align 4, !tbaa !17
  %.not123 = icmp eq i32 %30, 0
  br i1 %.not123, label %.lr.ph, label %31

31:                                               ; preds = %28
  %32 = getelementptr inbounds i8, ptr %1, i64 88
  %33 = load i32, ptr %32, 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 %33) #2
  br label %.lr.ph

.lr.ph:                                           ; preds = %28, %31
  %34 = getelementptr inbounds i8, ptr %1, i64 92
  %35 = load i32, ptr %34, 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 %35) #2
  %36 = getelementptr inbounds i8, ptr %2, i64 12
  %37 = getelementptr inbounds i8, ptr %3, i64 16
  %38 = getelementptr inbounds i8, ptr %2, i64 28
  %39 = getelementptr inbounds i8, ptr %1, i64 12
  %40 = getelementptr inbounds i8, ptr %2, i64 84
  br label %41

41:                                               ; preds = %.lr.ph, %53
  %.0118131 = phi i32 [ 0, %.lr.ph ], [ %58, %53 ]
  %42 = load i32, ptr %21, align 1, !tbaa !14
  %43 = and i32 %42, 2
  %.not128 = icmp eq i32 %43, 0
  br i1 %.not128, label %48, label %44

44:                                               ; preds = %41
  %45 = load i32, ptr %36, align 4, !tbaa !21
  %46 = mul i32 %.0118131, %.0
  %47 = mul i32 %46, %45
  br label %53

48:                                               ; preds = %41
  %49 = load i32, ptr %37, align 1, !tbaa !22
  %50 = mul i32 %49, %.0118131
  %51 = load i32, ptr %36, align 4, !tbaa !21
  %52 = mul i32 %50, %51
  br label %53

53:                                               ; preds = %48, %44
  %.0117 = phi i32 [ %47, %44 ], [ %52, %48 ]
  %54 = load i32, ptr %2, align 8, !tbaa !23
  %55 = load i32, ptr %38, align 4, !tbaa !24
  %56 = load i32, ptr %39, align 4, !tbaa !25
  %57 = load i8, ptr %40, align 4, !tbaa !26
  tail call void @libxsmm_x86_instruction_vec_move(ptr noundef %0, i32 noundef %54, i32 noundef %55, i32 noundef %56, i32 noundef 127, i32 noundef 0, i32 noundef %.0117, i8 noundef signext %57, i32 noundef %.0118131, i32 noundef 0, i32 noundef 1, i32 noundef 0) #2
  %58 = add nuw i32 %.0118131, 1
  %exitcond.not = icmp eq i32 %58, %5
  br i1 %exitcond.not, label %._crit_edge, label %41, !llvm.loop !27

._crit_edge:                                      ; preds = %53
  %59 = load i32, ptr %21, align 1, !tbaa !14
  %60 = and i32 %59, 2
  %.not124 = icmp eq i32 %60, 0
  br i1 %.not124, label %64, label %61

61:                                               ; preds = %._crit_edge
  %62 = getelementptr inbounds i8, ptr %3, i64 16
  %63 = load i32, ptr %62, align 1, !tbaa !22
  br label %64

64:                                               ; preds = %._crit_edge, %61
  %.0.sink = phi i32 [ %63, %61 ], [ %.0, %._crit_edge ]
  %65 = getelementptr inbounds i8, ptr %2, i64 12
  %66 = load i32, ptr %65, align 4, !tbaa !21
  %67 = mul i32 %66, %.0.sink
  %68 = getelementptr inbounds i8, ptr %2, i64 64
  %69 = load i32, ptr %68, align 8, !tbaa !29
  %70 = getelementptr inbounds i8, ptr %1, i64 12
  %71 = load i32, ptr %70, align 4, !tbaa !25
  %72 = sext i32 %67 to i64
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef %69, i32 noundef %71, i64 noundef %72) #2
  %.not137 = icmp eq i32 %13, 0
  br i1 %.not137, label %.loopexit, label %.preheader.us.preheader

.preheader.us.preheader:                          ; preds = %64
  %73 = add i32 %13, -1
  %74 = getelementptr inbounds i8, ptr %1, i64 88
  %75 = getelementptr inbounds i8, ptr %2, i64 24
  %76 = getelementptr inbounds i8, ptr %1, i64 4
  %77 = getelementptr inbounds i8, ptr %2, i64 12
  %78 = getelementptr inbounds i8, ptr %2, i64 84
  %79 = add nsw i32 %5, -1
  %80 = getelementptr inbounds i8, ptr %3, i64 12
  %81 = zext i32 %.0 to i64
  %82 = getelementptr inbounds i8, ptr %3, i64 29
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge134.us
  %.0120135.us = phi i32 [ %136, %._crit_edge134.us ], [ 0, %.preheader.us.preheader ]
  %83 = icmp eq i32 %.0120135.us, %73
  %84 = mul i32 %.0120135.us, %.0
  %85 = add i32 %.0120135.us, 16
  br label %86

86:                                               ; preds = %.preheader.us, %132
  %.1119132.us = phi i32 [ 0, %.preheader.us ], [ %135, %132 ]
  br i1 %83, label %87, label %92

87:                                               ; preds = %86
  %88 = load i32, ptr %29, align 4, !tbaa !17
  %.not125.us = icmp eq i32 %88, 0
  br i1 %.not125.us, label %92, label %89

89:                                               ; preds = %87
  %90 = load i32, ptr %2, align 8, !tbaa !23
  %91 = load i32, ptr %74, align 4, !tbaa !18
  tail call void @libxsmm_x86_instruction_vec_move(ptr noundef %0, i32 noundef %90, i32 noundef 537138704, i32 noundef %91, 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
  br label %92

92:                                               ; preds = %89, %87, %86
  %93 = load i32, ptr %75, align 8, !tbaa !30
  %94 = load i32, ptr %76, align 4, !tbaa !31
  %95 = load i32, ptr %77, align 4, !tbaa !21
  %96 = load i32, ptr %7, align 8, !tbaa !5
  %97 = mul i32 %84, %95
  %98 = mul i32 %97, %96
  %99 = load i8, ptr %78, align 4, !tbaa !26
  br i1 %83, label %100, label %.critedge.us

.critedge.us:                                     ; preds = %92
  tail call void @libxsmm_x86_instruction_unified_vec_move(ptr noundef %0, i32 noundef %93, i32 noundef %94, i32 noundef 127, i32 noundef 0, i32 noundef %98, i8 noundef signext %99, i32 noundef %5, i32 noundef 0, i32 noundef %5, i32 noundef 0) #2
  br label %112

100:                                              ; preds = %92
  %101 = load i32, ptr %29, align 4, !tbaa !17
  tail call void @libxsmm_x86_instruction_unified_vec_move(ptr noundef %0, i32 noundef %93, i32 noundef %94, i32 noundef 127, i32 noundef 0, i32 noundef %98, i8 noundef signext %99, i32 noundef %5, i32 noundef %101, i32 noundef %5, i32 noundef 0) #2
  %102 = icmp eq i32 %.1119132.us, %79
  br i1 %102, label %103, label %112

103:                                              ; preds = %100
  %104 = load i32, ptr %68, align 8, !tbaa !29
  %105 = load i32, ptr %76, align 4, !tbaa !31
  %106 = load i32, ptr %80, align 1, !tbaa !32
  %107 = zext i32 %106 to i64
  %108 = load i32, ptr %77, align 4, !tbaa !21
  %109 = zext i32 %108 to i64
  %110 = mul nuw i64 %107, %81
  %111 = mul i64 %110, %109
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef %104, i32 noundef %105, i64 noundef %111) #2
  br label %112

112:                                              ; preds = %103, %100, %.critedge.us
  %113 = tail call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef nonnull %82) #2
  %114 = icmp eq i32 %113, 12
  br i1 %114, label %120, label %115

115:                                              ; preds = %112
  %116 = tail call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef nonnull %82) #2
  %117 = icmp eq i32 %116, 10
  br i1 %117, label %118, label %132

118:                                              ; preds = %115
  %119 = load i8, ptr %78, align 4, !tbaa !26
  tail call void @libxsmm_x86_instruction_vec_compute_3reg(ptr noundef %0, i32 noundef 805639925, i8 noundef signext %119, i32 noundef %5, i32 noundef %.1119132.us, i32 noundef %5) #2
  br label %132

120:                                              ; preds = %112
  %121 = load i32, ptr %21, align 1, !tbaa !14
  %122 = and i32 %121, 256
  %.not126.us = icmp eq i32 %122, 0
  br i1 %.not126.us, label %125, label %123

123:                                              ; preds = %120
  %124 = load i8, ptr %78, align 4, !tbaa !26
  tail call void @libxsmm_x86_instruction_vec_compute_3reg(ptr noundef %0, i32 noundef 805643780, i8 noundef signext %124, i32 noundef %.1119132.us, i32 noundef %5, i32 noundef %5) #2
  br label %129

125:                                              ; preds = %120
  %126 = and i32 %121, 512
  %.not127.us = icmp eq i32 %126, 0
  br i1 %.not127.us, label %129, label %127

127:                                              ; preds = %125
  %128 = load i8, ptr %78, align 4, !tbaa !26
  tail call void @libxsmm_x86_instruction_vec_compute_3reg(ptr noundef %0, i32 noundef 805643780, i8 noundef signext %128, i32 noundef %5, i32 noundef %.1119132.us, i32 noundef %5) #2
  br label %129

129:                                              ; preds = %127, %125, %123
  %130 = load i8, ptr %78, align 4, !tbaa !26
  %131 = load i32, ptr %34, align 4, !tbaa !20
  tail call void @libxsmm_x86_instruction_vec_compute_mem_2reg(ptr noundef %0, i32 noundef 805639925, i8 noundef signext %130, i32 noundef %131, i32 noundef 127, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef %5, i32 noundef %5) #2
  br label %132

132:                                              ; preds = %129, %118, %115
  %133 = load i8, ptr %78, align 4, !tbaa !26
  %reass.add.us = sub nsw i32 %.1119132.us, %5
  %reass.mul.us = mul i32 %reass.add.us, %13
  %134 = add i32 %85, %reass.mul.us
  tail call void @libxsmm_x86_instruction_vec_compute_3reg(ptr noundef %0, i32 noundef 805639934, i8 noundef signext %133, i32 noundef %5, i32 noundef %134, i32 noundef %134) #2
  %135 = add nuw i32 %.1119132.us, 1
  %exitcond140.not = icmp eq i32 %135, %5
  br i1 %exitcond140.not, label %._crit_edge134.us, label %86, !llvm.loop !33

._crit_edge134.us:                                ; preds = %132
  %136 = add nuw i32 %.0120135.us, 1
  %exitcond141.not = icmp eq i32 %136, %13
  br i1 %exitcond141.not, label %.loopexit, label %.preheader.us, !llvm.loop !34

.loopexit:                                        ; preds = %._crit_edge134.us, %64, %15
  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_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_mem_2reg(ptr noundef, i32 noundef, i8 noundef signext, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) 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 = !{!15, !7, i64 16}
!23 = !{!6, !7, i64 0}
!24 = !{!6, !7, i64 28}
!25 = !{!19, !7, i64 12}
!26 = !{!6, !8, i64 84}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!6, !7, i64 64}
!30 = !{!6, !7, i64 24}
!31 = !{!19, !7, i64 4}
!32 = !{!15, !7, i64 12}
!33 = distinct !{!33, !28}
!34 = distinct !{!34, !28}


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