; LLVM IR from CerebusOSS/CereLink :: cbhwlib/cbHwlibHi.ll (Z12cbGetScalingjPjS_S_j)

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z14IsChanAnalogInjj(i32 noundef, i32 noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z16IsChanFEAnalogInjj(i32 noundef, i32 noundef) #1

declare noundef i32 @_Z16cbGetAinpScalingjP9cbSCALINGj(i32 noundef, ptr noundef, i32 noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z12cbGetScalingjPjS_S_j(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4) #1 {
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %struct.cbSCALING, align 1
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  store i32 %0, ptr %7, align 4, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !9
  store ptr %2, ptr %9, align 8, !tbaa !9
  store ptr %3, ptr %10, align 8, !tbaa !9
  store i32 %4, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %17 = load i32, ptr %7, align 4, !tbaa !5
  %18 = call noundef zeroext i1 @_Z14IsChanAnalogInjj(i32 noundef %17, i32 noundef 0)
  br i1 %18, label %20, label %19

19:                                               ; preds = %5
  store i32 6, ptr %6, align 4
  store i32 1, ptr %16, align 4
  br label %208

20:                                               ; preds = %5
  %21 = load i32, ptr %7, align 4, !tbaa !5
  %22 = load i32, ptr %11, align 4, !tbaa !5
  %23 = call noundef i32 @_Z16cbGetAinpScalingjP9cbSCALINGj(i32 noundef %21, ptr noundef %13, i32 noundef %22)
  store i32 %23, ptr %12, align 4, !tbaa !5
  %24 = load i32, ptr %12, align 4, !tbaa !5
  %25 = icmp ne i32 %24, 0
  br i1 %25, label %26, label %28

26:                                               ; preds = %20
  %27 = load i32, ptr %12, align 4, !tbaa !5
  store i32 %27, ptr %6, align 4
  store i32 1, ptr %16, align 4
  br label %208

28:                                               ; preds = %20
  %29 = getelementptr inbounds %struct.cbSCALING, ptr %13, i32 0, i32 3
  %30 = load i32, ptr %29, align 1, !tbaa !11
  %31 = getelementptr inbounds %struct.cbSCALING, ptr %13, i32 0, i32 4
  %32 = load i32, ptr %31, align 1, !tbaa !14
  %33 = sdiv i32 %30, %32
  store i32 %33, ptr %14, align 4, !tbaa !5
  %34 = load i32, ptr %7, align 4, !tbaa !5
  %35 = call noundef zeroext i1 @_Z16IsChanFEAnalogInjj(i32 noundef %34, i32 noundef 0)
  br i1 %35, label %36, label %127

36:                                               ; preds = %28
  %37 = load ptr, ptr %9, align 8, !tbaa !9
  %38 = icmp ne ptr %37, null
  br i1 %38, label %39, label %62

39:                                               ; preds = %36
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %40

40:                                               ; preds = %58, %39
  %41 = load i32, ptr %15, align 4, !tbaa !5
  %42 = icmp slt i32 %41, 17
  br i1 %42, label %43, label %61

43:                                               ; preds = %40
  %44 = load i32, ptr %14, align 4, !tbaa !5
  %45 = sitofp i32 %44 to double
  %46 = load i32, ptr %15, align 4, !tbaa !5
  %47 = sitofp i32 %46 to double
  %48 = fmul double -3.467000e-01, %47
  %49 = call double @exp(double noundef %48) #4
  %50 = fmul double %45, %49
  %51 = fptoui double %50 to i32
  %52 = load ptr, ptr %9, align 8, !tbaa !9
  %53 = load i32, ptr %15, align 4, !tbaa !5
  %54 = sub nsw i32 17, %53
  %55 = sub nsw i32 %54, 1
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds i32, ptr %52, i64 %56
  store i32 %51, ptr %57, align 4, !tbaa !5
  br label %58

58:                                               ; preds = %43
  %59 = load i32, ptr %15, align 4, !tbaa !5
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %15, align 4, !tbaa !5
  br label %40, !llvm.loop !15

61:                                               ; preds = %40
  br label %62

62:                                               ; preds = %61, %36
  %63 = load ptr, ptr %10, align 8, !tbaa !9
  %64 = icmp ne ptr %63, null
  br i1 %64, label %65, label %88

65:                                               ; preds = %62
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %66

66:                                               ; preds = %84, %65
  %67 = load i32, ptr %15, align 4, !tbaa !5
  %68 = icmp slt i32 %67, 17
  br i1 %68, label %69, label %87

69:                                               ; preds = %66
  %70 = load i32, ptr %14, align 4, !tbaa !5
  %71 = sitofp i32 %70 to double
  %72 = load i32, ptr %15, align 4, !tbaa !5
  %73 = sitofp i32 %72 to double
  %74 = fmul double -3.467000e-01, %73
  %75 = call double @exp(double noundef %74) #4
  %76 = fmul double %71, %75
  %77 = fptoui double %76 to i32
  %78 = load ptr, ptr %10, align 8, !tbaa !9
  %79 = load i32, ptr %15, align 4, !tbaa !5
  %80 = sub nsw i32 17, %79
  %81 = sub nsw i32 %80, 1
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds i32, ptr %78, i64 %82
  store i32 %77, ptr %83, align 4, !tbaa !5
  br label %84

84:                                               ; preds = %69
  %85 = load i32, ptr %15, align 4, !tbaa !5
  %86 = add nsw i32 %85, 1
  store i32 %86, ptr %15, align 4, !tbaa !5
  br label %66, !llvm.loop !17

87:                                               ; preds = %66
  br label %88

88:                                               ; preds = %87, %62
  %89 = load ptr, ptr %8, align 8, !tbaa !9
  %90 = icmp ne ptr %89, null
  br i1 %90, label %91, label %126

91:                                               ; preds = %88
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %92

92:                                               ; preds = %111, %91
  %93 = load i32, ptr %15, align 4, !tbaa !5
  %94 = icmp slt i32 %93, 23
  br i1 %94, label %95, label %114

95:                                               ; preds = %92
  %96 = load i32, ptr %14, align 4, !tbaa !5
  %97 = sitofp i32 %96 to double
  %98 = fmul double 2.500000e-01, %97
  %99 = load i32, ptr %15, align 4, !tbaa !5
  %100 = sitofp i32 %99 to double
  %101 = fmul double -1.733500e-01, %100
  %102 = call double @exp(double noundef %101) #4
  %103 = fmul double %98, %102
  %104 = fptoui double %103 to i32
  %105 = load ptr, ptr %8, align 8, !tbaa !9
  %106 = load i32, ptr %15, align 4, !tbaa !5
  %107 = sub nsw i32 23, %106
  %108 = sub nsw i32 %107, 1
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds i32, ptr %105, i64 %109
  store i32 %104, ptr %110, align 4, !tbaa !5
  br label %111

111:                                              ; preds = %95
  %112 = load i32, ptr %15, align 4, !tbaa !5
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr %15, align 4, !tbaa !5
  br label %92, !llvm.loop !18

114:                                              ; preds = %92
  %115 = load i32, ptr %14, align 4, !tbaa !5
  %116 = load ptr, ptr %8, align 8, !tbaa !9
  %117 = getelementptr inbounds i32, ptr %116, i64 22
  store i32 %115, ptr %117, align 4, !tbaa !5
  %118 = load i32, ptr %14, align 4, !tbaa !5
  %119 = sdiv i32 %118, 2
  %120 = load ptr, ptr %8, align 8, !tbaa !9
  %121 = getelementptr inbounds i32, ptr %120, i64 21
  store i32 %119, ptr %121, align 4, !tbaa !5
  %122 = load i32, ptr %14, align 4, !tbaa !5
  %123 = sdiv i32 %122, 4
  %124 = load ptr, ptr %8, align 8, !tbaa !9
  %125 = getelementptr inbounds i32, ptr %124, i64 20
  store i32 %123, ptr %125, align 4, !tbaa !5
  br label %126

126:                                              ; preds = %114, %88
  br label %207

127:                                              ; preds = %28
  %128 = load ptr, ptr %9, align 8, !tbaa !9
  %129 = icmp ne ptr %128, null
  br i1 %129, label %130, label %153

130:                                              ; preds = %127
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %131

131:                                              ; preds = %149, %130
  %132 = load i32, ptr %15, align 4, !tbaa !5
  %133 = icmp slt i32 %132, 17
  br i1 %133, label %134, label %152

134:                                              ; preds = %131
  %135 = load i32, ptr %14, align 4, !tbaa !5
  %136 = sitofp i32 %135 to double
  %137 = load i32, ptr %15, align 4, !tbaa !5
  %138 = sitofp i32 %137 to double
  %139 = fmul double -3.467000e-01, %138
  %140 = call double @exp(double noundef %139) #4
  %141 = fmul double %136, %140
  %142 = fptoui double %141 to i32
  %143 = load ptr, ptr %9, align 8, !tbaa !9
  %144 = load i32, ptr %15, align 4, !tbaa !5
  %145 = sub nsw i32 17, %144
  %146 = sub nsw i32 %145, 1
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds i32, ptr %143, i64 %147
  store i32 %142, ptr %148, align 4, !tbaa !5
  br label %149

149:                                              ; preds = %134
  %150 = load i32, ptr %15, align 4, !tbaa !5
  %151 = add nsw i32 %150, 1
  store i32 %151, ptr %15, align 4, !tbaa !5
  br label %131, !llvm.loop !19

152:                                              ; preds = %131
  br label %153

153:                                              ; preds = %152, %127
  %154 = load ptr, ptr %10, align 8, !tbaa !9
  %155 = icmp ne ptr %154, null
  br i1 %155, label %156, label %179

156:                                              ; preds = %153
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %157

157:                                              ; preds = %175, %156
  %158 = load i32, ptr %15, align 4, !tbaa !5
  %159 = icmp slt i32 %158, 17
  br i1 %159, label %160, label %178

160:                                              ; preds = %157
  %161 = load i32, ptr %14, align 4, !tbaa !5
  %162 = sitofp i32 %161 to double
  %163 = load i32, ptr %15, align 4, !tbaa !5
  %164 = sitofp i32 %163 to double
  %165 = fmul double -3.467000e-01, %164
  %166 = call double @exp(double noundef %165) #4
  %167 = fmul double %162, %166
  %168 = fptoui double %167 to i32
  %169 = load ptr, ptr %10, align 8, !tbaa !9
  %170 = load i32, ptr %15, align 4, !tbaa !5
  %171 = sub nsw i32 17, %170
  %172 = sub nsw i32 %171, 1
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds i32, ptr %169, i64 %173
  store i32 %168, ptr %174, align 4, !tbaa !5
  br label %175

175:                                              ; preds = %160
  %176 = load i32, ptr %15, align 4, !tbaa !5
  %177 = add nsw i32 %176, 1
  store i32 %177, ptr %15, align 4, !tbaa !5
  br label %157, !llvm.loop !20

178:                                              ; preds = %157
  br label %179

179:                                              ; preds = %178, %153
  %180 = load ptr, ptr %8, align 8, !tbaa !9
  %181 = icmp ne ptr %180, null
  br i1 %181, label %182, label %206

182:                                              ; preds = %179
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %183

183:                                              ; preds = %202, %182
  %184 = load i32, ptr %15, align 4, !tbaa !5
  %185 = icmp slt i32 %184, 23
  br i1 %185, label %186, label %205

186:                                              ; preds = %183
  %187 = load i32, ptr %14, align 4, !tbaa !5
  %188 = sitofp i32 %187 to double
  %189 = load i32, ptr %15, align 4, !tbaa !5
  %190 = sitofp i32 %189 to double
  %191 = fmul double -3.467000e-01, %190
  %192 = fdiv double %191, 2.000000e+00
  %193 = call double @exp(double noundef %192) #4
  %194 = fmul double %188, %193
  %195 = fptoui double %194 to i32
  %196 = load ptr, ptr %8, align 8, !tbaa !9
  %197 = load i32, ptr %15, align 4, !tbaa !5
  %198 = sub nsw i32 23, %197
  %199 = sub nsw i32 %198, 1
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds i32, ptr %196, i64 %200
  store i32 %195, ptr %201, align 4, !tbaa !5
  br label %202

202:                                              ; preds = %186
  %203 = load i32, ptr %15, align 4, !tbaa !5
  %204 = add nsw i32 %203, 1
  store i32 %204, ptr %15, align 4, !tbaa !5
  br label %183, !llvm.loop !21

205:                                              ; preds = %183
  br label %206

206:                                              ; preds = %205, %179
  br label %207

207:                                              ; preds = %206, %126
  store i32 0, ptr %6, align 4
  store i32 1, ptr %16, align 4
  br label %208

208:                                              ; preds = %207, %26, %19
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  %209 = load i32, ptr %6, align 4
  ret i32 %209
}

; Function Attrs: nounwind
declare double @exp(double noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 = { "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 "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 = { 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !6, i64 8}
!12 = !{!"_ZTS9cbSCALING", !13, i64 0, !13, i64 2, !6, i64 4, !6, i64 8, !6, i64 12, !7, i64 16}
!13 = !{!"short", !7, i64 0}
!14 = !{!12, !6, i64 12}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}
!20 = distinct !{!20, !16}
!21 = distinct !{!21, !16}


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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z14IsChanAnalogInjj(i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z16IsChanFEAnalogInjj(i32 noundef, i32 noundef) local_unnamed_addr #1

declare noundef i32 @_Z16cbGetAinpScalingjP9cbSCALINGj(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z12cbGetScalingjPjS_S_j(i32 noundef %0, ptr noundef writeonly %1, ptr noundef writeonly %2, ptr noundef writeonly %3, i32 noundef %4) local_unnamed_addr #1 {
  %6 = alloca %struct.cbSCALING, align 1
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #3
  %7 = tail call noundef zeroext i1 @_Z14IsChanAnalogInjj(i32 noundef %0, i32 noundef 0)
  br i1 %7, label %8, label %.loopexit72

8:                                                ; preds = %5
  %9 = call noundef i32 @_Z16cbGetAinpScalingjP9cbSCALINGj(i32 noundef %0, ptr noundef nonnull %6, i32 noundef %4)
  %.not = icmp eq i32 %9, 0
  br i1 %.not, label %10, label %.loopexit72

10:                                               ; preds = %8
  %11 = getelementptr inbounds i8, ptr %6, i64 8
  %12 = load i32, ptr %11, align 1, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %6, i64 12
  %14 = load i32, ptr %13, align 1, !tbaa !11
  %15 = sdiv i32 %12, %14
  %16 = call noundef zeroext i1 @_Z16IsChanFEAnalogInjj(i32 noundef %0, i32 noundef 0)
  %.not65 = icmp eq ptr %2, null
  br i1 %16, label %17, label %71

17:                                               ; preds = %10
  br i1 %.not65, label %.loopexit70, label %.preheader69

.preheader69:                                     ; preds = %17
  %18 = sitofp i32 %15 to double
  %19 = getelementptr inbounds i8, ptr %2, i64 64
  store i32 %15, ptr %19, align 4, !tbaa !12
  %20 = getelementptr inbounds i8, ptr %2, i64 48
  %21 = insertelement <4 x double> poison, double %18, i64 0
  %22 = shufflevector <4 x double> %21, <4 x double> poison, <4 x i32> zeroinitializer
  %23 = fmul <4 x double> %22, <double 0x3FCFFBDBDDD013C6, double 0x3FD69E6C24E5D657, double 0x3FDFFDEDDDC0C299, double 0x3FE69FE2F53B6B54>
  %24 = fptoui <4 x double> %23 to <4 x i32>
  store <4 x i32> %24, ptr %20, align 4, !tbaa !12
  %25 = getelementptr inbounds i8, ptr %2, i64 32
  %26 = fmul <4 x double> %22, <double 0x3FAFF7B844D18098, double 0x3FB69B7ECCFD5D8C, double 0x3FBFF9CA002BBB2D, double 0x3FC69CF56CD1AD06>
  %27 = fptoui <4 x double> %26 to <4 x i32>
  store <4 x i32> %27, ptr %25, align 4, !tbaa !12
  %28 = getelementptr inbounds i8, ptr %2, i64 16
  %29 = fmul <4 x double> %22, <double 0x3F8FF39534F28560, double 0x3F969891D60E0544, double 0x3F9FF5A6ABBF2BF8, double 0x3FA69A0845675629>
  %30 = fptoui <4 x double> %29 to <4 x i32>
  store <4 x i32> %30, ptr %28, align 4, !tbaa !12
  %31 = fmul <4 x double> %22, <double 0x3F6FEF72AE216355, double 0x3F7695A5400B40DC, double 0x3F7FF183E069550E, double 0x3F86971B7EEFD94B>
  %32 = fptoui <4 x double> %31 to <4 x i32>
  store <4 x i32> %32, ptr %2, align 4, !tbaa !12
  br label %.loopexit70

.loopexit70:                                      ; preds = %.preheader69, %17
  %.not66 = icmp eq ptr %3, null
  br i1 %.not66, label %.loopexit, label %.preheader68

.preheader68:                                     ; preds = %.loopexit70
  %33 = sitofp i32 %15 to double
  %34 = getelementptr inbounds i8, ptr %3, i64 64
  store i32 %15, ptr %34, align 4, !tbaa !12
  %35 = getelementptr inbounds i8, ptr %3, i64 48
  %36 = insertelement <4 x double> poison, double %33, i64 0
  %37 = shufflevector <4 x double> %36, <4 x double> poison, <4 x i32> zeroinitializer
  %38 = fmul <4 x double> %37, <double 0x3FCFFBDBDDD013C6, double 0x3FD69E6C24E5D657, double 0x3FDFFDEDDDC0C299, double 0x3FE69FE2F53B6B54>
  %39 = fptoui <4 x double> %38 to <4 x i32>
  store <4 x i32> %39, ptr %35, align 4, !tbaa !12
  %40 = getelementptr inbounds i8, ptr %3, i64 32
  %41 = fmul <4 x double> %37, <double 0x3FAFF7B844D18098, double 0x3FB69B7ECCFD5D8C, double 0x3FBFF9CA002BBB2D, double 0x3FC69CF56CD1AD06>
  %42 = fptoui <4 x double> %41 to <4 x i32>
  store <4 x i32> %42, ptr %40, align 4, !tbaa !12
  %43 = getelementptr inbounds i8, ptr %3, i64 16
  %44 = fmul <4 x double> %37, <double 0x3F8FF39534F28560, double 0x3F969891D60E0544, double 0x3F9FF5A6ABBF2BF8, double 0x3FA69A0845675629>
  %45 = fptoui <4 x double> %44 to <4 x i32>
  store <4 x i32> %45, ptr %43, align 4, !tbaa !12
  %46 = fmul <4 x double> %37, <double 0x3F6FEF72AE216355, double 0x3F7695A5400B40DC, double 0x3F7FF183E069550E, double 0x3F86971B7EEFD94B>
  %47 = fptoui <4 x double> %46 to <4 x i32>
  store <4 x i32> %47, ptr %3, align 4, !tbaa !12
  br label %.loopexit

.loopexit:                                        ; preds = %.preheader68, %.loopexit70
  %.not67 = icmp eq ptr %1, null
  br i1 %.not67, label %.loopexit72, label %.preheader

.preheader:                                       ; preds = %.loopexit
  %48 = sitofp i32 %15 to double
  %49 = fmul double %48, 2.500000e-01
  %50 = getelementptr inbounds i8, ptr %1, i64 88
  %51 = getelementptr inbounds i8, ptr %1, i64 84
  %52 = getelementptr inbounds i8, ptr %1, i64 80
  %53 = getelementptr inbounds i8, ptr %1, i64 64
  %54 = insertelement <4 x double> poison, double %49, i64 0
  %55 = shufflevector <4 x double> %54, <4 x double> poison, <4 x i32> zeroinitializer
  %56 = fmul <4 x double> %55, <double 0x3FD69E6C24E5D657, double 0x3FDAE67261D53746, double 0x3FDFFDEDDDC0C299, double 0x3FE306119E26A9C1>
  %57 = fptoui <4 x double> %56 to <4 x i32>
  store <4 x i32> %57, ptr %53, align 4, !tbaa !12
  %58 = getelementptr inbounds i8, ptr %1, i64 48
  %59 = fmul <4 x double> %55, <double 0x3FC69CF56CD1AD06, double 0x3FCAE4B4BC44C013, double 0x3FCFFBDBDDD013C6, double 0x3FD304D67546D336>
  %60 = fptoui <4 x double> %59 to <4 x i32>
  store <4 x i32> %60, ptr %58, align 4, !tbaa !12
  %61 = getelementptr inbounds i8, ptr %1, i64 32
  %62 = fmul <4 x double> %55, <double 0x3FB69B7ECCFD5D8C, double 0x3FBAE2F7338B2BFA, double 0x3FBFF9CA002BBB2D, double 0x3FC3039B60CC22F0>
  %63 = fptoui <4 x double> %62 to <4 x i32>
  store <4 x i32> %63, ptr %61, align 4, !tbaa !12
  %64 = getelementptr inbounds i8, ptr %1, i64 16
  %65 = fmul <4 x double> %55, <double 0x3FA69A0845675629, double 0x3FAAE139C7A69D35, double 0x3FAFF7B844D18098, double 0x3FB3026060B5470E>
  %66 = fptoui <4 x double> %65 to <4 x i32>
  store <4 x i32> %66, ptr %64, align 4, !tbaa !12
  %67 = fmul <4 x double> %55, <double 0x3F969891D60E0544, double 0x3F9ADF7C7895361C, double 0x3F9FF5A6ABBF2BF8, double 0x3FA301257500EDC6>
  %68 = fptoui <4 x double> %67 to <4 x i32>
  store <4 x i32> %68, ptr %1, align 4, !tbaa !12
  store i32 %15, ptr %50, align 4, !tbaa !12
  %69 = sdiv i32 %15, 2
  store i32 %69, ptr %51, align 4, !tbaa !12
  %70 = sdiv i32 %15, 4
  store i32 %70, ptr %52, align 4, !tbaa !12
  br label %.loopexit72

71:                                               ; preds = %10
  br i1 %.not65, label %.loopexit76, label %.preheader75

.preheader75:                                     ; preds = %71
  %72 = sitofp i32 %15 to double
  %73 = getelementptr inbounds i8, ptr %2, i64 64
  store i32 %15, ptr %73, align 4, !tbaa !12
  %74 = getelementptr inbounds i8, ptr %2, i64 48
  %75 = insertelement <4 x double> poison, double %72, i64 0
  %76 = shufflevector <4 x double> %75, <4 x double> poison, <4 x i32> zeroinitializer
  %77 = fmul <4 x double> %76, <double 0x3FCFFBDBDDD013C6, double 0x3FD69E6C24E5D657, double 0x3FDFFDEDDDC0C299, double 0x3FE69FE2F53B6B54>
  %78 = fptoui <4 x double> %77 to <4 x i32>
  store <4 x i32> %78, ptr %74, align 4, !tbaa !12
  %79 = getelementptr inbounds i8, ptr %2, i64 32
  %80 = fmul <4 x double> %76, <double 0x3FAFF7B844D18098, double 0x3FB69B7ECCFD5D8C, double 0x3FBFF9CA002BBB2D, double 0x3FC69CF56CD1AD06>
  %81 = fptoui <4 x double> %80 to <4 x i32>
  store <4 x i32> %81, ptr %79, align 4, !tbaa !12
  %82 = getelementptr inbounds i8, ptr %2, i64 16
  %83 = fmul <4 x double> %76, <double 0x3F8FF39534F28560, double 0x3F969891D60E0544, double 0x3F9FF5A6ABBF2BF8, double 0x3FA69A0845675629>
  %84 = fptoui <4 x double> %83 to <4 x i32>
  store <4 x i32> %84, ptr %82, align 4, !tbaa !12
  %85 = fmul <4 x double> %76, <double 0x3F6FEF72AE216355, double 0x3F7695A5400B40DC, double 0x3F7FF183E069550E, double 0x3F86971B7EEFD94B>
  %86 = fptoui <4 x double> %85 to <4 x i32>
  store <4 x i32> %86, ptr %2, align 4, !tbaa !12
  br label %.loopexit76

.loopexit76:                                      ; preds = %.preheader75, %71
  %.not63 = icmp eq ptr %3, null
  br i1 %.not63, label %.loopexit74, label %.preheader73

.preheader73:                                     ; preds = %.loopexit76
  %87 = sitofp i32 %15 to double
  %88 = getelementptr inbounds i8, ptr %3, i64 64
  store i32 %15, ptr %88, align 4, !tbaa !12
  %89 = getelementptr inbounds i8, ptr %3, i64 48
  %90 = insertelement <4 x double> poison, double %87, i64 0
  %91 = shufflevector <4 x double> %90, <4 x double> poison, <4 x i32> zeroinitializer
  %92 = fmul <4 x double> %91, <double 0x3FCFFBDBDDD013C6, double 0x3FD69E6C24E5D657, double 0x3FDFFDEDDDC0C299, double 0x3FE69FE2F53B6B54>
  %93 = fptoui <4 x double> %92 to <4 x i32>
  store <4 x i32> %93, ptr %89, align 4, !tbaa !12
  %94 = getelementptr inbounds i8, ptr %3, i64 32
  %95 = fmul <4 x double> %91, <double 0x3FAFF7B844D18098, double 0x3FB69B7ECCFD5D8C, double 0x3FBFF9CA002BBB2D, double 0x3FC69CF56CD1AD06>
  %96 = fptoui <4 x double> %95 to <4 x i32>
  store <4 x i32> %96, ptr %94, align 4, !tbaa !12
  %97 = getelementptr inbounds i8, ptr %3, i64 16
  %98 = fmul <4 x double> %91, <double 0x3F8FF39534F28560, double 0x3F969891D60E0544, double 0x3F9FF5A6ABBF2BF8, double 0x3FA69A0845675629>
  %99 = fptoui <4 x double> %98 to <4 x i32>
  store <4 x i32> %99, ptr %97, align 4, !tbaa !12
  %100 = fmul <4 x double> %91, <double 0x3F6FEF72AE216355, double 0x3F7695A5400B40DC, double 0x3F7FF183E069550E, double 0x3F86971B7EEFD94B>
  %101 = fptoui <4 x double> %100 to <4 x i32>
  store <4 x i32> %101, ptr %3, align 4, !tbaa !12
  br label %.loopexit74

.loopexit74:                                      ; preds = %.preheader73, %.loopexit76
  %.not64 = icmp eq ptr %1, null
  br i1 %.not64, label %.loopexit72, label %.preheader71

.preheader71:                                     ; preds = %.loopexit74
  %102 = sitofp i32 %15 to double
  %103 = getelementptr inbounds i8, ptr %1, i64 88
  store i32 %15, ptr %103, align 4, !tbaa !12
  %104 = getelementptr inbounds i8, ptr %1, i64 80
  %105 = insertelement <2 x double> poison, double %102, i64 0
  %106 = shufflevector <2 x double> %105, <2 x double> poison, <2 x i32> zeroinitializer
  %107 = fmul <2 x double> %106, <double 0x3FE69FE2F53B6B54, double 0x3FEAE830243E6F76>
  %108 = fptoui <2 x double> %107 to <2 x i32>
  store <2 x i32> %108, ptr %104, align 4, !tbaa !12
  %109 = getelementptr inbounds i8, ptr %1, i64 64
  %110 = insertelement <4 x double> poison, double %102, i64 0
  %111 = shufflevector <4 x double> %110, <4 x double> poison, <4 x i32> zeroinitializer
  %112 = fmul <4 x double> %111, <double 0x3FD69E6C24E5D657, double 0x3FDAE67261D53746, double 0x3FDFFDEDDDC0C299, double 0x3FE306119E26A9C1>
  %113 = fptoui <4 x double> %112 to <4 x i32>
  store <4 x i32> %113, ptr %109, align 4, !tbaa !12
  %114 = getelementptr inbounds i8, ptr %1, i64 48
  %115 = fmul <4 x double> %111, <double 0x3FC69CF56CD1AD06, double 0x3FCAE4B4BC44C013, double 0x3FCFFBDBDDD013C6, double 0x3FD304D67546D336>
  %116 = fptoui <4 x double> %115 to <4 x i32>
  store <4 x i32> %116, ptr %114, align 4, !tbaa !12
  %117 = getelementptr inbounds i8, ptr %1, i64 32
  %118 = fmul <4 x double> %111, <double 0x3FB69B7ECCFD5D8C, double 0x3FBAE2F7338B2BFA, double 0x3FBFF9CA002BBB2D, double 0x3FC3039B60CC22F0>
  %119 = fptoui <4 x double> %118 to <4 x i32>
  store <4 x i32> %119, ptr %117, align 4, !tbaa !12
  %120 = getelementptr inbounds i8, ptr %1, i64 16
  %121 = fmul <4 x double> %111, <double 0x3FA69A0845675629, double 0x3FAAE139C7A69D35, double 0x3FAFF7B844D18098, double 0x3FB3026060B5470E>
  %122 = fptoui <4 x double> %121 to <4 x i32>
  store <4 x i32> %122, ptr %120, align 4, !tbaa !12
  %123 = fmul <4 x double> %111, <double 0x3F969891D60E0544, double 0x3F9ADF7C7895361C, double 0x3F9FF5A6ABBF2BF8, double 0x3FA301257500EDC6>
  %124 = fptoui <4 x double> %123 to <4 x i32>
  store <4 x i32> %124, ptr %1, align 4, !tbaa !12
  br label %.loopexit72

.loopexit72:                                      ; preds = %.preheader71, %.preheader, %.loopexit, %.loopexit74, %8, %5
  %.054 = phi i32 [ 6, %5 ], [ %9, %8 ], [ 0, %.loopexit74 ], [ 0, %.loopexit ], [ 0, %.preheader ], [ 0, %.preheader71 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #3
  ret i32 %.054
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 = { "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 }

!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, !10, i64 8}
!6 = !{!"_ZTS9cbSCALING", !7, i64 0, !7, i64 2, !10, i64 4, !10, i64 8, !10, i64 12, !8, i64 16}
!7 = !{!"short", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !10, i64 12}
!12 = !{!10, !10, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,LoopSimplifyPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass