; 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_blocking_info_t = type { i32, [4 x i32], i32, i32 }
%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_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_generator_gemm_getval_stack_var(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #0

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: nounwind uwtable
declare dso_local void @libxsmm_generator_gemm_decompress_i4_vreg(ptr noundef, ptr noundef, ptr noundef, i32 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_3reg(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_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_decompress_KxM_i4_tensor(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 [2 x %struct.libxsmm_blocking_info_t], align 16
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = 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) #4
  store i32 0, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  store i32 16, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  %32 = load ptr, ptr %13, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %32, i32 0, i32 43
  %34 = load i32, ptr %33, align 4, !tbaa !11
  store i32 %34, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  store i32 11, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #4
  %35 = load i32, ptr %24, align 4, !tbaa !9
  store i32 %35, ptr %25, align 4, !tbaa !9
  %36 = load ptr, ptr %11, align 8, !tbaa !5
  %37 = load i32, ptr %24, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_push_reg(ptr noundef %36, i32 noundef %37)
  %38 = load ptr, ptr %14, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %38, i32 0, i32 6
  %40 = load i32, ptr %39, align 1, !tbaa !15
  %41 = and i32 %40, 33554432
  %42 = icmp ugt i32 %41, 0
  br i1 %42, label %43, label %102

43:                                               ; preds = %10
  call void @llvm.lifetime.start.p0(i64 56, ptr %26) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #4
  store i32 0, ptr %27, align 4, !tbaa !9
  %44 = getelementptr inbounds [2 x %struct.libxsmm_blocking_info_t], ptr %26, i64 0, i64 0
  %45 = load ptr, ptr %13, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %45, i32 0, i32 98
  %47 = getelementptr inbounds [2 x %struct.libxsmm_blocking_info_t], ptr %46, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %44, ptr align 8 %47, i64 28, i1 false), !tbaa.struct !18
  %48 = getelementptr inbounds [2 x %struct.libxsmm_blocking_info_t], ptr %26, i64 0, i64 1
  %49 = load ptr, ptr %13, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %49, i32 0, i32 98
  %51 = getelementptr inbounds [2 x %struct.libxsmm_blocking_info_t], ptr %50, i64 0, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %48, ptr align 4 %51, i64 28, i1 false), !tbaa.struct !18
  %52 = load ptr, ptr %11, align 8, !tbaa !5
  %53 = load ptr, ptr %13, align 8, !tbaa !5
  %54 = load i32, ptr %25, align 4, !tbaa !9
  call void @libxsmm_generator_gemm_getval_stack_var(ptr noundef %52, ptr noundef %53, i32 noundef 35, i32 noundef %54)
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %55

55:                                               ; preds = %98, %43
  %56 = load i32, ptr %21, align 4, !tbaa !9
  %57 = load i32, ptr %15, align 4, !tbaa !9
  %58 = icmp ult i32 %56, %57
  br i1 %58, label %59, label %101

59:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #4
  %60 = load i32, ptr %21, align 4, !tbaa !9
  %61 = add i32 3, %60
  store i32 %61, ptr %28, align 4, !tbaa !9
  %62 = load ptr, ptr %11, align 8, !tbaa !5
  %63 = load i32, ptr %25, align 4, !tbaa !9
  %64 = load i32, ptr %27, align 4, !tbaa !9
  %65 = load ptr, ptr %13, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %65, i32 0, i32 3
  %67 = load i32, ptr %66, align 4, !tbaa !20
  %68 = mul i32 %64, %67
  %69 = load i32, ptr %28, align 4, !tbaa !9
  %70 = load i32, ptr %21, align 4, !tbaa !9
  %71 = load i32, ptr %15, align 4, !tbaa !9
  %72 = sub i32 %71, 1
  %73 = icmp eq i32 %70, %72
  br i1 %73, label %74, label %78

74:                                               ; preds = %59
  %75 = load ptr, ptr %13, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %75, i32 0, i32 71
  %77 = load i32, ptr %76, align 4, !tbaa !21
  br label %79

78:                                               ; preds = %59
  br label %79

79:                                               ; preds = %78, %74
  %80 = phi i32 [ %77, %74 ], [ 0, %78 ]
  call void @libxsmm_x86_instruction_unified_vec_move(ptr noundef %62, i32 noundef -536406417, i32 noundef %63, i32 noundef 127, i32 noundef 0, i32 noundef %68, i8 noundef signext 120, i32 noundef %69, i32 noundef %80, i32 noundef 1, i32 noundef 0)
  %81 = load ptr, ptr %11, align 8, !tbaa !5
  %82 = load ptr, ptr %13, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %82, i32 0, i32 21
  %84 = load i8, ptr %83, align 4, !tbaa !22
  %85 = load i32, ptr %28, align 4, !tbaa !9
  %86 = load ptr, ptr %13, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %86, i32 0, i32 79
  %88 = load i32, ptr %87, align 4, !tbaa !23
  %89 = load i32, ptr %28, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_compute_3reg(ptr noundef %81, i32 noundef -268097907, i8 noundef signext %84, i32 noundef %85, i32 noundef %88, i32 noundef %89)
  %90 = getelementptr inbounds [2 x %struct.libxsmm_blocking_info_t], ptr %26, i64 0, i64 0
  %91 = getelementptr inbounds %struct.libxsmm_blocking_info_t, ptr %90, i32 0, i32 1
  %92 = load i32, ptr %21, align 4, !tbaa !9
  %93 = zext i32 %92 to i64
  %94 = getelementptr inbounds [4 x i32], ptr %91, i64 0, i64 %93
  %95 = load i32, ptr %94, align 4, !tbaa !9
  %96 = load i32, ptr %27, align 4, !tbaa !9
  %97 = add i32 %96, %95
  store i32 %97, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #4
  br label %98

98:                                               ; preds = %79
  %99 = load i32, ptr %21, align 4, !tbaa !9
  %100 = add i32 %99, 1
  store i32 %100, ptr %21, align 4, !tbaa !9
  br label %55, !llvm.loop !24

101:                                              ; preds = %55
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr %26) #4
  br label %102

102:                                              ; preds = %101, %10
  %103 = load ptr, ptr %11, align 8, !tbaa !5
  %104 = load ptr, ptr %12, align 8, !tbaa !5
  %105 = load ptr, ptr %13, align 8, !tbaa !5
  %106 = load i32, ptr %24, align 4, !tbaa !9
  call void @libxsmm_generator_gemm_header_dequant_loop_amx(ptr noundef %103, ptr noundef %104, ptr noundef %105, i32 noundef %106)
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %107

107:                                              ; preds = %247, %102
  %108 = load i32, ptr %21, align 4, !tbaa !9
  %109 = load i32, ptr %15, align 4, !tbaa !9
  %110 = icmp ult i32 %108, %109
  br i1 %110, label %111, label %250

111:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #4
  %112 = load i32, ptr %23, align 4, !tbaa !9
  %113 = load i32, ptr %21, align 4, !tbaa !9
  %114 = add i32 %113, 0
  %115 = load i32, ptr %23, align 4, !tbaa !9
  %116 = sub i32 32, %115
  %117 = urem i32 %114, %116
  %118 = add i32 %112, %117
  store i32 %118, ptr %29, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #4
  %119 = load i32, ptr %23, align 4, !tbaa !9
  %120 = load i32, ptr %21, align 4, !tbaa !9
  %121 = add i32 %120, 1
  %122 = load i32, ptr %23, align 4, !tbaa !9
  %123 = sub i32 32, %122
  %124 = urem i32 %121, %123
  %125 = add i32 %119, %124
  store i32 %125, ptr %30, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #4
  %126 = load i32, ptr %21, align 4, !tbaa !9
  %127 = add i32 3, %126
  store i32 %127, ptr %31, align 4, !tbaa !9
  %128 = load ptr, ptr %11, align 8, !tbaa !5
  %129 = load i32, ptr %19, align 4, !tbaa !9
  %130 = load i32, ptr %21, align 4, !tbaa !9
  %131 = load i32, ptr %22, align 4, !tbaa !9
  %132 = mul i32 %130, %131
  %133 = mul i32 %132, 4
  %134 = load ptr, ptr %13, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %134, i32 0, i32 3
  %136 = load i32, ptr %135, align 4, !tbaa !20
  %137 = mul i32 %133, %136
  %138 = load ptr, ptr %13, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %138, i32 0, i32 21
  %140 = load i8, ptr %139, align 4, !tbaa !22
  %141 = load i32, ptr %29, align 4, !tbaa !9
  %142 = load i32, ptr %21, align 4, !tbaa !9
  %143 = load i32, ptr %15, align 4, !tbaa !9
  %144 = sub i32 %143, 1
  %145 = icmp eq i32 %142, %144
  br i1 %145, label %146, label %150

146:                                              ; preds = %111
  %147 = load ptr, ptr %13, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %147, i32 0, i32 71
  %149 = load i32, ptr %148, align 4, !tbaa !21
  br label %151

150:                                              ; preds = %111
  br label %151

151:                                              ; preds = %150, %146
  %152 = phi i32 [ %149, %146 ], [ 0, %150 ]
  call void @libxsmm_x86_instruction_unified_vec_move(ptr noundef %128, i32 noundef 537138704, i32 noundef %129, i32 noundef 127, i32 noundef 0, i32 noundef %137, i8 noundef signext %140, i32 noundef %141, i32 noundef %152, i32 noundef 1, i32 noundef 0)
  %153 = load ptr, ptr %14, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %153, i32 0, i32 6
  %155 = load i32, ptr %154, align 1, !tbaa !15
  %156 = and i32 %155, 262144
  %157 = icmp ugt i32 %156, 0
  br i1 %157, label %158, label %177

158:                                              ; preds = %151
  %159 = load ptr, ptr %11, align 8, !tbaa !5
  %160 = load i32, ptr %19, align 4, !tbaa !9
  %161 = load i32, ptr %21, align 4, !tbaa !9
  %162 = zext i32 %161 to i64
  %163 = load i32, ptr %22, align 4, !tbaa !9
  %164 = zext i32 %163 to i64
  %165 = mul nsw i64 %162, %164
  %166 = mul nsw i64 %165, 4
  %167 = load ptr, ptr %13, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %167, i32 0, i32 3
  %169 = load i32, ptr %168, align 4, !tbaa !20
  %170 = zext i32 %169 to i64
  %171 = mul nsw i64 %166, %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 !26
  %175 = add nsw i64 %171, %174
  %176 = trunc i64 %175 to i32
  call void @libxsmm_x86_instruction_prefetch(ptr noundef %159, i32 noundef -1810624488, i32 noundef %160, i32 noundef 127, i32 noundef 0, i32 noundef %176)
  br label %177

177:                                              ; preds = %158, %151
  %178 = load ptr, ptr %11, align 8, !tbaa !5
  %179 = load ptr, ptr %13, align 8, !tbaa !5
  %180 = load ptr, ptr %14, align 8, !tbaa !5
  %181 = load i32, ptr %31, align 4, !tbaa !9
  %182 = load i32, ptr %29, align 4, !tbaa !9
  %183 = load i32, ptr %30, align 4, !tbaa !9
  call void @libxsmm_generator_gemm_decompress_i4_vreg(ptr noundef %178, ptr noundef %179, ptr noundef %180, i32 noundef %181, i32 noundef %182, i32 noundef %183)
  %184 = load ptr, ptr %11, align 8, !tbaa !5
  %185 = load ptr, ptr %13, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %185, i32 0, i32 0
  %187 = load i32, ptr %186, align 8, !tbaa !27
  %188 = load i32, ptr %20, align 4, !tbaa !9
  %189 = load i32, ptr %21, align 4, !tbaa !9
  %190 = load i32, ptr %22, align 4, !tbaa !9
  %191 = mul i32 %189, %190
  %192 = mul i32 %191, 4
  %193 = load ptr, ptr %13, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %193, i32 0, i32 3
  %195 = load i32, ptr %194, align 4, !tbaa !20
  %196 = mul i32 %192, %195
  %197 = load ptr, ptr %13, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %197, i32 0, i32 21
  %199 = load i8, ptr %198, align 4, !tbaa !22
  %200 = load i32, ptr %29, align 4, !tbaa !9
  %201 = load i32, ptr %21, align 4, !tbaa !9
  %202 = load i32, ptr %15, align 4, !tbaa !9
  %203 = sub i32 %202, 1
  %204 = icmp eq i32 %201, %203
  br i1 %204, label %205, label %209

205:                                              ; preds = %177
  %206 = load ptr, ptr %13, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %206, i32 0, i32 71
  %208 = load i32, ptr %207, align 4, !tbaa !21
  br label %210

209:                                              ; preds = %177
  br label %210

210:                                              ; preds = %209, %205
  %211 = phi i32 [ %208, %205 ], [ 0, %209 ]
  call void @libxsmm_x86_instruction_vec_move(ptr noundef %184, i32 noundef %187, i32 noundef 537138704, i32 noundef %188, i32 noundef 127, i32 noundef 0, i32 noundef %196, i8 noundef signext %199, i32 noundef %200, i32 noundef %211, i32 noundef 0, i32 noundef 1)
  %212 = load ptr, ptr %11, align 8, !tbaa !5
  %213 = load ptr, ptr %13, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %213, i32 0, i32 0
  %215 = load i32, ptr %214, align 8, !tbaa !27
  %216 = load i32, ptr %20, align 4, !tbaa !9
  %217 = load i32, ptr %21, align 4, !tbaa !9
  %218 = load i32, ptr %22, align 4, !tbaa !9
  %219 = mul i32 %217, %218
  %220 = mul i32 %219, 4
  %221 = load ptr, ptr %13, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %221, i32 0, i32 3
  %223 = load i32, ptr %222, align 4, !tbaa !20
  %224 = mul i32 %220, %223
  %225 = load i32, ptr %18, align 4, !tbaa !9
  %226 = mul i32 %225, 4
  %227 = load ptr, ptr %13, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %227, i32 0, i32 3
  %229 = load i32, ptr %228, align 4, !tbaa !20
  %230 = mul i32 %226, %229
  %231 = add i32 %224, %230
  %232 = load ptr, ptr %13, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %232, i32 0, i32 21
  %234 = load i8, ptr %233, align 4, !tbaa !22
  %235 = load i32, ptr %30, align 4, !tbaa !9
  %236 = load i32, ptr %21, align 4, !tbaa !9
  %237 = load i32, ptr %15, align 4, !tbaa !9
  %238 = sub i32 %237, 1
  %239 = icmp eq i32 %236, %238
  br i1 %239, label %240, label %244

240:                                              ; preds = %210
  %241 = load ptr, ptr %13, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %241, i32 0, i32 71
  %243 = load i32, ptr %242, align 4, !tbaa !21
  br label %245

244:                                              ; preds = %210
  br label %245

245:                                              ; preds = %244, %240
  %246 = phi i32 [ %243, %240 ], [ 0, %244 ]
  call void @libxsmm_x86_instruction_vec_move(ptr noundef %212, i32 noundef %215, i32 noundef 537138704, i32 noundef %216, i32 noundef 127, i32 noundef 0, i32 noundef %231, i8 noundef signext %234, i32 noundef %235, i32 noundef %246, i32 noundef 0, i32 noundef 1)
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #4
  br label %247

247:                                              ; preds = %245
  %248 = load i32, ptr %21, align 4, !tbaa !9
  %249 = add i32 %248, 1
  store i32 %249, ptr %21, align 4, !tbaa !9
  br label %107, !llvm.loop !28

250:                                              ; preds = %107
  %251 = load ptr, ptr %11, align 8, !tbaa !5
  %252 = load ptr, ptr %13, align 8, !tbaa !5
  %253 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %252, i32 0, i32 16
  %254 = load i32, ptr %253, align 8, !tbaa !29
  %255 = load i32, ptr %19, align 4, !tbaa !9
  %256 = load i32, ptr %17, align 4, !tbaa !9
  %257 = zext i32 %256 to i64
  %258 = mul nsw i64 %257, 4
  %259 = load ptr, ptr %13, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %259, i32 0, i32 3
  %261 = load i32, ptr %260, align 4, !tbaa !20
  %262 = zext i32 %261 to i64
  %263 = mul nsw i64 %258, %262
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %251, i32 noundef %254, i32 noundef %255, i64 noundef %263)
  %264 = load ptr, ptr %11, align 8, !tbaa !5
  %265 = load ptr, ptr %13, align 8, !tbaa !5
  %266 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %265, i32 0, i32 16
  %267 = load i32, ptr %266, align 8, !tbaa !29
  %268 = load i32, ptr %20, align 4, !tbaa !9
  %269 = load i32, ptr %18, align 4, !tbaa !9
  %270 = zext i32 %269 to i64
  %271 = mul nsw i64 %270, 8
  %272 = load ptr, ptr %13, align 8, !tbaa !5
  %273 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %272, i32 0, i32 3
  %274 = load i32, ptr %273, align 4, !tbaa !20
  %275 = zext i32 %274 to i64
  %276 = mul nsw i64 %271, %275
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %264, i32 noundef %267, i32 noundef %268, i64 noundef %276)
  %277 = load ptr, ptr %11, align 8, !tbaa !5
  %278 = load ptr, ptr %12, align 8, !tbaa !5
  %279 = load ptr, ptr %13, align 8, !tbaa !5
  %280 = load i32, ptr %24, align 4, !tbaa !9
  %281 = load i32, ptr %16, align 4, !tbaa !9
  %282 = udiv i32 %281, 8
  call void @libxsmm_generator_gemm_footer_dequant_loop_amx(ptr noundef %277, ptr noundef %278, ptr noundef %279, i32 noundef %280, i32 noundef %282)
  %283 = load ptr, ptr %11, align 8, !tbaa !5
  %284 = load i32, ptr %24, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_pop_reg(ptr noundef %283, i32 noundef %284)
  %285 = load ptr, ptr %11, align 8, !tbaa !5
  %286 = load ptr, ptr %13, align 8, !tbaa !5
  %287 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %286, i32 0, i32 17
  %288 = load i32, ptr %287, align 4, !tbaa !30
  %289 = load i32, ptr %19, align 4, !tbaa !9
  %290 = load i32, ptr %17, align 4, !tbaa !9
  %291 = zext i32 %290 to i64
  %292 = mul nsw i64 %291, 4
  %293 = load i32, ptr %16, align 4, !tbaa !9
  %294 = udiv i32 %293, 8
  %295 = zext i32 %294 to i64
  %296 = mul nsw i64 %292, %295
  %297 = load ptr, ptr %13, align 8, !tbaa !5
  %298 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %297, i32 0, i32 3
  %299 = load i32, ptr %298, align 4, !tbaa !20
  %300 = zext i32 %299 to i64
  %301 = mul nsw i64 %296, %300
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %285, i32 noundef %288, i32 noundef %289, i64 noundef %301)
  %302 = load ptr, ptr %11, align 8, !tbaa !5
  %303 = load ptr, ptr %13, align 8, !tbaa !5
  %304 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %303, i32 0, i32 17
  %305 = load i32, ptr %304, align 4, !tbaa !30
  %306 = load i32, ptr %20, align 4, !tbaa !9
  %307 = load i32, ptr %18, align 4, !tbaa !9
  %308 = zext i32 %307 to i64
  %309 = mul nsw i64 %308, 8
  %310 = load i32, ptr %16, align 4, !tbaa !9
  %311 = udiv i32 %310, 8
  %312 = zext i32 %311 to i64
  %313 = mul nsw i64 %309, %312
  %314 = load ptr, ptr %13, align 8, !tbaa !5
  %315 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %314, i32 0, i32 3
  %316 = load i32, ptr %315, align 4, !tbaa !20
  %317 = zext i32 %316 to i64
  %318 = mul nsw i64 %313, %317
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %302, i32 noundef %305, i32 noundef %306, i64 noundef %318)
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  ret void
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 = !{!16, !10, i64 24}
!16 = !{!"libxsmm_gemm_descriptor", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !7, i64 28, !7, i64 29, !7, i64 32, !17, i64 33, !17, i64 41, !7, i64 49, !10, i64 50, !10, i64 54, !10, i64 58, !14, i64 62, !14, i64 64, !7, i64 66, !7, i64 67, !7, i64 68, !7, i64 69, !14, i64 70, !14, i64 72, !14, i64 74, !14, i64 76, !14, i64 78, !14, i64 80, !10, i64 82, !10, i64 86, !10, i64 90, !7, i64 94}
!17 = !{!"long long", !7, i64 0}
!18 = !{i64 0, i64 4, !9, i64 4, i64 16, !19, i64 20, i64 4, !9, i64 24, i64 4, !9}
!19 = !{!7, !7, i64 0}
!20 = !{!12, !10, i64 12}
!21 = !{!12, !10, i64 284}
!22 = !{!12, !7, i64 84}
!23 = !{!12, !10, i64 316}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!16, !17, i64 33}
!27 = !{!12, !10, i64 0}
!28 = distinct !{!28, !25}
!29 = !{!12, !10, i64 64}
!30 = !{!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"

%struct.libxsmm_blocking_info_t = type { i32, [4 x i32], i32, i32 }

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

declare void @libxsmm_x86_instruction_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

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

; Function Attrs: mustprogress 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_3reg(ptr noundef, i32 noundef, i8 noundef signext, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress 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) 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_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_decompress_KxM_i4_tensor(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 = alloca [2 x %struct.libxsmm_blocking_info_t], align 16
  %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) #4
  %14 = getelementptr inbounds i8, ptr %3, i64 24
  %15 = load i32, ptr %14, align 1, !tbaa !13
  %16 = and i32 %15, 33554432
  %.not = icmp eq i32 %16, 0
  br i1 %.not, label %43, label %17

17:                                               ; preds = %10
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %11) #4
  %18 = getelementptr inbounds i8, ptr %2, i64 464
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(28) %11, ptr noundef nonnull align 8 dereferenceable(28) %18, i64 28, i1 false), !tbaa.struct !16
  %19 = getelementptr inbounds i8, ptr %11, i64 28
  %20 = getelementptr inbounds i8, ptr %2, i64 492
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(28) %19, ptr noundef nonnull align 4 dereferenceable(28) %20, i64 28, i1 false), !tbaa.struct !16
  tail call void @libxsmm_generator_gemm_getval_stack_var(ptr noundef %0, ptr noundef nonnull %2, i32 noundef 35, i32 noundef 11) #4
  %.not128 = icmp eq i32 %4, 0
  br i1 %.not128, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %17
  %21 = getelementptr inbounds i8, ptr %2, i64 12
  %22 = add i32 %4, -1
  %23 = getelementptr inbounds i8, ptr %2, i64 284
  %24 = getelementptr inbounds i8, ptr %2, i64 84
  %25 = getelementptr inbounds i8, ptr %2, i64 316
  %26 = getelementptr inbounds i8, ptr %11, i64 4
  %27 = zext i32 %22 to i64
  %wide.trip.count = zext i32 %4 to i64
  br label %28

28:                                               ; preds = %.lr.ph, %36
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %36 ]
  %.0118122 = phi i32 [ 0, %.lr.ph ], [ %42, %36 ]
  %29 = trunc nuw i64 %indvars.iv to i32
  %30 = add i32 %29, 3
  %31 = load i32, ptr %21, align 4, !tbaa !19
  %32 = mul i32 %31, %.0118122
  %33 = icmp eq i64 %indvars.iv, %27
  br i1 %33, label %34, label %36

34:                                               ; preds = %28
  %35 = load i32, ptr %23, align 4, !tbaa !20
  br label %36

36:                                               ; preds = %28, %34
  %37 = phi i32 [ %35, %34 ], [ 0, %28 ]
  tail call void @libxsmm_x86_instruction_unified_vec_move(ptr noundef %0, i32 noundef -536406417, i32 noundef 11, i32 noundef 127, i32 noundef 0, i32 noundef %32, i8 noundef signext 120, i32 noundef %30, i32 noundef %37, i32 noundef 1, i32 noundef 0) #4
  %38 = load i8, ptr %24, align 4, !tbaa !21
  %39 = load i32, ptr %25, align 4, !tbaa !22
  tail call void @libxsmm_x86_instruction_vec_compute_3reg(ptr noundef %0, i32 noundef -268097907, i8 noundef signext %38, i32 noundef %30, i32 noundef %39, i32 noundef %30) #4
  %40 = getelementptr inbounds [4 x i32], ptr %26, i64 0, i64 %indvars.iv
  %41 = load i32, ptr %40, align 4, !tbaa !17
  %42 = add i32 %41, %.0118122
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %28, !llvm.loop !23

._crit_edge:                                      ; preds = %36, %17
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %11) #4
  br label %43

43:                                               ; preds = %._crit_edge, %10
  tail call void @libxsmm_generator_gemm_header_dequant_loop_amx(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %2, i32 noundef 11)
  %.not129 = icmp eq i32 %4, 0
  br i1 %.not129, label %._crit_edge127, label %.lr.ph126

.lr.ph126:                                        ; preds = %43
  %44 = sub i32 32, %13
  %45 = getelementptr inbounds i8, ptr %2, i64 12
  %46 = getelementptr inbounds i8, ptr %2, i64 84
  %47 = add i32 %4, -1
  %48 = getelementptr inbounds i8, ptr %2, i64 284
  %49 = getelementptr inbounds i8, ptr %3, i64 33
  %50 = shl i32 %7, 2
  %51 = zext i32 %47 to i64
  %wide.trip.count134 = zext i32 %4 to i64
  br label %52

52:                                               ; preds = %.lr.ph126, %95
  %indvars.iv131 = phi i64 [ 0, %.lr.ph126 ], [ %indvars.iv.next132, %95 ]
  %53 = trunc nuw i64 %indvars.iv131 to i32
  %54 = urem i32 %53, %44
  %55 = add i32 %54, %13
  %indvars.iv.next132 = add nuw nsw i64 %indvars.iv131, 1
  %56 = trunc nuw i64 %indvars.iv.next132 to i32
  %57 = urem i32 %56, %44
  %58 = add i32 %57, %13
  %59 = add i32 %53, 3
  %60 = shl i32 %53, 6
  %61 = load i32, ptr %45, align 4, !tbaa !19
  %62 = mul i32 %61, %60
  %63 = load i8, ptr %46, align 4, !tbaa !21
  %64 = icmp eq i64 %indvars.iv131, %51
  br i1 %64, label %65, label %67

65:                                               ; preds = %52
  %66 = load i32, ptr %48, align 4, !tbaa !20
  br label %67

67:                                               ; preds = %52, %65
  %68 = phi i32 [ %66, %65 ], [ 0, %52 ]
  tail call void @libxsmm_x86_instruction_unified_vec_move(ptr noundef %0, i32 noundef 537138704, i32 noundef %8, i32 noundef 127, i32 noundef 0, i32 noundef %62, i8 noundef signext %63, i32 noundef %55, i32 noundef %68, i32 noundef 1, i32 noundef 0) #4
  %69 = load i32, ptr %14, align 1, !tbaa !13
  %70 = and i32 %69, 262144
  %.not121 = icmp eq i32 %70, 0
  br i1 %.not121, label %79, label %71

71:                                               ; preds = %67
  %72 = shl nuw nsw i64 %indvars.iv131, 6
  %73 = load i32, ptr %45, align 4, !tbaa !19
  %74 = zext i32 %73 to i64
  %75 = mul nuw nsw i64 %72, %74
  %76 = load i64, ptr %49, align 1, !tbaa !25
  %77 = add nsw i64 %75, %76
  %78 = trunc i64 %77 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 %78) #4
  br label %79

79:                                               ; preds = %71, %67
  tail call void @libxsmm_generator_gemm_decompress_i4_vreg(ptr noundef %0, ptr noundef nonnull %2, ptr noundef nonnull %3, i32 noundef %59, i32 noundef %55, i32 noundef %58)
  %80 = load i32, ptr %2, align 8, !tbaa !26
  %81 = load i32, ptr %45, align 4, !tbaa !19
  %82 = mul i32 %81, %60
  %83 = load i8, ptr %46, align 4, !tbaa !21
  br i1 %64, label %84, label %86

84:                                               ; preds = %79
  %85 = load i32, ptr %48, align 4, !tbaa !20
  br label %86

86:                                               ; preds = %79, %84
  %87 = phi i32 [ %85, %84 ], [ 0, %79 ]
  tail call void @libxsmm_x86_instruction_vec_move(ptr noundef %0, i32 noundef %80, i32 noundef 537138704, i32 noundef %9, i32 noundef 127, i32 noundef 0, i32 noundef %82, i8 noundef signext %83, i32 noundef %55, i32 noundef %87, i32 noundef 0, i32 noundef 1) #4
  %88 = load i32, ptr %2, align 8, !tbaa !26
  %89 = load i32, ptr %45, align 4, !tbaa !19
  %90 = add i32 %60, %50
  %91 = mul i32 %89, %90
  %92 = load i8, ptr %46, align 4, !tbaa !21
  br i1 %64, label %93, label %95

93:                                               ; preds = %86
  %94 = load i32, ptr %48, align 4, !tbaa !20
  br label %95

95:                                               ; preds = %86, %93
  %96 = phi i32 [ %94, %93 ], [ 0, %86 ]
  tail call void @libxsmm_x86_instruction_vec_move(ptr noundef %0, i32 noundef %88, i32 noundef 537138704, i32 noundef %9, i32 noundef 127, i32 noundef 0, i32 noundef %91, i8 noundef signext %92, i32 noundef %58, i32 noundef %96, i32 noundef 0, i32 noundef 1) #4
  %exitcond135.not = icmp eq i64 %indvars.iv.next132, %wide.trip.count134
  br i1 %exitcond135.not, label %._crit_edge127, label %52, !llvm.loop !27

._crit_edge127:                                   ; preds = %95, %43
  %97 = getelementptr inbounds i8, ptr %2, i64 64
  %98 = load i32, ptr %97, align 8, !tbaa !28
  %99 = zext i32 %6 to i64
  %100 = shl nuw nsw i64 %99, 2
  %101 = getelementptr inbounds i8, ptr %2, i64 12
  %102 = load i32, ptr %101, align 4, !tbaa !19
  %103 = zext i32 %102 to i64
  %104 = mul nuw nsw i64 %100, %103
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef %98, i32 noundef %8, i64 noundef %104) #4
  %105 = load i32, ptr %97, align 8, !tbaa !28
  %106 = zext i32 %7 to i64
  %107 = shl nuw nsw i64 %106, 3
  %108 = load i32, ptr %101, align 4, !tbaa !19
  %109 = zext i32 %108 to i64
  %110 = mul nuw nsw i64 %107, %109
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef %105, i32 noundef %9, i64 noundef %110) #4
  %111 = lshr i32 %5, 3
  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 %111)
  tail call void @libxsmm_x86_instruction_pop_reg(ptr noundef %0, i32 noundef 11) #4
  %112 = getelementptr inbounds i8, ptr %2, i64 68
  %113 = load i32, ptr %112, align 4, !tbaa !29
  %114 = zext nneg i32 %111 to i64
  %115 = mul nuw nsw i64 %100, %114
  %116 = load i32, ptr %101, align 4, !tbaa !19
  %117 = zext i32 %116 to i64
  %118 = mul nuw nsw i64 %115, %117
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef %113, i32 noundef %8, i64 noundef %118) #4
  %119 = load i32, ptr %112, align 4, !tbaa !29
  %120 = mul nuw nsw i64 %107, %114
  %121 = load i32, ptr %101, align 4, !tbaa !19
  %122 = zext i32 %121 to i64
  %123 = mul nuw nsw i64 %120, %122
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef %119, i32 noundef %9, i64 noundef %123) #4
  ret void
}

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 = !{!14, !7, i64 24}
!14 = !{!"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, !15, i64 33, !15, 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}
!15 = !{!"long long", !8, i64 0}
!16 = !{i64 0, i64 4, !17, i64 4, i64 16, !18, i64 20, i64 4, !17, i64 24, i64 4, !17}
!17 = !{!7, !7, i64 0}
!18 = !{!8, !8, i64 0}
!19 = !{!6, !7, i64 12}
!20 = !{!6, !7, i64 284}
!21 = !{!6, !8, i64 84}
!22 = !{!6, !7, i64 316}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!14, !15, i64 33}
!26 = !{!6, !7, i64 0}
!27 = distinct !{!27, !24}
!28 = !{!6, !7, i64 64}
!29 = !{!6, !7, i64 68}


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