; 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

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_gemm_convert_KxM_bf8_to_f16_flat(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 64, 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 = %295, %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 %298

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 ptr, ptr %13, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %92, i32 0, i32 21
  %94 = load i8, ptr %93, align 4, !tbaa !15
  %95 = load i32, ptr %26, align 4, !tbaa !9
  %96 = load i32, ptr %21, align 4, !tbaa !9
  %97 = load i32, ptr %23, align 4, !tbaa !9
  %98 = sub i32 %97, 1
  %99 = icmp eq i32 %96, %98
  br i1 %99, label %100, label %104

100:                                              ; preds = %83
  %101 = load ptr, ptr %13, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %101, i32 0, i32 74
  %103 = load i32, ptr %102, align 8, !tbaa !16
  br label %105

104:                                              ; preds = %83
  br label %105

105:                                              ; preds = %104, %100
  %106 = phi i32 [ %103, %100 ], [ 0, %104 ]
  %107 = load ptr, ptr %13, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %107, i32 0, i32 74
  %109 = load i32, ptr %108, align 8, !tbaa !16
  call void @libxsmm_x86_instruction_unified_vec_move(ptr noundef %87, i32 noundef -528017809, i32 noundef %88, i32 noundef 127, i32 noundef 0, i32 noundef %91, i8 noundef signext %94, i32 noundef %95, i32 noundef %106, i32 noundef %109, i32 noundef 0)
  %110 = load ptr, ptr %14, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %110, i32 0, i32 6
  %112 = load i32, ptr %111, align 1, !tbaa !17
  %113 = and i32 %112, 262144
  %114 = icmp ugt i32 %113, 0
  br i1 %114, label %115, label %128

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

128:                                              ; preds = %115, %105
  %129 = load i32, ptr %28, align 4, !tbaa !9
  %130 = icmp ne i32 %129, 0
  br i1 %130, label %131, label %138

131:                                              ; preds = %128
  %132 = load ptr, ptr %11, align 8, !tbaa !5
  %133 = load ptr, ptr %13, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %133, i32 0, i32 21
  %135 = load i8, ptr %134, align 4, !tbaa !15
  %136 = load i32, ptr %26, align 4, !tbaa !9
  %137 = load i32, ptr %27, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_compute_3reg_mask_sae_imm8(ptr noundef %132, i32 noundef -401785541, i8 noundef signext %135, i32 noundef %136, i32 noundef 255, i32 noundef %137, i32 noundef 0, i32 noundef 0, i8 noundef zeroext 0, i32 noundef 1)
  br label %138

138:                                              ; preds = %131, %128
  %139 = load ptr, ptr %14, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %139, i32 0, i32 8
  %141 = getelementptr inbounds [3 x i8], ptr %140, i64 0, i64 0
  %142 = call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef %141)
  %143 = icmp eq i32 3, %142
  br i1 %143, label %144, label %173

144:                                              ; preds = %138
  %145 = load ptr, ptr %11, align 8, !tbaa !5
  %146 = load ptr, ptr %13, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %146, i32 0, i32 21
  %148 = load i8, ptr %147, align 4, !tbaa !15
  %149 = load i32, ptr %26, align 4, !tbaa !9
  %150 = load i32, ptr %26, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_compute_2reg(ptr noundef %145, i32 noundef 537208112, i8 noundef signext %148, i32 noundef %149, i32 noundef %150)
  %151 = load ptr, ptr %11, align 8, !tbaa !5
  %152 = load ptr, ptr %13, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %152, i32 0, i32 21
  %154 = load i8, ptr %153, align 4, !tbaa !15
  %155 = load i32, ptr %26, align 4, !tbaa !9
  %156 = load i32, ptr %26, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_compute_2reg_imm8(ptr noundef %151, i32 noundef 611128945, i8 noundef signext %154, i32 noundef %155, i32 noundef %156, i32 noundef 8)
  %157 = load i32, ptr %28, align 4, !tbaa !9
  %158 = icmp ne i32 %157, 0
  br i1 %158, label %159, label %172

159:                                              ; preds = %144
  %160 = load ptr, ptr %11, align 8, !tbaa !5
  %161 = load ptr, ptr %13, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %161, i32 0, i32 21
  %163 = load i8, ptr %162, align 4, !tbaa !15
  %164 = load i32, ptr %27, align 4, !tbaa !9
  %165 = load i32, ptr %27, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_compute_2reg(ptr noundef %160, i32 noundef 537208112, i8 noundef signext %163, i32 noundef %164, i32 noundef %165)
  %166 = load ptr, ptr %11, align 8, !tbaa !5
  %167 = load ptr, ptr %13, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %167, i32 0, i32 21
  %169 = load i8, ptr %168, align 4, !tbaa !15
  %170 = load i32, ptr %27, align 4, !tbaa !9
  %171 = load i32, ptr %27, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_compute_2reg_imm8(ptr noundef %166, i32 noundef 611128945, i8 noundef signext %169, i32 noundef %170, i32 noundef %171, i32 noundef 8)
  br label %172

172:                                              ; preds = %159, %144
  br label %238

173:                                              ; preds = %138
  %174 = load ptr, ptr %11, align 8, !tbaa !5
  %175 = load ptr, ptr %13, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %175, i32 0, i32 21
  %177 = load i8, ptr %176, align 4, !tbaa !15
  %178 = load i32, ptr %26, align 4, !tbaa !9
  %179 = load i32, ptr %26, align 4, !tbaa !9
  %180 = load ptr, ptr %13, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %180, i32 0, i32 80
  %182 = load i32, ptr %181, align 8, !tbaa !21
  %183 = load ptr, ptr %13, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %183, i32 0, i32 81
  %185 = load i32, ptr %184, align 4, !tbaa !22
  %186 = load ptr, ptr %13, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %186, i32 0, i32 82
  %188 = load i32, ptr %187, align 8, !tbaa !23
  %189 = load ptr, ptr %13, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %189, i32 0, i32 83
  %191 = load i32, ptr %190, align 4, !tbaa !24
  %192 = load ptr, ptr %13, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %192, i32 0, i32 84
  %194 = load i32, ptr %193, align 8, !tbaa !25
  %195 = load ptr, ptr %13, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %195, i32 0, i32 85
  %197 = load i32, ptr %196, align 4, !tbaa !26
  %198 = load ptr, ptr %13, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %198, i32 0, i32 86
  %200 = load i32, ptr %199, align 8, !tbaa !27
  %201 = load ptr, ptr %13, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %201, i32 0, i32 87
  %203 = load i32, ptr %202, align 4, !tbaa !28
  call void @libxsmm_generator_cvt_8bit_to_16bit_lut_prepped_regs_avx512(ptr noundef %174, i8 noundef signext %177, i32 noundef %178, i32 noundef %179, i32 noundef %182, i32 noundef %185, i32 noundef %188, i32 noundef %191, i32 noundef %194, i32 noundef %197, i32 noundef %200, i32 noundef %203)
  %204 = load i32, ptr %28, align 4, !tbaa !9
  %205 = icmp ne i32 %204, 0
  br i1 %205, label %206, label %237

206:                                              ; preds = %173
  %207 = load ptr, ptr %11, align 8, !tbaa !5
  %208 = load ptr, ptr %13, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %208, i32 0, i32 21
  %210 = load i8, ptr %209, align 4, !tbaa !15
  %211 = load i32, ptr %27, align 4, !tbaa !9
  %212 = load i32, ptr %27, align 4, !tbaa !9
  %213 = load ptr, ptr %13, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %213, i32 0, i32 80
  %215 = load i32, ptr %214, align 8, !tbaa !21
  %216 = load ptr, ptr %13, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %216, i32 0, i32 81
  %218 = load i32, ptr %217, align 4, !tbaa !22
  %219 = load ptr, ptr %13, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %219, i32 0, i32 82
  %221 = load i32, ptr %220, align 8, !tbaa !23
  %222 = load ptr, ptr %13, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %222, i32 0, i32 83
  %224 = load i32, ptr %223, align 4, !tbaa !24
  %225 = load ptr, ptr %13, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %225, i32 0, i32 84
  %227 = load i32, ptr %226, align 8, !tbaa !25
  %228 = load ptr, ptr %13, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %228, i32 0, i32 85
  %230 = load i32, ptr %229, align 4, !tbaa !26
  %231 = load ptr, ptr %13, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %231, i32 0, i32 86
  %233 = load i32, ptr %232, align 8, !tbaa !27
  %234 = load ptr, ptr %13, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %234, i32 0, i32 87
  %236 = load i32, ptr %235, align 4, !tbaa !28
  call void @libxsmm_generator_cvt_8bit_to_16bit_lut_prepped_regs_avx512(ptr noundef %207, i8 noundef signext %210, i32 noundef %211, i32 noundef %212, i32 noundef %215, i32 noundef %218, i32 noundef %221, i32 noundef %224, i32 noundef %227, i32 noundef %230, i32 noundef %233, i32 noundef %236)
  br label %237

237:                                              ; preds = %206, %173
  br label %238

238:                                              ; preds = %237, %172
  %239 = load ptr, ptr %11, align 8, !tbaa !5
  %240 = load ptr, ptr %13, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %240, i32 0, i32 0
  %242 = load i32, ptr %241, align 8, !tbaa !29
  %243 = load i32, ptr %20, align 4, !tbaa !9
  %244 = load i32, ptr %21, align 4, !tbaa !9
  %245 = load i32, ptr %22, align 4, !tbaa !9
  %246 = mul i32 %244, %245
  %247 = mul i32 %246, 2
  %248 = load ptr, ptr %13, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %248, i32 0, i32 21
  %250 = load i8, ptr %249, align 4, !tbaa !15
  %251 = load i32, ptr %26, align 4, !tbaa !9
  %252 = load i32, ptr %21, align 4, !tbaa !9
  %253 = load i32, ptr %23, align 4, !tbaa !9
  %254 = sub i32 %253, 1
  %255 = icmp eq i32 %252, %254
  br i1 %255, label %256, label %263

256:                                              ; preds = %238
  %257 = load i32, ptr %28, align 4, !tbaa !9
  %258 = icmp eq i32 %257, 0
  br i1 %258, label %259, label %263

259:                                              ; preds = %256
  %260 = load ptr, ptr %13, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %260, i32 0, i32 76
  %262 = load i32, ptr %261, align 8, !tbaa !30
  br label %264

263:                                              ; preds = %256, %238
  br label %264

264:                                              ; preds = %263, %259
  %265 = phi i32 [ %262, %259 ], [ 0, %263 ]
  call void @libxsmm_x86_instruction_vec_move(ptr noundef %239, i32 noundef %242, i32 noundef 537138704, i32 noundef %243, i32 noundef 127, i32 noundef 0, i32 noundef %247, i8 noundef signext %250, i32 noundef %251, i32 noundef %265, i32 noundef 0, i32 noundef 1)
  %266 = load i32, ptr %28, align 4, !tbaa !9
  %267 = icmp ne i32 %266, 0
  br i1 %267, label %268, label %294

268:                                              ; preds = %264
  %269 = load ptr, ptr %11, align 8, !tbaa !5
  %270 = load ptr, ptr %13, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %270, i32 0, i32 0
  %272 = load i32, ptr %271, align 8, !tbaa !29
  %273 = load i32, ptr %20, align 4, !tbaa !9
  %274 = load i32, ptr %21, align 4, !tbaa !9
  %275 = load i32, ptr %22, align 4, !tbaa !9
  %276 = mul i32 %274, %275
  %277 = mul i32 %276, 2
  %278 = add i32 %277, 64
  %279 = load ptr, ptr %13, align 8, !tbaa !5
  %280 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %279, i32 0, i32 21
  %281 = load i8, ptr %280, align 4, !tbaa !15
  %282 = load i32, ptr %27, align 4, !tbaa !9
  %283 = load i32, ptr %21, align 4, !tbaa !9
  %284 = load i32, ptr %23, align 4, !tbaa !9
  %285 = sub i32 %284, 1
  %286 = icmp eq i32 %283, %285
  br i1 %286, label %287, label %291

287:                                              ; preds = %268
  %288 = load ptr, ptr %13, align 8, !tbaa !5
  %289 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %288, i32 0, i32 76
  %290 = load i32, ptr %289, align 8, !tbaa !30
  br label %292

291:                                              ; preds = %268
  br label %292

292:                                              ; preds = %291, %287
  %293 = phi i32 [ %290, %287 ], [ 0, %291 ]
  call void @libxsmm_x86_instruction_vec_move(ptr noundef %269, i32 noundef %272, i32 noundef 537138704, i32 noundef %273, i32 noundef 127, i32 noundef 0, i32 noundef %278, i8 noundef signext %281, i32 noundef %282, i32 noundef %293, i32 noundef 0, i32 noundef 1)
  br label %294

294:                                              ; preds = %292, %264
  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 %295

295:                                              ; preds = %294
  %296 = load i32, ptr %21, align 4, !tbaa !9
  %297 = add i32 %296, 1
  store i32 %297, ptr %21, align 4, !tbaa !9
  br label %44, !llvm.loop !31

298:                                              ; preds = %44
  %299 = load ptr, ptr %11, align 8, !tbaa !5
  %300 = load ptr, ptr %13, 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 !33
  %303 = load i32, ptr %19, align 4, !tbaa !9
  %304 = load i32, ptr %17, align 4, !tbaa !9
  %305 = zext i32 %304 to i64
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %299, i32 noundef %302, i32 noundef %303, i64 noundef %305)
  %306 = load ptr, ptr %11, align 8, !tbaa !5
  %307 = load ptr, ptr %13, align 8, !tbaa !5
  %308 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %307, i32 0, i32 16
  %309 = load i32, ptr %308, align 8, !tbaa !33
  %310 = load i32, ptr %20, align 4, !tbaa !9
  %311 = load i32, ptr %18, align 4, !tbaa !9
  %312 = zext i32 %311 to i64
  %313 = mul nsw i64 %312, 2
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %306, i32 noundef %309, i32 noundef %310, i64 noundef %313)
  %314 = load ptr, ptr %11, align 8, !tbaa !5
  %315 = load ptr, ptr %12, align 8, !tbaa !5
  %316 = load ptr, ptr %13, align 8, !tbaa !5
  %317 = load i32, ptr %25, align 4, !tbaa !9
  %318 = load i32, ptr %16, align 4, !tbaa !9
  call void @libxsmm_generator_gemm_footer_dequant_loop_amx(ptr noundef %314, ptr noundef %315, ptr noundef %316, i32 noundef %317, i32 noundef %318)
  %319 = load ptr, ptr %11, align 8, !tbaa !5
  %320 = load i32, ptr %25, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_pop_reg(ptr noundef %319, i32 noundef %320)
  %321 = load ptr, ptr %11, align 8, !tbaa !5
  %322 = load ptr, ptr %13, align 8, !tbaa !5
  %323 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %322, i32 0, i32 17
  %324 = load i32, ptr %323, align 4, !tbaa !34
  %325 = load i32, ptr %19, align 4, !tbaa !9
  %326 = load i32, ptr %17, align 4, !tbaa !9
  %327 = zext i32 %326 to i64
  %328 = load i32, ptr %16, align 4, !tbaa !9
  %329 = zext i32 %328 to i64
  %330 = mul nsw i64 %327, %329
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %321, i32 noundef %324, i32 noundef %325, i64 noundef %330)
  %331 = load ptr, ptr %11, align 8, !tbaa !5
  %332 = load ptr, ptr %13, align 8, !tbaa !5
  %333 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %332, i32 0, i32 17
  %334 = load i32, ptr %333, align 4, !tbaa !34
  %335 = load i32, ptr %20, align 4, !tbaa !9
  %336 = load i32, ptr %18, align 4, !tbaa !9
  %337 = zext i32 %336 to i64
  %338 = mul nsw i64 %337, 2
  %339 = load i32, ptr %16, align 4, !tbaa !9
  %340 = zext i32 %339 to i64
  %341 = mul nsw i64 %338, %340
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %331, i32 noundef %334, i32 noundef %335, i64 noundef %341)
  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
}

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, !7, i64 84}
!16 = !{!12, !10, i64 296}
!17 = !{!18, !10, i64 24}
!18 = !{!"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, !19, i64 33, !19, 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}
!19 = !{!"long long", !7, i64 0}
!20 = !{!18, !19, i64 33}
!21 = !{!12, !10, i64 320}
!22 = !{!12, !10, i64 324}
!23 = !{!12, !10, i64 328}
!24 = !{!12, !10, i64 332}
!25 = !{!12, !10, i64 336}
!26 = !{!12, !10, i64 340}
!27 = !{!12, !10, i64 344}
!28 = !{!12, !10, i64 348}
!29 = !{!12, !10, i64 0}
!30 = !{!12, !10, i64 304}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = !{!12, !10, i64 64}
!34 = !{!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

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_gemm_convert_KxM_bf8_to_f16_flat(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, 63
  %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)
  %.not145 = icmp ult i32 %11, 64
  br i1 %.not145, label %._crit_edge, label %.lr.ph

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

32:                                               ; preds = %.lr.ph, %105
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %105 ]
  %indvars146 = trunc i64 %indvars.iv to i32
  %33 = urem i32 %indvars146, %15
  %34 = add i32 %33, %13
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %35 = trunc nuw nsw i64 %indvars.iv.next to i32
  %36 = urem i32 %35, %15
  %37 = add i32 %36, %13
  %38 = icmp ult i64 %indvars.iv, %31
  br i1 %38, label %45, label %39

39:                                               ; preds = %32
  %40 = icmp eq i64 %indvars.iv, %31
  br i1 %40, label %41, label %45

41:                                               ; preds = %39
  %42 = shl nuw i32 %indvars146, 6
  %43 = sub i32 %4, %42
  %44 = icmp ugt i32 %43, 32
  br label %45

45:                                               ; preds = %39, %41, %32
  %46 = phi i1 [ true, %32 ], [ false, %39 ], [ %44, %41 ]
  %47 = shl nuw i64 %indvars.iv, 6
  %48 = load i8, ptr %17, align 4, !tbaa !13
  %49 = icmp ne i64 %indvars.iv, %31
  %.pre = load i32, ptr %18, align 8, !tbaa !14
  %spec.select = select i1 %49, i32 0, i32 %.pre
  %50 = trunc nuw i64 %47 to i32
  tail call void @libxsmm_x86_instruction_unified_vec_move(ptr noundef %0, i32 noundef -528017809, i32 noundef %8, i32 noundef 127, i32 noundef 0, i32 noundef %50, i8 noundef signext %48, i32 noundef %34, i32 noundef %spec.select, i32 noundef %.pre, i32 noundef 0) #2
  %51 = load i32, ptr %19, align 1, !tbaa !15
  %52 = and i32 %51, 262144
  %.not = icmp eq i32 %52, 0
  br i1 %.not, label %57, label %53

53:                                               ; preds = %45
  %54 = load i64, ptr %20, align 1, !tbaa !18
  %55 = add nsw i64 %54, %47
  %56 = trunc i64 %55 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 %56) #2
  br label %57

57:                                               ; preds = %53, %45
  br i1 %46, label %58, label %60

58:                                               ; preds = %57
  %59 = load i8, ptr %17, align 4, !tbaa !13
  tail call void @libxsmm_x86_instruction_vec_compute_3reg_mask_sae_imm8(ptr noundef %0, i32 noundef -401785541, i8 noundef signext %59, i32 noundef %34, i32 noundef 255, i32 noundef %37, i32 noundef 0, i32 noundef 0, i8 noundef zeroext 0, i32 noundef 1) #2
  br label %60

60:                                               ; preds = %58, %57
  %61 = tail call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef nonnull %21) #2
  %62 = icmp eq i32 %61, 3
  %63 = load i8, ptr %17, align 4, !tbaa !13
  br i1 %62, label %64, label %69

64:                                               ; preds = %60
  tail call void @libxsmm_x86_instruction_vec_compute_2reg(ptr noundef %0, i32 noundef 537208112, i8 noundef signext %63, i32 noundef %34, i32 noundef %34) #2
  %65 = load i8, ptr %17, align 4, !tbaa !13
  tail call void @libxsmm_x86_instruction_vec_compute_2reg_imm8(ptr noundef %0, i32 noundef 611128945, i8 noundef signext %65, i32 noundef %34, i32 noundef %34, i32 noundef 8) #2
  br i1 %46, label %66, label %88

66:                                               ; preds = %64
  %67 = load i8, ptr %17, align 4, !tbaa !13
  tail call void @libxsmm_x86_instruction_vec_compute_2reg(ptr noundef %0, i32 noundef 537208112, i8 noundef signext %67, i32 noundef %37, i32 noundef %37) #2
  %68 = load i8, ptr %17, align 4, !tbaa !13
  tail call void @libxsmm_x86_instruction_vec_compute_2reg_imm8(ptr noundef %0, i32 noundef 611128945, i8 noundef signext %68, i32 noundef %37, i32 noundef %37, i32 noundef 8) #2
  br label %94

69:                                               ; preds = %60
  %70 = load i32, ptr %22, align 8, !tbaa !19
  %71 = load i32, ptr %23, align 4, !tbaa !20
  %72 = load i32, ptr %24, align 8, !tbaa !21
  %73 = load i32, ptr %25, align 4, !tbaa !22
  %74 = load i32, ptr %26, align 8, !tbaa !23
  %75 = load i32, ptr %27, align 4, !tbaa !24
  %76 = load i32, ptr %28, align 8, !tbaa !25
  %77 = load i32, ptr %29, align 4, !tbaa !26
  tail call void @libxsmm_generator_cvt_8bit_to_16bit_lut_prepped_regs_avx512(ptr noundef %0, i8 noundef signext %63, i32 noundef %34, i32 noundef %34, i32 noundef %70, i32 noundef %71, i32 noundef %72, i32 noundef %73, i32 noundef %74, i32 noundef %75, i32 noundef %76, i32 noundef %77) #2
  br i1 %46, label %78, label %88

78:                                               ; preds = %69
  %79 = load i8, ptr %17, align 4, !tbaa !13
  %80 = load i32, ptr %22, align 8, !tbaa !19
  %81 = load i32, ptr %23, align 4, !tbaa !20
  %82 = load i32, ptr %24, align 8, !tbaa !21
  %83 = load i32, ptr %25, align 4, !tbaa !22
  %84 = load i32, ptr %26, align 8, !tbaa !23
  %85 = load i32, ptr %27, align 4, !tbaa !24
  %86 = load i32, ptr %28, align 8, !tbaa !25
  %87 = load i32, ptr %29, align 4, !tbaa !26
  tail call void @libxsmm_generator_cvt_8bit_to_16bit_lut_prepped_regs_avx512(ptr noundef %0, i8 noundef signext %79, i32 noundef %37, i32 noundef %37, i32 noundef %80, i32 noundef %81, i32 noundef %82, i32 noundef %83, i32 noundef %84, i32 noundef %85, i32 noundef %86, i32 noundef %87) #2
  br label %94

88:                                               ; preds = %69, %64
  %89 = load i32, ptr %2, align 8, !tbaa !27
  %90 = shl i32 %indvars146, 7
  %91 = load i8, ptr %17, align 4, !tbaa !13
  %or.cond.not = select i1 %49, i1 true, i1 %46
  br i1 %or.cond.not, label %.thread143, label %92

92:                                               ; preds = %88
  %93 = load i32, ptr %30, align 8, !tbaa !28
  br label %.thread143

.thread143:                                       ; preds = %88, %92
  %.ph = phi i32 [ 0, %88 ], [ %93, %92 ]
  tail call void @libxsmm_x86_instruction_vec_move(ptr noundef %0, i32 noundef %89, i32 noundef 537138704, i32 noundef %9, i32 noundef 127, i32 noundef 0, i32 noundef %90, i8 noundef signext %91, i32 noundef %34, i32 noundef %.ph, i32 noundef 0, i32 noundef 1) #2
  br label %105

94:                                               ; preds = %66, %78
  %95 = load i32, ptr %2, align 8, !tbaa !27
  %96 = shl i32 %indvars146, 7
  %97 = load i8, ptr %17, align 4, !tbaa !13
  tail call void @libxsmm_x86_instruction_vec_move(ptr noundef %0, i32 noundef %95, i32 noundef 537138704, i32 noundef %9, i32 noundef 127, i32 noundef 0, i32 noundef %96, i8 noundef signext %97, i32 noundef %34, i32 noundef 0, i32 noundef 0, i32 noundef 1) #2
  %98 = load i32, ptr %2, align 8, !tbaa !27
  %99 = or disjoint i32 %96, 64
  %100 = load i8, ptr %17, align 4, !tbaa !13
  br i1 %49, label %103, label %101

101:                                              ; preds = %94
  %102 = load i32, ptr %30, align 8, !tbaa !28
  br label %103

103:                                              ; preds = %94, %101
  %104 = phi i32 [ %102, %101 ], [ 0, %94 ]
  tail call void @libxsmm_x86_instruction_vec_move(ptr noundef %0, i32 noundef %98, i32 noundef 537138704, i32 noundef %9, i32 noundef 127, i32 noundef 0, i32 noundef %99, i8 noundef signext %100, i32 noundef %37, i32 noundef %104, i32 noundef 0, i32 noundef 1) #2
  br label %105

105:                                              ; preds = %.thread143, %103
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %32, !llvm.loop !29

._crit_edge:                                      ; preds = %105, %10
  %106 = getelementptr inbounds i8, ptr %2, i64 64
  %107 = load i32, ptr %106, align 8, !tbaa !31
  %108 = zext i32 %6 to i64
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef %107, i32 noundef %8, i64 noundef %108) #2
  %109 = load i32, ptr %106, align 8, !tbaa !31
  %110 = zext i32 %7 to i64
  %111 = shl nuw nsw i64 %110, 1
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef %109, i32 noundef %9, i64 noundef %111) #2
  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 %5)
  tail call void @libxsmm_x86_instruction_pop_reg(ptr noundef %0, i32 noundef 11) #2
  %112 = getelementptr inbounds i8, ptr %2, i64 68
  %113 = load i32, ptr %112, align 4, !tbaa !32
  %114 = zext i32 %5 to i64
  %115 = mul nuw nsw i64 %108, %114
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef %113, i32 noundef %8, i64 noundef %115) #2
  %116 = load i32, ptr %112, align 4, !tbaa !32
  %117 = mul nuw nsw i64 %111, %114
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef %116, i32 noundef %9, i64 noundef %117) #2
  ret void
}

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