; LLVM IR from libxsmm/libxsmm :: src (generator_gemm_sse_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 [86 x i8], align 1
@libxsmm_ninit = external global i32, align 4
@libxsmm_verbosity = external global i32, align 4
@__func__.libxsmm_generator_gemm_sse_microkernel_int8_uu_ss_vnni_emu = external hidden unnamed_addr constant [59 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_sse_microkernel_int8_uu_ss_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
  %20 = 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
  %21 = load i32, ptr %11, align 4, !tbaa !9
  %22 = load ptr, ptr %9, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %22, i32 0, i32 2
  %24 = load i32, ptr %23, align 8, !tbaa !11
  %25 = urem i32 %21, %24
  %26 = icmp eq i32 %25, 0
  br i1 %26, label %27, label %33

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

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

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

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

51:                                               ; preds = %48, %40
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  %53 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %54 = icmp ult i32 1, %53
  br i1 %54, label %55, label %57

55:                                               ; preds = %51
  %56 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %58

57:                                               ; preds = %51
  br label %58

58:                                               ; preds = %57, %55
  %59 = phi i32 [ %56, %55 ], [ 1, %57 ]
  call void @libxsmm_handle_error(ptr noundef %52, i32 noundef 90016, ptr noundef @__func__.libxsmm_generator_gemm_sse_microkernel_int8_uu_ss_vnni_emu, ptr noundef @.str, i32 noundef 359, i32 noundef %59)
  store i32 1, ptr %20, align 4
  br label %379

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

66:                                               ; preds = %60
  %67 = load ptr, ptr %10, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %67, i32 0, i32 8
  %69 = getelementptr inbounds [3 x i8], ptr %68, i64 0, i64 0
  %70 = call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef %69)
  %71 = call i32 @libxsmm_cpuid_dot_pack_factor(i32 noundef %70)
  store i32 %71, ptr %19, align 4, !tbaa !9
  br label %72

72:                                               ; preds = %66, %60
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %73

73:                                               ; preds = %375, %72
  %74 = load i32, ptr %18, align 4, !tbaa !9
  %75 = icmp ult i32 %74, 2
  br i1 %75, label %76, label %378

76:                                               ; preds = %73
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %77

77:                                               ; preds = %130, %76
  %78 = load i32, ptr %14, align 4, !tbaa !9
  %79 = load i32, ptr %12, align 4, !tbaa !9
  %80 = icmp ult i32 %78, %79
  br i1 %80, label %81, label %133

81:                                               ; preds = %77
  %82 = load ptr, ptr %10, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %82, i32 0, i32 6
  %84 = load i32, ptr %83, align 1, !tbaa !15
  %85 = and i32 %84, 2
  %86 = icmp ugt i32 %85, 0
  br i1 %86, label %87, label %95

87:                                               ; preds = %81
  %88 = load i32, ptr %14, align 4, !tbaa !9
  %89 = load ptr, ptr %9, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %89, i32 0, i32 3
  %91 = load i32, ptr %90, align 4, !tbaa !18
  %92 = mul i32 %88, %91
  %93 = load i32, ptr %19, align 4, !tbaa !9
  %94 = mul i32 %92, %93
  store i32 %94, ptr %17, align 4, !tbaa !9
  br label %105

95:                                               ; preds = %81
  %96 = load ptr, ptr %10, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %96, i32 0, i32 4
  %98 = load i32, ptr %97, align 1, !tbaa !19
  %99 = load i32, ptr %14, align 4, !tbaa !9
  %100 = mul i32 %98, %99
  %101 = load ptr, ptr %9, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %101, i32 0, i32 3
  %103 = load i32, ptr %102, align 4, !tbaa !18
  %104 = mul i32 %100, %103
  store i32 %104, ptr %17, align 4, !tbaa !9
  br label %105

105:                                              ; preds = %95, %87
  %106 = load ptr, ptr %7, align 8, !tbaa !5
  %107 = load ptr, ptr %9, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %107, i32 0, i32 0
  %109 = load i32, ptr %108, align 8, !tbaa !20
  %110 = load ptr, ptr %9, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %110, i32 0, i32 7
  %112 = load i32, ptr %111, align 4, !tbaa !21
  %113 = load ptr, ptr %8, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %113, i32 0, i32 3
  %115 = load i32, ptr %114, align 4, !tbaa !22
  %116 = load i32, ptr %17, align 4, !tbaa !9
  %117 = load ptr, ptr %9, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %117, i32 0, i32 21
  %119 = load i8, ptr %118, align 4, !tbaa !24
  %120 = load i32, ptr %14, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_move(ptr noundef %106, i32 noundef %109, i32 noundef %112, i32 noundef %115, i32 noundef 127, i32 noundef 0, i32 noundef %116, i8 noundef signext %119, i32 noundef %120, i32 noundef 0, i32 noundef 1, i32 noundef 0)
  %121 = load ptr, ptr %7, align 8, !tbaa !5
  %122 = load ptr, ptr %9, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %122, i32 0, i32 8
  %124 = load i32, ptr %123, align 8, !tbaa !25
  %125 = load ptr, ptr %9, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %125, i32 0, i32 21
  %127 = load i8, ptr %126, align 4, !tbaa !24
  %128 = load i32, ptr %14, align 4, !tbaa !9
  %129 = load i32, ptr %14, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_compute_2reg_imm8(ptr noundef %121, i32 noundef %124, i8 noundef signext %127, i32 noundef %128, i32 noundef %129, i32 noundef 0)
  br label %130

130:                                              ; preds = %105
  %131 = load i32, ptr %14, align 4, !tbaa !9
  %132 = add i32 %131, 1
  store i32 %132, ptr %14, align 4, !tbaa !9
  br label %77, !llvm.loop !26

133:                                              ; preds = %77
  %134 = load i32, ptr %18, align 4, !tbaa !9
  %135 = icmp eq i32 %134, 1
  br i1 %135, label %136, label %166

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

142:                                              ; preds = %136
  %143 = load ptr, ptr %10, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %143, i32 0, i32 4
  %145 = load i32, ptr %144, align 1, !tbaa !19
  %146 = load ptr, ptr %9, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %146, i32 0, i32 3
  %148 = load i32, ptr %147, align 4, !tbaa !18
  %149 = mul i32 %145, %148
  store i32 %149, ptr %17, align 4, !tbaa !9
  br label %156

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

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

166:                                              ; preds = %156, %133
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %167

167:                                              ; preds = %218, %166
  %168 = load i32, ptr %14, align 4, !tbaa !9
  %169 = load i32, ptr %12, align 4, !tbaa !9
  %170 = icmp ult i32 %168, %169
  br i1 %170, label %171, label %221

171:                                              ; preds = %167
  %172 = load i32, ptr %18, align 4, !tbaa !9
  %173 = icmp eq i32 %172, 0
  br i1 %173, label %174, label %185

174:                                              ; preds = %171
  %175 = load ptr, ptr %7, align 8, !tbaa !5
  %176 = load ptr, ptr %9, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %176, i32 0, i32 21
  %178 = load i8, ptr %177, align 4, !tbaa !24
  %179 = load i32, ptr %14, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_compute_1reg_imm8(ptr noundef %175, i32 noundef -1804791694, i8 noundef signext %178, i32 noundef %179, i32 noundef 16)
  %180 = load ptr, ptr %7, align 8, !tbaa !5
  %181 = load ptr, ptr %9, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %181, i32 0, i32 21
  %183 = load i8, ptr %182, align 4, !tbaa !24
  %184 = load i32, ptr %14, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_compute_1reg_imm8(ptr noundef %180, i32 noundef -1808985998, i8 noundef signext %183, i32 noundef %184, i32 noundef 16)
  br label %191

185:                                              ; preds = %171
  %186 = load ptr, ptr %7, align 8, !tbaa !5
  %187 = load ptr, ptr %9, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %187, i32 0, i32 21
  %189 = load i8, ptr %188, align 4, !tbaa !24
  %190 = load i32, ptr %14, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_compute_1reg_imm8(ptr noundef %186, i32 noundef -1808985998, i8 noundef signext %189, i32 noundef %190, i32 noundef 16)
  br label %191

191:                                              ; preds = %185, %174
  %192 = load ptr, ptr %7, align 8, !tbaa !5
  %193 = load ptr, ptr %9, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %193, i32 0, i32 21
  %195 = load i8, ptr %194, align 4, !tbaa !24
  %196 = load i32, ptr %14, align 4, !tbaa !9
  %197 = load i32, ptr %14, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_compute_2reg(ptr noundef %192, i32 noundef -1610276821, i8 noundef signext %195, i32 noundef %196, i32 noundef %197)
  %198 = load ptr, ptr %10, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %198, i32 0, i32 6
  %200 = load i32, ptr %199, align 1, !tbaa !15
  %201 = and i32 %200, 512
  %202 = icmp ugt i32 %201, 0
  br i1 %202, label %203, label %210

203:                                              ; preds = %191
  %204 = load ptr, ptr %7, align 8, !tbaa !5
  %205 = load ptr, ptr %9, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %205, i32 0, i32 21
  %207 = load i8, ptr %206, align 4, !tbaa !24
  %208 = load i32, ptr %14, align 4, !tbaa !9
  %209 = load i32, ptr %14, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_compute_2reg(ptr noundef %204, i32 noundef -1610276816, i8 noundef signext %207, i32 noundef %208, i32 noundef %209)
  br label %217

210:                                              ; preds = %191
  %211 = load ptr, ptr %7, align 8, !tbaa !5
  %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 !24
  %215 = load i32, ptr %14, align 4, !tbaa !9
  %216 = load i32, ptr %14, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_compute_2reg(ptr noundef %211, i32 noundef -1610276832, i8 noundef signext %214, i32 noundef %215, i32 noundef %216)
  br label %217

217:                                              ; preds = %210, %203
  br label %218

218:                                              ; preds = %217
  %219 = load i32, ptr %14, align 4, !tbaa !9
  %220 = add i32 %219, 1
  store i32 %220, ptr %14, align 4, !tbaa !9
  br label %167, !llvm.loop !29

221:                                              ; preds = %167
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %222

222:                                              ; preds = %371, %221
  %223 = load i32, ptr %15, align 4, !tbaa !9
  %224 = load i32, ptr %13, align 4, !tbaa !9
  %225 = icmp ult i32 %223, %224
  br i1 %225, label %226, label %374

226:                                              ; preds = %222
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %227

227:                                              ; preds = %367, %226
  %228 = load i32, ptr %14, align 4, !tbaa !9
  %229 = load i32, ptr %12, align 4, !tbaa !9
  %230 = icmp ult i32 %228, %229
  br i1 %230, label %231, label %370

231:                                              ; preds = %227
  %232 = load ptr, ptr %7, align 8, !tbaa !5
  %233 = load ptr, ptr %9, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %233, i32 0, i32 6
  %235 = load i32, ptr %234, align 8, !tbaa !30
  %236 = load ptr, ptr %8, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %236, i32 0, i32 1
  %238 = load i32, ptr %237, align 4, !tbaa !31
  %239 = load ptr, ptr %9, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %239, i32 0, i32 3
  %241 = load i32, ptr %240, align 4, !tbaa !18
  %242 = load ptr, ptr %9, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %242, i32 0, i32 2
  %244 = load i32, ptr %243, align 8, !tbaa !11
  %245 = mul i32 %241, %244
  %246 = load i32, ptr %15, align 4, !tbaa !9
  %247 = mul i32 %245, %246
  %248 = load i32, ptr %19, align 4, !tbaa !9
  %249 = mul i32 %247, %248
  %250 = load ptr, ptr %9, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %250, i32 0, i32 21
  %252 = load i8, ptr %251, align 4, !tbaa !24
  %253 = load i32, ptr %12, align 4, !tbaa !9
  %254 = load i32, ptr %15, align 4, !tbaa !9
  %255 = load i32, ptr %13, align 4, !tbaa !9
  %256 = sub i32 %255, 1
  %257 = icmp eq i32 %254, %256
  br i1 %257, label %258, label %262

258:                                              ; preds = %231
  %259 = load ptr, ptr %9, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %259, i32 0, i32 11
  %261 = load i32, ptr %260, align 4, !tbaa !32
  br label %263

262:                                              ; preds = %231
  br label %263

263:                                              ; preds = %262, %258
  %264 = phi i32 [ %261, %258 ], [ 0, %262 ]
  %265 = load i32, ptr %11, align 4, !tbaa !9
  %266 = load ptr, ptr %9, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %266, i32 0, i32 2
  %268 = load i32, ptr %267, align 8, !tbaa !11
  %269 = urem i32 %265, %268
  call void @libxsmm_x86_instruction_unified_vec_move(ptr noundef %232, i32 noundef %235, i32 noundef %238, i32 noundef 127, i32 noundef 0, i32 noundef %249, i8 noundef signext %252, i32 noundef %253, i32 noundef %264, i32 noundef %269, i32 noundef 0)
  %270 = load i32, ptr %18, align 4, !tbaa !9
  %271 = icmp eq i32 %270, 0
  br i1 %271, label %272, label %283

272:                                              ; preds = %263
  %273 = load ptr, ptr %7, align 8, !tbaa !5
  %274 = load ptr, ptr %9, align 8, !tbaa !5
  %275 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %274, i32 0, i32 21
  %276 = load i8, ptr %275, align 4, !tbaa !24
  %277 = load i32, ptr %12, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_compute_1reg_imm8(ptr noundef %273, i32 noundef -1804791694, i8 noundef signext %276, i32 noundef %277, i32 noundef 16)
  %278 = load ptr, ptr %7, align 8, !tbaa !5
  %279 = load ptr, ptr %9, align 8, !tbaa !5
  %280 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %279, i32 0, i32 21
  %281 = load i8, ptr %280, align 4, !tbaa !24
  %282 = load i32, ptr %12, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_compute_1reg_imm8(ptr noundef %278, i32 noundef -1808985998, i8 noundef signext %281, i32 noundef %282, i32 noundef 16)
  br label %289

283:                                              ; preds = %263
  %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 !24
  %288 = load i32, ptr %12, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_compute_1reg_imm8(ptr noundef %284, i32 noundef -1808985998, i8 noundef signext %287, i32 noundef %288, i32 noundef 16)
  br label %289

289:                                              ; preds = %283, %272
  %290 = load ptr, ptr %7, align 8, !tbaa !5
  %291 = load ptr, ptr %9, align 8, !tbaa !5
  %292 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %291, i32 0, i32 21
  %293 = load i8, ptr %292, align 4, !tbaa !24
  %294 = load i32, ptr %12, align 4, !tbaa !9
  %295 = load i32, ptr %12, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_compute_2reg(ptr noundef %290, i32 noundef -1610276821, i8 noundef signext %293, i32 noundef %294, i32 noundef %295)
  %296 = load ptr, ptr %10, align 8, !tbaa !5
  %297 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %296, i32 0, i32 6
  %298 = load i32, ptr %297, align 1, !tbaa !15
  %299 = and i32 %298, 512
  %300 = icmp ugt i32 %299, 0
  br i1 %300, label %301, label %308

301:                                              ; preds = %289
  %302 = load ptr, ptr %7, align 8, !tbaa !5
  %303 = load ptr, ptr %9, align 8, !tbaa !5
  %304 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %303, i32 0, i32 21
  %305 = load i8, ptr %304, align 4, !tbaa !24
  %306 = load i32, ptr %12, align 4, !tbaa !9
  %307 = load i32, ptr %12, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_compute_2reg(ptr noundef %302, i32 noundef -1610276816, i8 noundef signext %305, i32 noundef %306, i32 noundef %307)
  br label %315

308:                                              ; preds = %289
  %309 = load ptr, ptr %7, align 8, !tbaa !5
  %310 = load ptr, ptr %9, align 8, !tbaa !5
  %311 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %310, i32 0, i32 21
  %312 = load i8, ptr %311, align 4, !tbaa !24
  %313 = load i32, ptr %12, align 4, !tbaa !9
  %314 = load i32, ptr %12, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_compute_2reg(ptr noundef %309, i32 noundef -1610276832, i8 noundef signext %312, i32 noundef %313, i32 noundef %314)
  br label %315

315:                                              ; preds = %308, %301
  %316 = load i32, ptr %15, align 4, !tbaa !9
  %317 = load i32, ptr %13, align 4, !tbaa !9
  %318 = sub i32 %317, 1
  %319 = icmp eq i32 %316, %318
  br i1 %319, label %320, label %348

320:                                              ; preds = %315
  %321 = load i32, ptr %14, align 4, !tbaa !9
  %322 = load i32, ptr %12, align 4, !tbaa !9
  %323 = sub i32 %322, 1
  %324 = icmp eq i32 %321, %323
  br i1 %324, label %325, label %348

325:                                              ; preds = %320
  %326 = load i32, ptr %18, align 4, !tbaa !9
  %327 = icmp eq i32 %326, 1
  br i1 %327, label %328, label %348

328:                                              ; preds = %325
  %329 = load ptr, ptr %7, align 8, !tbaa !5
  %330 = load ptr, ptr %9, align 8, !tbaa !5
  %331 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %330, i32 0, i32 16
  %332 = load i32, ptr %331, align 8, !tbaa !28
  %333 = load ptr, ptr %8, align 8, !tbaa !5
  %334 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %333, i32 0, i32 1
  %335 = load i32, ptr %334, align 4, !tbaa !31
  %336 = load ptr, ptr %10, align 8, !tbaa !5
  %337 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %336, i32 0, i32 3
  %338 = load i32, ptr %337, align 1, !tbaa !33
  %339 = zext i32 %338 to i64
  %340 = load ptr, ptr %9, align 8, !tbaa !5
  %341 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %340, i32 0, i32 3
  %342 = load i32, ptr %341, align 4, !tbaa !18
  %343 = zext i32 %342 to i64
  %344 = mul nsw i64 %339, %343
  %345 = load i32, ptr %19, align 4, !tbaa !9
  %346 = zext i32 %345 to i64
  %347 = mul nsw i64 %344, %346
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %329, i32 noundef %332, i32 noundef %335, i64 noundef %347)
  br label %348

348:                                              ; preds = %328, %325, %320, %315
  %349 = load ptr, ptr %7, align 8, !tbaa !5
  %350 = load ptr, ptr %9, align 8, !tbaa !5
  %351 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %350, i32 0, i32 21
  %352 = load i8, ptr %351, align 4, !tbaa !24
  %353 = load i32, ptr %14, align 4, !tbaa !9
  %354 = load i32, ptr %12, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_compute_2reg(ptr noundef %349, i32 noundef -1610280715, i8 noundef signext %352, i32 noundef %353, i32 noundef %354)
  %355 = load ptr, ptr %7, align 8, !tbaa !5
  %356 = load ptr, ptr %9, align 8, !tbaa !5
  %357 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %356, i32 0, i32 21
  %358 = load i8, ptr %357, align 4, !tbaa !24
  %359 = load i32, ptr %12, align 4, !tbaa !9
  %360 = load i32, ptr %16, align 4, !tbaa !9
  %361 = load i32, ptr %15, align 4, !tbaa !9
  %362 = add i32 %360, %361
  %363 = load i32, ptr %13, align 4, !tbaa !9
  %364 = load i32, ptr %14, align 4, !tbaa !9
  %365 = mul i32 %363, %364
  %366 = add i32 %362, %365
  call void @libxsmm_x86_instruction_vec_compute_2reg(ptr noundef %355, i32 noundef -1610280706, i8 noundef signext %358, i32 noundef %359, i32 noundef %366)
  br label %367

367:                                              ; preds = %348
  %368 = load i32, ptr %14, align 4, !tbaa !9
  %369 = add i32 %368, 1
  store i32 %369, ptr %14, align 4, !tbaa !9
  br label %227, !llvm.loop !34

370:                                              ; preds = %227
  br label %371

371:                                              ; preds = %370
  %372 = load i32, ptr %15, align 4, !tbaa !9
  %373 = add i32 %372, 1
  store i32 %373, ptr %15, align 4, !tbaa !9
  br label %222, !llvm.loop !35

374:                                              ; preds = %222
  br label %375

375:                                              ; preds = %374
  %376 = load i32, ptr %18, align 4, !tbaa !9
  %377 = add i32 %376, 1
  store i32 %377, ptr %18, align 4, !tbaa !9
  br label %73, !llvm.loop !36

378:                                              ; preds = %73
  store i32 0, ptr %20, align 4
  br label %379

379:                                              ; preds = %378, %58
  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
  %380 = load i32, ptr %20, align 4
  switch i32 %380, label %382 [
    i32 0, label %381
    i32 1, label %381
  ]

381:                                              ; preds = %379, %379
  ret void

382:                                              ; preds = %379
  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_handle_error(ptr noundef, i32 noundef, ptr noundef, ptr 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_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_2reg_imm8(ptr noundef, i32 noundef, i8 noundef signext, i32 noundef, i32 noundef, i32 noundef) #1

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

declare void @libxsmm_x86_instruction_vec_compute_1reg_imm8(ptr noundef, i32 noundef, i8 noundef signext, 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 12}
!19 = !{!16, !10, i64 16}
!20 = !{!12, !10, i64 0}
!21 = !{!12, !10, i64 28}
!22 = !{!23, !10, i64 12}
!23 = !{!"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}
!24 = !{!12, !7, i64 84}
!25 = !{!12, !10, i64 32}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{!12, !10, i64 64}
!29 = distinct !{!29, !27}
!30 = !{!12, !10, i64 24}
!31 = !{!23, !10, i64 4}
!32 = !{!12, !10, i64 44}
!33 = !{!16, !10, i64 12}
!34 = distinct !{!34, !27}
!35 = distinct !{!35, !27}
!36 = distinct !{!36, !27}


; 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 [86 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_sse_microkernel_int8_uu_ss_vnni_emu = external hidden unnamed_addr constant [59 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_sse_microkernel_int8_uu_ss_vnni_emu(ptr noundef %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %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_sse_microkernel_int8_uu_ss_vnni_emu, ptr noundef nonnull @.str, i32 noundef 359, 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 12
  %30 = getelementptr inbounds i8, ptr %3, i64 16
  %31 = getelementptr inbounds i8, ptr %2, i64 28
  %32 = getelementptr inbounds i8, ptr %1, i64 12
  %33 = getelementptr inbounds i8, ptr %2, i64 84
  %34 = getelementptr inbounds i8, ptr %2, i64 32
  %35 = getelementptr inbounds i8, ptr %2, i64 64
  %.not166 = icmp eq i32 %13, 0
  %36 = getelementptr inbounds i8, ptr %2, i64 24
  %37 = getelementptr inbounds i8, ptr %1, i64 4
  %38 = add i32 %13, -1
  %39 = getelementptr inbounds i8, ptr %2, i64 44
  %40 = add nsw i32 %5, -1
  %41 = getelementptr inbounds i8, ptr %3, i64 12
  %42 = zext i32 %.0 to i64
  br label %.preheader152

.preheader152:                                    ; preds = %28, %._crit_edge161
  %43 = phi i1 [ false, %28 ], [ true, %._crit_edge161 ]
  %44 = phi i1 [ true, %28 ], [ false, %._crit_edge161 ]
  br label %.lr.ph

.lr.ph:                                           ; preds = %.preheader152, %56
  %.0142153 = phi i32 [ %63, %56 ], [ 0, %.preheader152 ]
  %45 = load i32, ptr %21, align 1, !tbaa !14
  %46 = and i32 %45, 2
  %.not150 = icmp eq i32 %46, 0
  br i1 %.not150, label %51, label %47

47:                                               ; preds = %.lr.ph
  %48 = load i32, ptr %29, align 4, !tbaa !17
  %49 = mul i32 %.0142153, %.0
  %50 = mul i32 %49, %48
  br label %56

51:                                               ; preds = %.lr.ph
  %52 = load i32, ptr %30, align 1, !tbaa !18
  %53 = mul i32 %52, %.0142153
  %54 = load i32, ptr %29, align 4, !tbaa !17
  %55 = mul i32 %53, %54
  br label %56

56:                                               ; preds = %51, %47
  %.0141 = phi i32 [ %50, %47 ], [ %55, %51 ]
  %57 = load i32, ptr %2, align 8, !tbaa !19
  %58 = load i32, ptr %31, align 4, !tbaa !20
  %59 = load i32, ptr %32, align 4, !tbaa !21
  %60 = load i8, ptr %33, align 4, !tbaa !23
  tail call void @libxsmm_x86_instruction_vec_move(ptr noundef %0, i32 noundef %57, i32 noundef %58, i32 noundef %59, i32 noundef 127, i32 noundef 0, i32 noundef %.0141, i8 noundef signext %60, i32 noundef %.0142153, i32 noundef 0, i32 noundef 1, i32 noundef 0) #2
  %61 = load i32, ptr %34, align 8, !tbaa !24
  %62 = load i8, ptr %33, align 4, !tbaa !23
  tail call void @libxsmm_x86_instruction_vec_compute_2reg_imm8(ptr noundef %0, i32 noundef %61, i8 noundef signext %62, i32 noundef %.0142153, i32 noundef %.0142153, i32 noundef 0) #2
  %63 = add nuw i32 %.0142153, 1
  %exitcond.not = icmp eq i32 %63, %5
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !25

._crit_edge:                                      ; preds = %56
  br i1 %43, label %64, label %.lr.ph156.preheader

64:                                               ; preds = %._crit_edge
  %65 = load i32, ptr %21, align 1, !tbaa !14
  %66 = and i32 %65, 2
  %.not147 = icmp eq i32 %66, 0
  br i1 %.not147, label %69, label %67

67:                                               ; preds = %64
  %68 = load i32, ptr %30, align 1, !tbaa !18
  br label %69

69:                                               ; preds = %64, %67
  %.0.sink = phi i32 [ %68, %67 ], [ %.0, %64 ]
  %70 = load i32, ptr %29, align 4, !tbaa !17
  %71 = mul i32 %70, %.0.sink
  %72 = load i32, ptr %35, align 8, !tbaa !27
  %73 = load i32, ptr %32, align 4, !tbaa !21
  %74 = sext i32 %71 to i64
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef %72, i32 noundef %73, i64 noundef %74) #2
  br label %.lr.ph156.preheader

.lr.ph156.preheader:                              ; preds = %._crit_edge, %69
  br label %.lr.ph156

.preheader151:                                    ; preds = %118
  br i1 %.not166, label %._crit_edge161, label %.preheader.us

.preheader.us:                                    ; preds = %.preheader151, %._crit_edge159.us
  %.0144160.us = phi i32 [ %114, %._crit_edge159.us ], [ 0, %.preheader151 ]
  %75 = mul i32 %.0144160.us, %.0
  %76 = icmp eq i32 %.0144160.us, %38
  %77 = add i32 %.0144160.us, 16
  br label %78

78:                                               ; preds = %.preheader.us, %109
  %.2157.us = phi i32 [ 0, %.preheader.us ], [ %113, %109 ]
  %79 = load i32, ptr %36, align 8, !tbaa !28
  %80 = load i32, ptr %37, align 4, !tbaa !29
  %81 = load i32, ptr %29, align 4, !tbaa !17
  %82 = load i32, ptr %7, align 8, !tbaa !5
  %83 = mul i32 %75, %81
  %84 = mul i32 %83, %82
  %85 = load i8, ptr %33, align 4, !tbaa !23
  br i1 %76, label %86, label %88

86:                                               ; preds = %78
  %87 = load i32, ptr %39, align 4, !tbaa !30
  br label %88

88:                                               ; preds = %86, %78
  %89 = phi i32 [ %87, %86 ], [ 0, %78 ]
  %90 = urem i32 %4, %82
  tail call void @libxsmm_x86_instruction_unified_vec_move(ptr noundef %0, i32 noundef %79, i32 noundef %80, i32 noundef 127, i32 noundef 0, i32 noundef %84, i8 noundef signext %85, i32 noundef %5, i32 noundef %89, i32 noundef %90, i32 noundef 0) #2
  %91 = load i8, ptr %33, align 4, !tbaa !23
  br i1 %44, label %92, label %94

92:                                               ; preds = %88
  tail call void @libxsmm_x86_instruction_vec_compute_1reg_imm8(ptr noundef %0, i32 noundef -1804791694, i8 noundef signext %91, i32 noundef %5, i32 noundef 16) #2
  %93 = load i8, ptr %33, align 4, !tbaa !23
  br label %94

94:                                               ; preds = %88, %92
  %.sink = phi i8 [ %93, %92 ], [ %91, %88 ]
  tail call void @libxsmm_x86_instruction_vec_compute_1reg_imm8(ptr noundef %0, i32 noundef -1808985998, i8 noundef signext %.sink, i32 noundef %5, i32 noundef 16) #2
  %95 = load i8, ptr %33, align 4, !tbaa !23
  tail call void @libxsmm_x86_instruction_vec_compute_2reg(ptr noundef %0, i32 noundef -1610276821, i8 noundef signext %95, i32 noundef %5, i32 noundef %5) #2
  %96 = load i32, ptr %21, align 1, !tbaa !14
  %97 = and i32 %96, 512
  %.not148.us = icmp eq i32 %97, 0
  %. = select i1 %.not148.us, i32 -1610276832, i32 -1610276816
  %98 = load i8, ptr %33, align 4, !tbaa !23
  tail call void @libxsmm_x86_instruction_vec_compute_2reg(ptr noundef %0, i32 noundef %., i8 noundef signext %98, i32 noundef %5, i32 noundef %5) #2
  %99 = icmp eq i32 %.2157.us, %40
  %or.cond3.us = and i1 %43, %99
  %or.cond163 = select i1 %76, i1 %or.cond3.us, i1 false
  br i1 %or.cond163, label %100, label %109

100:                                              ; preds = %94
  %101 = load i32, ptr %35, align 8, !tbaa !27
  %102 = load i32, ptr %37, align 4, !tbaa !29
  %103 = load i32, ptr %41, align 1, !tbaa !31
  %104 = zext i32 %103 to i64
  %105 = load i32, ptr %29, align 4, !tbaa !17
  %106 = zext i32 %105 to i64
  %107 = mul nuw i64 %104, %42
  %108 = mul i64 %107, %106
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef %101, i32 noundef %102, i64 noundef %108) #2
  br label %109

109:                                              ; preds = %100, %94
  %110 = load i8, ptr %33, align 4, !tbaa !23
  tail call void @libxsmm_x86_instruction_vec_compute_2reg(ptr noundef %0, i32 noundef -1610280715, i8 noundef signext %110, i32 noundef %.2157.us, i32 noundef %5) #2
  %111 = load i8, ptr %33, align 4, !tbaa !23
  %reass.add.us = sub nsw i32 %.2157.us, %5
  %reass.mul.us = mul i32 %reass.add.us, %13
  %112 = add i32 %77, %reass.mul.us
  tail call void @libxsmm_x86_instruction_vec_compute_2reg(ptr noundef %0, i32 noundef -1610280706, i8 noundef signext %111, i32 noundef %5, i32 noundef %112) #2
  %113 = add nuw i32 %.2157.us, 1
  %exitcond170.not = icmp eq i32 %113, %5
  br i1 %exitcond170.not, label %._crit_edge159.us, label %78, !llvm.loop !32

._crit_edge159.us:                                ; preds = %109
  %114 = add nuw i32 %.0144160.us, 1
  %exitcond171.not = icmp eq i32 %114, %13
  br i1 %exitcond171.not, label %._crit_edge161, label %.preheader.us, !llvm.loop !33

.lr.ph156:                                        ; preds = %.lr.ph156.preheader, %118
  %.1143154 = phi i32 [ %123, %118 ], [ 0, %.lr.ph156.preheader ]
  %115 = load i8, ptr %33, align 4, !tbaa !23
  br i1 %44, label %116, label %118

116:                                              ; preds = %.lr.ph156
  tail call void @libxsmm_x86_instruction_vec_compute_1reg_imm8(ptr noundef %0, i32 noundef -1804791694, i8 noundef signext %115, i32 noundef %.1143154, i32 noundef 16) #2
  %117 = load i8, ptr %33, align 4, !tbaa !23
  br label %118

118:                                              ; preds = %.lr.ph156, %116
  %.sink174 = phi i8 [ %117, %116 ], [ %115, %.lr.ph156 ]
  tail call void @libxsmm_x86_instruction_vec_compute_1reg_imm8(ptr noundef %0, i32 noundef -1808985998, i8 noundef signext %.sink174, i32 noundef %.1143154, i32 noundef 16) #2
  %119 = load i8, ptr %33, align 4, !tbaa !23
  tail call void @libxsmm_x86_instruction_vec_compute_2reg(ptr noundef %0, i32 noundef -1610276821, i8 noundef signext %119, i32 noundef %.1143154, i32 noundef %.1143154) #2
  %120 = load i32, ptr %21, align 1, !tbaa !14
  %121 = and i32 %120, 512
  %.not149 = icmp eq i32 %121, 0
  %.177 = select i1 %.not149, i32 -1610276832, i32 -1610276816
  %122 = load i8, ptr %33, align 4, !tbaa !23
  tail call void @libxsmm_x86_instruction_vec_compute_2reg(ptr noundef %0, i32 noundef %.177, i8 noundef signext %122, i32 noundef %.1143154, i32 noundef %.1143154) #2
  %123 = add nuw i32 %.1143154, 1
  %exitcond169.not = icmp eq i32 %123, %5
  br i1 %exitcond169.not, label %.preheader151, label %.lr.ph156, !llvm.loop !34

._crit_edge161:                                   ; preds = %._crit_edge159.us, %.preheader151
  br i1 %44, label %.preheader152, label %.loopexit, !llvm.loop !35

.loopexit:                                        ; preds = %._crit_edge161, %15
  ret void
}

declare i32 @libxsmm_cpuid_dot_pack_factor(i32 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_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_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_2reg_imm8(ptr noundef, i32 noundef, i8 noundef signext, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

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

declare void @libxsmm_x86_instruction_vec_compute_1reg_imm8(ptr noundef, i32 noundef, i8 noundef signext, 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 12}
!18 = !{!15, !7, i64 16}
!19 = !{!6, !7, i64 0}
!20 = !{!6, !7, i64 28}
!21 = !{!22, !7, i64 12}
!22 = !{!"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}
!23 = !{!6, !8, i64 84}
!24 = !{!6, !7, i64 32}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!6, !7, i64 64}
!28 = !{!6, !7, i64 24}
!29 = !{!22, !7, i64 4}
!30 = !{!6, !7, i64 44}
!31 = !{!15, !7, i64 12}
!32 = distinct !{!32, !26}
!33 = distinct !{!33, !26}
!34 = distinct !{!34, !26}
!35 = distinct !{!35, !26}


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