; LLVM IR from facebook/hermes :: API/hermes_sandbox/external (hermes_sandbox_impl_compiled_0)

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

; Function Attrs: nounwind uwtable
define dso_local double @w2c_hermes_cbrt(ptr noundef %0, double noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca double, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store double %1, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 0, ptr %6, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store i64 0, ptr %7, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  store double 0.000000e+00, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  store double 0.000000e+00, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %20 = load double, ptr %4, align 8, !tbaa !9
  store double %20, ptr %16, align 8, !tbaa !9
  %21 = load double, ptr %16, align 8, !tbaa !9
  %22 = call i64 @i64_reinterpret_f64(double noundef %21)
  store i64 %22, ptr %13, align 8, !tbaa !13
  %23 = load i64, ptr %13, align 8, !tbaa !13
  store i64 %23, ptr %7, align 8, !tbaa !13
  store i64 32, ptr %14, align 8, !tbaa !13
  %24 = load i64, ptr %14, align 8, !tbaa !13
  %25 = and i64 %24, 63
  %26 = load i64, ptr %13, align 8, !tbaa !13
  %27 = lshr i64 %26, %25
  store i64 %27, ptr %13, align 8, !tbaa !13
  %28 = load i64, ptr %13, align 8, !tbaa !13
  %29 = trunc i64 %28 to i32
  store i32 %29, ptr %10, align 4, !tbaa !11
  store i32 2147483647, ptr %11, align 4, !tbaa !11
  %30 = load i32, ptr %11, align 4, !tbaa !11
  %31 = load i32, ptr %10, align 4, !tbaa !11
  %32 = and i32 %31, %30
  store i32 %32, ptr %10, align 4, !tbaa !11
  %33 = load i32, ptr %10, align 4, !tbaa !11
  store i32 %33, ptr %5, align 4, !tbaa !11
  store i32 2146435072, ptr %11, align 4, !tbaa !11
  %34 = load i32, ptr %10, align 4, !tbaa !11
  %35 = load i32, ptr %11, align 4, !tbaa !11
  %36 = icmp uge i32 %34, %35
  %37 = zext i1 %36 to i32
  store i32 %37, ptr %10, align 4, !tbaa !11
  %38 = load i32, ptr %10, align 4, !tbaa !11
  %39 = icmp ne i32 %38, 0
  br i1 %39, label %40, label %46

40:                                               ; preds = %2
  %41 = load double, ptr %4, align 8, !tbaa !9
  store double %41, ptr %16, align 8, !tbaa !9
  %42 = load double, ptr %4, align 8, !tbaa !9
  store double %42, ptr %17, align 8, !tbaa !9
  %43 = load double, ptr %17, align 8, !tbaa !9
  %44 = load double, ptr %16, align 8, !tbaa !9
  %45 = fadd double %44, %43
  store double %45, ptr %16, align 8, !tbaa !9
  br label %219

46:                                               ; preds = %2
  store i32 715094163, ptr %10, align 4, !tbaa !11
  %47 = load i32, ptr %10, align 4, !tbaa !11
  store i32 %47, ptr %6, align 4, !tbaa !11
  %48 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %48, ptr %10, align 4, !tbaa !11
  store i32 1048575, ptr %11, align 4, !tbaa !11
  %49 = load i32, ptr %10, align 4, !tbaa !11
  %50 = load i32, ptr %11, align 4, !tbaa !11
  %51 = icmp ule i32 %49, %50
  %52 = zext i1 %51 to i32
  store i32 %52, ptr %10, align 4, !tbaa !11
  %53 = load i32, ptr %10, align 4, !tbaa !11
  %54 = icmp ne i32 %53, 0
  br i1 %54, label %55, label %82

55:                                               ; preds = %46
  store i32 696219795, ptr %10, align 4, !tbaa !11
  %56 = load i32, ptr %10, align 4, !tbaa !11
  store i32 %56, ptr %6, align 4, !tbaa !11
  %57 = load double, ptr %4, align 8, !tbaa !9
  store double %57, ptr %16, align 8, !tbaa !9
  store double 0x4350000000000000, ptr %17, align 8, !tbaa !9
  %58 = load double, ptr %17, align 8, !tbaa !9
  %59 = load double, ptr %16, align 8, !tbaa !9
  %60 = fmul double %59, %58
  store double %60, ptr %16, align 8, !tbaa !9
  %61 = load double, ptr %16, align 8, !tbaa !9
  %62 = call i64 @i64_reinterpret_f64(double noundef %61)
  store i64 %62, ptr %13, align 8, !tbaa !13
  %63 = load i64, ptr %13, align 8, !tbaa !13
  store i64 %63, ptr %7, align 8, !tbaa !13
  store i64 32, ptr %14, align 8, !tbaa !13
  %64 = load i64, ptr %14, align 8, !tbaa !13
  %65 = and i64 %64, 63
  %66 = load i64, ptr %13, align 8, !tbaa !13
  %67 = lshr i64 %66, %65
  store i64 %67, ptr %13, align 8, !tbaa !13
  %68 = load i64, ptr %13, align 8, !tbaa !13
  %69 = trunc i64 %68 to i32
  store i32 %69, ptr %10, align 4, !tbaa !11
  store i32 2147483647, ptr %11, align 4, !tbaa !11
  %70 = load i32, ptr %11, align 4, !tbaa !11
  %71 = load i32, ptr %10, align 4, !tbaa !11
  %72 = and i32 %71, %70
  store i32 %72, ptr %10, align 4, !tbaa !11
  %73 = load i32, ptr %10, align 4, !tbaa !11
  store i32 %73, ptr %5, align 4, !tbaa !11
  %74 = load i32, ptr %10, align 4, !tbaa !11
  %75 = icmp ne i32 %74, 0
  %76 = xor i1 %75, true
  %77 = zext i1 %76 to i32
  store i32 %77, ptr %10, align 4, !tbaa !11
  %78 = load i32, ptr %10, align 4, !tbaa !11
  %79 = icmp ne i32 %78, 0
  br i1 %79, label %80, label %81

80:                                               ; preds = %55
  br label %217

81:                                               ; preds = %55
  br label %82

82:                                               ; preds = %81, %46
  %83 = load i64, ptr %7, align 8, !tbaa !13
  store i64 %83, ptr %13, align 8, !tbaa !13
  store i64 -9223372036854775808, ptr %14, align 8, !tbaa !13
  %84 = load i64, ptr %14, align 8, !tbaa !13
  %85 = load i64, ptr %13, align 8, !tbaa !13
  %86 = and i64 %85, %84
  store i64 %86, ptr %13, align 8, !tbaa !13
  %87 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %87, ptr %11, align 4, !tbaa !11
  store i32 3, ptr %12, align 4, !tbaa !11
  %88 = load i32, ptr %12, align 4, !tbaa !11
  %89 = icmp eq i32 %88, 0
  %90 = xor i1 %89, true
  %91 = xor i1 %90, true
  %92 = zext i1 %91 to i32
  %93 = sext i32 %92 to i64
  %94 = call i64 @llvm.expect.i64(i64 %93, i64 0)
  %95 = icmp ne i64 %94, 0
  br i1 %95, label %96, label %98

96:                                               ; preds = %82
  call void @wasm_rt_trap(i32 noundef 3) #6
  unreachable

97:                                               ; No predecessors!
  br label %102

98:                                               ; preds = %82
  %99 = load i32, ptr %11, align 4, !tbaa !11
  %100 = load i32, ptr %12, align 4, !tbaa !11
  %101 = udiv i32 %99, %100
  br label %102

102:                                              ; preds = %98, %97
  %103 = phi i32 [ 0, %97 ], [ %101, %98 ]
  store i32 %103, ptr %11, align 4, !tbaa !11
  %104 = load i32, ptr %6, align 4, !tbaa !11
  store i32 %104, ptr %12, align 4, !tbaa !11
  %105 = load i32, ptr %12, align 4, !tbaa !11
  %106 = load i32, ptr %11, align 4, !tbaa !11
  %107 = add i32 %106, %105
  store i32 %107, ptr %11, align 4, !tbaa !11
  %108 = load i32, ptr %11, align 4, !tbaa !11
  %109 = zext i32 %108 to i64
  store i64 %109, ptr %14, align 8, !tbaa !13
  store i64 32, ptr %15, align 8, !tbaa !13
  %110 = load i64, ptr %15, align 8, !tbaa !13
  %111 = and i64 %110, 63
  %112 = load i64, ptr %14, align 8, !tbaa !13
  %113 = shl i64 %112, %111
  store i64 %113, ptr %14, align 8, !tbaa !13
  %114 = load i64, ptr %14, align 8, !tbaa !13
  %115 = load i64, ptr %13, align 8, !tbaa !13
  %116 = or i64 %115, %114
  store i64 %116, ptr %13, align 8, !tbaa !13
  %117 = load i64, ptr %13, align 8, !tbaa !13
  %118 = call double @f64_reinterpret_i64(i64 noundef %117)
  store double %118, ptr %16, align 8, !tbaa !9
  %119 = load double, ptr %16, align 8, !tbaa !9
  store double %119, ptr %9, align 8, !tbaa !9
  %120 = load double, ptr %9, align 8, !tbaa !9
  store double %120, ptr %17, align 8, !tbaa !9
  %121 = load double, ptr %17, align 8, !tbaa !9
  %122 = load double, ptr %16, align 8, !tbaa !9
  %123 = fmul double %122, %121
  store double %123, ptr %16, align 8, !tbaa !9
  %124 = load double, ptr %9, align 8, !tbaa !9
  store double %124, ptr %17, align 8, !tbaa !9
  %125 = load double, ptr %4, align 8, !tbaa !9
  store double %125, ptr %18, align 8, !tbaa !9
  %126 = load double, ptr %18, align 8, !tbaa !9
  %127 = load double, ptr %17, align 8, !tbaa !9
  %128 = fdiv double %127, %126
  store double %128, ptr %17, align 8, !tbaa !9
  %129 = load double, ptr %17, align 8, !tbaa !9
  %130 = load double, ptr %16, align 8, !tbaa !9
  %131 = fmul double %130, %129
  store double %131, ptr %16, align 8, !tbaa !9
  %132 = load double, ptr %16, align 8, !tbaa !9
  store double %132, ptr %8, align 8, !tbaa !9
  %133 = load double, ptr %8, align 8, !tbaa !9
  store double %133, ptr %17, align 8, !tbaa !9
  %134 = load double, ptr %8, align 8, !tbaa !9
  store double %134, ptr %18, align 8, !tbaa !9
  %135 = load double, ptr %18, align 8, !tbaa !9
  %136 = load double, ptr %17, align 8, !tbaa !9
  %137 = fmul double %136, %135
  store double %137, ptr %17, align 8, !tbaa !9
  %138 = load double, ptr %17, align 8, !tbaa !9
  %139 = load double, ptr %16, align 8, !tbaa !9
  %140 = fmul double %139, %138
  store double %140, ptr %16, align 8, !tbaa !9
  %141 = load double, ptr %8, align 8, !tbaa !9
  store double %141, ptr %17, align 8, !tbaa !9
  store double 0x3FC2B000D4E4EDD7, ptr %18, align 8, !tbaa !9
  %142 = load double, ptr %18, align 8, !tbaa !9
  %143 = load double, ptr %17, align 8, !tbaa !9
  %144 = fmul double %143, %142
  store double %144, ptr %17, align 8, !tbaa !9
  store double 0xBFE844CBBEE751D9, ptr %18, align 8, !tbaa !9
  %145 = load double, ptr %18, align 8, !tbaa !9
  %146 = load double, ptr %17, align 8, !tbaa !9
  %147 = fadd double %146, %145
  store double %147, ptr %17, align 8, !tbaa !9
  %148 = load double, ptr %17, align 8, !tbaa !9
  %149 = load double, ptr %16, align 8, !tbaa !9
  %150 = fmul double %149, %148
  store double %150, ptr %16, align 8, !tbaa !9
  %151 = load double, ptr %8, align 8, !tbaa !9
  store double %151, ptr %17, align 8, !tbaa !9
  %152 = load double, ptr %8, align 8, !tbaa !9
  store double %152, ptr %18, align 8, !tbaa !9
  store double 0x3FF9F1604A49D6C2, ptr %19, align 8, !tbaa !9
  %153 = load double, ptr %19, align 8, !tbaa !9
  %154 = load double, ptr %18, align 8, !tbaa !9
  %155 = fmul double %154, %153
  store double %155, ptr %18, align 8, !tbaa !9
  store double 0xBFFE28E092F02420, ptr %19, align 8, !tbaa !9
  %156 = load double, ptr %19, align 8, !tbaa !9
  %157 = load double, ptr %18, align 8, !tbaa !9
  %158 = fadd double %157, %156
  store double %158, ptr %18, align 8, !tbaa !9
  %159 = load double, ptr %18, align 8, !tbaa !9
  %160 = load double, ptr %17, align 8, !tbaa !9
  %161 = fmul double %160, %159
  store double %161, ptr %17, align 8, !tbaa !9
  store double 0x3FFE03E60F61E692, ptr %18, align 8, !tbaa !9
  %162 = load double, ptr %18, align 8, !tbaa !9
  %163 = load double, ptr %17, align 8, !tbaa !9
  %164 = fadd double %163, %162
  store double %164, ptr %17, align 8, !tbaa !9
  %165 = load double, ptr %17, align 8, !tbaa !9
  %166 = load double, ptr %16, align 8, !tbaa !9
  %167 = fadd double %166, %165
  store double %167, ptr %16, align 8, !tbaa !9
  %168 = load double, ptr %9, align 8, !tbaa !9
  store double %168, ptr %17, align 8, !tbaa !9
  %169 = load double, ptr %17, align 8, !tbaa !9
  %170 = load double, ptr %16, align 8, !tbaa !9
  %171 = fmul double %170, %169
  store double %171, ptr %16, align 8, !tbaa !9
  %172 = load double, ptr %16, align 8, !tbaa !9
  %173 = call i64 @i64_reinterpret_f64(double noundef %172)
  store i64 %173, ptr %13, align 8, !tbaa !13
  store i64 -1073741824, ptr %14, align 8, !tbaa !13
  %174 = load i64, ptr %14, align 8, !tbaa !13
  %175 = load i64, ptr %13, align 8, !tbaa !13
  %176 = and i64 %175, %174
  store i64 %176, ptr %13, align 8, !tbaa !13
  store i64 2147483648, ptr %14, align 8, !tbaa !13
  %177 = load i64, ptr %14, align 8, !tbaa !13
  %178 = load i64, ptr %13, align 8, !tbaa !13
  %179 = add i64 %178, %177
  store i64 %179, ptr %13, align 8, !tbaa !13
  %180 = load i64, ptr %13, align 8, !tbaa !13
  %181 = call double @f64_reinterpret_i64(i64 noundef %180)
  store double %181, ptr %16, align 8, !tbaa !9
  %182 = load double, ptr %16, align 8, !tbaa !9
  store double %182, ptr %8, align 8, !tbaa !9
  %183 = load double, ptr %4, align 8, !tbaa !9
  store double %183, ptr %17, align 8, !tbaa !9
  %184 = load double, ptr %8, align 8, !tbaa !9
  store double %184, ptr %18, align 8, !tbaa !9
  %185 = load double, ptr %8, align 8, !tbaa !9
  store double %185, ptr %19, align 8, !tbaa !9
  %186 = load double, ptr %19, align 8, !tbaa !9
  %187 = load double, ptr %18, align 8, !tbaa !9
  %188 = fmul double %187, %186
  store double %188, ptr %18, align 8, !tbaa !9
  %189 = load double, ptr %18, align 8, !tbaa !9
  %190 = load double, ptr %17, align 8, !tbaa !9
  %191 = fdiv double %190, %189
  store double %191, ptr %17, align 8, !tbaa !9
  %192 = load double, ptr %17, align 8, !tbaa !9
  store double %192, ptr %4, align 8, !tbaa !9
  %193 = load double, ptr %8, align 8, !tbaa !9
  store double %193, ptr %18, align 8, !tbaa !9
  %194 = load double, ptr %18, align 8, !tbaa !9
  %195 = load double, ptr %17, align 8, !tbaa !9
  %196 = fsub double %195, %194
  store double %196, ptr %17, align 8, !tbaa !9
  %197 = load double, ptr %8, align 8, !tbaa !9
  store double %197, ptr %18, align 8, !tbaa !9
  %198 = load double, ptr %8, align 8, !tbaa !9
  store double %198, ptr %19, align 8, !tbaa !9
  %199 = load double, ptr %19, align 8, !tbaa !9
  %200 = load double, ptr %18, align 8, !tbaa !9
  %201 = fadd double %200, %199
  store double %201, ptr %18, align 8, !tbaa !9
  %202 = load double, ptr %4, align 8, !tbaa !9
  store double %202, ptr %19, align 8, !tbaa !9
  %203 = load double, ptr %19, align 8, !tbaa !9
  %204 = load double, ptr %18, align 8, !tbaa !9
  %205 = fadd double %204, %203
  store double %205, ptr %18, align 8, !tbaa !9
  %206 = load double, ptr %18, align 8, !tbaa !9
  %207 = load double, ptr %17, align 8, !tbaa !9
  %208 = fdiv double %207, %206
  store double %208, ptr %17, align 8, !tbaa !9
  %209 = load double, ptr %17, align 8, !tbaa !9
  %210 = load double, ptr %16, align 8, !tbaa !9
  %211 = fmul double %210, %209
  store double %211, ptr %16, align 8, !tbaa !9
  %212 = load double, ptr %8, align 8, !tbaa !9
  store double %212, ptr %17, align 8, !tbaa !9
  %213 = load double, ptr %17, align 8, !tbaa !9
  %214 = load double, ptr %16, align 8, !tbaa !9
  %215 = fadd double %214, %213
  store double %215, ptr %16, align 8, !tbaa !9
  %216 = load double, ptr %16, align 8, !tbaa !9
  store double %216, ptr %4, align 8, !tbaa !9
  br label %217

217:                                              ; preds = %102, %80
  %218 = load double, ptr %4, align 8, !tbaa !9
  store double %218, ptr %16, align 8, !tbaa !9
  br label %219

219:                                              ; preds = %217, %40
  %220 = load double, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, 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 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  ret double %220
}

; 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: noreturn
declare void @wasm_rt_trap(i32 noundef) #2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @i64_reinterpret_f64(double noundef) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden double @f64_reinterpret_i64(i64 noundef) #4

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { noreturn "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 willreturn memory(none) }
attributes #4 = { 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 #5 = { nounwind }
attributes #6 = { noreturn }

!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 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}


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

; Function Attrs: nounwind uwtable
define dso_local double @w2c_hermes_cbrt(ptr nocapture noundef readnone %0, double noundef %1) local_unnamed_addr #0 {
  %3 = tail call i64 @i64_reinterpret_f64(double noundef %1)
  %4 = lshr i64 %3, 32
  %5 = trunc nuw i64 %4 to i32
  %6 = and i32 %5, 2147483647
  %7 = icmp ugt i32 %6, 2146435071
  br i1 %7, label %8, label %10

8:                                                ; preds = %2
  %9 = fadd double %1, %1
  br label %54

10:                                               ; preds = %2
  %11 = icmp ult i32 %6, 1048576
  br i1 %11, label %12, label %18

12:                                               ; preds = %10
  %13 = fmul double %1, 0x4350000000000000
  %14 = tail call i64 @i64_reinterpret_f64(double noundef %13)
  %15 = lshr i64 %14, 32
  %16 = trunc nuw i64 %15 to i32
  %17 = and i32 %16, 2147483647
  %.not = icmp eq i32 %17, 0
  br i1 %.not, label %54, label %18

18:                                               ; preds = %10, %12
  %.0127 = phi i64 [ %14, %12 ], [ %3, %10 ]
  %.0126 = phi i32 [ 696219795, %12 ], [ 715094163, %10 ]
  %.0124 = phi i32 [ %17, %12 ], [ %6, %10 ]
  %19 = and i64 %.0127, -9223372036854775808
  %20 = udiv i32 %.0124, 3
  %21 = add nuw nsw i32 %20, %.0126
  %22 = zext nneg i32 %21 to i64
  %23 = shl nuw nsw i64 %22, 32
  %24 = or disjoint i64 %23, %19
  %25 = tail call double @f64_reinterpret_i64(i64 noundef %24)
  %26 = fmul double %25, %25
  %27 = fdiv double %25, %1
  %28 = fmul double %26, %27
  %29 = fmul double %28, %28
  %30 = fmul double %28, %29
  %31 = insertelement <2 x double> poison, double %28, i64 0
  %32 = shufflevector <2 x double> %31, <2 x double> poison, <2 x i32> zeroinitializer
  %33 = fmul <2 x double> %32, <double 0x3FC2B000D4E4EDD7, double 0x3FF9F1604A49D6C2>
  %34 = fadd <2 x double> %33, <double 0xBFE844CBBEE751D9, double 0xBFFE28E092F02420>
  %35 = insertelement <2 x double> %32, double %30, i64 0
  %36 = fmul <2 x double> %35, %34
  %37 = extractelement <2 x double> %36, i64 1
  %38 = fadd double %37, 0x3FFE03E60F61E692
  %39 = extractelement <2 x double> %36, i64 0
  %40 = fadd double %39, %38
  %41 = fmul double %25, %40
  %42 = tail call i64 @i64_reinterpret_f64(double noundef %41)
  %43 = and i64 %42, -1073741824
  %44 = add i64 %43, 2147483648
  %45 = tail call double @f64_reinterpret_i64(i64 noundef %44)
  %46 = fmul double %45, %45
  %47 = fdiv double %1, %46
  %48 = fsub double %47, %45
  %49 = fadd double %45, %45
  %50 = fadd double %49, %47
  %51 = fdiv double %48, %50
  %52 = fmul double %45, %51
  %53 = fadd double %45, %52
  br label %54

54:                                               ; preds = %18, %12, %8
  %.0125 = phi double [ %9, %8 ], [ %1, %12 ], [ %53, %18 ]
  ret double %.0125
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @i64_reinterpret_f64(double noundef) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden double @f64_reinterpret_i64(i64 noundef) local_unnamed_addr #1

attributes #0 = { 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 #1 = { 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" }

!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)"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,LowerExpectIntrinsicPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass