; LLVM IR from ggml-org/ggml :: src (ggml-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_iq2_xs = type { i16, [32 x i16], [8 x i8] }

@.str.1 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [14 x i8], align 1
@ksigns_iq2xs = external hidden constant [128 x i8], align 16
@kmask_iq2xs = external hidden constant [8 x i8], align 1
@__PRETTY_FUNCTION__.dequantize_row_iq2_xs = external hidden unnamed_addr constant [83 x i8], align 1
@iq2xs_grid = external hidden constant [512 x i64], align 16

; 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: nounwind uwtable
define dso_local void @dequantize_row_iq2_xs(ptr noalias noundef %0, ptr noalias noundef %1, i64 noundef %2) #3 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca [2 x float], align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca float, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i8, align 1
  %16 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i64 %2, ptr %6, align 8, !tbaa !9
  %17 = load i64, ptr %6, align 8, !tbaa !9
  %18 = srem i64 %17, 256
  %19 = icmp eq i64 %18, 0
  br i1 %19, label %20, label %21

20:                                               ; preds = %3
  br label %22

21:                                               ; preds = %3
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 2226, ptr noundef @__PRETTY_FUNCTION__.dequantize_row_iq2_xs) #4
  unreachable

22:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %23 = load i64, ptr %6, align 8, !tbaa !9
  %24 = sdiv i64 %23, 256
  store i64 %24, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !11
  br label %25

25:                                               ; preds = %164, %22
  %26 = load i32, ptr %9, align 4, !tbaa !11
  %27 = sext i32 %26 to i64
  %28 = load i64, ptr %7, align 8, !tbaa !9
  %29 = icmp slt i64 %27, %28
  br i1 %29, label %31, label %30

30:                                               ; preds = %25
  store i32 2, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %167

31:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = load i32, ptr %9, align 4, !tbaa !11
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds %struct.block_iq2_xs, ptr %32, i64 %34
  %36 = getelementptr inbounds %struct.block_iq2_xs, ptr %35, i32 0, i32 0
  %37 = load i16, ptr %36, align 2, !tbaa !13
  %38 = call float @ggml_lookup_fp16_to_fp32(i16 noundef zeroext %37)
  store float %38, ptr %11, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !11
  br label %39

39:                                               ; preds = %160, %31
  %40 = load i32, ptr %12, align 4, !tbaa !11
  %41 = icmp slt i32 %40, 8
  br i1 %41, label %43, label %42

42:                                               ; preds = %39
  store i32 5, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %163

43:                                               ; preds = %39
  %44 = load float, ptr %11, align 4, !tbaa !16
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = load i32, ptr %9, align 4, !tbaa !11
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds %struct.block_iq2_xs, ptr %45, i64 %47
  %49 = getelementptr inbounds %struct.block_iq2_xs, ptr %48, i32 0, i32 2
  %50 = load i32, ptr %12, align 4, !tbaa !11
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [8 x i8], ptr %49, i64 0, i64 %51
  %53 = load i8, ptr %52, align 1, !tbaa !18
  %54 = zext i8 %53 to i32
  %55 = and i32 %54, 15
  %56 = sitofp i32 %55 to float
  %57 = fadd float 5.000000e-01, %56
  %58 = fmul float %44, %57
  %59 = fmul float %58, 2.500000e-01
  %60 = getelementptr inbounds [2 x float], ptr %8, i64 0, i64 0
  store float %59, ptr %60, align 4, !tbaa !16
  %61 = load float, ptr %11, align 4, !tbaa !16
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = load i32, ptr %9, align 4, !tbaa !11
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds %struct.block_iq2_xs, ptr %62, i64 %64
  %66 = getelementptr inbounds %struct.block_iq2_xs, ptr %65, i32 0, i32 2
  %67 = load i32, ptr %12, align 4, !tbaa !11
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [8 x i8], ptr %66, i64 0, i64 %68
  %70 = load i8, ptr %69, align 1, !tbaa !18
  %71 = zext i8 %70 to i32
  %72 = ashr i32 %71, 4
  %73 = sitofp i32 %72 to float
  %74 = fadd float 5.000000e-01, %73
  %75 = fmul float %61, %74
  %76 = fmul float %75, 2.500000e-01
  %77 = getelementptr inbounds [2 x float], ptr %8, i64 0, i64 1
  store float %76, ptr %77, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 0, ptr %13, align 4, !tbaa !11
  br label %78

78:                                               ; preds = %156, %43
  %79 = load i32, ptr %13, align 4, !tbaa !11
  %80 = icmp slt i32 %79, 4
  br i1 %80, label %82, label %81

81:                                               ; preds = %78
  store i32 8, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %159

82:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  %84 = load i32, ptr %9, align 4, !tbaa !11
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds %struct.block_iq2_xs, ptr %83, i64 %85
  %87 = getelementptr inbounds %struct.block_iq2_xs, ptr %86, i32 0, i32 1
  %88 = load i32, ptr %12, align 4, !tbaa !11
  %89 = mul nsw i32 4, %88
  %90 = load i32, ptr %13, align 4, !tbaa !11
  %91 = add nsw i32 %89, %90
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [32 x i16], ptr %87, i64 0, i64 %92
  %94 = load i16, ptr %93, align 2, !tbaa !19
  %95 = zext i16 %94 to i32
  %96 = and i32 %95, 511
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds i64, ptr @iq2xs_grid, i64 %97
  store ptr %98, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #5
  %99 = load ptr, ptr %4, align 8, !tbaa !5
  %100 = load i32, ptr %9, align 4, !tbaa !11
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds %struct.block_iq2_xs, ptr %99, i64 %101
  %103 = getelementptr inbounds %struct.block_iq2_xs, ptr %102, i32 0, i32 1
  %104 = load i32, ptr %12, align 4, !tbaa !11
  %105 = mul nsw i32 4, %104
  %106 = load i32, ptr %13, align 4, !tbaa !11
  %107 = add nsw i32 %105, %106
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [32 x i16], ptr %103, i64 0, i64 %108
  %110 = load i16, ptr %109, align 2, !tbaa !19
  %111 = zext i16 %110 to i32
  %112 = ashr i32 %111, 9
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [128 x i8], ptr @ksigns_iq2xs, i64 0, i64 %113
  %115 = load i8, ptr %114, align 1, !tbaa !18
  store i8 %115, ptr %15, align 1, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 0, ptr %16, align 4, !tbaa !11
  br label %116

116:                                              ; preds = %150, %82
  %117 = load i32, ptr %16, align 4, !tbaa !11
  %118 = icmp slt i32 %117, 8
  br i1 %118, label %120, label %119

119:                                              ; preds = %116
  store i32 11, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %153

120:                                              ; preds = %116
  %121 = load i32, ptr %13, align 4, !tbaa !11
  %122 = sdiv i32 %121, 2
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [2 x float], ptr %8, i64 0, i64 %123
  %125 = load float, ptr %124, align 4, !tbaa !16
  %126 = load ptr, ptr %14, align 8, !tbaa !5
  %127 = load i32, ptr %16, align 4, !tbaa !11
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds i8, ptr %126, i64 %128
  %130 = load i8, ptr %129, align 1, !tbaa !18
  %131 = zext i8 %130 to i32
  %132 = sitofp i32 %131 to float
  %133 = fmul float %125, %132
  %134 = load i8, ptr %15, align 1, !tbaa !18
  %135 = zext i8 %134 to i32
  %136 = load i32, ptr %16, align 4, !tbaa !11
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [8 x i8], ptr @kmask_iq2xs, i64 0, i64 %137
  %139 = load i8, ptr %138, align 1, !tbaa !18
  %140 = zext i8 %139 to i32
  %141 = and i32 %135, %140
  %142 = icmp ne i32 %141, 0
  %143 = zext i1 %142 to i64
  %144 = select i1 %142, float -1.000000e+00, float 1.000000e+00
  %145 = fmul float %133, %144
  %146 = load ptr, ptr %5, align 8, !tbaa !5
  %147 = load i32, ptr %16, align 4, !tbaa !11
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds float, ptr %146, i64 %148
  store float %145, ptr %149, align 4, !tbaa !16
  br label %150

150:                                              ; preds = %120
  %151 = load i32, ptr %16, align 4, !tbaa !11
  %152 = add nsw i32 %151, 1
  store i32 %152, ptr %16, align 4, !tbaa !11
  br label %116, !llvm.loop !20

153:                                              ; preds = %119
  %154 = load ptr, ptr %5, align 8, !tbaa !5
  %155 = getelementptr inbounds float, ptr %154, i64 8
  store ptr %155, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %156

156:                                              ; preds = %153
  %157 = load i32, ptr %13, align 4, !tbaa !11
  %158 = add nsw i32 %157, 1
  store i32 %158, ptr %13, align 4, !tbaa !11
  br label %78, !llvm.loop !22

159:                                              ; preds = %81
  br label %160

160:                                              ; preds = %159
  %161 = load i32, ptr %12, align 4, !tbaa !11
  %162 = add nsw i32 %161, 1
  store i32 %162, ptr %12, align 4, !tbaa !11
  br label %39, !llvm.loop !23

163:                                              ; preds = %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %164

164:                                              ; preds = %163
  %165 = load i32, ptr %9, align 4, !tbaa !11
  %166 = add nsw i32 %165, 1
  store i32 %166, ptr %9, align 4, !tbaa !11
  br label %25, !llvm.loop !24

167:                                              ; preds = %30
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  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 = { 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 = { noreturn nounwind }
attributes #5 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"", !15, i64 0, !7, i64 2, !7, i64 66}
!15 = !{!"short", !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"float", !7, i64 0}
!18 = !{!7, !7, i64 0}
!19 = !{!15, !15, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = distinct !{!23, !21}
!24 = distinct !{!24, !21}


; 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_iq2_xs = type { i16, [32 x i16], [8 x i8] }

@.str.1 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [14 x i8], align 1
@ksigns_iq2xs = external hidden local_unnamed_addr constant [128 x i8], align 16
@kmask_iq2xs = external hidden local_unnamed_addr constant [8 x i8], align 1
@__PRETTY_FUNCTION__.dequantize_row_iq2_xs = external hidden unnamed_addr constant [83 x i8], align 1
@iq2xs_grid = external hidden local_unnamed_addr constant [512 x i64], align 16

; 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 @dequantize_row_iq2_xs(ptr noalias nocapture noundef readonly %0, ptr noalias nocapture noundef writeonly %1, i64 noundef %2) local_unnamed_addr #3 {
  %4 = alloca [2 x float], align 8
  %5 = and i64 %2, 255
  %6 = icmp eq i64 %5, 0
  br i1 %6, label %8, label %7

7:                                                ; preds = %3
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 2226, ptr noundef nonnull @__PRETTY_FUNCTION__.dequantize_row_iq2_xs) #4
  unreachable

8:                                                ; preds = %3
  %9 = ashr exact i64 %2, 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %10 = icmp sgt i64 %9, 0
  br i1 %10, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %8
  %11 = load <8 x i8>, ptr @kmask_iq2xs, align 1
  br label %12

._crit_edge:                                      ; preds = %20, %8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  ret void

12:                                               ; preds = %.lr.ph, %20
  %indvars.iv54 = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next55, %20 ]
  %.03647 = phi ptr [ %1, %.lr.ph ], [ %123, %20 ]
  %13 = getelementptr inbounds %struct.block_iq2_xs, ptr %0, i64 %indvars.iv54
  %14 = load i16, ptr %13, align 2, !tbaa !5
  %15 = tail call float @ggml_lookup_fp16_to_fp32(i16 noundef zeroext %14)
  %16 = getelementptr inbounds i8, ptr %13, i64 66
  %17 = getelementptr inbounds i8, ptr %13, i64 2
  %18 = insertelement <2 x float> poison, float %15, i64 0
  %19 = shufflevector <2 x float> %18, <2 x float> poison, <2 x i32> zeroinitializer
  br label %21

20:                                               ; preds = %33
  %indvars.iv.next55 = add nuw nsw i64 %indvars.iv54, 1
  %exitcond57.not = icmp eq i64 %indvars.iv.next55, %9
  br i1 %exitcond57.not, label %._crit_edge, label %12, !llvm.loop !10

21:                                               ; preds = %12, %33
  %indvars.iv50 = phi i64 [ 0, %12 ], [ %indvars.iv.next51, %33 ]
  %.145 = phi ptr [ %.03647, %12 ], [ %123, %33 ]
  %22 = getelementptr inbounds [8 x i8], ptr %16, i64 0, i64 %indvars.iv50
  %23 = load i8, ptr %22, align 1, !tbaa !12
  %24 = and i8 %23, 15
  %25 = lshr i8 %23, 4
  %26 = insertelement <2 x i8> poison, i8 %24, i64 0
  %27 = insertelement <2 x i8> %26, i8 %25, i64 1
  %28 = uitofp nneg <2 x i8> %27 to <2 x float>
  %29 = fadd <2 x float> %28, <float 5.000000e-01, float 5.000000e-01>
  %30 = fmul <2 x float> %19, %29
  %31 = fmul <2 x float> %30, <float 2.500000e-01, float 2.500000e-01>
  store <2 x float> %31, ptr %4, align 8, !tbaa !13
  %32 = shl nuw nsw i64 %indvars.iv50, 2
  br label %34

33:                                               ; preds = %34
  %indvars.iv.next51 = add nuw nsw i64 %indvars.iv50, 1
  %exitcond53.not = icmp eq i64 %indvars.iv.next51, 8
  br i1 %exitcond53.not, label %20, label %21, !llvm.loop !15

34:                                               ; preds = %21, %34
  %indvars.iv = phi i64 [ 0, %21 ], [ %indvars.iv.next, %34 ]
  %.243 = phi ptr [ %.145, %21 ], [ %123, %34 ]
  %35 = add nuw nsw i64 %indvars.iv, %32
  %36 = getelementptr inbounds [32 x i16], ptr %17, i64 0, i64 %35
  %37 = load i16, ptr %36, align 2, !tbaa !16
  %38 = zext i16 %37 to i32
  %39 = and i32 %38, 511
  %40 = zext nneg i32 %39 to i64
  %41 = getelementptr inbounds i64, ptr @iq2xs_grid, i64 %40
  %42 = lshr i32 %38, 9
  %43 = zext nneg i32 %42 to i64
  %44 = getelementptr inbounds [128 x i8], ptr @ksigns_iq2xs, i64 0, i64 %43
  %45 = load i8, ptr %44, align 1, !tbaa !12
  %46 = lshr i64 %indvars.iv, 1
  %47 = and i64 %46, 2147483647
  %48 = getelementptr inbounds [2 x float], ptr %4, i64 0, i64 %47
  %49 = load float, ptr %48, align 4, !tbaa !13
  %50 = load i8, ptr %41, align 8, !tbaa !12
  %51 = uitofp i8 %50 to float
  %52 = fmul float %49, %51
  %53 = fneg float %52
  %54 = getelementptr inbounds i8, ptr %41, i64 1
  %55 = getelementptr inbounds i8, ptr %.243, i64 4
  %56 = getelementptr inbounds i8, ptr %41, i64 2
  %57 = getelementptr inbounds i8, ptr %.243, i64 8
  %58 = getelementptr inbounds i8, ptr %41, i64 3
  %59 = getelementptr inbounds i8, ptr %.243, i64 12
  %60 = getelementptr inbounds i8, ptr %41, i64 4
  %61 = getelementptr inbounds i8, ptr %.243, i64 16
  %62 = getelementptr inbounds i8, ptr %41, i64 5
  %63 = getelementptr inbounds i8, ptr %.243, i64 20
  %64 = getelementptr inbounds i8, ptr %41, i64 6
  %65 = getelementptr inbounds i8, ptr %.243, i64 24
  %66 = getelementptr inbounds i8, ptr %41, i64 7
  %67 = insertelement <8 x i8> poison, i8 %45, i64 0
  %68 = shufflevector <8 x i8> %67, <8 x i8> poison, <8 x i32> zeroinitializer
  %69 = and <8 x i8> %11, %68
  %70 = icmp eq <8 x i8> %69, zeroinitializer
  %71 = extractelement <8 x i1> %70, i64 0
  %72 = select i1 %71, float %52, float %53
  store float %72, ptr %.243, align 4, !tbaa !13
  %73 = load float, ptr %48, align 4, !tbaa !13
  %74 = load i8, ptr %54, align 1, !tbaa !12
  %75 = uitofp i8 %74 to float
  %76 = fmul float %73, %75
  %77 = fneg float %76
  %78 = extractelement <8 x i1> %70, i64 1
  %79 = select i1 %78, float %76, float %77
  store float %79, ptr %55, align 4, !tbaa !13
  %80 = load float, ptr %48, align 4, !tbaa !13
  %81 = load i8, ptr %56, align 2, !tbaa !12
  %82 = uitofp i8 %81 to float
  %83 = fmul float %80, %82
  %84 = fneg float %83
  %85 = extractelement <8 x i1> %70, i64 2
  %86 = select i1 %85, float %83, float %84
  store float %86, ptr %57, align 4, !tbaa !13
  %87 = load float, ptr %48, align 4, !tbaa !13
  %88 = load i8, ptr %58, align 1, !tbaa !12
  %89 = uitofp i8 %88 to float
  %90 = fmul float %87, %89
  %91 = fneg float %90
  %92 = extractelement <8 x i1> %70, i64 3
  %93 = select i1 %92, float %90, float %91
  store float %93, ptr %59, align 4, !tbaa !13
  %94 = load float, ptr %48, align 4, !tbaa !13
  %95 = load i8, ptr %60, align 4, !tbaa !12
  %96 = uitofp i8 %95 to float
  %97 = fmul float %94, %96
  %98 = fneg float %97
  %99 = extractelement <8 x i1> %70, i64 4
  %100 = select i1 %99, float %97, float %98
  store float %100, ptr %61, align 4, !tbaa !13
  %101 = load float, ptr %48, align 4, !tbaa !13
  %102 = load i8, ptr %62, align 1, !tbaa !12
  %103 = uitofp i8 %102 to float
  %104 = fmul float %101, %103
  %105 = fneg float %104
  %106 = extractelement <8 x i1> %70, i64 5
  %107 = select i1 %106, float %104, float %105
  store float %107, ptr %63, align 4, !tbaa !13
  %108 = load float, ptr %48, align 4, !tbaa !13
  %109 = load i8, ptr %64, align 2, !tbaa !12
  %110 = uitofp i8 %109 to float
  %111 = fmul float %108, %110
  %112 = fneg float %111
  %113 = extractelement <8 x i1> %70, i64 6
  %114 = select i1 %113, float %111, float %112
  store float %114, ptr %65, align 4, !tbaa !13
  %115 = load float, ptr %48, align 4, !tbaa !13
  %116 = load i8, ptr %66, align 1, !tbaa !12
  %117 = uitofp i8 %116 to float
  %118 = fmul float %115, %117
  %119 = fneg float %118
  %120 = extractelement <8 x i1> %70, i64 7
  %121 = select i1 %120, float %118, float %119
  %122 = getelementptr inbounds i8, ptr %.243, i64 28
  store float %121, ptr %122, align 4, !tbaa !13
  %123 = getelementptr inbounds i8, ptr %.243, i64 32
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 4
  br i1 %exitcond.not, label %33, label %34, !llvm.loop !17
}

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 = { noreturn nounwind }
attributes #5 = { 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 0}
!6 = !{!"", !7, i64 0, !8, i64 2, !8, i64 66}
!7 = !{!"short", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = !{!8, !8, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !8, i64 0}
!15 = distinct !{!15, !11}
!16 = !{!7, !7, i64 0}
!17 = distinct !{!17, !11}


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