; LLVM IR from ggml-org/ggml :: src/ggml-cpu (ggml-cpu-quants)

; 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.block_q6_K = type { [128 x i8], [64 x i8], [16 x i8], i16 }
%struct.block_q8_K = type { float, [256 x i8], [16 x i16] }

@.str.1 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [14 x i8], align 1
@__PRETTY_FUNCTION__.ggml_vec_dot_q6_K_q8_K = external hidden unnamed_addr constant [123 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #0

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden float @ggml_lookup_fp16_to_fp32(i16 noundef zeroext) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

; Function Attrs: nounwind uwtable
define dso_local void @ggml_vec_dot_q6_K_q8_K(i32 noundef %0, ptr noalias noundef %1, i64 noundef %2, ptr noalias noundef %3, i64 noundef %4, ptr noalias noundef %5, i64 noundef %6, i32 noundef %7) #5 {
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca [256 x i8], align 16
  %21 = alloca [8 x i16], align 16
  %22 = alloca [8 x float], align 16
  %23 = alloca [8 x i32], align 16
  %24 = alloca float, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca float, align 4
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  store i32 %0, ptr %9, align 4, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !9
  store i64 %2, ptr %11, align 8, !tbaa !11
  store ptr %3, ptr %12, align 8, !tbaa !9
  store i64 %4, ptr %13, align 8, !tbaa !11
  store ptr %5, ptr %14, align 8, !tbaa !9
  store i64 %6, ptr %15, align 8, !tbaa !11
  store i32 %7, ptr %16, align 4, !tbaa !5
  %43 = load i32, ptr %9, align 4, !tbaa !5
  %44 = srem i32 %43, 256
  %45 = icmp eq i32 %44, 0
  br i1 %45, label %46, label %47

46:                                               ; preds = %8
  br label %48

47:                                               ; preds = %8
  call void @__assert_fail(ptr noundef @.str.6, ptr noundef @.str.1, i32 noundef 8416, ptr noundef @__PRETTY_FUNCTION__.ggml_vec_dot_q6_K_q8_K) #6
  unreachable

48:                                               ; preds = %46
  %49 = load i32, ptr %16, align 4, !tbaa !5
  %50 = icmp eq i32 %49, 1
  br i1 %50, label %51, label %52

51:                                               ; preds = %48
  br label %53

52:                                               ; preds = %48
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 8417, ptr noundef @__PRETTY_FUNCTION__.ggml_vec_dot_q6_K_q8_K) #6
  unreachable

53:                                               ; preds = %51
  %54 = load i32, ptr %16, align 4, !tbaa !5
  %55 = load i64, ptr %13, align 8, !tbaa !11
  %56 = load i64, ptr %15, align 8, !tbaa !11
  %57 = load i64, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %58 = load ptr, ptr %12, align 8, !tbaa !9
  store ptr %58, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %59 = load ptr, ptr %14, align 8, !tbaa !9
  store ptr %59, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %60 = load i32, ptr %9, align 4, !tbaa !5
  %61 = sdiv i32 %60, 256
  store i32 %61, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %22) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %23) #7
  %62 = getelementptr inbounds [8 x float], ptr %22, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %62, i8 0, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  store float 0.000000e+00, ptr %24, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  store i32 0, ptr %25, align 4, !tbaa !5
  br label %63

63:                                               ; preds = %378, %53
  %64 = load i32, ptr %25, align 4, !tbaa !5
  %65 = load i32, ptr %19, align 4, !tbaa !5
  %66 = icmp slt i32 %64, %65
  br i1 %66, label %68, label %67

67:                                               ; preds = %63
  store i32 2, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  br label %381

68:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  %69 = load ptr, ptr %17, align 8, !tbaa !9
  %70 = load i32, ptr %25, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds %struct.block_q6_K, ptr %69, i64 %71
  %73 = getelementptr inbounds %struct.block_q6_K, ptr %72, i32 0, i32 0
  %74 = getelementptr inbounds [128 x i8], ptr %73, i64 0, i64 0
  store ptr %74, ptr %27, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  %75 = load ptr, ptr %17, align 8, !tbaa !9
  %76 = load i32, ptr %25, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds %struct.block_q6_K, ptr %75, i64 %77
  %79 = getelementptr inbounds %struct.block_q6_K, ptr %78, i32 0, i32 1
  %80 = getelementptr inbounds [64 x i8], ptr %79, i64 0, i64 0
  store ptr %80, ptr %28, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  %81 = load ptr, ptr %18, align 8, !tbaa !9
  %82 = load i32, ptr %25, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds %struct.block_q8_K, ptr %81, i64 %83
  %85 = getelementptr inbounds %struct.block_q8_K, ptr %84, i32 0, i32 1
  %86 = getelementptr inbounds [256 x i8], ptr %85, i64 0, i64 0
  store ptr %86, ptr %29, align 8, !tbaa !9
  %87 = getelementptr inbounds [8 x i32], ptr %23, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %87, i8 0, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  %88 = getelementptr inbounds [256 x i8], ptr %20, i64 0, i64 0
  store ptr %88, ptr %30, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #7
  store i32 0, ptr %31, align 4, !tbaa !5
  br label %89

89:                                               ; preds = %217, %68
  %90 = load i32, ptr %31, align 4, !tbaa !5
  %91 = icmp slt i32 %90, 256
  br i1 %91, label %93, label %92

92:                                               ; preds = %89
  store i32 5, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  br label %220

93:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #7
  store i32 0, ptr %32, align 4, !tbaa !5
  br label %94

94:                                               ; preds = %207, %93
  %95 = load i32, ptr %32, align 4, !tbaa !5
  %96 = icmp slt i32 %95, 32
  br i1 %96, label %98, label %97

97:                                               ; preds = %94
  store i32 8, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  br label %210

98:                                               ; preds = %94
  %99 = load ptr, ptr %27, align 8, !tbaa !9
  %100 = load i32, ptr %32, align 4, !tbaa !5
  %101 = add nsw i32 %100, 0
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds i8, ptr %99, i64 %102
  %104 = load i8, ptr %103, align 1, !tbaa !15
  %105 = zext i8 %104 to i32
  %106 = and i32 %105, 15
  %107 = load ptr, ptr %28, align 8, !tbaa !9
  %108 = load i32, ptr %32, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds i8, ptr %107, i64 %109
  %111 = load i8, ptr %110, align 1, !tbaa !15
  %112 = zext i8 %111 to i32
  %113 = ashr i32 %112, 0
  %114 = and i32 %113, 3
  %115 = shl i32 %114, 4
  %116 = or i32 %106, %115
  %117 = trunc i32 %116 to i8
  %118 = sext i8 %117 to i32
  %119 = sub nsw i32 %118, 32
  %120 = trunc i32 %119 to i8
  %121 = load ptr, ptr %30, align 8, !tbaa !9
  %122 = load i32, ptr %32, align 4, !tbaa !5
  %123 = add nsw i32 %122, 0
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds i8, ptr %121, i64 %124
  store i8 %120, ptr %125, align 1, !tbaa !15
  %126 = load ptr, ptr %27, align 8, !tbaa !9
  %127 = load i32, ptr %32, align 4, !tbaa !5
  %128 = add nsw i32 %127, 32
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds i8, ptr %126, i64 %129
  %131 = load i8, ptr %130, align 1, !tbaa !15
  %132 = zext i8 %131 to i32
  %133 = and i32 %132, 15
  %134 = load ptr, ptr %28, align 8, !tbaa !9
  %135 = load i32, ptr %32, align 4, !tbaa !5
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds i8, ptr %134, i64 %136
  %138 = load i8, ptr %137, align 1, !tbaa !15
  %139 = zext i8 %138 to i32
  %140 = ashr i32 %139, 2
  %141 = and i32 %140, 3
  %142 = shl i32 %141, 4
  %143 = or i32 %133, %142
  %144 = trunc i32 %143 to i8
  %145 = sext i8 %144 to i32
  %146 = sub nsw i32 %145, 32
  %147 = trunc i32 %146 to i8
  %148 = load ptr, ptr %30, align 8, !tbaa !9
  %149 = load i32, ptr %32, align 4, !tbaa !5
  %150 = add nsw i32 %149, 32
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds i8, ptr %148, i64 %151
  store i8 %147, ptr %152, align 1, !tbaa !15
  %153 = load ptr, ptr %27, align 8, !tbaa !9
  %154 = load i32, ptr %32, align 4, !tbaa !5
  %155 = add nsw i32 %154, 0
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds i8, ptr %153, i64 %156
  %158 = load i8, ptr %157, align 1, !tbaa !15
  %159 = zext i8 %158 to i32
  %160 = ashr i32 %159, 4
  %161 = load ptr, ptr %28, align 8, !tbaa !9
  %162 = load i32, ptr %32, align 4, !tbaa !5
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds i8, ptr %161, i64 %163
  %165 = load i8, ptr %164, align 1, !tbaa !15
  %166 = zext i8 %165 to i32
  %167 = ashr i32 %166, 4
  %168 = and i32 %167, 3
  %169 = shl i32 %168, 4
  %170 = or i32 %160, %169
  %171 = trunc i32 %170 to i8
  %172 = sext i8 %171 to i32
  %173 = sub nsw i32 %172, 32
  %174 = trunc i32 %173 to i8
  %175 = load ptr, ptr %30, align 8, !tbaa !9
  %176 = load i32, ptr %32, align 4, !tbaa !5
  %177 = add nsw i32 %176, 64
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds i8, ptr %175, i64 %178
  store i8 %174, ptr %179, align 1, !tbaa !15
  %180 = load ptr, ptr %27, align 8, !tbaa !9
  %181 = load i32, ptr %32, align 4, !tbaa !5
  %182 = add nsw i32 %181, 32
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds i8, ptr %180, i64 %183
  %185 = load i8, ptr %184, align 1, !tbaa !15
  %186 = zext i8 %185 to i32
  %187 = ashr i32 %186, 4
  %188 = load ptr, ptr %28, align 8, !tbaa !9
  %189 = load i32, ptr %32, align 4, !tbaa !5
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds i8, ptr %188, i64 %190
  %192 = load i8, ptr %191, align 1, !tbaa !15
  %193 = zext i8 %192 to i32
  %194 = ashr i32 %193, 6
  %195 = and i32 %194, 3
  %196 = shl i32 %195, 4
  %197 = or i32 %187, %196
  %198 = trunc i32 %197 to i8
  %199 = sext i8 %198 to i32
  %200 = sub nsw i32 %199, 32
  %201 = trunc i32 %200 to i8
  %202 = load ptr, ptr %30, align 8, !tbaa !9
  %203 = load i32, ptr %32, align 4, !tbaa !5
  %204 = add nsw i32 %203, 96
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds i8, ptr %202, i64 %205
  store i8 %201, ptr %206, align 1, !tbaa !15
  br label %207

207:                                              ; preds = %98
  %208 = load i32, ptr %32, align 4, !tbaa !5
  %209 = add nsw i32 %208, 1
  store i32 %209, ptr %32, align 4, !tbaa !5
  br label %94, !llvm.loop !16

210:                                              ; preds = %97
  %211 = load ptr, ptr %30, align 8, !tbaa !9
  %212 = getelementptr inbounds i8, ptr %211, i64 128
  store ptr %212, ptr %30, align 8, !tbaa !9
  %213 = load ptr, ptr %27, align 8, !tbaa !9
  %214 = getelementptr inbounds i8, ptr %213, i64 64
  store ptr %214, ptr %27, align 8, !tbaa !9
  %215 = load ptr, ptr %28, align 8, !tbaa !9
  %216 = getelementptr inbounds i8, ptr %215, i64 32
  store ptr %216, ptr %28, align 8, !tbaa !9
  br label %217

217:                                              ; preds = %210
  %218 = load i32, ptr %31, align 4, !tbaa !5
  %219 = add nsw i32 %218, 128
  store i32 %219, ptr %31, align 4, !tbaa !5
  br label %89, !llvm.loop !18

220:                                              ; preds = %92
  %221 = getelementptr inbounds [256 x i8], ptr %20, i64 0, i64 0
  store ptr %221, ptr %30, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #7
  store i32 0, ptr %33, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #7
  store i32 0, ptr %34, align 4, !tbaa !5
  br label %222

222:                                              ; preds = %340, %220
  %223 = load i32, ptr %34, align 4, !tbaa !5
  %224 = icmp slt i32 %223, 16
  br i1 %224, label %226, label %225

225:                                              ; preds = %222
  store i32 11, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #7
  br label %343

226:                                              ; preds = %222
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #7
  %227 = load ptr, ptr %17, align 8, !tbaa !9
  %228 = load i32, ptr %25, align 4, !tbaa !5
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds %struct.block_q6_K, ptr %227, i64 %229
  %231 = getelementptr inbounds %struct.block_q6_K, ptr %230, i32 0, i32 2
  %232 = load i32, ptr %33, align 4, !tbaa !5
  %233 = add nsw i32 %232, 1
  store i32 %233, ptr %33, align 4, !tbaa !5
  %234 = sext i32 %232 to i64
  %235 = getelementptr inbounds [16 x i8], ptr %231, i64 0, i64 %234
  %236 = load i8, ptr %235, align 1, !tbaa !15
  %237 = sext i8 %236 to i32
  store i32 %237, ptr %35, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #7
  store i32 0, ptr %36, align 4, !tbaa !5
  br label %238

238:                                              ; preds = %260, %226
  %239 = load i32, ptr %36, align 4, !tbaa !5
  %240 = icmp slt i32 %239, 8
  br i1 %240, label %242, label %241

241:                                              ; preds = %238
  store i32 14, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #7
  br label %263

242:                                              ; preds = %238
  %243 = load ptr, ptr %29, align 8, !tbaa !9
  %244 = load i32, ptr %36, align 4, !tbaa !5
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds i8, ptr %243, i64 %245
  %247 = load i8, ptr %246, align 1, !tbaa !15
  %248 = sext i8 %247 to i32
  %249 = load ptr, ptr %30, align 8, !tbaa !9
  %250 = load i32, ptr %36, align 4, !tbaa !5
  %251 = sext i32 %250 to i64
  %252 = getelementptr inbounds i8, ptr %249, i64 %251
  %253 = load i8, ptr %252, align 1, !tbaa !15
  %254 = sext i8 %253 to i32
  %255 = mul nsw i32 %248, %254
  %256 = trunc i32 %255 to i16
  %257 = load i32, ptr %36, align 4, !tbaa !5
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds [8 x i16], ptr %21, i64 0, i64 %258
  store i16 %256, ptr %259, align 2, !tbaa !19
  br label %260

260:                                              ; preds = %242
  %261 = load i32, ptr %36, align 4, !tbaa !5
  %262 = add nsw i32 %261, 1
  store i32 %262, ptr %36, align 4, !tbaa !5
  br label %238, !llvm.loop !21

263:                                              ; preds = %241
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #7
  store i32 0, ptr %37, align 4, !tbaa !5
  br label %264

264:                                              ; preds = %281, %263
  %265 = load i32, ptr %37, align 4, !tbaa !5
  %266 = icmp slt i32 %265, 8
  br i1 %266, label %268, label %267

267:                                              ; preds = %264
  store i32 17, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #7
  br label %284

268:                                              ; preds = %264
  %269 = load i32, ptr %35, align 4, !tbaa !5
  %270 = load i32, ptr %37, align 4, !tbaa !5
  %271 = sext i32 %270 to i64
  %272 = getelementptr inbounds [8 x i16], ptr %21, i64 0, i64 %271
  %273 = load i16, ptr %272, align 2, !tbaa !19
  %274 = sext i16 %273 to i32
  %275 = mul nsw i32 %269, %274
  %276 = load i32, ptr %37, align 4, !tbaa !5
  %277 = sext i32 %276 to i64
  %278 = getelementptr inbounds [8 x i32], ptr %23, i64 0, i64 %277
  %279 = load i32, ptr %278, align 4, !tbaa !5
  %280 = add nsw i32 %279, %275
  store i32 %280, ptr %278, align 4, !tbaa !5
  br label %281

281:                                              ; preds = %268
  %282 = load i32, ptr %37, align 4, !tbaa !5
  %283 = add nsw i32 %282, 1
  store i32 %283, ptr %37, align 4, !tbaa !5
  br label %264, !llvm.loop !22

284:                                              ; preds = %267
  %285 = load ptr, ptr %29, align 8, !tbaa !9
  %286 = getelementptr inbounds i8, ptr %285, i64 8
  store ptr %286, ptr %29, align 8, !tbaa !9
  %287 = load ptr, ptr %30, align 8, !tbaa !9
  %288 = getelementptr inbounds i8, ptr %287, i64 8
  store ptr %288, ptr %30, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #7
  store i32 0, ptr %38, align 4, !tbaa !5
  br label %289

289:                                              ; preds = %311, %284
  %290 = load i32, ptr %38, align 4, !tbaa !5
  %291 = icmp slt i32 %290, 8
  br i1 %291, label %293, label %292

292:                                              ; preds = %289
  store i32 20, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #7
  br label %314

293:                                              ; preds = %289
  %294 = load ptr, ptr %29, align 8, !tbaa !9
  %295 = load i32, ptr %38, align 4, !tbaa !5
  %296 = sext i32 %295 to i64
  %297 = getelementptr inbounds i8, ptr %294, i64 %296
  %298 = load i8, ptr %297, align 1, !tbaa !15
  %299 = sext i8 %298 to i32
  %300 = load ptr, ptr %30, align 8, !tbaa !9
  %301 = load i32, ptr %38, align 4, !tbaa !5
  %302 = sext i32 %301 to i64
  %303 = getelementptr inbounds i8, ptr %300, i64 %302
  %304 = load i8, ptr %303, align 1, !tbaa !15
  %305 = sext i8 %304 to i32
  %306 = mul nsw i32 %299, %305
  %307 = trunc i32 %306 to i16
  %308 = load i32, ptr %38, align 4, !tbaa !5
  %309 = sext i32 %308 to i64
  %310 = getelementptr inbounds [8 x i16], ptr %21, i64 0, i64 %309
  store i16 %307, ptr %310, align 2, !tbaa !19
  br label %311

311:                                              ; preds = %293
  %312 = load i32, ptr %38, align 4, !tbaa !5
  %313 = add nsw i32 %312, 1
  store i32 %313, ptr %38, align 4, !tbaa !5
  br label %289, !llvm.loop !23

314:                                              ; preds = %292
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #7
  store i32 0, ptr %39, align 4, !tbaa !5
  br label %315

315:                                              ; preds = %332, %314
  %316 = load i32, ptr %39, align 4, !tbaa !5
  %317 = icmp slt i32 %316, 8
  br i1 %317, label %319, label %318

318:                                              ; preds = %315
  store i32 23, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #7
  br label %335

319:                                              ; preds = %315
  %320 = load i32, ptr %35, align 4, !tbaa !5
  %321 = load i32, ptr %39, align 4, !tbaa !5
  %322 = sext i32 %321 to i64
  %323 = getelementptr inbounds [8 x i16], ptr %21, i64 0, i64 %322
  %324 = load i16, ptr %323, align 2, !tbaa !19
  %325 = sext i16 %324 to i32
  %326 = mul nsw i32 %320, %325
  %327 = load i32, ptr %39, align 4, !tbaa !5
  %328 = sext i32 %327 to i64
  %329 = getelementptr inbounds [8 x i32], ptr %23, i64 0, i64 %328
  %330 = load i32, ptr %329, align 4, !tbaa !5
  %331 = add nsw i32 %330, %326
  store i32 %331, ptr %329, align 4, !tbaa !5
  br label %332

332:                                              ; preds = %319
  %333 = load i32, ptr %39, align 4, !tbaa !5
  %334 = add nsw i32 %333, 1
  store i32 %334, ptr %39, align 4, !tbaa !5
  br label %315, !llvm.loop !24

335:                                              ; preds = %318
  %336 = load ptr, ptr %29, align 8, !tbaa !9
  %337 = getelementptr inbounds i8, ptr %336, i64 8
  store ptr %337, ptr %29, align 8, !tbaa !9
  %338 = load ptr, ptr %30, align 8, !tbaa !9
  %339 = getelementptr inbounds i8, ptr %338, i64 8
  store ptr %339, ptr %30, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #7
  br label %340

340:                                              ; preds = %335
  %341 = load i32, ptr %34, align 4, !tbaa !5
  %342 = add nsw i32 %341, 1
  store i32 %342, ptr %34, align 4, !tbaa !5
  br label %222, !llvm.loop !25

343:                                              ; preds = %225
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #7
  %344 = load ptr, ptr %17, align 8, !tbaa !9
  %345 = load i32, ptr %25, align 4, !tbaa !5
  %346 = sext i32 %345 to i64
  %347 = getelementptr inbounds %struct.block_q6_K, ptr %344, i64 %346
  %348 = getelementptr inbounds %struct.block_q6_K, ptr %347, i32 0, i32 3
  %349 = load i16, ptr %348, align 2, !tbaa !26
  %350 = call float @ggml_lookup_fp16_to_fp32(i16 noundef zeroext %349)
  %351 = load ptr, ptr %18, align 8, !tbaa !9
  %352 = load i32, ptr %25, align 4, !tbaa !5
  %353 = sext i32 %352 to i64
  %354 = getelementptr inbounds %struct.block_q8_K, ptr %351, i64 %353
  %355 = getelementptr inbounds %struct.block_q8_K, ptr %354, i32 0, i32 0
  %356 = load float, ptr %355, align 4, !tbaa !28
  %357 = fmul float %350, %356
  store float %357, ptr %40, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #7
  store i32 0, ptr %41, align 4, !tbaa !5
  br label %358

358:                                              ; preds = %374, %343
  %359 = load i32, ptr %41, align 4, !tbaa !5
  %360 = icmp slt i32 %359, 8
  br i1 %360, label %362, label %361

361:                                              ; preds = %358
  store i32 26, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #7
  br label %377

362:                                              ; preds = %358
  %363 = load float, ptr %40, align 4, !tbaa !13
  %364 = load i32, ptr %41, align 4, !tbaa !5
  %365 = sext i32 %364 to i64
  %366 = getelementptr inbounds [8 x i32], ptr %23, i64 0, i64 %365
  %367 = load i32, ptr %366, align 4, !tbaa !5
  %368 = sitofp i32 %367 to float
  %369 = load i32, ptr %41, align 4, !tbaa !5
  %370 = sext i32 %369 to i64
  %371 = getelementptr inbounds [8 x float], ptr %22, i64 0, i64 %370
  %372 = load float, ptr %371, align 4, !tbaa !13
  %373 = call float @llvm.fmuladd.f32(float %363, float %368, float %372)
  store float %373, ptr %371, align 4, !tbaa !13
  br label %374

374:                                              ; preds = %362
  %375 = load i32, ptr %41, align 4, !tbaa !5
  %376 = add nsw i32 %375, 1
  store i32 %376, ptr %41, align 4, !tbaa !5
  br label %358, !llvm.loop !30

377:                                              ; preds = %361
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  br label %378

378:                                              ; preds = %377
  %379 = load i32, ptr %25, align 4, !tbaa !5
  %380 = add nsw i32 %379, 1
  store i32 %380, ptr %25, align 4, !tbaa !5
  br label %63, !llvm.loop !31

381:                                              ; preds = %67
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #7
  store i32 0, ptr %42, align 4, !tbaa !5
  br label %382

382:                                              ; preds = %393, %381
  %383 = load i32, ptr %42, align 4, !tbaa !5
  %384 = icmp slt i32 %383, 8
  br i1 %384, label %386, label %385

385:                                              ; preds = %382
  store i32 29, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #7
  br label %396

386:                                              ; preds = %382
  %387 = load i32, ptr %42, align 4, !tbaa !5
  %388 = sext i32 %387 to i64
  %389 = getelementptr inbounds [8 x float], ptr %22, i64 0, i64 %388
  %390 = load float, ptr %389, align 4, !tbaa !13
  %391 = load float, ptr %24, align 4, !tbaa !13
  %392 = fadd float %391, %390
  store float %392, ptr %24, align 4, !tbaa !13
  br label %393

393:                                              ; preds = %386
  %394 = load i32, ptr %42, align 4, !tbaa !5
  %395 = add nsw i32 %394, 1
  store i32 %395, ptr %42, align 4, !tbaa !5
  br label %382, !llvm.loop !32

396:                                              ; preds = %385
  %397 = load float, ptr %24, align 4, !tbaa !13
  %398 = load ptr, ptr %10, align 8, !tbaa !9
  store float %397, ptr %398, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 256, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  ret void
}

attributes #0 = { noreturn nounwind "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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 #6 = { noreturn nounwind }
attributes #7 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = !{!20, !20, i64 0}
!20 = !{!"short", !7, i64 0}
!21 = distinct !{!21, !17}
!22 = distinct !{!22, !17}
!23 = distinct !{!23, !17}
!24 = distinct !{!24, !17}
!25 = distinct !{!25, !17}
!26 = !{!27, !20, i64 208}
!27 = !{!"", !7, i64 0, !7, i64 128, !7, i64 192, !20, i64 208}
!28 = !{!29, !14, i64 0}
!29 = !{!"", !14, i64 0, !7, i64 4, !7, i64 260}
!30 = distinct !{!30, !17}
!31 = distinct !{!31, !17}
!32 = distinct !{!32, !17}


; 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.block_q6_K = type { [128 x i8], [64 x i8], [16 x i8], i16 }
%struct.block_q8_K = type { float, [256 x i8], [16 x i16] }

@.str.1 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [14 x i8], align 1
@__PRETTY_FUNCTION__.ggml_vec_dot_q6_K_q8_K = external hidden unnamed_addr constant [123 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden float @ggml_lookup_fp16_to_fp32(i16 noundef zeroext) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @ggml_vec_dot_q6_K_q8_K(i32 noundef %0, ptr noalias nocapture noundef writeonly %1, i64 noundef %2, ptr noalias nocapture noundef readonly %3, i64 noundef %4, ptr noalias nocapture noundef readonly %5, i64 noundef %6, i32 noundef %7) local_unnamed_addr #3 {
  %9 = alloca [256 x i8], align 16
  %10 = and i32 %0, 255
  %11 = icmp eq i32 %10, 0
  br i1 %11, label %13, label %12

12:                                               ; preds = %8
  tail call void @__assert_fail(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, i32 noundef 8416, ptr noundef nonnull @__PRETTY_FUNCTION__.ggml_vec_dot_q6_K_q8_K) #5
  unreachable

13:                                               ; preds = %8
  %14 = icmp eq i32 %7, 1
  br i1 %14, label %16, label %15

15:                                               ; preds = %13
  tail call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 8417, ptr noundef nonnull @__PRETTY_FUNCTION__.ggml_vec_dot_q6_K_q8_K) #5
  unreachable

16:                                               ; preds = %13
  %17 = ashr exact i32 %0, 8
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %9) #6
  %18 = icmp sgt i32 %17, 0
  br i1 %18, label %.lr.ph.preheader, label %.preheader

.lr.ph.preheader:                                 ; preds = %16
  %wide.trip.count = zext nneg i32 %17 to i64
  %19 = getelementptr inbounds i8, ptr %9, i64 128
  %20 = getelementptr inbounds i8, ptr %9, i64 32
  %21 = getelementptr inbounds i8, ptr %9, i64 64
  %22 = getelementptr inbounds i8, ptr %9, i64 96
  %23 = getelementptr inbounds i8, ptr %9, i64 16
  %24 = getelementptr inbounds i8, ptr %9, i64 48
  %25 = getelementptr inbounds i8, ptr %9, i64 80
  %26 = getelementptr inbounds i8, ptr %9, i64 112
  %27 = getelementptr inbounds i8, ptr %9, i64 160
  %28 = getelementptr inbounds i8, ptr %9, i64 192
  %29 = getelementptr inbounds i8, ptr %9, i64 224
  %30 = getelementptr inbounds i8, ptr %9, i64 144
  %31 = getelementptr inbounds i8, ptr %9, i64 176
  %32 = getelementptr inbounds i8, ptr %9, i64 208
  %33 = getelementptr inbounds i8, ptr %9, i64 240
  br label %.lr.ph

.preheader.loopexit:                              ; preds = %143
  %34 = extractelement <8 x float> %152, i64 0
  %35 = fadd float %34, 0.000000e+00
  %36 = extractelement <8 x float> %152, i64 1
  %37 = fadd float %35, %36
  %38 = extractelement <8 x float> %152, i64 2
  %39 = fadd float %37, %38
  %40 = extractelement <8 x float> %152, i64 3
  %41 = fadd float %39, %40
  %42 = extractelement <8 x float> %152, i64 4
  %43 = fadd float %41, %42
  %44 = extractelement <8 x float> %152, i64 5
  %45 = fadd float %43, %44
  %46 = extractelement <8 x float> %152, i64 6
  %47 = fadd float %45, %46
  %48 = extractelement <8 x float> %152, i64 7
  %49 = fadd float %47, %48
  br label %.preheader

.preheader:                                       ; preds = %.preheader.loopexit, %16
  %50 = phi float [ %49, %.preheader.loopexit ], [ 0.000000e+00, %16 ]
  store float %50, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %9) #6
  ret void

.lr.ph:                                           ; preds = %.lr.ph.preheader, %143
  %indvars.iv159 = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next160, %143 ]
  %51 = phi <8 x float> [ zeroinitializer, %.lr.ph.preheader ], [ %152, %143 ]
  %52 = getelementptr inbounds %struct.block_q6_K, ptr %3, i64 %indvars.iv159
  %53 = getelementptr inbounds %struct.block_q8_K, ptr %5, i64 %indvars.iv159
  %54 = getelementptr inbounds i8, ptr %52, i64 128
  %wide.load256 = load <16 x i8>, ptr %52, align 1, !tbaa !9
  %55 = and <16 x i8> %wide.load256, <i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15>
  %wide.load257 = load <16 x i8>, ptr %54, align 1, !tbaa !9
  %56 = shl <16 x i8> %wide.load257, <i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4>
  %57 = and <16 x i8> %56, <i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48>
  %58 = or disjoint <16 x i8> %55, <i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32>
  %59 = add nsw <16 x i8> %58, %57
  store <16 x i8> %59, ptr %9, align 16, !tbaa !9
  %60 = getelementptr inbounds i8, ptr %52, i64 32
  %wide.load258 = load <16 x i8>, ptr %60, align 1, !tbaa !9
  %61 = and <16 x i8> %wide.load258, <i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15>
  %62 = shl <16 x i8> %wide.load257, <i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2>
  %63 = and <16 x i8> %62, <i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48>
  %64 = add nsw <16 x i8> %63, <i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32>
  %65 = or disjoint <16 x i8> %64, %61
  store <16 x i8> %65, ptr %20, align 16, !tbaa !9
  %66 = lshr <16 x i8> %wide.load256, <i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4>
  %67 = and <16 x i8> %wide.load257, <i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48>
  %68 = or disjoint <16 x i8> %66, <i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32>
  %69 = add nsw <16 x i8> %68, %67
  store <16 x i8> %69, ptr %21, align 16, !tbaa !9
  %70 = lshr <16 x i8> %wide.load258, <i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4>
  %71 = lshr <16 x i8> %wide.load257, <i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2>
  %72 = and <16 x i8> %71, <i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48>
  %73 = add nsw <16 x i8> %72, <i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32>
  %74 = or disjoint <16 x i8> %73, %70
  store <16 x i8> %74, ptr %22, align 16, !tbaa !9
  %75 = getelementptr inbounds i8, ptr %52, i64 16
  %wide.load256.1 = load <16 x i8>, ptr %75, align 1, !tbaa !9
  %76 = and <16 x i8> %wide.load256.1, <i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15>
  %77 = getelementptr inbounds i8, ptr %52, i64 144
  %wide.load257.1 = load <16 x i8>, ptr %77, align 1, !tbaa !9
  %78 = shl <16 x i8> %wide.load257.1, <i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4>
  %79 = and <16 x i8> %78, <i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48>
  %80 = or disjoint <16 x i8> %76, <i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32>
  %81 = add nsw <16 x i8> %80, %79
  store <16 x i8> %81, ptr %23, align 16, !tbaa !9
  %82 = getelementptr inbounds i8, ptr %52, i64 48
  %wide.load258.1 = load <16 x i8>, ptr %82, align 1, !tbaa !9
  %83 = and <16 x i8> %wide.load258.1, <i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15>
  %84 = shl <16 x i8> %wide.load257.1, <i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2>
  %85 = and <16 x i8> %84, <i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48>
  %86 = add nsw <16 x i8> %85, <i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32>
  %87 = or disjoint <16 x i8> %86, %83
  store <16 x i8> %87, ptr %24, align 16, !tbaa !9
  %88 = lshr <16 x i8> %wide.load256.1, <i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4>
  %89 = and <16 x i8> %wide.load257.1, <i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48>
  %90 = or disjoint <16 x i8> %88, <i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32>
  %91 = add nsw <16 x i8> %90, %89
  store <16 x i8> %91, ptr %25, align 16, !tbaa !9
  %92 = lshr <16 x i8> %wide.load258.1, <i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4>
  %93 = lshr <16 x i8> %wide.load257.1, <i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2>
  %94 = and <16 x i8> %93, <i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48>
  %95 = add nsw <16 x i8> %94, <i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32>
  %96 = or disjoint <16 x i8> %95, %92
  store <16 x i8> %96, ptr %26, align 16, !tbaa !9
  %97 = getelementptr inbounds i8, ptr %52, i64 160
  %98 = getelementptr inbounds i8, ptr %52, i64 64
  %wide.load = load <16 x i8>, ptr %98, align 1, !tbaa !9
  %99 = and <16 x i8> %wide.load, <i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15>
  %wide.load248 = load <16 x i8>, ptr %97, align 1, !tbaa !9
  %100 = shl <16 x i8> %wide.load248, <i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4>
  %101 = and <16 x i8> %100, <i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48>
  %102 = or disjoint <16 x i8> %99, <i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32>
  %103 = add nsw <16 x i8> %102, %101
  store <16 x i8> %103, ptr %19, align 16, !tbaa !9
  %104 = getelementptr inbounds i8, ptr %52, i64 96
  %wide.load249 = load <16 x i8>, ptr %104, align 1, !tbaa !9
  %105 = and <16 x i8> %wide.load249, <i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15>
  %106 = shl <16 x i8> %wide.load248, <i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2>
  %107 = and <16 x i8> %106, <i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48>
  %108 = add nsw <16 x i8> %107, <i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32>
  %109 = or disjoint <16 x i8> %108, %105
  store <16 x i8> %109, ptr %27, align 16, !tbaa !9
  %110 = lshr <16 x i8> %wide.load, <i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4>
  %111 = and <16 x i8> %wide.load248, <i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48>
  %112 = or disjoint <16 x i8> %110, <i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32>
  %113 = add nsw <16 x i8> %112, %111
  store <16 x i8> %113, ptr %28, align 16, !tbaa !9
  %114 = lshr <16 x i8> %wide.load249, <i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4>
  %115 = lshr <16 x i8> %wide.load248, <i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2>
  %116 = and <16 x i8> %115, <i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48>
  %117 = add nsw <16 x i8> %116, <i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32>
  %118 = or disjoint <16 x i8> %117, %114
  store <16 x i8> %118, ptr %29, align 16, !tbaa !9
  %119 = getelementptr inbounds i8, ptr %52, i64 80
  %wide.load.1 = load <16 x i8>, ptr %119, align 1, !tbaa !9
  %120 = and <16 x i8> %wide.load.1, <i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15>
  %121 = getelementptr inbounds i8, ptr %52, i64 176
  %wide.load248.1 = load <16 x i8>, ptr %121, align 1, !tbaa !9
  %122 = shl <16 x i8> %wide.load248.1, <i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4>
  %123 = and <16 x i8> %122, <i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48>
  %124 = or disjoint <16 x i8> %120, <i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32>
  %125 = add nsw <16 x i8> %124, %123
  store <16 x i8> %125, ptr %30, align 16, !tbaa !9
  %126 = getelementptr inbounds i8, ptr %52, i64 112
  %wide.load249.1 = load <16 x i8>, ptr %126, align 1, !tbaa !9
  %127 = and <16 x i8> %wide.load249.1, <i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15>
  %128 = shl <16 x i8> %wide.load248.1, <i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2>
  %129 = and <16 x i8> %128, <i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48>
  %130 = add nsw <16 x i8> %129, <i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32>
  %131 = or disjoint <16 x i8> %130, %127
  store <16 x i8> %131, ptr %31, align 16, !tbaa !9
  %132 = lshr <16 x i8> %wide.load.1, <i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4>
  %133 = and <16 x i8> %wide.load248.1, <i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48>
  %134 = or disjoint <16 x i8> %132, <i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32>
  %135 = add nsw <16 x i8> %134, %133
  store <16 x i8> %135, ptr %32, align 16, !tbaa !9
  %136 = lshr <16 x i8> %wide.load249.1, <i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4>
  %137 = lshr <16 x i8> %wide.load248.1, <i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2>
  %138 = and <16 x i8> %137, <i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48>
  %139 = add nsw <16 x i8> %138, <i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32>
  %140 = or disjoint <16 x i8> %139, %136
  store <16 x i8> %140, ptr %33, align 16, !tbaa !9
  %141 = getelementptr inbounds i8, ptr %53, i64 4
  %142 = getelementptr inbounds i8, ptr %52, i64 192
  br label %.preheader112.preheader

143:                                              ; preds = %.preheader112.preheader
  %144 = getelementptr inbounds i8, ptr %52, i64 208
  %145 = load i16, ptr %144, align 2, !tbaa !10
  %146 = tail call float @ggml_lookup_fp16_to_fp32(i16 noundef zeroext %145)
  %147 = load float, ptr %53, align 4, !tbaa !13
  %148 = fmul float %146, %147
  %149 = sitofp <8 x i32> %174 to <8 x float>
  %150 = insertelement <8 x float> poison, float %148, i64 0
  %151 = shufflevector <8 x float> %150, <8 x float> poison, <8 x i32> zeroinitializer
  %152 = tail call <8 x float> @llvm.fmuladd.v8f32(<8 x float> %151, <8 x float> %149, <8 x float> %51)
  %indvars.iv.next160 = add nuw nsw i64 %indvars.iv159, 1
  %exitcond162.not = icmp eq i64 %indvars.iv.next160, %wide.trip.count
  br i1 %exitcond162.not, label %.preheader.loopexit, label %.lr.ph, !llvm.loop !15

.preheader112.preheader:                          ; preds = %.lr.ph, %.preheader112.preheader
  %indvars.iv149 = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next150, %.preheader112.preheader ]
  %.1125 = phi ptr [ %9, %.lr.ph ], [ %176, %.preheader112.preheader ]
  %.0108124 = phi ptr [ %141, %.lr.ph ], [ %175, %.preheader112.preheader ]
  %153 = phi <8 x i32> [ zeroinitializer, %.lr.ph ], [ %174, %.preheader112.preheader ]
  %154 = getelementptr inbounds [16 x i8], ptr %142, i64 0, i64 %indvars.iv149
  %155 = load i8, ptr %154, align 1, !tbaa !9
  %156 = sext i8 %155 to i32
  %157 = getelementptr inbounds i8, ptr %.0108124, i64 8
  %158 = getelementptr inbounds i8, ptr %.1125, i64 8
  %159 = load <8 x i8>, ptr %.0108124, align 1, !tbaa !9
  %160 = sext <8 x i8> %159 to <8 x i32>
  %161 = load <8 x i8>, ptr %.1125, align 1, !tbaa !9
  %162 = sext <8 x i8> %161 to <8 x i32>
  %163 = mul nsw <8 x i32> %162, %160
  %164 = insertelement <8 x i32> poison, i32 %156, i64 0
  %165 = shufflevector <8 x i32> %164, <8 x i32> poison, <8 x i32> zeroinitializer
  %166 = mul nsw <8 x i32> %163, %165
  %167 = add nsw <8 x i32> %166, %153
  %168 = load <8 x i8>, ptr %157, align 1, !tbaa !9
  %169 = sext <8 x i8> %168 to <8 x i32>
  %170 = load <8 x i8>, ptr %158, align 1, !tbaa !9
  %171 = sext <8 x i8> %170 to <8 x i32>
  %172 = mul nsw <8 x i32> %171, %169
  %173 = mul nsw <8 x i32> %172, %165
  %174 = add nsw <8 x i32> %173, %167
  %indvars.iv.next150 = add nuw nsw i64 %indvars.iv149, 1
  %175 = getelementptr inbounds i8, ptr %.0108124, i64 16
  %176 = getelementptr inbounds i8, ptr %.1125, i64 16
  %exitcond154.not = icmp eq i64 %indvars.iv.next150, 16
  br i1 %exitcond154.not, label %143, label %.preheader112.preheader, !llvm.loop !17
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <8 x float> @llvm.fmuladd.v8f32(<8 x float>, <8 x float>, <8 x float>) #4

attributes #0 = { noreturn nounwind "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind 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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { noreturn nounwind }
attributes #6 = { 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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !12, i64 208}
!11 = !{!"", !7, i64 0, !7, i64 128, !7, i64 192, !12, i64 208}
!12 = !{!"short", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"", !6, i64 0, !7, i64 4, !7, i64 260}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass