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

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

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

declare void @libxsmm_x86_instruction_push_reg(ptr noundef, i32 noundef) #0

declare void @libxsmm_x86_instruction_pop_reg(ptr noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @libxsmm_generator_gemm_header_dequant_loop_amx(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @libxsmm_generator_gemm_footer_dequant_loop_amx(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_gemm_convert_KxM_bf8_to_f16_vnni2(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8, i32 noundef %9) #1 {
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  store ptr %0, ptr %11, align 8, !tbaa !5
  store ptr %1, ptr %12, align 8, !tbaa !5
  store ptr %2, ptr %13, align 8, !tbaa !5
  store ptr %3, ptr %14, align 8, !tbaa !5
  store i32 %4, ptr %15, align 4, !tbaa !9
  store i32 %5, ptr %16, align 4, !tbaa !9
  store i32 %6, ptr %17, align 4, !tbaa !9
  store i32 %7, ptr %18, align 4, !tbaa !9
  store i32 %8, ptr %19, align 4, !tbaa !9
  store i32 %9, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #3
  store i32 0, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #3
  store i32 32, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #3
  %29 = load i32, ptr %15, align 4, !tbaa !9
  %30 = load i32, ptr %22, align 4, !tbaa !9
  %31 = add i32 %29, %30
  %32 = sub i32 %31, 1
  %33 = load i32, ptr %22, align 4, !tbaa !9
  %34 = udiv i32 %32, %33
  store i32 %34, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #3
  %35 = load ptr, ptr %13, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %35, i32 0, i32 43
  %37 = load i32, ptr %36, align 4, !tbaa !11
  store i32 %37, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #3
  store i32 11, ptr %25, align 4, !tbaa !9
  %38 = load ptr, ptr %11, align 8, !tbaa !5
  %39 = load i32, ptr %25, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_push_reg(ptr noundef %38, i32 noundef %39)
  %40 = load ptr, ptr %11, align 8, !tbaa !5
  %41 = load ptr, ptr %12, align 8, !tbaa !5
  %42 = load ptr, ptr %13, align 8, !tbaa !5
  %43 = load i32, ptr %25, align 4, !tbaa !9
  call void @libxsmm_generator_gemm_header_dequant_loop_amx(ptr noundef %40, ptr noundef %41, ptr noundef %42, i32 noundef %43)
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %44

44:                                               ; preds = %353, %10
  %45 = load i32, ptr %21, align 4, !tbaa !9
  %46 = load i32, ptr %23, align 4, !tbaa !9
  %47 = icmp ult i32 %45, %46
  br i1 %47, label %48, label %356

48:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #3
  %49 = load i32, ptr %24, align 4, !tbaa !9
  %50 = load i32, ptr %21, align 4, !tbaa !9
  %51 = add i32 %50, 0
  %52 = load i32, ptr %24, align 4, !tbaa !9
  %53 = sub i32 32, %52
  %54 = urem i32 %51, %53
  %55 = add i32 %49, %54
  store i32 %55, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #3
  %56 = load i32, ptr %24, align 4, !tbaa !9
  %57 = load i32, ptr %21, align 4, !tbaa !9
  %58 = add i32 %57, 1
  %59 = load i32, ptr %24, align 4, !tbaa !9
  %60 = sub i32 32, %59
  %61 = urem i32 %58, %60
  %62 = add i32 %56, %61
  store i32 %62, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #3
  %63 = load i32, ptr %21, align 4, !tbaa !9
  %64 = load i32, ptr %23, align 4, !tbaa !9
  %65 = sub i32 %64, 1
  %66 = icmp ult i32 %63, %65
  br i1 %66, label %83, label %67

67:                                               ; preds = %48
  %68 = load i32, ptr %21, align 4, !tbaa !9
  %69 = load i32, ptr %23, align 4, !tbaa !9
  %70 = sub i32 %69, 1
  %71 = icmp eq i32 %68, %70
  br i1 %71, label %72, label %81

72:                                               ; preds = %67
  %73 = load i32, ptr %15, align 4, !tbaa !9
  %74 = load i32, ptr %21, align 4, !tbaa !9
  %75 = load i32, ptr %22, align 4, !tbaa !9
  %76 = mul i32 %74, %75
  %77 = sub i32 %73, %76
  %78 = load i32, ptr %22, align 4, !tbaa !9
  %79 = udiv i32 %78, 2
  %80 = icmp ugt i32 %77, %79
  br label %81

81:                                               ; preds = %72, %67
  %82 = phi i1 [ false, %67 ], [ %80, %72 ]
  br label %83

83:                                               ; preds = %81, %48
  %84 = phi i1 [ true, %48 ], [ %82, %81 ]
  %85 = zext i1 %84 to i64
  %86 = select i1 %84, i32 1, i32 0
  store i32 %86, ptr %28, align 4, !tbaa !9
  %87 = load ptr, ptr %11, align 8, !tbaa !5
  %88 = load i32, ptr %19, align 4, !tbaa !9
  %89 = load i32, ptr %21, align 4, !tbaa !9
  %90 = load i32, ptr %22, align 4, !tbaa !9
  %91 = mul i32 %89, %90
  %92 = load i32, ptr %26, align 4, !tbaa !9
  %93 = load i32, ptr %21, align 4, !tbaa !9
  %94 = load i32, ptr %23, align 4, !tbaa !9
  %95 = sub i32 %94, 1
  %96 = icmp eq i32 %93, %95
  br i1 %96, label %97, label %101

97:                                               ; preds = %83
  %98 = load ptr, ptr %13, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %98, i32 0, i32 73
  %100 = load i32, ptr %99, align 4, !tbaa !15
  br label %102

101:                                              ; preds = %83
  br label %102

102:                                              ; preds = %101, %97
  %103 = phi i32 [ %100, %97 ], [ 0, %101 ]
  %104 = load ptr, ptr %13, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %104, i32 0, i32 73
  %106 = load i32, ptr %105, align 4, !tbaa !15
  call void @libxsmm_x86_instruction_unified_vec_move(ptr noundef %87, i32 noundef -536406417, i32 noundef %88, i32 noundef 127, i32 noundef 0, i32 noundef %91, i8 noundef signext 121, i32 noundef %92, i32 noundef %103, i32 noundef %106, i32 noundef 0)
  %107 = load ptr, ptr %14, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %107, i32 0, i32 6
  %109 = load i32, ptr %108, align 1, !tbaa !16
  %110 = and i32 %109, 262144
  %111 = icmp ugt i32 %110, 0
  br i1 %111, label %112, label %129

112:                                              ; preds = %102
  %113 = load i32, ptr %21, align 4, !tbaa !9
  %114 = urem i32 %113, 2
  %115 = icmp eq i32 %114, 0
  br i1 %115, label %116, label %129

116:                                              ; preds = %112
  %117 = load ptr, ptr %11, align 8, !tbaa !5
  %118 = load i32, ptr %19, align 4, !tbaa !9
  %119 = load i32, ptr %21, align 4, !tbaa !9
  %120 = zext i32 %119 to i64
  %121 = load i32, ptr %22, align 4, !tbaa !9
  %122 = zext i32 %121 to i64
  %123 = mul nsw i64 %120, %122
  %124 = load ptr, ptr %14, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %124, i32 0, i32 10
  %126 = load i64, ptr %125, align 1, !tbaa !19
  %127 = add nsw i64 %123, %126
  %128 = trunc i64 %127 to i32
  call void @libxsmm_x86_instruction_prefetch(ptr noundef %117, i32 noundef -1810624488, i32 noundef %118, i32 noundef 127, i32 noundef 0, i32 noundef %128)
  br label %129

129:                                              ; preds = %116, %112, %102
  %130 = load ptr, ptr %11, align 8, !tbaa !5
  %131 = load i32, ptr %19, align 4, !tbaa !9
  %132 = load i32, ptr %21, align 4, !tbaa !9
  %133 = load i32, ptr %22, align 4, !tbaa !9
  %134 = mul i32 %132, %133
  %135 = load i32, ptr %17, align 4, !tbaa !9
  %136 = add i32 %134, %135
  %137 = load i32, ptr %27, align 4, !tbaa !9
  %138 = load i32, ptr %21, align 4, !tbaa !9
  %139 = load i32, ptr %23, align 4, !tbaa !9
  %140 = sub i32 %139, 1
  %141 = icmp eq i32 %138, %140
  br i1 %141, label %142, label %146

142:                                              ; preds = %129
  %143 = load ptr, ptr %13, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %143, i32 0, i32 73
  %145 = load i32, ptr %144, align 4, !tbaa !15
  br label %147

146:                                              ; preds = %129
  br label %147

147:                                              ; preds = %146, %142
  %148 = phi i32 [ %145, %142 ], [ 0, %146 ]
  %149 = load ptr, ptr %13, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %149, i32 0, i32 73
  %151 = load i32, ptr %150, align 4, !tbaa !15
  call void @libxsmm_x86_instruction_unified_vec_move(ptr noundef %130, i32 noundef -536406417, i32 noundef %131, i32 noundef 127, i32 noundef 0, i32 noundef %136, i8 noundef signext 121, i32 noundef %137, i32 noundef %148, i32 noundef %151, i32 noundef 0)
  %152 = load ptr, ptr %14, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %152, i32 0, i32 6
  %154 = load i32, ptr %153, align 1, !tbaa !16
  %155 = and i32 %154, 262144
  %156 = icmp ugt i32 %155, 0
  br i1 %156, label %157, label %177

157:                                              ; preds = %147
  %158 = load i32, ptr %21, align 4, !tbaa !9
  %159 = urem i32 %158, 2
  %160 = icmp eq i32 %159, 0
  br i1 %160, label %161, label %177

161:                                              ; preds = %157
  %162 = load ptr, ptr %11, align 8, !tbaa !5
  %163 = load i32, ptr %19, align 4, !tbaa !9
  %164 = load i32, ptr %21, align 4, !tbaa !9
  %165 = zext i32 %164 to i64
  %166 = load i32, ptr %22, align 4, !tbaa !9
  %167 = zext i32 %166 to i64
  %168 = mul nsw i64 %165, %167
  %169 = load i32, ptr %17, align 4, !tbaa !9
  %170 = zext i32 %169 to i64
  %171 = add nsw i64 %168, %170
  %172 = load ptr, ptr %14, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %172, i32 0, i32 10
  %174 = load i64, ptr %173, align 1, !tbaa !19
  %175 = add nsw i64 %171, %174
  %176 = trunc i64 %175 to i32
  call void @libxsmm_x86_instruction_prefetch(ptr noundef %162, i32 noundef -1810624488, i32 noundef %163, i32 noundef 127, i32 noundef 0, i32 noundef %176)
  br label %177

177:                                              ; preds = %161, %157, %147
  %178 = load ptr, ptr %11, align 8, !tbaa !5
  %179 = load ptr, ptr %13, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %179, i32 0, i32 21
  %181 = load i8, ptr %180, align 4, !tbaa !20
  %182 = load i32, ptr %27, align 4, !tbaa !9
  %183 = load ptr, ptr %13, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %183, i32 0, i32 67
  %185 = load i32, ptr %184, align 4, !tbaa !21
  %186 = load i32, ptr %26, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_compute_3reg_mask_sae_imm8(ptr noundef %178, i32 noundef -268097923, i8 noundef signext %181, i32 noundef %182, i32 noundef %185, i32 noundef %186, i32 noundef 0, i32 noundef 0, i8 noundef zeroext 0, i32 noundef 1024)
  %187 = load i32, ptr %28, align 4, !tbaa !9
  %188 = icmp ne i32 %187, 0
  br i1 %188, label %189, label %196

189:                                              ; preds = %177
  %190 = load ptr, ptr %11, align 8, !tbaa !5
  %191 = load ptr, ptr %13, 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 !20
  %194 = load i32, ptr %26, align 4, !tbaa !9
  %195 = load i32, ptr %27, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_compute_3reg_mask_sae_imm8(ptr noundef %190, i32 noundef -401785541, i8 noundef signext %193, i32 noundef %194, i32 noundef 255, i32 noundef %195, i32 noundef 0, i32 noundef 0, i8 noundef zeroext 0, i32 noundef 1)
  br label %196

196:                                              ; preds = %189, %177
  %197 = load ptr, ptr %14, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %197, i32 0, i32 8
  %199 = getelementptr inbounds [3 x i8], ptr %198, i64 0, i64 0
  %200 = call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef %199)
  %201 = icmp eq i32 3, %200
  br i1 %201, label %202, label %231

202:                                              ; preds = %196
  %203 = load ptr, ptr %11, align 8, !tbaa !5
  %204 = load ptr, ptr %13, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %204, i32 0, i32 21
  %206 = load i8, ptr %205, align 4, !tbaa !20
  %207 = load i32, ptr %26, align 4, !tbaa !9
  %208 = load i32, ptr %26, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_compute_2reg(ptr noundef %203, i32 noundef 537208112, i8 noundef signext %206, i32 noundef %207, i32 noundef %208)
  %209 = load ptr, ptr %11, align 8, !tbaa !5
  %210 = load ptr, ptr %13, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %210, i32 0, i32 21
  %212 = load i8, ptr %211, align 4, !tbaa !20
  %213 = load i32, ptr %26, align 4, !tbaa !9
  %214 = load i32, ptr %26, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_compute_2reg_imm8(ptr noundef %209, i32 noundef 611128945, i8 noundef signext %212, i32 noundef %213, i32 noundef %214, i32 noundef 8)
  %215 = load i32, ptr %28, align 4, !tbaa !9
  %216 = icmp ne i32 %215, 0
  br i1 %216, label %217, label %230

217:                                              ; preds = %202
  %218 = load ptr, ptr %11, align 8, !tbaa !5
  %219 = load ptr, ptr %13, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %219, i32 0, i32 21
  %221 = load i8, ptr %220, align 4, !tbaa !20
  %222 = load i32, ptr %27, align 4, !tbaa !9
  %223 = load i32, ptr %27, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_compute_2reg(ptr noundef %218, i32 noundef 537208112, i8 noundef signext %221, i32 noundef %222, i32 noundef %223)
  %224 = load ptr, ptr %11, align 8, !tbaa !5
  %225 = load ptr, ptr %13, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %225, i32 0, i32 21
  %227 = load i8, ptr %226, align 4, !tbaa !20
  %228 = load i32, ptr %27, align 4, !tbaa !9
  %229 = load i32, ptr %27, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_compute_2reg_imm8(ptr noundef %224, i32 noundef 611128945, i8 noundef signext %227, i32 noundef %228, i32 noundef %229, i32 noundef 8)
  br label %230

230:                                              ; preds = %217, %202
  br label %296

231:                                              ; preds = %196
  %232 = load ptr, ptr %11, align 8, !tbaa !5
  %233 = load ptr, ptr %13, 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 !20
  %236 = load i32, ptr %26, align 4, !tbaa !9
  %237 = load i32, ptr %26, align 4, !tbaa !9
  %238 = load ptr, ptr %13, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %238, i32 0, i32 80
  %240 = load i32, ptr %239, align 8, !tbaa !22
  %241 = load ptr, ptr %13, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %241, i32 0, i32 81
  %243 = load i32, ptr %242, align 4, !tbaa !23
  %244 = load ptr, ptr %13, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %244, i32 0, i32 82
  %246 = load i32, ptr %245, align 8, !tbaa !24
  %247 = load ptr, ptr %13, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %247, i32 0, i32 83
  %249 = load i32, ptr %248, align 4, !tbaa !25
  %250 = load ptr, ptr %13, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %250, i32 0, i32 84
  %252 = load i32, ptr %251, align 8, !tbaa !26
  %253 = load ptr, ptr %13, align 8, !tbaa !5
  %254 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %253, i32 0, i32 85
  %255 = load i32, ptr %254, align 4, !tbaa !27
  %256 = load ptr, ptr %13, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %256, i32 0, i32 86
  %258 = load i32, ptr %257, align 8, !tbaa !28
  %259 = load ptr, ptr %13, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %259, i32 0, i32 87
  %261 = load i32, ptr %260, align 4, !tbaa !29
  call void @libxsmm_generator_cvt_8bit_to_16bit_lut_prepped_regs_avx512(ptr noundef %232, i8 noundef signext %235, i32 noundef %236, i32 noundef %237, i32 noundef %240, i32 noundef %243, i32 noundef %246, i32 noundef %249, i32 noundef %252, i32 noundef %255, i32 noundef %258, i32 noundef %261)
  %262 = load i32, ptr %28, align 4, !tbaa !9
  %263 = icmp ne i32 %262, 0
  br i1 %263, label %264, label %295

264:                                              ; preds = %231
  %265 = load ptr, ptr %11, align 8, !tbaa !5
  %266 = load ptr, ptr %13, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %266, i32 0, i32 21
  %268 = load i8, ptr %267, align 4, !tbaa !20
  %269 = load i32, ptr %27, align 4, !tbaa !9
  %270 = load i32, ptr %27, align 4, !tbaa !9
  %271 = load ptr, ptr %13, align 8, !tbaa !5
  %272 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %271, i32 0, i32 80
  %273 = load i32, ptr %272, align 8, !tbaa !22
  %274 = load ptr, ptr %13, align 8, !tbaa !5
  %275 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %274, i32 0, i32 81
  %276 = load i32, ptr %275, align 4, !tbaa !23
  %277 = load ptr, ptr %13, align 8, !tbaa !5
  %278 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %277, i32 0, i32 82
  %279 = load i32, ptr %278, align 8, !tbaa !24
  %280 = load ptr, ptr %13, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %280, i32 0, i32 83
  %282 = load i32, ptr %281, align 4, !tbaa !25
  %283 = load ptr, ptr %13, align 8, !tbaa !5
  %284 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %283, i32 0, i32 84
  %285 = load i32, ptr %284, align 8, !tbaa !26
  %286 = load ptr, ptr %13, align 8, !tbaa !5
  %287 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %286, i32 0, i32 85
  %288 = load i32, ptr %287, align 4, !tbaa !27
  %289 = load ptr, ptr %13, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %289, i32 0, i32 86
  %291 = load i32, ptr %290, align 8, !tbaa !28
  %292 = load ptr, ptr %13, align 8, !tbaa !5
  %293 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %292, i32 0, i32 87
  %294 = load i32, ptr %293, align 4, !tbaa !29
  call void @libxsmm_generator_cvt_8bit_to_16bit_lut_prepped_regs_avx512(ptr noundef %265, i8 noundef signext %268, i32 noundef %269, i32 noundef %270, i32 noundef %273, i32 noundef %276, i32 noundef %279, i32 noundef %282, i32 noundef %285, i32 noundef %288, i32 noundef %291, i32 noundef %294)
  br label %295

295:                                              ; preds = %264, %231
  br label %296

296:                                              ; preds = %295, %230
  %297 = load ptr, ptr %11, align 8, !tbaa !5
  %298 = load ptr, ptr %13, align 8, !tbaa !5
  %299 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %298, i32 0, i32 0
  %300 = load i32, ptr %299, align 8, !tbaa !30
  %301 = load i32, ptr %20, align 4, !tbaa !9
  %302 = load i32, ptr %21, align 4, !tbaa !9
  %303 = load i32, ptr %22, align 4, !tbaa !9
  %304 = mul i32 %302, %303
  %305 = mul i32 %304, 4
  %306 = load ptr, ptr %13, align 8, !tbaa !5
  %307 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %306, i32 0, i32 21
  %308 = load i8, ptr %307, align 4, !tbaa !20
  %309 = load i32, ptr %26, align 4, !tbaa !9
  %310 = load i32, ptr %21, align 4, !tbaa !9
  %311 = load i32, ptr %23, align 4, !tbaa !9
  %312 = sub i32 %311, 1
  %313 = icmp eq i32 %310, %312
  br i1 %313, label %314, label %321

314:                                              ; preds = %296
  %315 = load i32, ptr %28, align 4, !tbaa !9
  %316 = icmp eq i32 %315, 0
  br i1 %316, label %317, label %321

317:                                              ; preds = %314
  %318 = load ptr, ptr %13, align 8, !tbaa !5
  %319 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %318, i32 0, i32 75
  %320 = load i32, ptr %319, align 4, !tbaa !31
  br label %322

321:                                              ; preds = %314, %296
  br label %322

322:                                              ; preds = %321, %317
  %323 = phi i32 [ %320, %317 ], [ 0, %321 ]
  call void @libxsmm_x86_instruction_vec_move(ptr noundef %297, i32 noundef %300, i32 noundef 537138704, i32 noundef %301, i32 noundef 127, i32 noundef 0, i32 noundef %305, i8 noundef signext %308, i32 noundef %309, i32 noundef %323, i32 noundef 0, i32 noundef 1)
  %324 = load i32, ptr %28, align 4, !tbaa !9
  %325 = icmp ne i32 %324, 0
  br i1 %325, label %326, label %352

326:                                              ; preds = %322
  %327 = load ptr, ptr %11, align 8, !tbaa !5
  %328 = load ptr, ptr %13, align 8, !tbaa !5
  %329 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %328, i32 0, i32 0
  %330 = load i32, ptr %329, align 8, !tbaa !30
  %331 = load i32, ptr %20, align 4, !tbaa !9
  %332 = load i32, ptr %21, align 4, !tbaa !9
  %333 = load i32, ptr %22, align 4, !tbaa !9
  %334 = mul i32 %332, %333
  %335 = mul i32 %334, 4
  %336 = add i32 %335, 64
  %337 = load ptr, ptr %13, align 8, !tbaa !5
  %338 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %337, i32 0, i32 21
  %339 = load i8, ptr %338, align 4, !tbaa !20
  %340 = load i32, ptr %27, align 4, !tbaa !9
  %341 = load i32, ptr %21, align 4, !tbaa !9
  %342 = load i32, ptr %23, align 4, !tbaa !9
  %343 = sub i32 %342, 1
  %344 = icmp eq i32 %341, %343
  br i1 %344, label %345, label %349

345:                                              ; preds = %326
  %346 = load ptr, ptr %13, align 8, !tbaa !5
  %347 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %346, i32 0, i32 75
  %348 = load i32, ptr %347, align 4, !tbaa !31
  br label %350

349:                                              ; preds = %326
  br label %350

350:                                              ; preds = %349, %345
  %351 = phi i32 [ %348, %345 ], [ 0, %349 ]
  call void @libxsmm_x86_instruction_vec_move(ptr noundef %327, i32 noundef %330, i32 noundef 537138704, i32 noundef %331, i32 noundef 127, i32 noundef 0, i32 noundef %336, i8 noundef signext %339, i32 noundef %340, i32 noundef %351, i32 noundef 0, i32 noundef 1)
  br label %352

352:                                              ; preds = %350, %322
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #3
  br label %353

353:                                              ; preds = %352
  %354 = load i32, ptr %21, align 4, !tbaa !9
  %355 = add i32 %354, 1
  store i32 %355, ptr %21, align 4, !tbaa !9
  br label %44, !llvm.loop !32

356:                                              ; preds = %44
  %357 = load ptr, ptr %11, align 8, !tbaa !5
  %358 = load ptr, ptr %13, align 8, !tbaa !5
  %359 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %358, i32 0, i32 16
  %360 = load i32, ptr %359, align 8, !tbaa !34
  %361 = load i32, ptr %19, align 4, !tbaa !9
  %362 = load i32, ptr %17, align 4, !tbaa !9
  %363 = zext i32 %362 to i64
  %364 = mul nsw i64 %363, 2
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %357, i32 noundef %360, i32 noundef %361, i64 noundef %364)
  %365 = load ptr, ptr %11, align 8, !tbaa !5
  %366 = load ptr, ptr %13, align 8, !tbaa !5
  %367 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %366, i32 0, i32 16
  %368 = load i32, ptr %367, align 8, !tbaa !34
  %369 = load i32, ptr %20, align 4, !tbaa !9
  %370 = load i32, ptr %18, align 4, !tbaa !9
  %371 = zext i32 %370 to i64
  %372 = mul nsw i64 %371, 4
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %365, i32 noundef %368, i32 noundef %369, i64 noundef %372)
  %373 = load ptr, ptr %11, align 8, !tbaa !5
  %374 = load ptr, ptr %12, align 8, !tbaa !5
  %375 = load ptr, ptr %13, align 8, !tbaa !5
  %376 = load i32, ptr %25, align 4, !tbaa !9
  %377 = load i32, ptr %16, align 4, !tbaa !9
  %378 = udiv i32 %377, 2
  call void @libxsmm_generator_gemm_footer_dequant_loop_amx(ptr noundef %373, ptr noundef %374, ptr noundef %375, i32 noundef %376, i32 noundef %378)
  %379 = load ptr, ptr %11, align 8, !tbaa !5
  %380 = load i32, ptr %25, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_pop_reg(ptr noundef %379, i32 noundef %380)
  %381 = load ptr, ptr %11, align 8, !tbaa !5
  %382 = load ptr, ptr %13, align 8, !tbaa !5
  %383 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %382, i32 0, i32 17
  %384 = load i32, ptr %383, align 4, !tbaa !35
  %385 = load i32, ptr %19, align 4, !tbaa !9
  %386 = load i32, ptr %17, align 4, !tbaa !9
  %387 = zext i32 %386 to i64
  %388 = load i32, ptr %16, align 4, !tbaa !9
  %389 = zext i32 %388 to i64
  %390 = mul nsw i64 %387, %389
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %381, i32 noundef %384, i32 noundef %385, i64 noundef %390)
  %391 = load ptr, ptr %11, align 8, !tbaa !5
  %392 = load ptr, ptr %13, align 8, !tbaa !5
  %393 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %392, i32 0, i32 17
  %394 = load i32, ptr %393, align 4, !tbaa !35
  %395 = load i32, ptr %20, align 4, !tbaa !9
  %396 = load i32, ptr %18, align 4, !tbaa !9
  %397 = zext i32 %396 to i64
  %398 = mul nsw i64 %397, 2
  %399 = load i32, ptr %16, align 4, !tbaa !9
  %400 = zext i32 %399 to i64
  %401 = mul nsw i64 %398, %400
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %391, i32 noundef %394, i32 noundef %395, i64 noundef %401)
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #3
  ret void
}

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

declare void @libxsmm_x86_instruction_prefetch(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #0

declare void @libxsmm_x86_instruction_vec_compute_3reg_mask_sae_imm8(ptr noundef, i32 noundef, i8 noundef signext, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i8 noundef zeroext, i32 noundef) #0

declare i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef) #0

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

declare void @libxsmm_generator_cvt_8bit_to_16bit_lut_prepped_regs_avx512(ptr noundef, i8 noundef signext, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #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) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 172}
!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 = !{!12, !10, i64 292}
!16 = !{!17, !10, i64 24}
!17 = !{!"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, !18, i64 33, !18, 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}
!18 = !{!"long long", !7, i64 0}
!19 = !{!17, !18, i64 33}
!20 = !{!12, !7, i64 84}
!21 = !{!12, !10, i64 268}
!22 = !{!12, !10, i64 320}
!23 = !{!12, !10, i64 324}
!24 = !{!12, !10, i64 328}
!25 = !{!12, !10, i64 332}
!26 = !{!12, !10, i64 336}
!27 = !{!12, !10, i64 340}
!28 = !{!12, !10, i64 344}
!29 = !{!12, !10, i64 348}
!30 = !{!12, !10, i64 0}
!31 = !{!12, !10, i64 300}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}
!34 = !{!12, !10, i64 64}
!35 = !{!12, !10, i64 68}


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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @libxsmm_generator_gemm_header_dequant_loop_amx(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @libxsmm_generator_gemm_footer_dequant_loop_amx(ptr noundef, ptr noundef, ptr noundef, 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 #0

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_gemm_convert_KxM_bf8_to_f16_vnni2(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8, i32 noundef %9) local_unnamed_addr #1 {
  %11 = add i32 %4, 31
  %12 = getelementptr inbounds i8, ptr %2, i64 172
  %13 = load i32, ptr %12, align 4, !tbaa !5
  tail call void @libxsmm_x86_instruction_push_reg(ptr noundef %0, i32 noundef 11) #2
  tail call void @libxsmm_generator_gemm_header_dequant_loop_amx(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef 11)
  %.not172 = icmp ult i32 %11, 32
  br i1 %.not172, label %.._crit_edge_crit_edge, label %.lr.ph

.._crit_edge_crit_edge:                           ; preds = %10
  %.pre175 = zext i32 %6 to i64
  br label %._crit_edge

.lr.ph:                                           ; preds = %10
  %14 = lshr i32 %11, 5
  %15 = sub i32 32, %13
  %16 = add nsw i32 %14, -1
  %17 = getelementptr inbounds i8, ptr %2, i64 292
  %18 = getelementptr inbounds i8, ptr %3, i64 24
  %19 = getelementptr inbounds i8, ptr %3, i64 33
  %20 = zext i32 %6 to i64
  %21 = getelementptr inbounds i8, ptr %2, i64 84
  %22 = getelementptr inbounds i8, ptr %2, i64 268
  %23 = getelementptr inbounds i8, ptr %3, i64 29
  %24 = getelementptr inbounds i8, ptr %2, i64 320
  %25 = getelementptr inbounds i8, ptr %2, i64 324
  %26 = getelementptr inbounds i8, ptr %2, i64 328
  %27 = getelementptr inbounds i8, ptr %2, i64 332
  %28 = getelementptr inbounds i8, ptr %2, i64 336
  %29 = getelementptr inbounds i8, ptr %2, i64 340
  %30 = getelementptr inbounds i8, ptr %2, i64 344
  %31 = getelementptr inbounds i8, ptr %2, i64 348
  %32 = getelementptr inbounds i8, ptr %2, i64 300
  %33 = zext nneg i32 %16 to i64
  %wide.trip.count = zext nneg i32 %14 to i64
  br label %34

34:                                               ; preds = %.lr.ph, %119
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %119 ]
  %indvars173 = trunc i64 %indvars.iv to i32
  %35 = urem i32 %indvars173, %15
  %36 = add i32 %35, %13
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %37 = trunc nuw nsw i64 %indvars.iv.next to i32
  %38 = urem i32 %37, %15
  %39 = add i32 %38, %13
  %40 = icmp ult i64 %indvars.iv, %33
  br i1 %40, label %47, label %41

41:                                               ; preds = %34
  %42 = icmp eq i64 %indvars.iv, %33
  br i1 %42, label %43, label %47

43:                                               ; preds = %41
  %44 = shl nuw i32 %indvars173, 5
  %45 = sub i32 %4, %44
  %46 = icmp ugt i32 %45, 16
  br label %47

47:                                               ; preds = %41, %43, %34
  %48 = phi i1 [ true, %34 ], [ false, %41 ], [ %46, %43 ]
  %49 = shl nuw i64 %indvars.iv, 5
  %50 = icmp ne i64 %indvars.iv, %33
  %.pre = load i32, ptr %17, align 4, !tbaa !13
  %spec.select = select i1 %50, i32 0, i32 %.pre
  %51 = trunc nuw i64 %49 to i32
  tail call void @libxsmm_x86_instruction_unified_vec_move(ptr noundef %0, i32 noundef -536406417, i32 noundef %8, i32 noundef 127, i32 noundef 0, i32 noundef %51, i8 noundef signext 121, i32 noundef %36, i32 noundef %spec.select, i32 noundef %.pre, i32 noundef 0) #2
  %52 = load i32, ptr %18, align 1, !tbaa !14
  %53 = and i32 %52, 262144
  %.not = icmp ne i32 %53, 0
  %54 = and i32 %indvars173, 1
  %55 = icmp eq i32 %54, 0
  %or.cond = and i1 %55, %.not
  br i1 %or.cond, label %56, label %60

56:                                               ; preds = %47
  %57 = load i64, ptr %19, align 1, !tbaa !17
  %58 = add nsw i64 %57, %49
  %59 = trunc i64 %58 to i32
  tail call void @libxsmm_x86_instruction_prefetch(ptr noundef %0, i32 noundef -1810624488, i32 noundef %8, i32 noundef 127, i32 noundef 0, i32 noundef %59) #2
  br label %60

60:                                               ; preds = %56, %47
  %61 = add i32 %51, %6
  %.pre174 = load i32, ptr %17, align 4, !tbaa !13
  %spec.select176 = select i1 %50, i32 0, i32 %.pre174
  tail call void @libxsmm_x86_instruction_unified_vec_move(ptr noundef %0, i32 noundef -536406417, i32 noundef %8, i32 noundef 127, i32 noundef 0, i32 noundef %61, i8 noundef signext 121, i32 noundef %39, i32 noundef %spec.select176, i32 noundef %.pre174, i32 noundef 0) #2
  %62 = load i32, ptr %18, align 1, !tbaa !14
  %63 = and i32 %62, 262144
  %.not163 = icmp ne i32 %63, 0
  %or.cond167 = and i1 %55, %.not163
  br i1 %or.cond167, label %64, label %69

64:                                               ; preds = %60
  %65 = add nuw nsw i64 %49, %20
  %66 = load i64, ptr %19, align 1, !tbaa !17
  %67 = add nsw i64 %65, %66
  %68 = trunc i64 %67 to i32
  tail call void @libxsmm_x86_instruction_prefetch(ptr noundef %0, i32 noundef -1810624488, i32 noundef %8, i32 noundef 127, i32 noundef 0, i32 noundef %68) #2
  br label %69

69:                                               ; preds = %64, %60
  %70 = load i8, ptr %21, align 4, !tbaa !18
  %71 = load i32, ptr %22, align 4, !tbaa !19
  tail call void @libxsmm_x86_instruction_vec_compute_3reg_mask_sae_imm8(ptr noundef %0, i32 noundef -268097923, i8 noundef signext %70, i32 noundef %39, i32 noundef %71, i32 noundef %36, i32 noundef 0, i32 noundef 0, i8 noundef zeroext 0, i32 noundef 1024) #2
  br i1 %48, label %72, label %74

72:                                               ; preds = %69
  %73 = load i8, ptr %21, align 4, !tbaa !18
  tail call void @libxsmm_x86_instruction_vec_compute_3reg_mask_sae_imm8(ptr noundef %0, i32 noundef -401785541, i8 noundef signext %73, i32 noundef %36, i32 noundef 255, i32 noundef %39, i32 noundef 0, i32 noundef 0, i8 noundef zeroext 0, i32 noundef 1) #2
  br label %74

74:                                               ; preds = %72, %69
  %75 = tail call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef nonnull %23) #2
  %76 = icmp eq i32 %75, 3
  %77 = load i8, ptr %21, align 4, !tbaa !18
  br i1 %76, label %78, label %83

78:                                               ; preds = %74
  tail call void @libxsmm_x86_instruction_vec_compute_2reg(ptr noundef %0, i32 noundef 537208112, i8 noundef signext %77, i32 noundef %36, i32 noundef %36) #2
  %79 = load i8, ptr %21, align 4, !tbaa !18
  tail call void @libxsmm_x86_instruction_vec_compute_2reg_imm8(ptr noundef %0, i32 noundef 611128945, i8 noundef signext %79, i32 noundef %36, i32 noundef %36, i32 noundef 8) #2
  br i1 %48, label %80, label %102

80:                                               ; preds = %78
  %81 = load i8, ptr %21, align 4, !tbaa !18
  tail call void @libxsmm_x86_instruction_vec_compute_2reg(ptr noundef %0, i32 noundef 537208112, i8 noundef signext %81, i32 noundef %39, i32 noundef %39) #2
  %82 = load i8, ptr %21, align 4, !tbaa !18
  tail call void @libxsmm_x86_instruction_vec_compute_2reg_imm8(ptr noundef %0, i32 noundef 611128945, i8 noundef signext %82, i32 noundef %39, i32 noundef %39, i32 noundef 8) #2
  br label %108

83:                                               ; preds = %74
  %84 = load i32, ptr %24, align 8, !tbaa !20
  %85 = load i32, ptr %25, align 4, !tbaa !21
  %86 = load i32, ptr %26, align 8, !tbaa !22
  %87 = load i32, ptr %27, align 4, !tbaa !23
  %88 = load i32, ptr %28, align 8, !tbaa !24
  %89 = load i32, ptr %29, align 4, !tbaa !25
  %90 = load i32, ptr %30, align 8, !tbaa !26
  %91 = load i32, ptr %31, align 4, !tbaa !27
  tail call void @libxsmm_generator_cvt_8bit_to_16bit_lut_prepped_regs_avx512(ptr noundef %0, i8 noundef signext %77, i32 noundef %36, i32 noundef %36, i32 noundef %84, i32 noundef %85, i32 noundef %86, i32 noundef %87, i32 noundef %88, i32 noundef %89, i32 noundef %90, i32 noundef %91) #2
  br i1 %48, label %92, label %102

92:                                               ; preds = %83
  %93 = load i8, ptr %21, align 4, !tbaa !18
  %94 = load i32, ptr %24, align 8, !tbaa !20
  %95 = load i32, ptr %25, align 4, !tbaa !21
  %96 = load i32, ptr %26, align 8, !tbaa !22
  %97 = load i32, ptr %27, align 4, !tbaa !23
  %98 = load i32, ptr %28, align 8, !tbaa !24
  %99 = load i32, ptr %29, align 4, !tbaa !25
  %100 = load i32, ptr %30, align 8, !tbaa !26
  %101 = load i32, ptr %31, align 4, !tbaa !27
  tail call void @libxsmm_generator_cvt_8bit_to_16bit_lut_prepped_regs_avx512(ptr noundef %0, i8 noundef signext %93, i32 noundef %39, i32 noundef %39, i32 noundef %94, i32 noundef %95, i32 noundef %96, i32 noundef %97, i32 noundef %98, i32 noundef %99, i32 noundef %100, i32 noundef %101) #2
  br label %108

102:                                              ; preds = %83, %78
  %103 = load i32, ptr %2, align 8, !tbaa !28
  %104 = shl i32 %indvars173, 7
  %105 = load i8, ptr %21, align 4, !tbaa !18
  %or.cond.not = select i1 %50, i1 true, i1 %48
  br i1 %or.cond.not, label %.thread170, label %106

106:                                              ; preds = %102
  %107 = load i32, ptr %32, align 4, !tbaa !29
  br label %.thread170

.thread170:                                       ; preds = %102, %106
  %.ph = phi i32 [ 0, %102 ], [ %107, %106 ]
  tail call void @libxsmm_x86_instruction_vec_move(ptr noundef %0, i32 noundef %103, i32 noundef 537138704, i32 noundef %9, i32 noundef 127, i32 noundef 0, i32 noundef %104, i8 noundef signext %105, i32 noundef %36, i32 noundef %.ph, i32 noundef 0, i32 noundef 1) #2
  br label %119

108:                                              ; preds = %80, %92
  %109 = load i32, ptr %2, align 8, !tbaa !28
  %110 = shl i32 %indvars173, 7
  %111 = load i8, ptr %21, align 4, !tbaa !18
  tail call void @libxsmm_x86_instruction_vec_move(ptr noundef %0, i32 noundef %109, i32 noundef 537138704, i32 noundef %9, i32 noundef 127, i32 noundef 0, i32 noundef %110, i8 noundef signext %111, i32 noundef %36, i32 noundef 0, i32 noundef 0, i32 noundef 1) #2
  %112 = load i32, ptr %2, align 8, !tbaa !28
  %113 = or disjoint i32 %110, 64
  %114 = load i8, ptr %21, align 4, !tbaa !18
  br i1 %50, label %117, label %115

115:                                              ; preds = %108
  %116 = load i32, ptr %32, align 4, !tbaa !29
  br label %117

117:                                              ; preds = %108, %115
  %118 = phi i32 [ %116, %115 ], [ 0, %108 ]
  tail call void @libxsmm_x86_instruction_vec_move(ptr noundef %0, i32 noundef %112, i32 noundef 537138704, i32 noundef %9, i32 noundef 127, i32 noundef 0, i32 noundef %113, i8 noundef signext %114, i32 noundef %39, i32 noundef %118, i32 noundef 0, i32 noundef 1) #2
  br label %119

119:                                              ; preds = %.thread170, %117
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %34, !llvm.loop !30

._crit_edge:                                      ; preds = %119, %.._crit_edge_crit_edge
  %.pre-phi = phi i64 [ %.pre175, %.._crit_edge_crit_edge ], [ %20, %119 ]
  %120 = getelementptr inbounds i8, ptr %2, i64 64
  %121 = load i32, ptr %120, align 8, !tbaa !32
  %122 = shl nuw nsw i64 %.pre-phi, 1
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef %121, i32 noundef %8, i64 noundef %122) #2
  %123 = load i32, ptr %120, align 8, !tbaa !32
  %124 = zext i32 %7 to i64
  %125 = shl nuw nsw i64 %124, 2
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef %123, i32 noundef %9, i64 noundef %125) #2
  %126 = lshr i32 %5, 1
  tail call void @libxsmm_generator_gemm_footer_dequant_loop_amx(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %2, i32 noundef 11, i32 noundef %126)
  tail call void @libxsmm_x86_instruction_pop_reg(ptr noundef %0, i32 noundef 11) #2
  %127 = getelementptr inbounds i8, ptr %2, i64 68
  %128 = load i32, ptr %127, align 4, !tbaa !33
  %129 = zext i32 %5 to i64
  %130 = mul nuw nsw i64 %.pre-phi, %129
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef %128, i32 noundef %8, i64 noundef %130) #2
  %131 = load i32, ptr %127, align 4, !tbaa !33
  %132 = shl nuw nsw i64 %129, 1
  %133 = mul i64 %132, %124
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef %131, i32 noundef %9, i64 noundef %133) #2
  ret void
}

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_prefetch(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

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

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

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

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 172}
!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 = !{!6, !7, i64 292}
!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 = !{!15, !16, i64 33}
!18 = !{!6, !8, i64 84}
!19 = !{!6, !7, i64 268}
!20 = !{!6, !7, i64 320}
!21 = !{!6, !7, i64 324}
!22 = !{!6, !7, i64 328}
!23 = !{!6, !7, i64 332}
!24 = !{!6, !7, i64 336}
!25 = !{!6, !7, i64 340}
!26 = !{!6, !7, i64 344}
!27 = !{!6, !7, i64 348}
!28 = !{!6, !7, i64 0}
!29 = !{!6, !7, i64 300}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = !{!6, !7, i64 64}
!33 = !{!6, !7, i64 68}


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