; LLVM IR from facebook/hermes :: API/hermes_sandbox/external (hermes_sandbox_impl_opt_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_acos(ptr noundef %0, double noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca double, align 8
  %5 = alloca i32, align 4
  %6 = alloca i64, align 8
  %7 = alloca double, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = 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) #3
  store i32 0, ptr %5, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  store i64 0, ptr %6, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  store double 0.000000e+00, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  %19 = load double, ptr %4, align 8, !tbaa !9
  store double %19, ptr %15, align 8, !tbaa !9
  %20 = load double, ptr %15, align 8, !tbaa !9
  %21 = call i64 @i64_reinterpret_f64(double noundef %20)
  store i64 %21, ptr %11, align 8, !tbaa !13
  %22 = load i64, ptr %11, align 8, !tbaa !13
  store i64 %22, ptr %6, align 8, !tbaa !13
  store i64 32, ptr %12, align 8, !tbaa !13
  %23 = load i64, ptr %12, align 8, !tbaa !13
  %24 = and i64 %23, 63
  %25 = load i64, ptr %11, align 8, !tbaa !13
  %26 = lshr i64 %25, %24
  store i64 %26, ptr %11, align 8, !tbaa !13
  %27 = load i64, ptr %11, align 8, !tbaa !13
  %28 = trunc i64 %27 to i32
  store i32 %28, ptr %8, align 4, !tbaa !11
  store i32 2147483647, ptr %9, align 4, !tbaa !11
  %29 = load i32, ptr %9, align 4, !tbaa !11
  %30 = load i32, ptr %8, align 4, !tbaa !11
  %31 = and i32 %30, %29
  store i32 %31, ptr %8, align 4, !tbaa !11
  %32 = load i32, ptr %8, align 4, !tbaa !11
  store i32 %32, ptr %5, align 4, !tbaa !11
  store i32 1072693248, ptr %9, align 4, !tbaa !11
  %33 = load i32, ptr %8, align 4, !tbaa !11
  %34 = load i32, ptr %9, align 4, !tbaa !11
  %35 = icmp uge i32 %33, %34
  %36 = zext i1 %35 to i32
  store i32 %36, ptr %8, align 4, !tbaa !11
  %37 = load i32, ptr %8, align 4, !tbaa !11
  %38 = icmp ne i32 %37, 0
  br i1 %38, label %39, label %81

39:                                               ; preds = %2
  %40 = load i64, ptr %6, align 8, !tbaa !13
  store i64 %40, ptr %11, align 8, !tbaa !13
  %41 = load i64, ptr %11, align 8, !tbaa !13
  %42 = trunc i64 %41 to i32
  store i32 %42, ptr %8, align 4, !tbaa !11
  %43 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %43, ptr %9, align 4, !tbaa !11
  store i32 1072693248, ptr %10, align 4, !tbaa !11
  %44 = load i32, ptr %10, align 4, !tbaa !11
  %45 = load i32, ptr %9, align 4, !tbaa !11
  %46 = sub i32 %45, %44
  store i32 %46, ptr %9, align 4, !tbaa !11
  %47 = load i32, ptr %9, align 4, !tbaa !11
  %48 = load i32, ptr %8, align 4, !tbaa !11
  %49 = or i32 %48, %47
  store i32 %49, ptr %8, align 4, !tbaa !11
  %50 = load i32, ptr %8, align 4, !tbaa !11
  %51 = icmp ne i32 %50, 0
  %52 = xor i1 %51, true
  %53 = zext i1 %52 to i32
  store i32 %53, ptr %8, align 4, !tbaa !11
  %54 = load i32, ptr %8, align 4, !tbaa !11
  %55 = icmp ne i32 %54, 0
  br i1 %55, label %56, label %72

56:                                               ; preds = %39
  store double 0.000000e+00, ptr %15, align 8, !tbaa !9
  store double 0x400921FB54442D18, ptr %16, align 8, !tbaa !9
  %57 = load i64, ptr %6, align 8, !tbaa !13
  store i64 %57, ptr %13, align 8, !tbaa !13
  store i64 0, ptr %14, align 8, !tbaa !13
  %58 = load i64, ptr %13, align 8, !tbaa !13
  %59 = load i64, ptr %14, align 8, !tbaa !13
  %60 = icmp sge i64 %58, %59
  %61 = zext i1 %60 to i32
  %62 = sext i32 %61 to i64
  %63 = trunc i64 %62 to i32
  store i32 %63, ptr %10, align 4, !tbaa !11
  %64 = load i32, ptr %10, align 4, !tbaa !11
  %65 = icmp ne i32 %64, 0
  br i1 %65, label %66, label %68

66:                                               ; preds = %56
  %67 = load double, ptr %15, align 8, !tbaa !9
  br label %70

68:                                               ; preds = %56
  %69 = load double, ptr %16, align 8, !tbaa !9
  br label %70

70:                                               ; preds = %68, %66
  %71 = phi double [ %67, %66 ], [ %69, %68 ]
  store double %71, ptr %15, align 8, !tbaa !9
  br label %222

72:                                               ; preds = %39
  store double 0.000000e+00, ptr %15, align 8, !tbaa !9
  %73 = load double, ptr %4, align 8, !tbaa !9
  store double %73, ptr %16, align 8, !tbaa !9
  %74 = load double, ptr %4, align 8, !tbaa !9
  store double %74, ptr %17, align 8, !tbaa !9
  %75 = load double, ptr %17, align 8, !tbaa !9
  %76 = load double, ptr %16, align 8, !tbaa !9
  %77 = fsub double %76, %75
  store double %77, ptr %16, align 8, !tbaa !9
  %78 = load double, ptr %16, align 8, !tbaa !9
  %79 = load double, ptr %15, align 8, !tbaa !9
  %80 = fdiv double %79, %78
  store double %80, ptr %15, align 8, !tbaa !9
  br label %222

81:                                               ; preds = %2
  %82 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %82, ptr %8, align 4, !tbaa !11
  store i32 1071644671, ptr %9, align 4, !tbaa !11
  %83 = load i32, ptr %8, align 4, !tbaa !11
  %84 = load i32, ptr %9, align 4, !tbaa !11
  %85 = icmp ule i32 %83, %84
  %86 = zext i1 %85 to i32
  store i32 %86, ptr %8, align 4, !tbaa !11
  %87 = load i32, ptr %8, align 4, !tbaa !11
  %88 = icmp ne i32 %87, 0
  br i1 %88, label %89, label %121

89:                                               ; preds = %81
  store double 0x3FF921FB54442D18, ptr %15, align 8, !tbaa !9
  %90 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %90, ptr %9, align 4, !tbaa !11
  store i32 1012924417, ptr %10, align 4, !tbaa !11
  %91 = load i32, ptr %9, align 4, !tbaa !11
  %92 = load i32, ptr %10, align 4, !tbaa !11
  %93 = icmp ult i32 %91, %92
  %94 = zext i1 %93 to i32
  store i32 %94, ptr %9, align 4, !tbaa !11
  %95 = load i32, ptr %9, align 4, !tbaa !11
  %96 = icmp ne i32 %95, 0
  br i1 %96, label %97, label %98

97:                                               ; preds = %89
  br label %221

98:                                               ; preds = %89
  store double 0x3C91A62633145C07, ptr %15, align 8, !tbaa !9
  %99 = load double, ptr %4, align 8, !tbaa !9
  store double %99, ptr %16, align 8, !tbaa !9
  %100 = load double, ptr %4, align 8, !tbaa !9
  store double %100, ptr %17, align 8, !tbaa !9
  %101 = load double, ptr %4, align 8, !tbaa !9
  store double %101, ptr %18, align 8, !tbaa !9
  %102 = load double, ptr %18, align 8, !tbaa !9
  %103 = load double, ptr %17, align 8, !tbaa !9
  %104 = fmul double %103, %102
  store double %104, ptr %17, align 8, !tbaa !9
  %105 = load ptr, ptr %3, align 8, !tbaa !5
  %106 = load double, ptr %17, align 8, !tbaa !9
  %107 = call double @w2c_hermes_R(ptr noundef %105, double noundef %106)
  store double %107, ptr %17, align 8, !tbaa !9
  %108 = load double, ptr %17, align 8, !tbaa !9
  %109 = load double, ptr %16, align 8, !tbaa !9
  %110 = fmul double %109, %108
  store double %110, ptr %16, align 8, !tbaa !9
  %111 = load double, ptr %16, align 8, !tbaa !9
  %112 = load double, ptr %15, align 8, !tbaa !9
  %113 = fsub double %112, %111
  store double %113, ptr %15, align 8, !tbaa !9
  %114 = load double, ptr %4, align 8, !tbaa !9
  store double %114, ptr %16, align 8, !tbaa !9
  %115 = load double, ptr %16, align 8, !tbaa !9
  %116 = load double, ptr %15, align 8, !tbaa !9
  %117 = fsub double %116, %115
  store double %117, ptr %15, align 8, !tbaa !9
  store double 0x3FF921FB54442D18, ptr %16, align 8, !tbaa !9
  %118 = load double, ptr %16, align 8, !tbaa !9
  %119 = load double, ptr %15, align 8, !tbaa !9
  %120 = fadd double %119, %118
  store double %120, ptr %15, align 8, !tbaa !9
  br label %222

121:                                              ; preds = %81
  %122 = load i64, ptr %6, align 8, !tbaa !13
  store i64 %122, ptr %11, align 8, !tbaa !13
  store i64 0, ptr %12, align 8, !tbaa !13
  %123 = load i64, ptr %11, align 8, !tbaa !13
  %124 = load i64, ptr %12, align 8, !tbaa !13
  %125 = icmp slt i64 %123, %124
  %126 = zext i1 %125 to i32
  %127 = sext i32 %126 to i64
  %128 = trunc i64 %127 to i32
  store i32 %128, ptr %8, align 4, !tbaa !11
  %129 = load i32, ptr %8, align 4, !tbaa !11
  %130 = icmp ne i32 %129, 0
  br i1 %130, label %131, label %165

131:                                              ; preds = %121
  store double 0x3FF921FB54442D18, ptr %15, align 8, !tbaa !9
  %132 = load double, ptr %4, align 8, !tbaa !9
  store double %132, ptr %16, align 8, !tbaa !9
  store double 1.000000e+00, ptr %17, align 8, !tbaa !9
  %133 = load double, ptr %17, align 8, !tbaa !9
  %134 = load double, ptr %16, align 8, !tbaa !9
  %135 = fadd double %134, %133
  store double %135, ptr %16, align 8, !tbaa !9
  store double 5.000000e-01, ptr %17, align 8, !tbaa !9
  %136 = load double, ptr %17, align 8, !tbaa !9
  %137 = load double, ptr %16, align 8, !tbaa !9
  %138 = fmul double %137, %136
  store double %138, ptr %16, align 8, !tbaa !9
  %139 = load double, ptr %16, align 8, !tbaa !9
  store double %139, ptr %4, align 8, !tbaa !9
  %140 = load double, ptr %16, align 8, !tbaa !9
  %141 = call double @wasm_sqrt(double noundef %140)
  store double %141, ptr %16, align 8, !tbaa !9
  %142 = load double, ptr %16, align 8, !tbaa !9
  store double %142, ptr %7, align 8, !tbaa !9
  %143 = load double, ptr %7, align 8, !tbaa !9
  store double %143, ptr %17, align 8, !tbaa !9
  %144 = load double, ptr %4, align 8, !tbaa !9
  store double %144, ptr %18, align 8, !tbaa !9
  %145 = load ptr, ptr %3, align 8, !tbaa !5
  %146 = load double, ptr %18, align 8, !tbaa !9
  %147 = call double @w2c_hermes_R(ptr noundef %145, double noundef %146)
  store double %147, ptr %18, align 8, !tbaa !9
  %148 = load double, ptr %18, align 8, !tbaa !9
  %149 = load double, ptr %17, align 8, !tbaa !9
  %150 = fmul double %149, %148
  store double %150, ptr %17, align 8, !tbaa !9
  store double 0xBC91A62633145C07, ptr %18, align 8, !tbaa !9
  %151 = load double, ptr %18, align 8, !tbaa !9
  %152 = load double, ptr %17, align 8, !tbaa !9
  %153 = fadd double %152, %151
  store double %153, ptr %17, align 8, !tbaa !9
  %154 = load double, ptr %17, align 8, !tbaa !9
  %155 = load double, ptr %16, align 8, !tbaa !9
  %156 = fadd double %155, %154
  store double %156, ptr %16, align 8, !tbaa !9
  %157 = load double, ptr %16, align 8, !tbaa !9
  %158 = load double, ptr %15, align 8, !tbaa !9
  %159 = fsub double %158, %157
  store double %159, ptr %15, align 8, !tbaa !9
  %160 = load double, ptr %15, align 8, !tbaa !9
  store double %160, ptr %4, align 8, !tbaa !9
  %161 = load double, ptr %4, align 8, !tbaa !9
  store double %161, ptr %16, align 8, !tbaa !9
  %162 = load double, ptr %16, align 8, !tbaa !9
  %163 = load double, ptr %15, align 8, !tbaa !9
  %164 = fadd double %163, %162
  store double %164, ptr %15, align 8, !tbaa !9
  br label %222

165:                                              ; preds = %121
  store double 1.000000e+00, ptr %15, align 8, !tbaa !9
  %166 = load double, ptr %4, align 8, !tbaa !9
  store double %166, ptr %16, align 8, !tbaa !9
  %167 = load double, ptr %16, align 8, !tbaa !9
  %168 = load double, ptr %15, align 8, !tbaa !9
  %169 = fsub double %168, %167
  store double %169, ptr %15, align 8, !tbaa !9
  store double 5.000000e-01, ptr %16, align 8, !tbaa !9
  %170 = load double, ptr %16, align 8, !tbaa !9
  %171 = load double, ptr %15, align 8, !tbaa !9
  %172 = fmul double %171, %170
  store double %172, ptr %15, align 8, !tbaa !9
  %173 = load double, ptr %15, align 8, !tbaa !9
  store double %173, ptr %4, align 8, !tbaa !9
  %174 = load double, ptr %15, align 8, !tbaa !9
  %175 = call double @wasm_sqrt(double noundef %174)
  store double %175, ptr %15, align 8, !tbaa !9
  %176 = load double, ptr %15, align 8, !tbaa !9
  store double %176, ptr %7, align 8, !tbaa !9
  %177 = load double, ptr %4, align 8, !tbaa !9
  store double %177, ptr %16, align 8, !tbaa !9
  %178 = load ptr, ptr %3, align 8, !tbaa !5
  %179 = load double, ptr %16, align 8, !tbaa !9
  %180 = call double @w2c_hermes_R(ptr noundef %178, double noundef %179)
  store double %180, ptr %16, align 8, !tbaa !9
  %181 = load double, ptr %16, align 8, !tbaa !9
  %182 = load double, ptr %15, align 8, !tbaa !9
  %183 = fmul double %182, %181
  store double %183, ptr %15, align 8, !tbaa !9
  %184 = load double, ptr %4, align 8, !tbaa !9
  store double %184, ptr %16, align 8, !tbaa !9
  %185 = load double, ptr %7, align 8, !tbaa !9
  store double %185, ptr %17, align 8, !tbaa !9
  %186 = load double, ptr %17, align 8, !tbaa !9
  %187 = call i64 @i64_reinterpret_f64(double noundef %186)
  store i64 %187, ptr %13, align 8, !tbaa !13
  store i64 -4294967296, ptr %14, align 8, !tbaa !13
  %188 = load i64, ptr %14, align 8, !tbaa !13
  %189 = load i64, ptr %13, align 8, !tbaa !13
  %190 = and i64 %189, %188
  store i64 %190, ptr %13, align 8, !tbaa !13
  %191 = load i64, ptr %13, align 8, !tbaa !13
  %192 = call double @f64_reinterpret_i64(i64 noundef %191)
  store double %192, ptr %17, align 8, !tbaa !9
  %193 = load double, ptr %17, align 8, !tbaa !9
  store double %193, ptr %4, align 8, !tbaa !9
  %194 = load double, ptr %4, align 8, !tbaa !9
  store double %194, ptr %18, align 8, !tbaa !9
  %195 = load double, ptr %18, align 8, !tbaa !9
  %196 = load double, ptr %17, align 8, !tbaa !9
  %197 = fmul double %196, %195
  store double %197, ptr %17, align 8, !tbaa !9
  %198 = load double, ptr %17, align 8, !tbaa !9
  %199 = load double, ptr %16, align 8, !tbaa !9
  %200 = fsub double %199, %198
  store double %200, ptr %16, align 8, !tbaa !9
  %201 = load double, ptr %7, align 8, !tbaa !9
  store double %201, ptr %17, align 8, !tbaa !9
  %202 = load double, ptr %4, align 8, !tbaa !9
  store double %202, ptr %18, align 8, !tbaa !9
  %203 = load double, ptr %18, align 8, !tbaa !9
  %204 = load double, ptr %17, align 8, !tbaa !9
  %205 = fadd double %204, %203
  store double %205, ptr %17, align 8, !tbaa !9
  %206 = load double, ptr %17, align 8, !tbaa !9
  %207 = load double, ptr %16, align 8, !tbaa !9
  %208 = fdiv double %207, %206
  store double %208, ptr %16, align 8, !tbaa !9
  %209 = load double, ptr %16, align 8, !tbaa !9
  %210 = load double, ptr %15, align 8, !tbaa !9
  %211 = fadd double %210, %209
  store double %211, ptr %15, align 8, !tbaa !9
  %212 = load double, ptr %4, align 8, !tbaa !9
  store double %212, ptr %16, align 8, !tbaa !9
  %213 = load double, ptr %16, align 8, !tbaa !9
  %214 = load double, ptr %15, align 8, !tbaa !9
  %215 = fadd double %214, %213
  store double %215, ptr %15, align 8, !tbaa !9
  %216 = load double, ptr %15, align 8, !tbaa !9
  store double %216, ptr %4, align 8, !tbaa !9
  %217 = load double, ptr %4, align 8, !tbaa !9
  store double %217, ptr %16, align 8, !tbaa !9
  %218 = load double, ptr %16, align 8, !tbaa !9
  %219 = load double, ptr %15, align 8, !tbaa !9
  %220 = fadd double %219, %218
  store double %220, ptr %15, align 8, !tbaa !9
  br label %221

221:                                              ; preds = %165, %97
  br label %222

222:                                              ; preds = %221, %131, %98, %72, %70
  %223 = load double, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  ret double %223
}

; 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 i64 @i64_reinterpret_f64(double noundef) #2

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

; Function Attrs: nounwind uwtable
declare dso_local double @w2c_hermes_R(ptr noundef, double noundef) #0

; Function Attrs: nounwind uwtable
declare hidden double @wasm_sqrt(double noundef) #0

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 = { 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 }

!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_acos(ptr noundef %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, 1072693247
  br i1 %7, label %8, label %18

8:                                                ; preds = %2
  %9 = trunc i64 %3 to i32
  %10 = add nsw i32 %6, -1072693248
  %11 = or i32 %10, %9
  %.not = icmp eq i32 %11, 0
  br i1 %.not, label %12, label %15

12:                                               ; preds = %8
  %13 = icmp sgt i64 %3, -1
  %14 = select i1 %13, double 0.000000e+00, double 0x400921FB54442D18
  br label %57

15:                                               ; preds = %8
  %16 = fsub double %1, %1
  %17 = fdiv double 0.000000e+00, %16
  br label %57

18:                                               ; preds = %2
  %19 = icmp ult i32 %6, 1071644672
  br i1 %19, label %20, label %29

20:                                               ; preds = %18
  %21 = icmp ult i32 %6, 1012924417
  br i1 %21, label %57, label %22

22:                                               ; preds = %20
  %23 = fmul double %1, %1
  %24 = tail call double @w2c_hermes_R(ptr noundef %0, double noundef %23)
  %25 = fmul double %24, %1
  %26 = fsub double 0x3C91A62633145C07, %25
  %27 = fsub double %26, %1
  %28 = fadd double %27, 0x3FF921FB54442D18
  br label %57

29:                                               ; preds = %18
  %30 = icmp slt i64 %3, 0
  br i1 %30, label %31, label %41

31:                                               ; preds = %29
  %32 = fadd double %1, 1.000000e+00
  %33 = fmul double %32, 5.000000e-01
  %34 = tail call double @wasm_sqrt(double noundef %33)
  %35 = tail call double @w2c_hermes_R(ptr noundef %0, double noundef %33)
  %36 = fmul double %34, %35
  %37 = fadd double %36, 0xBC91A62633145C07
  %38 = fadd double %34, %37
  %39 = fsub double 0x3FF921FB54442D18, %38
  %40 = fadd double %39, %39
  br label %57

41:                                               ; preds = %29
  %42 = fsub double 1.000000e+00, %1
  %43 = fmul double %42, 5.000000e-01
  %44 = tail call double @wasm_sqrt(double noundef %43)
  %45 = tail call double @w2c_hermes_R(ptr noundef %0, double noundef %43)
  %46 = fmul double %44, %45
  %47 = tail call i64 @i64_reinterpret_f64(double noundef %44)
  %48 = and i64 %47, -4294967296
  %49 = tail call double @f64_reinterpret_i64(i64 noundef %48)
  %50 = fmul double %49, %49
  %51 = fsub double %43, %50
  %52 = fadd double %44, %49
  %53 = fdiv double %51, %52
  %54 = fadd double %46, %53
  %55 = fadd double %49, %54
  %56 = fadd double %55, %55
  br label %57

57:                                               ; preds = %41, %20, %31, %22, %15, %12
  %.0 = phi double [ %14, %12 ], [ %17, %15 ], [ 0x3FF921FB54442D18, %20 ], [ %28, %22 ], [ %40, %31 ], [ %56, %41 ]
  ret double %.0
}

; 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

; Function Attrs: nounwind uwtable
declare dso_local double @w2c_hermes_R(ptr noundef, double noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden double @wasm_sqrt(double noundef) local_unnamed_addr #0

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,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass