; LLVM IR from iyinoluwamt/Tensorframe :: main/ios/Pods/DoubleConversion/double-conversion (bignum)

; 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"

@.str.1 = external hidden unnamed_addr constant [116 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [10 x i8], align 1
@__PRETTY_FUNCTION__._ZN17double_conversion6Bignum17AssignPowerUInt16Eti = external hidden unnamed_addr constant [65 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [20 x i8], align 1

; 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 void @_ZN17double_conversion6Bignum12AssignUInt16Et(ptr noundef nonnull align 8 dereferenceable(536), i16 noundef zeroext) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN17double_conversion6Bignum4ZeroEv(ptr noundef nonnull align 8 dereferenceable(536)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN17double_conversion6Bignum14EnsureCapacityEi(ptr noundef nonnull align 8 dereferenceable(536), i32 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN17double_conversion6Bignum12AssignUInt64Em(ptr noundef nonnull align 8 dereferenceable(536), i64 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN17double_conversion6Bignum9ShiftLeftEi(ptr noundef nonnull align 8 dereferenceable(536), i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN17double_conversion6Bignum16MultiplyByUInt32Ej(ptr noundef nonnull align 8 dereferenceable(536), i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN17double_conversion6Bignum6SquareEv(ptr noundef nonnull align 8 dereferenceable(536)) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN17double_conversion6Bignum17AssignPowerUInt16Eti(ptr noundef nonnull align 8 dereferenceable(536) %0, i16 noundef zeroext %1, i32 noundef %2) #1 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca i16, align 2
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i64, align 8
  %13 = alloca i8, align 1
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i8, align 1
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i16 %1, ptr %5, align 2, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !11
  %17 = load ptr, ptr %4, align 8
  %18 = load i16, ptr %5, align 2, !tbaa !9
  %19 = zext i16 %18 to i32
  %20 = icmp ne i32 %19, 0
  br i1 %20, label %21, label %22

21:                                               ; preds = %3
  br label %24

22:                                               ; preds = %3
  call void @__assert_fail(ptr noundef @.str.9, ptr noundef @.str.1, i32 noundef 413, ptr noundef @__PRETTY_FUNCTION__._ZN17double_conversion6Bignum17AssignPowerUInt16Eti) #4
  unreachable

23:                                               ; No predecessors!
  br label %24

24:                                               ; preds = %23, %21
  %25 = load i32, ptr %6, align 4, !tbaa !11
  %26 = icmp sge i32 %25, 0
  br i1 %26, label %27, label %28

27:                                               ; preds = %24
  br label %30

28:                                               ; preds = %24
  call void @__assert_fail(ptr noundef @.str.10, ptr noundef @.str.1, i32 noundef 414, ptr noundef @__PRETTY_FUNCTION__._ZN17double_conversion6Bignum17AssignPowerUInt16Eti) #4
  unreachable

29:                                               ; No predecessors!
  br label %30

30:                                               ; preds = %29, %27
  %31 = load i32, ptr %6, align 4, !tbaa !11
  %32 = icmp eq i32 %31, 0
  br i1 %32, label %33, label %34

33:                                               ; preds = %30
  call void @_ZN17double_conversion6Bignum12AssignUInt16Et(ptr noundef nonnull align 8 dereferenceable(536) %17, i16 noundef zeroext 1)
  br label %143

34:                                               ; preds = %30
  call void @_ZN17double_conversion6Bignum4ZeroEv(ptr noundef nonnull align 8 dereferenceable(536) %17)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !11
  br label %35

35:                                               ; preds = %40, %34
  %36 = load i16, ptr %5, align 2, !tbaa !9
  %37 = zext i16 %36 to i32
  %38 = and i32 %37, 1
  %39 = icmp eq i32 %38, 0
  br i1 %39, label %40, label %47

40:                                               ; preds = %35
  %41 = load i16, ptr %5, align 2, !tbaa !9
  %42 = zext i16 %41 to i32
  %43 = ashr i32 %42, 1
  %44 = trunc i32 %43 to i16
  store i16 %44, ptr %5, align 2, !tbaa !9
  %45 = load i32, ptr %7, align 4, !tbaa !11
  %46 = add nsw i32 %45, 1
  store i32 %46, ptr %7, align 4, !tbaa !11
  br label %35, !llvm.loop !13

47:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %48 = load i16, ptr %5, align 2, !tbaa !9
  %49 = zext i16 %48 to i32
  store i32 %49, ptr %9, align 4, !tbaa !11
  br label %50

50:                                               ; preds = %53, %47
  %51 = load i32, ptr %9, align 4, !tbaa !11
  %52 = icmp ne i32 %51, 0
  br i1 %52, label %53, label %58

53:                                               ; preds = %50
  %54 = load i32, ptr %9, align 4, !tbaa !11
  %55 = ashr i32 %54, 1
  store i32 %55, ptr %9, align 4, !tbaa !11
  %56 = load i32, ptr %8, align 4, !tbaa !11
  %57 = add nsw i32 %56, 1
  store i32 %57, ptr %8, align 4, !tbaa !11
  br label %50, !llvm.loop !15

58:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %59 = load i32, ptr %8, align 4, !tbaa !11
  %60 = load i32, ptr %6, align 4, !tbaa !11
  %61 = mul nsw i32 %59, %60
  store i32 %61, ptr %10, align 4, !tbaa !11
  %62 = load i32, ptr %10, align 4, !tbaa !11
  %63 = sdiv i32 %62, 28
  %64 = add nsw i32 %63, 2
  call void @_ZN17double_conversion6Bignum14EnsureCapacityEi(ptr noundef nonnull align 8 dereferenceable(536) %17, i32 noundef %64)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 1, ptr %11, align 4, !tbaa !11
  br label %65

65:                                               ; preds = %69, %58
  %66 = load i32, ptr %6, align 4, !tbaa !11
  %67 = load i32, ptr %11, align 4, !tbaa !11
  %68 = icmp sge i32 %66, %67
  br i1 %68, label %69, label %72

69:                                               ; preds = %65
  %70 = load i32, ptr %11, align 4, !tbaa !11
  %71 = shl i32 %70, 1
  store i32 %71, ptr %11, align 4, !tbaa !11
  br label %65, !llvm.loop !16

72:                                               ; preds = %65
  %73 = load i32, ptr %11, align 4, !tbaa !11
  %74 = ashr i32 %73, 2
  store i32 %74, ptr %11, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %75 = load i16, ptr %5, align 2, !tbaa !9
  %76 = zext i16 %75 to i64
  store i64 %76, ptr %12, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #5
  store i8 0, ptr %13, align 1, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  store i64 4294967295, ptr %14, align 8, !tbaa !17
  br label %77

77:                                               ; preds = %114, %72
  %78 = load i32, ptr %11, align 4, !tbaa !11
  %79 = icmp ne i32 %78, 0
  br i1 %79, label %80, label %83

80:                                               ; preds = %77
  %81 = load i64, ptr %12, align 8, !tbaa !17
  %82 = icmp ule i64 %81, 4294967295
  br label %83

83:                                               ; preds = %80, %77
  %84 = phi i1 [ false, %77 ], [ %82, %80 ]
  br i1 %84, label %85, label %117

85:                                               ; preds = %83
  %86 = load i64, ptr %12, align 8, !tbaa !17
  %87 = load i64, ptr %12, align 8, !tbaa !17
  %88 = mul i64 %86, %87
  store i64 %88, ptr %12, align 8, !tbaa !17
  %89 = load i32, ptr %6, align 4, !tbaa !11
  %90 = load i32, ptr %11, align 4, !tbaa !11
  %91 = and i32 %89, %90
  %92 = icmp ne i32 %91, 0
  br i1 %92, label %93, label %114

93:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %94 = load i32, ptr %8, align 4, !tbaa !11
  %95 = sub nsw i32 64, %94
  %96 = zext i32 %95 to i64
  %97 = shl i64 1, %96
  %98 = sub i64 %97, 1
  %99 = xor i64 %98, -1
  store i64 %99, ptr %15, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #5
  %100 = load i64, ptr %12, align 8, !tbaa !17
  %101 = load i64, ptr %15, align 8, !tbaa !17
  %102 = and i64 %100, %101
  %103 = icmp eq i64 %102, 0
  %104 = zext i1 %103 to i8
  store i8 %104, ptr %16, align 1, !tbaa !19
  %105 = load i8, ptr %16, align 1, !tbaa !19, !range !21, !noundef !22
  %106 = trunc i8 %105 to i1
  br i1 %106, label %107, label %112

107:                                              ; preds = %93
  %108 = load i16, ptr %5, align 2, !tbaa !9
  %109 = zext i16 %108 to i64
  %110 = load i64, ptr %12, align 8, !tbaa !17
  %111 = mul i64 %110, %109
  store i64 %111, ptr %12, align 8, !tbaa !17
  br label %113

112:                                              ; preds = %93
  store i8 1, ptr %13, align 1, !tbaa !19
  br label %113

113:                                              ; preds = %112, %107
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %114

114:                                              ; preds = %113, %85
  %115 = load i32, ptr %11, align 4, !tbaa !11
  %116 = ashr i32 %115, 1
  store i32 %116, ptr %11, align 4, !tbaa !11
  br label %77, !llvm.loop !23

117:                                              ; preds = %83
  %118 = load i64, ptr %12, align 8, !tbaa !17
  call void @_ZN17double_conversion6Bignum12AssignUInt64Em(ptr noundef nonnull align 8 dereferenceable(536) %17, i64 noundef %118)
  %119 = load i8, ptr %13, align 1, !tbaa !19, !range !21, !noundef !22
  %120 = trunc i8 %119 to i1
  br i1 %120, label %121, label %124

121:                                              ; preds = %117
  %122 = load i16, ptr %5, align 2, !tbaa !9
  %123 = zext i16 %122 to i32
  call void @_ZN17double_conversion6Bignum16MultiplyByUInt32Ej(ptr noundef nonnull align 8 dereferenceable(536) %17, i32 noundef %123)
  br label %124

124:                                              ; preds = %121, %117
  br label %125

125:                                              ; preds = %136, %124
  %126 = load i32, ptr %11, align 4, !tbaa !11
  %127 = icmp ne i32 %126, 0
  br i1 %127, label %128, label %139

128:                                              ; preds = %125
  call void @_ZN17double_conversion6Bignum6SquareEv(ptr noundef nonnull align 8 dereferenceable(536) %17)
  %129 = load i32, ptr %6, align 4, !tbaa !11
  %130 = load i32, ptr %11, align 4, !tbaa !11
  %131 = and i32 %129, %130
  %132 = icmp ne i32 %131, 0
  br i1 %132, label %133, label %136

133:                                              ; preds = %128
  %134 = load i16, ptr %5, align 2, !tbaa !9
  %135 = zext i16 %134 to i32
  call void @_ZN17double_conversion6Bignum16MultiplyByUInt32Ej(ptr noundef nonnull align 8 dereferenceable(536) %17, i32 noundef %135)
  br label %136

136:                                              ; preds = %133, %128
  %137 = load i32, ptr %11, align 4, !tbaa !11
  %138 = ashr i32 %137, 1
  store i32 %138, ptr %11, align 4, !tbaa !11
  br label %125, !llvm.loop !24

139:                                              ; preds = %125
  %140 = load i32, ptr %7, align 4, !tbaa !11
  %141 = load i32, ptr %6, align 4, !tbaa !11
  %142 = mul nsw i32 %140, %141
  call void @_ZN17double_conversion6Bignum9ShiftLeftEi(ptr noundef nonnull align 8 dereferenceable(536) %17, i32 noundef %142)
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %143

143:                                              ; preds = %139, %33
  ret void
}

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 = { 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 #3 = { mustprogress 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"short", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = !{!18, !18, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"bool", !7, i64 0}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = distinct !{!23, !14}
!24 = distinct !{!24, !14}


; 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"

@.str.1 = external hidden unnamed_addr constant [116 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [10 x i8], align 1
@__PRETTY_FUNCTION__._ZN17double_conversion6Bignum17AssignPowerUInt16Eti = external hidden unnamed_addr constant [65 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN17double_conversion6Bignum12AssignUInt16Et(ptr noundef nonnull align 8 dereferenceable(536), i16 noundef zeroext) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN17double_conversion6Bignum4ZeroEv(ptr noundef nonnull align 8 dereferenceable(536)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN17double_conversion6Bignum14EnsureCapacityEi(ptr noundef nonnull align 8 dereferenceable(536), i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN17double_conversion6Bignum12AssignUInt64Em(ptr noundef nonnull align 8 dereferenceable(536), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN17double_conversion6Bignum9ShiftLeftEi(ptr noundef nonnull align 8 dereferenceable(536), i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN17double_conversion6Bignum16MultiplyByUInt32Ej(ptr noundef nonnull align 8 dereferenceable(536), i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN17double_conversion6Bignum6SquareEv(ptr noundef nonnull align 8 dereferenceable(536)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN17double_conversion6Bignum17AssignPowerUInt16Eti(ptr noundef nonnull align 8 dereferenceable(536) %0, i16 noundef zeroext %1, i32 noundef %2) local_unnamed_addr #0 align 2 {
  %.not = icmp eq i16 %1, 0
  br i1 %.not, label %4, label %5

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

5:                                                ; preds = %3
  %6 = icmp sgt i32 %2, -1
  br i1 %6, label %8, label %7

7:                                                ; preds = %5
  tail call void @__assert_fail(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.1, i32 noundef 414, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN17double_conversion6Bignum17AssignPowerUInt16Eti) #4
  unreachable

8:                                                ; preds = %5
  %9 = icmp eq i32 %2, 0
  br i1 %9, label %10, label %11

10:                                               ; preds = %8
  tail call void @_ZN17double_conversion6Bignum12AssignUInt16Et(ptr noundef nonnull align 8 dereferenceable(536) %0, i16 noundef zeroext 1)
  br label %51

11:                                               ; preds = %8
  tail call void @_ZN17double_conversion6Bignum4ZeroEv(ptr noundef nonnull align 8 dereferenceable(536) %0)
  %12 = zext i16 %1 to i32
  %13 = and i32 %12, 1
  %14 = icmp eq i32 %13, 0
  br i1 %14, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %11, %.lr.ph
  %.058 = phi i16 [ %15, %.lr.ph ], [ %1, %11 ]
  %.04157 = phi i32 [ %16, %.lr.ph ], [ 0, %11 ]
  %15 = lshr i16 %.058, 1
  %16 = add nuw nsw i32 %.04157, 1
  %17 = zext nneg i16 %15 to i32
  %18 = and i32 %17, 1
  %19 = icmp eq i32 %18, 0
  br i1 %19, label %.lr.ph, label %._crit_edge, !llvm.loop !5

._crit_edge:                                      ; preds = %.lr.ph, %11
  %.041.lcssa = phi i32 [ 0, %11 ], [ %16, %.lr.ph ]
  %.0.lcssa = phi i16 [ %1, %11 ], [ %15, %.lr.ph ]
  %.lcssa = phi i32 [ %12, %11 ], [ %17, %.lr.ph ]
  %20 = tail call range(i32 16, 33) i32 @llvm.ctlz.i32(i32 %.lcssa, i1 true)
  %21 = sub nuw nsw i32 32, %20
  %22 = mul nuw nsw i32 %21, %2
  %23 = udiv i32 %22, 28
  %24 = add nuw nsw i32 %23, 2
  tail call void @_ZN17double_conversion6Bignum14EnsureCapacityEi(ptr noundef nonnull align 8 dereferenceable(536) %0, i32 noundef %24)
  br label %25

25:                                               ; preds = %25, %._crit_edge
  %.047 = phi i32 [ 1, %._crit_edge ], [ %26, %25 ]
  %.not53 = icmp sgt i32 %.047, %2
  %26 = shl i32 %.047, 1
  br i1 %.not53, label %27, label %25, !llvm.loop !7

27:                                               ; preds = %25
  %28 = lshr i32 %.047, 2
  %29 = zext i16 %.0.lcssa to i64
  %.not80 = icmp ult i32 %.047, 4
  br i1 %.not80, label %._crit_edge71.thread, label %.lr.ph70

._crit_edge71.thread:                             ; preds = %27
  tail call void @_ZN17double_conversion6Bignum12AssignUInt64Em(ptr noundef nonnull align 8 dereferenceable(536) %0, i64 noundef %29)
  br label %45

.lr.ph70:                                         ; preds = %27
  %30 = or disjoint i32 %20, 32
  %31 = zext nneg i32 %30 to i64
  br label %32

32:                                               ; preds = %.lr.ph70, %39
  %.04368 = phi i1 [ false, %.lr.ph70 ], [ %.2, %39 ]
  %.04467 = phi i64 [ %29, %.lr.ph70 ], [ %.246, %39 ]
  %.14866 = phi i32 [ %28, %.lr.ph70 ], [ %40, %39 ]
  %33 = mul nuw i64 %.04467, %.04467
  %34 = and i32 %.14866, %2
  %.not56 = icmp eq i32 %34, 0
  br i1 %.not56, label %39, label %35

35:                                               ; preds = %32
  %36 = lshr i64 %33, %31
  %37 = icmp ne i64 %36, 0
  %38 = select i1 %37, i64 1, i64 %29
  %.145 = mul i64 %38, %33
  %.1 = select i1 %37, i1 true, i1 %.04368
  br label %39

39:                                               ; preds = %35, %32
  %.246 = phi i64 [ %.145, %35 ], [ %33, %32 ]
  %.2 = phi i1 [ %.1, %35 ], [ %.04368, %32 ]
  %40 = lshr i32 %.14866, 1
  %41 = icmp ugt i32 %.14866, 1
  %42 = icmp ult i64 %.246, 4294967296
  %43 = select i1 %41, i1 %42, i1 false
  br i1 %43, label %32, label %._crit_edge71, !llvm.loop !8

._crit_edge71:                                    ; preds = %39
  tail call void @_ZN17double_conversion6Bignum12AssignUInt64Em(ptr noundef nonnull align 8 dereferenceable(536) %0, i64 noundef %.246)
  br i1 %.2, label %44, label %45

44:                                               ; preds = %._crit_edge71
  tail call void @_ZN17double_conversion6Bignum16MultiplyByUInt32Ej(ptr noundef nonnull align 8 dereferenceable(536) %0, i32 noundef %.lcssa)
  br label %45

45:                                               ; preds = %._crit_edge71.thread, %44, %._crit_edge71
  %.148.lcssa89 = phi i32 [ %28, %._crit_edge71.thread ], [ %40, %44 ], [ %40, %._crit_edge71 ]
  %.not5475 = icmp eq i32 %.148.lcssa89, 0
  br i1 %.not5475, label %._crit_edge79, label %.lr.ph78

.lr.ph78:                                         ; preds = %45, %48
  %.24976 = phi i32 [ %49, %48 ], [ %.148.lcssa89, %45 ]
  tail call void @_ZN17double_conversion6Bignum6SquareEv(ptr noundef nonnull align 8 dereferenceable(536) %0)
  %46 = and i32 %.24976, %2
  %.not55 = icmp eq i32 %46, 0
  br i1 %.not55, label %48, label %47

47:                                               ; preds = %.lr.ph78
  tail call void @_ZN17double_conversion6Bignum16MultiplyByUInt32Ej(ptr noundef nonnull align 8 dereferenceable(536) %0, i32 noundef %.lcssa)
  br label %48

48:                                               ; preds = %47, %.lr.ph78
  %49 = lshr i32 %.24976, 1
  %.not54 = icmp ult i32 %.24976, 2
  br i1 %.not54, label %._crit_edge79, label %.lr.ph78, !llvm.loop !9

._crit_edge79:                                    ; preds = %48, %45
  %50 = mul nuw nsw i32 %.041.lcssa, %2
  tail call void @_ZN17double_conversion6Bignum9ShiftLeftEi(ptr noundef nonnull align 8 dereferenceable(536) %0, i32 noundef %50)
  br label %51

51:                                               ; preds = %._crit_edge79, %10
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.ctlz.i32(i32, i1 immarg) #3

attributes #0 = { 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 #1 = { 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 #2 = { mustprogress 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 = { noreturn 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}
!8 = distinct !{!8, !6}
!9 = distinct !{!9, !6}


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