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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_gemm_avx2_microkernel_bf16_flat_emu(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5) #1 {
  %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
  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
  %19 = load i32, ptr %11, align 4, !tbaa !9
  %20 = load ptr, ptr %9, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %20, i32 0, i32 2
  %22 = load i32, ptr %21, align 8, !tbaa !11
  %23 = urem i32 %19, %22
  %24 = icmp eq i32 %23, 0
  br i1 %24, label %25, label %31

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

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

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

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

49:                                               ; preds = %46, %38
  %50 = load ptr, ptr %7, align 8, !tbaa !5
  %51 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %52 = icmp ult i32 1, %51
  br i1 %52, label %53, label %55

53:                                               ; preds = %49
  %54 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %56

55:                                               ; preds = %49
  br label %56

56:                                               ; preds = %55, %53
  %57 = phi i32 [ %54, %53 ], [ 1, %55 ]
  call void @libxsmm_handle_error(ptr noundef %50, i32 noundef 90016, ptr noundef @__func__.libxsmm_generator_gemm_avx2_microkernel_bf16_flat_emu, ptr noundef @.str, i32 noundef 1378, i32 noundef %57)
  store i32 1, ptr %18, align 4
  br label %341

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

64:                                               ; preds = %58
  %65 = load ptr, ptr %7, align 8, !tbaa !5
  %66 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %67 = icmp ult i32 1, %66
  br i1 %67, label %68, label %70

68:                                               ; preds = %64
  %69 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %71

70:                                               ; preds = %64
  br label %71

71:                                               ; preds = %70, %68
  %72 = phi i32 [ %69, %68 ], [ 1, %70 ]
  call void @libxsmm_handle_error(ptr noundef %65, i32 noundef 90018, ptr noundef @__func__.libxsmm_generator_gemm_avx2_microkernel_bf16_flat_emu, ptr noundef @.str, i32 noundef 1384, i32 noundef %72)
  store i32 1, ptr %18, align 4
  br label %341

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

74:                                               ; preds = %122, %73
  %75 = load i32, ptr %14, align 4, !tbaa !9
  %76 = load i32, ptr %12, align 4, !tbaa !9
  %77 = icmp ult i32 %75, %76
  br i1 %77, label %78, label %125

78:                                               ; preds = %74
  %79 = load ptr, ptr %10, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %79, i32 0, i32 6
  %81 = load i32, ptr %80, align 1, !tbaa !15
  %82 = and i32 %81, 2
  %83 = icmp ugt i32 %82, 0
  br i1 %83, label %84, label %90

84:                                               ; preds = %78
  %85 = load i32, ptr %14, align 4, !tbaa !9
  %86 = load ptr, ptr %9, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %86, i32 0, i32 3
  %88 = load i32, ptr %87, align 4, !tbaa !18
  %89 = mul i32 %85, %88
  store i32 %89, ptr %17, align 4, !tbaa !9
  br label %100

90:                                               ; preds = %78
  %91 = load ptr, ptr %10, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %91, i32 0, i32 4
  %93 = load i32, ptr %92, align 1, !tbaa !19
  %94 = load i32, ptr %14, align 4, !tbaa !9
  %95 = mul i32 %93, %94
  %96 = load ptr, ptr %9, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %96, i32 0, i32 3
  %98 = load i32, ptr %97, align 4, !tbaa !18
  %99 = mul i32 %95, %98
  store i32 %99, ptr %17, align 4, !tbaa !9
  br label %100

100:                                              ; preds = %90, %84
  %101 = load ptr, ptr %7, align 8, !tbaa !5
  %102 = load ptr, ptr %9, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %102, i32 0, i32 0
  %104 = load i32, ptr %103, align 8, !tbaa !20
  %105 = load ptr, ptr %9, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %105, i32 0, i32 7
  %107 = load i32, ptr %106, align 4, !tbaa !21
  %108 = load ptr, ptr %8, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %108, i32 0, i32 3
  %110 = load i32, ptr %109, align 4, !tbaa !22
  %111 = load i32, ptr %17, align 4, !tbaa !9
  %112 = load ptr, ptr %9, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %112, i32 0, i32 21
  %114 = load i8, ptr %113, align 4, !tbaa !24
  %115 = load i32, ptr %14, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_move(ptr noundef %101, i32 noundef %104, i32 noundef %107, i32 noundef %110, i32 noundef 127, i32 noundef 0, i32 noundef %111, i8 noundef signext %114, i32 noundef %115, i32 noundef 0, i32 noundef 1, i32 noundef 0)
  %116 = load ptr, ptr %7, align 8, !tbaa !5
  %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
  %121 = load i32, ptr %14, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_compute_2reg_imm8(ptr noundef %116, i32 noundef 611128946, i8 noundef signext %119, i32 noundef %120, i32 noundef %121, i32 noundef 16)
  br label %122

122:                                              ; preds = %100
  %123 = load i32, ptr %14, align 4, !tbaa !9
  %124 = add i32 %123, 1
  store i32 %124, ptr %14, align 4, !tbaa !9
  br label %74, !llvm.loop !25

125:                                              ; preds = %74
  %126 = load ptr, ptr %10, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %126, i32 0, i32 6
  %128 = load i32, ptr %127, align 1, !tbaa !15
  %129 = and i32 %128, 2
  %130 = icmp ugt i32 %129, 0
  br i1 %130, label %131, label %139

131:                                              ; preds = %125
  %132 = load ptr, ptr %10, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %132, i32 0, i32 4
  %134 = load i32, ptr %133, align 1, !tbaa !19
  %135 = load ptr, ptr %9, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %135, i32 0, i32 3
  %137 = load i32, ptr %136, align 4, !tbaa !18
  %138 = mul i32 %134, %137
  store i32 %138, ptr %17, align 4, !tbaa !9
  br label %143

139:                                              ; preds = %125
  %140 = load ptr, ptr %9, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %140, i32 0, i32 3
  %142 = load i32, ptr %141, align 4, !tbaa !18
  store i32 %142, ptr %17, align 4, !tbaa !9
  br label %143

143:                                              ; preds = %139, %131
  %144 = load ptr, ptr %7, align 8, !tbaa !5
  %145 = load ptr, ptr %9, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %145, i32 0, i32 16
  %147 = load i32, ptr %146, align 8, !tbaa !27
  %148 = load ptr, ptr %8, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %148, i32 0, i32 3
  %150 = load i32, ptr %149, align 4, !tbaa !22
  %151 = load i32, ptr %17, align 4, !tbaa !9
  %152 = sext i32 %151 to i64
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %144, i32 noundef %147, i32 noundef %150, i64 noundef %152)
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %153

153:                                              ; preds = %337, %143
  %154 = load i32, ptr %15, align 4, !tbaa !9
  %155 = load i32, ptr %13, align 4, !tbaa !9
  %156 = icmp ult i32 %154, %155
  br i1 %156, label %157, label %340

157:                                              ; preds = %153
  %158 = load ptr, ptr %9, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %158, i32 0, i32 11
  %160 = load i32, ptr %159, align 4, !tbaa !28
  %161 = icmp eq i32 %160, 0
  br i1 %161, label %172, label %162

162:                                              ; preds = %157
  %163 = load ptr, ptr %9, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %163, i32 0, i32 11
  %165 = load i32, ptr %164, align 4, !tbaa !28
  %166 = icmp eq i32 %165, 1
  br i1 %166, label %167, label %249

167:                                              ; preds = %162
  %168 = load i32, ptr %15, align 4, !tbaa !9
  %169 = load i32, ptr %13, align 4, !tbaa !9
  %170 = sub i32 %169, 1
  %171 = icmp ult i32 %168, %170
  br i1 %171, label %172, label %249

172:                                              ; preds = %167, %157
  %173 = load ptr, ptr %7, align 8, !tbaa !5
  %174 = load ptr, ptr %9, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %174, i32 0, i32 6
  %176 = load i32, ptr %175, align 8, !tbaa !29
  %177 = load ptr, ptr %8, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %177, i32 0, i32 1
  %179 = load i32, ptr %178, align 4, !tbaa !30
  %180 = load ptr, ptr %9, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %180, i32 0, i32 3
  %182 = load i32, ptr %181, align 4, !tbaa !18
  %183 = load ptr, ptr %9, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %183, i32 0, i32 2
  %185 = load i32, ptr %184, align 8, !tbaa !11
  %186 = mul i32 %182, %185
  %187 = load i32, ptr %15, align 4, !tbaa !9
  %188 = mul i32 %186, %187
  %189 = load i32, ptr %12, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_unified_vec_move(ptr noundef %173, i32 noundef %176, i32 noundef %179, i32 noundef 127, i32 noundef 0, i32 noundef %188, i8 noundef signext 120, i32 noundef %189, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  %190 = load ptr, ptr %7, align 8, !tbaa !5
  %191 = load ptr, ptr %9, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %191, i32 0, i32 21
  %193 = load i8, ptr %192, align 4, !tbaa !24
  %194 = load i32, ptr %12, align 4, !tbaa !9
  %195 = load i32, ptr %12, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_compute_2reg(ptr noundef %190, i32 noundef 537208099, i8 noundef signext %193, i32 noundef %194, i32 noundef %195)
  %196 = load ptr, ptr %7, align 8, !tbaa !5
  %197 = load ptr, ptr %9, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %197, i32 0, i32 21
  %199 = load i8, ptr %198, align 4, !tbaa !24
  %200 = load i32, ptr %12, align 4, !tbaa !9
  %201 = load i32, ptr %12, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_compute_2reg_imm8(ptr noundef %196, i32 noundef 611128946, i8 noundef signext %199, i32 noundef %200, i32 noundef %201, i32 noundef 16)
  %202 = load i32, ptr %15, align 4, !tbaa !9
  %203 = load i32, ptr %13, align 4, !tbaa !9
  %204 = sub i32 %203, 1
  %205 = icmp eq i32 %202, %204
  br i1 %205, label %206, label %223

206:                                              ; preds = %172
  %207 = load ptr, ptr %7, align 8, !tbaa !5
  %208 = load ptr, ptr %9, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %208, i32 0, i32 16
  %210 = load i32, ptr %209, align 8, !tbaa !27
  %211 = load ptr, ptr %8, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %211, i32 0, i32 1
  %213 = load i32, ptr %212, align 4, !tbaa !30
  %214 = load ptr, ptr %10, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %214, i32 0, i32 3
  %216 = load i32, ptr %215, align 1, !tbaa !31
  %217 = zext i32 %216 to i64
  %218 = load ptr, ptr %9, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %218, i32 0, i32 3
  %220 = load i32, ptr %219, align 4, !tbaa !18
  %221 = zext i32 %220 to i64
  %222 = mul nsw i64 %217, %221
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %207, i32 noundef %210, i32 noundef %213, i64 noundef %222)
  br label %223

223:                                              ; preds = %206, %172
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %224

224:                                              ; preds = %245, %223
  %225 = load i32, ptr %14, align 4, !tbaa !9
  %226 = load i32, ptr %12, align 4, !tbaa !9
  %227 = icmp ult i32 %225, %226
  br i1 %227, label %228, label %248

228:                                              ; preds = %224
  %229 = load ptr, ptr %7, align 8, !tbaa !5
  %230 = load ptr, ptr %9, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %230, i32 0, i32 14
  %232 = load i32, ptr %231, align 8, !tbaa !32
  %233 = load ptr, ptr %9, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %233, i32 0, i32 21
  %235 = load i8, ptr %234, align 4, !tbaa !24
  %236 = load i32, ptr %12, align 4, !tbaa !9
  %237 = load i32, ptr %14, align 4, !tbaa !9
  %238 = load i32, ptr %16, align 4, !tbaa !9
  %239 = load i32, ptr %15, align 4, !tbaa !9
  %240 = add i32 %238, %239
  %241 = load i32, ptr %13, align 4, !tbaa !9
  %242 = load i32, ptr %14, align 4, !tbaa !9
  %243 = mul i32 %241, %242
  %244 = add i32 %240, %243
  call void @libxsmm_x86_instruction_vec_compute_3reg(ptr noundef %229, i32 noundef %232, i8 noundef signext %235, i32 noundef %236, i32 noundef %237, i32 noundef %244)
  br label %245

245:                                              ; preds = %228
  %246 = load i32, ptr %14, align 4, !tbaa !9
  %247 = add i32 %246, 1
  store i32 %247, ptr %14, align 4, !tbaa !9
  br label %224, !llvm.loop !33

248:                                              ; preds = %224
  br label %336

249:                                              ; preds = %167, %162
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %250

250:                                              ; preds = %332, %249
  %251 = load i32, ptr %14, align 4, !tbaa !9
  %252 = load i32, ptr %12, align 4, !tbaa !9
  %253 = icmp ult i32 %251, %252
  br i1 %253, label %254, label %335

254:                                              ; preds = %250
  %255 = load ptr, ptr %7, align 8, !tbaa !5
  %256 = load ptr, ptr %8, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %256, i32 0, i32 22
  %258 = load i32, ptr %257, align 4, !tbaa !34
  %259 = load ptr, ptr %8, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %259, i32 0, i32 1
  %261 = load i32, ptr %260, align 4, !tbaa !30
  %262 = load ptr, ptr %9, align 8, !tbaa !5
  %263 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %262, i32 0, i32 3
  %264 = load i32, ptr %263, align 4, !tbaa !18
  %265 = load ptr, ptr %9, align 8, !tbaa !5
  %266 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %265, i32 0, i32 2
  %267 = load i32, ptr %266, align 8, !tbaa !11
  %268 = mul i32 %264, %267
  %269 = load i32, ptr %15, align 4, !tbaa !9
  %270 = mul i32 %268, %269
  %271 = load i32, ptr %12, align 4, !tbaa !9
  %272 = load i32, ptr %11, align 4, !tbaa !9
  %273 = load ptr, ptr %9, align 8, !tbaa !5
  %274 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %273, i32 0, i32 2
  %275 = load i32, ptr %274, align 8, !tbaa !11
  %276 = urem i32 %272, %275
  call void @libxsmm_generator_maskedload_16bit_avx2(ptr noundef %255, i32 noundef %258, i32 noundef %261, i32 noundef 127, i32 noundef 0, i32 noundef %270, i32 noundef %271, i32 noundef %276)
  %277 = load ptr, ptr %7, align 8, !tbaa !5
  %278 = load ptr, ptr %9, align 8, !tbaa !5
  %279 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %278, i32 0, i32 21
  %280 = load i8, ptr %279, align 4, !tbaa !24
  %281 = load i32, ptr %12, align 4, !tbaa !9
  %282 = load i32, ptr %12, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_compute_2reg(ptr noundef %277, i32 noundef 537208099, i8 noundef signext %280, i32 noundef %281, i32 noundef %282)
  %283 = load ptr, ptr %7, align 8, !tbaa !5
  %284 = load ptr, ptr %9, align 8, !tbaa !5
  %285 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %284, i32 0, i32 21
  %286 = load i8, ptr %285, align 4, !tbaa !24
  %287 = load i32, ptr %12, align 4, !tbaa !9
  %288 = load i32, ptr %12, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_compute_2reg_imm8(ptr noundef %283, i32 noundef 611128946, i8 noundef signext %286, i32 noundef %287, i32 noundef %288, i32 noundef 16)
  %289 = load i32, ptr %15, align 4, !tbaa !9
  %290 = load i32, ptr %13, align 4, !tbaa !9
  %291 = sub i32 %290, 1
  %292 = icmp eq i32 %289, %291
  br i1 %292, label %293, label %315

293:                                              ; preds = %254
  %294 = load i32, ptr %14, align 4, !tbaa !9
  %295 = load i32, ptr %12, align 4, !tbaa !9
  %296 = sub i32 %295, 1
  %297 = icmp eq i32 %294, %296
  br i1 %297, label %298, label %315

298:                                              ; preds = %293
  %299 = load ptr, ptr %7, align 8, !tbaa !5
  %300 = load ptr, ptr %9, align 8, !tbaa !5
  %301 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %300, i32 0, i32 16
  %302 = load i32, ptr %301, align 8, !tbaa !27
  %303 = load ptr, ptr %8, align 8, !tbaa !5
  %304 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %303, i32 0, i32 1
  %305 = load i32, ptr %304, align 4, !tbaa !30
  %306 = load ptr, ptr %10, align 8, !tbaa !5
  %307 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %306, i32 0, i32 3
  %308 = load i32, ptr %307, align 1, !tbaa !31
  %309 = zext i32 %308 to i64
  %310 = load ptr, ptr %9, align 8, !tbaa !5
  %311 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %310, i32 0, i32 3
  %312 = load i32, ptr %311, align 4, !tbaa !18
  %313 = zext i32 %312 to i64
  %314 = mul nsw i64 %309, %313
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %299, i32 noundef %302, i32 noundef %305, i64 noundef %314)
  br label %315

315:                                              ; preds = %298, %293, %254
  %316 = load ptr, ptr %7, align 8, !tbaa !5
  %317 = load ptr, ptr %9, align 8, !tbaa !5
  %318 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %317, i32 0, i32 14
  %319 = load i32, ptr %318, align 8, !tbaa !32
  %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 !24
  %323 = load i32, ptr %12, align 4, !tbaa !9
  %324 = load i32, ptr %14, align 4, !tbaa !9
  %325 = load i32, ptr %16, align 4, !tbaa !9
  %326 = load i32, ptr %15, align 4, !tbaa !9
  %327 = add i32 %325, %326
  %328 = load i32, ptr %13, align 4, !tbaa !9
  %329 = load i32, ptr %14, align 4, !tbaa !9
  %330 = mul i32 %328, %329
  %331 = add i32 %327, %330
  call void @libxsmm_x86_instruction_vec_compute_3reg(ptr noundef %316, i32 noundef %319, i8 noundef signext %322, i32 noundef %323, i32 noundef %324, i32 noundef %331)
  br label %332

332:                                              ; preds = %315
  %333 = load i32, ptr %14, align 4, !tbaa !9
  %334 = add i32 %333, 1
  store i32 %334, ptr %14, align 4, !tbaa !9
  br label %250, !llvm.loop !35

335:                                              ; preds = %250
  br label %336

336:                                              ; preds = %335, %248
  br label %337

337:                                              ; preds = %336
  %338 = load i32, ptr %15, align 4, !tbaa !9
  %339 = add i32 %338, 1
  store i32 %339, ptr %15, align 4, !tbaa !9
  br label %153, !llvm.loop !36

340:                                              ; preds = %153
  store i32 0, ptr %18, align 4
  br label %341

341:                                              ; preds = %340, %71, %56
  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
  %342 = load i32, ptr %18, align 4
  switch i32 %342, label %344 [
    i32 0, label %343
    i32 1, label %343
  ]

343:                                              ; preds = %341, %341
  ret void

344:                                              ; preds = %341
  unreachable
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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) #2

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

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) #2

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!12, !10, i64 64}
!28 = !{!12, !10, i64 44}
!29 = !{!12, !10, i64 24}
!30 = !{!23, !10, i64 4}
!31 = !{!16, !10, i64 12}
!32 = !{!12, !10, i64 56}
!33 = distinct !{!33, !26}
!34 = !{!23, !10, i64 88}
!35 = distinct !{!35, !26}
!36 = distinct !{!36, !26}


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

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_gemm_avx2_microkernel_bf16_flat_emu(ptr noundef %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, ptr nocapture noundef readonly %3, i32 noundef %4, i32 noundef %5) local_unnamed_addr #0 {
  %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 = mul i32 %13, %5
  %15 = sub i32 16, %14
  %16 = add i32 %5, -4
  %or.cond = icmp ult i32 %16, -3
  br i1 %or.cond, label %17, label %22

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

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

.lr.ph:                                           ; preds = %22
  %26 = getelementptr inbounds i8, ptr %2, i64 12
  %27 = getelementptr inbounds i8, ptr %3, i64 16
  %28 = getelementptr inbounds i8, ptr %2, i64 28
  %29 = getelementptr inbounds i8, ptr %1, i64 12
  %30 = getelementptr inbounds i8, ptr %2, i64 84
  br label %36

31:                                               ; preds = %22
  %32 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !13
  %33 = icmp ugt i32 %32, 1
  %34 = load i32, ptr @libxsmm_verbosity, align 4
  %35 = select i1 %33, i32 %34, i32 1
  tail call void @libxsmm_handle_error(ptr noundef %0, i32 noundef 90018, ptr noundef nonnull @__func__.libxsmm_generator_gemm_avx2_microkernel_bf16_flat_emu, ptr noundef nonnull @.str, i32 noundef 1384, i32 noundef %35) #2
  br label %.loopexit131

36:                                               ; preds = %.lr.ph, %47
  %.0120132 = phi i32 [ 0, %.lr.ph ], [ %53, %47 ]
  %37 = load i32, ptr %23, align 1, !tbaa !14
  %38 = and i32 %37, 2
  %.not127 = icmp eq i32 %38, 0
  br i1 %.not127, label %42, label %39

39:                                               ; preds = %36
  %40 = load i32, ptr %26, align 4, !tbaa !17
  %41 = mul i32 %40, %.0120132
  br label %47

42:                                               ; preds = %36
  %43 = load i32, ptr %27, align 1, !tbaa !18
  %44 = mul i32 %43, %.0120132
  %45 = load i32, ptr %26, align 4, !tbaa !17
  %46 = mul i32 %44, %45
  br label %47

47:                                               ; preds = %42, %39
  %.0 = phi i32 [ %41, %39 ], [ %46, %42 ]
  %48 = load i32, ptr %2, align 8, !tbaa !19
  %49 = load i32, ptr %28, align 4, !tbaa !20
  %50 = load i32, ptr %29, align 4, !tbaa !21
  %51 = load i8, ptr %30, align 4, !tbaa !23
  tail call void @libxsmm_x86_instruction_vec_move(ptr noundef %0, i32 noundef %48, i32 noundef %49, i32 noundef %50, i32 noundef 127, i32 noundef 0, i32 noundef %.0, i8 noundef signext %51, i32 noundef %.0120132, i32 noundef 0, i32 noundef 1, i32 noundef 0) #2
  %52 = load i8, ptr %30, align 4, !tbaa !23
  tail call void @libxsmm_x86_instruction_vec_compute_2reg_imm8(ptr noundef %0, i32 noundef 611128946, i8 noundef signext %52, i32 noundef %.0120132, i32 noundef %.0120132, i32 noundef 16) #2
  %53 = add nuw i32 %.0120132, 1
  %exitcond.not = icmp eq i32 %53, %5
  br i1 %exitcond.not, label %._crit_edge, label %36, !llvm.loop !24

._crit_edge:                                      ; preds = %47
  %.pre = load i32, ptr %23, align 1, !tbaa !14
  %54 = and i32 %.pre, 2
  %.not126 = icmp eq i32 %54, 0
  br i1 %.not126, label %61, label %55

55:                                               ; preds = %._crit_edge
  %56 = getelementptr inbounds i8, ptr %3, i64 16
  %57 = load i32, ptr %56, align 1, !tbaa !18
  %58 = getelementptr inbounds i8, ptr %2, i64 12
  %59 = load i32, ptr %58, align 4, !tbaa !17
  %60 = mul i32 %59, %57
  br label %64

61:                                               ; preds = %._crit_edge
  %62 = getelementptr inbounds i8, ptr %2, i64 12
  %63 = load i32, ptr %62, align 4, !tbaa !17
  br label %64

64:                                               ; preds = %61, %55
  %.1 = phi i32 [ %60, %55 ], [ %63, %61 ]
  %65 = getelementptr inbounds i8, ptr %2, i64 64
  %66 = load i32, ptr %65, align 8, !tbaa !26
  %67 = getelementptr inbounds i8, ptr %1, i64 12
  %68 = load i32, ptr %67, align 4, !tbaa !21
  %69 = sext i32 %.1 to i64
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef %66, i32 noundef %68, i64 noundef %69) #2
  %.not144 = icmp eq i32 %13, 0
  br i1 %.not144, label %.loopexit131, label %.lr.ph142

.lr.ph142:                                        ; preds = %64
  %70 = getelementptr inbounds i8, ptr %2, i64 44
  %71 = add i32 %13, -1
  %72 = getelementptr inbounds i8, ptr %2, i64 24
  %73 = getelementptr inbounds i8, ptr %1, i64 4
  %74 = getelementptr inbounds i8, ptr %2, i64 12
  %75 = getelementptr inbounds i8, ptr %2, i64 84
  %76 = getelementptr inbounds i8, ptr %3, i64 12
  %77 = getelementptr inbounds i8, ptr %2, i64 56
  %78 = getelementptr inbounds i8, ptr %1, i64 88
  %79 = add nsw i32 %5, -1
  br label %80

80:                                               ; preds = %.lr.ph142, %.loopexit
  %.0122139 = phi i32 [ 0, %.lr.ph142 ], [ %136, %.loopexit ]
  %81 = load i32, ptr %70, align 4, !tbaa !27
  switch i32 %81, label %.lr.ph138 [
    i32 0, label %84
    i32 1, label %82
  ]

82:                                               ; preds = %80
  %83 = icmp ult i32 %.0122139, %71
  br i1 %83, label %84, label %.lr.ph138

84:                                               ; preds = %80, %82
  %85 = load i32, ptr %72, align 8, !tbaa !28
  %86 = load i32, ptr %73, align 4, !tbaa !29
  %87 = load i32, ptr %74, align 4, !tbaa !17
  %88 = load i32, ptr %7, align 8, !tbaa !5
  %89 = mul i32 %87, %.0122139
  %90 = mul i32 %89, %88
  tail call void @libxsmm_x86_instruction_unified_vec_move(ptr noundef %0, i32 noundef %85, i32 noundef %86, i32 noundef 127, i32 noundef 0, i32 noundef %90, i8 noundef signext 120, i32 noundef %5, i32 noundef 0, i32 noundef 0, i32 noundef 0) #2
  %91 = load i8, ptr %75, align 4, !tbaa !23
  tail call void @libxsmm_x86_instruction_vec_compute_2reg(ptr noundef %0, i32 noundef 537208099, i8 noundef signext %91, i32 noundef %5, i32 noundef %5) #2
  %92 = load i8, ptr %75, align 4, !tbaa !23
  tail call void @libxsmm_x86_instruction_vec_compute_2reg_imm8(ptr noundef %0, i32 noundef 611128946, i8 noundef signext %92, i32 noundef %5, i32 noundef %5, i32 noundef 16) #2
  %93 = icmp eq i32 %.0122139, %71
  br i1 %93, label %94, label %.lr.ph135

94:                                               ; preds = %84
  %95 = load i32, ptr %65, align 8, !tbaa !26
  %96 = load i32, ptr %73, align 4, !tbaa !29
  %97 = load i32, ptr %76, align 1, !tbaa !30
  %98 = zext i32 %97 to i64
  %99 = load i32, ptr %74, align 4, !tbaa !17
  %100 = zext i32 %99 to i64
  %101 = mul nuw nsw i64 %100, %98
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef %95, i32 noundef %96, i64 noundef %101) #2
  br label %.lr.ph135

.lr.ph135:                                        ; preds = %84, %94
  %102 = add i32 %.0122139, %15
  br label %103

103:                                              ; preds = %.lr.ph135, %103
  %.1121133 = phi i32 [ 0, %.lr.ph135 ], [ %108, %103 ]
  %104 = load i32, ptr %77, align 8, !tbaa !31
  %105 = load i8, ptr %75, align 4, !tbaa !23
  %106 = mul i32 %.1121133, %13
  %107 = add i32 %102, %106
  tail call void @libxsmm_x86_instruction_vec_compute_3reg(ptr noundef %0, i32 noundef %104, i8 noundef signext %105, i32 noundef %5, i32 noundef %.1121133, i32 noundef %107) #2
  %108 = add nuw i32 %.1121133, 1
  %exitcond148.not = icmp eq i32 %108, %5
  br i1 %exitcond148.not, label %.loopexit, label %103, !llvm.loop !32

.lr.ph138:                                        ; preds = %82, %80
  %109 = icmp eq i32 %.0122139, %71
  %110 = add i32 %.0122139, %15
  br label %111

111:                                              ; preds = %.lr.ph138, %130
  %.2136 = phi i32 [ 0, %.lr.ph138 ], [ %135, %130 ]
  %112 = load i32, ptr %78, align 4, !tbaa !33
  %113 = load i32, ptr %73, align 4, !tbaa !29
  %114 = load i32, ptr %74, align 4, !tbaa !17
  %115 = load i32, ptr %7, align 8, !tbaa !5
  %116 = mul i32 %114, %.0122139
  %117 = mul i32 %116, %115
  %118 = urem i32 %4, %115
  tail call void @libxsmm_generator_maskedload_16bit_avx2(ptr noundef %0, i32 noundef %112, i32 noundef %113, i32 noundef 127, i32 noundef 0, i32 noundef %117, i32 noundef %5, i32 noundef %118) #2
  %119 = load i8, ptr %75, align 4, !tbaa !23
  tail call void @libxsmm_x86_instruction_vec_compute_2reg(ptr noundef %0, i32 noundef 537208099, i8 noundef signext %119, i32 noundef %5, i32 noundef %5) #2
  %120 = load i8, ptr %75, align 4, !tbaa !23
  tail call void @libxsmm_x86_instruction_vec_compute_2reg_imm8(ptr noundef %0, i32 noundef 611128946, i8 noundef signext %120, i32 noundef %5, i32 noundef %5, i32 noundef 16) #2
  %121 = icmp eq i32 %.2136, %79
  %or.cond129 = select i1 %109, i1 %121, i1 false
  br i1 %or.cond129, label %122, label %130

122:                                              ; preds = %111
  %123 = load i32, ptr %65, align 8, !tbaa !26
  %124 = load i32, ptr %73, align 4, !tbaa !29
  %125 = load i32, ptr %76, align 1, !tbaa !30
  %126 = zext i32 %125 to i64
  %127 = load i32, ptr %74, align 4, !tbaa !17
  %128 = zext i32 %127 to i64
  %129 = mul nuw nsw i64 %128, %126
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef %123, i32 noundef %124, i64 noundef %129) #2
  br label %130

130:                                              ; preds = %122, %111
  %131 = load i32, ptr %77, align 8, !tbaa !31
  %132 = load i8, ptr %75, align 4, !tbaa !23
  %133 = mul i32 %.2136, %13
  %134 = add i32 %110, %133
  tail call void @libxsmm_x86_instruction_vec_compute_3reg(ptr noundef %0, i32 noundef %131, i8 noundef signext %132, i32 noundef %5, i32 noundef %.2136, i32 noundef %134) #2
  %135 = add nuw i32 %.2136, 1
  %exitcond149.not = icmp eq i32 %135, %5
  br i1 %exitcond149.not, label %.loopexit, label %111, !llvm.loop !34

.loopexit:                                        ; preds = %103, %130
  %136 = add nuw i32 %.0122139, 1
  %exitcond150.not = icmp eq i32 %136, %13
  br i1 %exitcond150.not, label %.loopexit131, label %80, !llvm.loop !35

.loopexit131:                                     ; preds = %.loopexit, %64, %31, %17
  ret void
}

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 #1

declare void @libxsmm_x86_instruction_vec_compute_3reg(ptr noundef, i32 noundef, i8 noundef signext, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #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) local_unnamed_addr #1

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

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 #1

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

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

declare void @libxsmm_generator_maskedload_16bit_avx2(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "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 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!6, !7, i64 64}
!27 = !{!6, !7, i64 44}
!28 = !{!6, !7, i64 24}
!29 = !{!22, !7, i64 4}
!30 = !{!15, !7, i64 12}
!31 = !{!6, !7, i64 56}
!32 = distinct !{!32, !25}
!33 = !{!22, !7, i64 88}
!34 = distinct !{!34, !25}
!35 = distinct !{!35, !25}


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