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

%struct.w2c_hermes = type { ptr, ptr, ptr, i32, i32, i32, %struct.wasm_rt_memory_t, %struct.wasm_rt_funcref_table_t }
%struct.wasm_rt_memory_t = type { ptr, i64, i64, i64, i8 }
%struct.wasm_rt_funcref_table_t = type { ptr, i32, i32 }

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

46:                                               ; preds = %2
  %47 = load double, ptr %4, align 8, !tbaa !9
  store double %47, ptr %19, align 8, !tbaa !9
  store double 0x3FF921FB54442D18, ptr %20, align 8, !tbaa !9
  %48 = load double, ptr %4, align 8, !tbaa !9
  store double %48, ptr %21, align 8, !tbaa !9
  %49 = load double, ptr %20, align 8, !tbaa !9
  %50 = load double, ptr %21, align 8, !tbaa !9
  %51 = call double @llvm.copysign.f64(double %49, double %50)
  store double %51, ptr %20, align 8, !tbaa !9
  %52 = load double, ptr %4, align 8, !tbaa !9
  store double %52, ptr %21, align 8, !tbaa !9
  %53 = load double, ptr %21, align 8, !tbaa !9
  %54 = call i64 @i64_reinterpret_f64(double noundef %53)
  store i64 %54, ptr %17, align 8, !tbaa !13
  store i64 9223372036854775807, ptr %18, align 8, !tbaa !13
  %55 = load i64, ptr %18, align 8, !tbaa !13
  %56 = load i64, ptr %17, align 8, !tbaa !13
  %57 = and i64 %56, %55
  store i64 %57, ptr %17, align 8, !tbaa !13
  store i64 9218868437227405312, ptr %18, align 8, !tbaa !13
  %58 = load i64, ptr %17, align 8, !tbaa !13
  %59 = load i64, ptr %18, align 8, !tbaa !13
  %60 = icmp ugt i64 %58, %59
  %61 = zext i1 %60 to i32
  store i32 %61, ptr %13, align 4, !tbaa !11
  %62 = load i32, ptr %13, align 4, !tbaa !11
  %63 = icmp ne i32 %62, 0
  br i1 %63, label %64, label %66

64:                                               ; preds = %46
  %65 = load double, ptr %19, align 8, !tbaa !9
  br label %68

66:                                               ; preds = %46
  %67 = load double, ptr %20, align 8, !tbaa !9
  br label %68

68:                                               ; preds = %66, %64
  %69 = phi double [ %65, %64 ], [ %67, %66 ]
  store double %69, ptr %19, align 8, !tbaa !9
  br label %339

70:                                               ; preds = %2
  %71 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %71, ptr %11, align 4, !tbaa !11
  store i32 1071382527, ptr %12, align 4, !tbaa !11
  %72 = load i32, ptr %11, align 4, !tbaa !11
  %73 = load i32, ptr %12, align 4, !tbaa !11
  %74 = icmp ule i32 %72, %73
  %75 = zext i1 %74 to i32
  store i32 %75, ptr %11, align 4, !tbaa !11
  %76 = load i32, ptr %11, align 4, !tbaa !11
  %77 = icmp ne i32 %76, 0
  br i1 %77, label %78, label %88

78:                                               ; preds = %70
  store i32 -1, ptr %11, align 4, !tbaa !11
  %79 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %79, ptr %12, align 4, !tbaa !11
  store i32 1044381696, ptr %13, align 4, !tbaa !11
  %80 = load i32, ptr %12, align 4, !tbaa !11
  %81 = load i32, ptr %13, align 4, !tbaa !11
  %82 = icmp uge i32 %80, %81
  %83 = zext i1 %82 to i32
  store i32 %83, ptr %12, align 4, !tbaa !11
  %84 = load i32, ptr %12, align 4, !tbaa !11
  %85 = icmp ne i32 %84, 0
  br i1 %85, label %86, label %87

86:                                               ; preds = %78
  br label %168

87:                                               ; preds = %78
  br label %337

88:                                               ; preds = %70
  %89 = load double, ptr %4, align 8, !tbaa !9
  store double %89, ptr %19, align 8, !tbaa !9
  %90 = load double, ptr %19, align 8, !tbaa !9
  %91 = call double @wasm_fabs(double noundef %90)
  store double %91, ptr %19, align 8, !tbaa !9
  %92 = load double, ptr %19, align 8, !tbaa !9
  store double %92, ptr %4, align 8, !tbaa !9
  %93 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %93, ptr %11, align 4, !tbaa !11
  store i32 1072889855, ptr %12, align 4, !tbaa !11
  %94 = load i32, ptr %11, align 4, !tbaa !11
  %95 = load i32, ptr %12, align 4, !tbaa !11
  %96 = icmp ule i32 %94, %95
  %97 = zext i1 %96 to i32
  store i32 %97, ptr %11, align 4, !tbaa !11
  %98 = load i32, ptr %11, align 4, !tbaa !11
  %99 = icmp ne i32 %98, 0
  br i1 %99, label %100, label %138

100:                                              ; preds = %88
  %101 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %101, ptr %11, align 4, !tbaa !11
  store i32 1072037887, ptr %12, align 4, !tbaa !11
  %102 = load i32, ptr %11, align 4, !tbaa !11
  %103 = load i32, ptr %12, align 4, !tbaa !11
  %104 = icmp ule i32 %102, %103
  %105 = zext i1 %104 to i32
  store i32 %105, ptr %11, align 4, !tbaa !11
  %106 = load i32, ptr %11, align 4, !tbaa !11
  %107 = icmp ne i32 %106, 0
  br i1 %107, label %108, label %125

108:                                              ; preds = %100
  %109 = load double, ptr %4, align 8, !tbaa !9
  store double %109, ptr %19, align 8, !tbaa !9
  %110 = load double, ptr %4, align 8, !tbaa !9
  store double %110, ptr %20, align 8, !tbaa !9
  %111 = load double, ptr %20, align 8, !tbaa !9
  %112 = load double, ptr %19, align 8, !tbaa !9
  %113 = fadd double %112, %111
  store double %113, ptr %19, align 8, !tbaa !9
  store double -1.000000e+00, ptr %20, align 8, !tbaa !9
  %114 = load double, ptr %20, align 8, !tbaa !9
  %115 = load double, ptr %19, align 8, !tbaa !9
  %116 = fadd double %115, %114
  store double %116, ptr %19, align 8, !tbaa !9
  %117 = load double, ptr %4, align 8, !tbaa !9
  store double %117, ptr %20, align 8, !tbaa !9
  store double 2.000000e+00, ptr %21, align 8, !tbaa !9
  %118 = load double, ptr %21, align 8, !tbaa !9
  %119 = load double, ptr %20, align 8, !tbaa !9
  %120 = fadd double %119, %118
  store double %120, ptr %20, align 8, !tbaa !9
  %121 = load double, ptr %20, align 8, !tbaa !9
  %122 = load double, ptr %19, align 8, !tbaa !9
  %123 = fdiv double %122, %121
  store double %123, ptr %19, align 8, !tbaa !9
  %124 = load double, ptr %19, align 8, !tbaa !9
  store double %124, ptr %4, align 8, !tbaa !9
  store i32 0, ptr %11, align 4, !tbaa !11
  br label %168

125:                                              ; preds = %100
  %126 = load double, ptr %4, align 8, !tbaa !9
  store double %126, ptr %19, align 8, !tbaa !9
  store double -1.000000e+00, ptr %20, align 8, !tbaa !9
  %127 = load double, ptr %20, align 8, !tbaa !9
  %128 = load double, ptr %19, align 8, !tbaa !9
  %129 = fadd double %128, %127
  store double %129, ptr %19, align 8, !tbaa !9
  %130 = load double, ptr %4, align 8, !tbaa !9
  store double %130, ptr %20, align 8, !tbaa !9
  store double 1.000000e+00, ptr %21, align 8, !tbaa !9
  %131 = load double, ptr %21, align 8, !tbaa !9
  %132 = load double, ptr %20, align 8, !tbaa !9
  %133 = fadd double %132, %131
  store double %133, ptr %20, align 8, !tbaa !9
  %134 = load double, ptr %20, align 8, !tbaa !9
  %135 = load double, ptr %19, align 8, !tbaa !9
  %136 = fdiv double %135, %134
  store double %136, ptr %19, align 8, !tbaa !9
  %137 = load double, ptr %19, align 8, !tbaa !9
  store double %137, ptr %4, align 8, !tbaa !9
  store i32 1, ptr %11, align 4, !tbaa !11
  br label %168

138:                                              ; preds = %88
  %139 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %139, ptr %11, align 4, !tbaa !11
  store i32 1073971199, ptr %12, align 4, !tbaa !11
  %140 = load i32, ptr %11, align 4, !tbaa !11
  %141 = load i32, ptr %12, align 4, !tbaa !11
  %142 = icmp ule i32 %140, %141
  %143 = zext i1 %142 to i32
  store i32 %143, ptr %11, align 4, !tbaa !11
  %144 = load i32, ptr %11, align 4, !tbaa !11
  %145 = icmp ne i32 %144, 0
  br i1 %145, label %146, label %162

146:                                              ; preds = %138
  %147 = load double, ptr %4, align 8, !tbaa !9
  store double %147, ptr %19, align 8, !tbaa !9
  store double -1.500000e+00, ptr %20, align 8, !tbaa !9
  %148 = load double, ptr %20, align 8, !tbaa !9
  %149 = load double, ptr %19, align 8, !tbaa !9
  %150 = fadd double %149, %148
  store double %150, ptr %19, align 8, !tbaa !9
  %151 = load double, ptr %4, align 8, !tbaa !9
  store double %151, ptr %20, align 8, !tbaa !9
  store double 1.500000e+00, ptr %21, align 8, !tbaa !9
  %152 = load double, ptr %21, align 8, !tbaa !9
  %153 = load double, ptr %20, align 8, !tbaa !9
  %154 = fmul double %153, %152
  store double %154, ptr %20, align 8, !tbaa !9
  store double 1.000000e+00, ptr %21, align 8, !tbaa !9
  %155 = load double, ptr %21, align 8, !tbaa !9
  %156 = load double, ptr %20, align 8, !tbaa !9
  %157 = fadd double %156, %155
  store double %157, ptr %20, align 8, !tbaa !9
  %158 = load double, ptr %20, align 8, !tbaa !9
  %159 = load double, ptr %19, align 8, !tbaa !9
  %160 = fdiv double %159, %158
  store double %160, ptr %19, align 8, !tbaa !9
  %161 = load double, ptr %19, align 8, !tbaa !9
  store double %161, ptr %4, align 8, !tbaa !9
  store i32 2, ptr %11, align 4, !tbaa !11
  br label %168

162:                                              ; preds = %138
  store double -1.000000e+00, ptr %19, align 8, !tbaa !9
  %163 = load double, ptr %4, align 8, !tbaa !9
  store double %163, ptr %20, align 8, !tbaa !9
  %164 = load double, ptr %20, align 8, !tbaa !9
  %165 = load double, ptr %19, align 8, !tbaa !9
  %166 = fdiv double %165, %164
  store double %166, ptr %19, align 8, !tbaa !9
  %167 = load double, ptr %19, align 8, !tbaa !9
  store double %167, ptr %4, align 8, !tbaa !9
  store i32 3, ptr %11, align 4, !tbaa !11
  br label %168

168:                                              ; preds = %162, %146, %125, %108, %86
  %169 = load i32, ptr %11, align 4, !tbaa !11
  store i32 %169, ptr %6, align 4, !tbaa !11
  %170 = load double, ptr %4, align 8, !tbaa !9
  store double %170, ptr %19, align 8, !tbaa !9
  %171 = load double, ptr %4, align 8, !tbaa !9
  store double %171, ptr %20, align 8, !tbaa !9
  %172 = load double, ptr %20, align 8, !tbaa !9
  %173 = load double, ptr %19, align 8, !tbaa !9
  %174 = fmul double %173, %172
  store double %174, ptr %19, align 8, !tbaa !9
  %175 = load double, ptr %19, align 8, !tbaa !9
  store double %175, ptr %9, align 8, !tbaa !9
  %176 = load double, ptr %9, align 8, !tbaa !9
  store double %176, ptr %20, align 8, !tbaa !9
  %177 = load double, ptr %20, align 8, !tbaa !9
  %178 = load double, ptr %19, align 8, !tbaa !9
  %179 = fmul double %178, %177
  store double %179, ptr %19, align 8, !tbaa !9
  %180 = load double, ptr %19, align 8, !tbaa !9
  store double %180, ptr %8, align 8, !tbaa !9
  %181 = load double, ptr %8, align 8, !tbaa !9
  store double %181, ptr %20, align 8, !tbaa !9
  %182 = load double, ptr %8, align 8, !tbaa !9
  store double %182, ptr %21, align 8, !tbaa !9
  %183 = load double, ptr %8, align 8, !tbaa !9
  store double %183, ptr %22, align 8, !tbaa !9
  %184 = load double, ptr %8, align 8, !tbaa !9
  store double %184, ptr %23, align 8, !tbaa !9
  store double 0xBFA2B4442C6A6C2F, ptr %24, align 8, !tbaa !9
  %185 = load double, ptr %24, align 8, !tbaa !9
  %186 = load double, ptr %23, align 8, !tbaa !9
  %187 = fmul double %186, %185
  store double %187, ptr %23, align 8, !tbaa !9
  store double 0xBFADDE2D52DEFD9A, ptr %24, align 8, !tbaa !9
  %188 = load double, ptr %24, align 8, !tbaa !9
  %189 = load double, ptr %23, align 8, !tbaa !9
  %190 = fadd double %189, %188
  store double %190, ptr %23, align 8, !tbaa !9
  %191 = load double, ptr %23, align 8, !tbaa !9
  %192 = load double, ptr %22, align 8, !tbaa !9
  %193 = fmul double %192, %191
  store double %193, ptr %22, align 8, !tbaa !9
  store double 0xBFB3B0F2AF749A6D, ptr %23, align 8, !tbaa !9
  %194 = load double, ptr %23, align 8, !tbaa !9
  %195 = load double, ptr %22, align 8, !tbaa !9
  %196 = fadd double %195, %194
  store double %196, ptr %22, align 8, !tbaa !9
  %197 = load double, ptr %22, align 8, !tbaa !9
  %198 = load double, ptr %21, align 8, !tbaa !9
  %199 = fmul double %198, %197
  store double %199, ptr %21, align 8, !tbaa !9
  store double 0xBFBC71C6FE231671, ptr %22, align 8, !tbaa !9
  %200 = load double, ptr %22, align 8, !tbaa !9
  %201 = load double, ptr %21, align 8, !tbaa !9
  %202 = fadd double %201, %200
  store double %202, ptr %21, align 8, !tbaa !9
  %203 = load double, ptr %21, align 8, !tbaa !9
  %204 = load double, ptr %20, align 8, !tbaa !9
  %205 = fmul double %204, %203
  store double %205, ptr %20, align 8, !tbaa !9
  store double 0xBFC999999998EBC4, ptr %21, align 8, !tbaa !9
  %206 = load double, ptr %21, align 8, !tbaa !9
  %207 = load double, ptr %20, align 8, !tbaa !9
  %208 = fadd double %207, %206
  store double %208, ptr %20, align 8, !tbaa !9
  %209 = load double, ptr %20, align 8, !tbaa !9
  %210 = load double, ptr %19, align 8, !tbaa !9
  %211 = fmul double %210, %209
  store double %211, ptr %19, align 8, !tbaa !9
  %212 = load double, ptr %19, align 8, !tbaa !9
  store double %212, ptr %10, align 8, !tbaa !9
  %213 = load double, ptr %9, align 8, !tbaa !9
  store double %213, ptr %19, align 8, !tbaa !9
  %214 = load double, ptr %8, align 8, !tbaa !9
  store double %214, ptr %20, align 8, !tbaa !9
  %215 = load double, ptr %8, align 8, !tbaa !9
  store double %215, ptr %21, align 8, !tbaa !9
  %216 = load double, ptr %8, align 8, !tbaa !9
  store double %216, ptr %22, align 8, !tbaa !9
  %217 = load double, ptr %8, align 8, !tbaa !9
  store double %217, ptr %23, align 8, !tbaa !9
  %218 = load double, ptr %8, align 8, !tbaa !9
  store double %218, ptr %24, align 8, !tbaa !9
  store double 0x3F90AD3AE322DA11, ptr %25, align 8, !tbaa !9
  %219 = load double, ptr %25, align 8, !tbaa !9
  %220 = load double, ptr %24, align 8, !tbaa !9
  %221 = fmul double %220, %219
  store double %221, ptr %24, align 8, !tbaa !9
  store double 0x3FA97B4B24760DEB, ptr %25, align 8, !tbaa !9
  %222 = load double, ptr %25, align 8, !tbaa !9
  %223 = load double, ptr %24, align 8, !tbaa !9
  %224 = fadd double %223, %222
  store double %224, ptr %24, align 8, !tbaa !9
  %225 = load double, ptr %24, align 8, !tbaa !9
  %226 = load double, ptr %23, align 8, !tbaa !9
  %227 = fmul double %226, %225
  store double %227, ptr %23, align 8, !tbaa !9
  store double 0x3FB10D66A0D03D51, ptr %24, align 8, !tbaa !9
  %228 = load double, ptr %24, align 8, !tbaa !9
  %229 = load double, ptr %23, align 8, !tbaa !9
  %230 = fadd double %229, %228
  store double %230, ptr %23, align 8, !tbaa !9
  %231 = load double, ptr %23, align 8, !tbaa !9
  %232 = load double, ptr %22, align 8, !tbaa !9
  %233 = fmul double %232, %231
  store double %233, ptr %22, align 8, !tbaa !9
  store double 0x3FB745CDC54C206E, ptr %23, align 8, !tbaa !9
  %234 = load double, ptr %23, align 8, !tbaa !9
  %235 = load double, ptr %22, align 8, !tbaa !9
  %236 = fadd double %235, %234
  store double %236, ptr %22, align 8, !tbaa !9
  %237 = load double, ptr %22, align 8, !tbaa !9
  %238 = load double, ptr %21, align 8, !tbaa !9
  %239 = fmul double %238, %237
  store double %239, ptr %21, align 8, !tbaa !9
  store double 0x3FC24924920083FF, ptr %22, align 8, !tbaa !9
  %240 = load double, ptr %22, align 8, !tbaa !9
  %241 = load double, ptr %21, align 8, !tbaa !9
  %242 = fadd double %241, %240
  store double %242, ptr %21, align 8, !tbaa !9
  %243 = load double, ptr %21, align 8, !tbaa !9
  %244 = load double, ptr %20, align 8, !tbaa !9
  %245 = fmul double %244, %243
  store double %245, ptr %20, align 8, !tbaa !9
  store double 0x3FD555555555550D, ptr %21, align 8, !tbaa !9
  %246 = load double, ptr %21, align 8, !tbaa !9
  %247 = load double, ptr %20, align 8, !tbaa !9
  %248 = fadd double %247, %246
  store double %248, ptr %20, align 8, !tbaa !9
  %249 = load double, ptr %20, align 8, !tbaa !9
  %250 = load double, ptr %19, align 8, !tbaa !9
  %251 = fmul double %250, %249
  store double %251, ptr %19, align 8, !tbaa !9
  %252 = load double, ptr %19, align 8, !tbaa !9
  store double %252, ptr %8, align 8, !tbaa !9
  %253 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %253, ptr %11, align 4, !tbaa !11
  store i32 1071382527, ptr %12, align 4, !tbaa !11
  %254 = load i32, ptr %11, align 4, !tbaa !11
  %255 = load i32, ptr %12, align 4, !tbaa !11
  %256 = icmp ule i32 %254, %255
  %257 = zext i1 %256 to i32
  store i32 %257, ptr %11, align 4, !tbaa !11
  %258 = load i32, ptr %11, align 4, !tbaa !11
  %259 = icmp ne i32 %258, 0
  br i1 %259, label %260, label %274

260:                                              ; preds = %168
  %261 = load double, ptr %4, align 8, !tbaa !9
  store double %261, ptr %19, align 8, !tbaa !9
  %262 = load double, ptr %4, align 8, !tbaa !9
  store double %262, ptr %20, align 8, !tbaa !9
  %263 = load double, ptr %10, align 8, !tbaa !9
  store double %263, ptr %21, align 8, !tbaa !9
  %264 = load double, ptr %8, align 8, !tbaa !9
  store double %264, ptr %22, align 8, !tbaa !9
  %265 = load double, ptr %22, align 8, !tbaa !9
  %266 = load double, ptr %21, align 8, !tbaa !9
  %267 = fadd double %266, %265
  store double %267, ptr %21, align 8, !tbaa !9
  %268 = load double, ptr %21, align 8, !tbaa !9
  %269 = load double, ptr %20, align 8, !tbaa !9
  %270 = fmul double %269, %268
  store double %270, ptr %20, align 8, !tbaa !9
  %271 = load double, ptr %20, align 8, !tbaa !9
  %272 = load double, ptr %19, align 8, !tbaa !9
  %273 = fsub double %272, %271
  store double %273, ptr %19, align 8, !tbaa !9
  br label %339

274:                                              ; preds = %168
  %275 = load i32, ptr %6, align 4, !tbaa !11
  store i32 %275, ptr %11, align 4, !tbaa !11
  store i32 3, ptr %12, align 4, !tbaa !11
  %276 = load i32, ptr %12, align 4, !tbaa !11
  %277 = and i32 %276, 31
  %278 = load i32, ptr %11, align 4, !tbaa !11
  %279 = shl i32 %278, %277
  store i32 %279, ptr %11, align 4, !tbaa !11
  %280 = load i32, ptr %11, align 4, !tbaa !11
  store i32 %280, ptr %5, align 4, !tbaa !11
  store i32 79472, ptr %12, align 4, !tbaa !11
  %281 = load i32, ptr %12, align 4, !tbaa !11
  %282 = load i32, ptr %11, align 4, !tbaa !11
  %283 = add i32 %282, %281
  store i32 %283, ptr %11, align 4, !tbaa !11
  %284 = load ptr, ptr %3, align 8, !tbaa !5
  %285 = getelementptr inbounds %struct.w2c_hermes, ptr %284, i32 0, i32 6
  %286 = load i32, ptr %11, align 4, !tbaa !11
  %287 = zext i32 %286 to i64
  %288 = call double @f64_load(ptr noundef %285, i64 noundef %287)
  store double %288, ptr %19, align 8, !tbaa !9
  %289 = load double, ptr %4, align 8, !tbaa !9
  store double %289, ptr %20, align 8, !tbaa !9
  %290 = load double, ptr %10, align 8, !tbaa !9
  store double %290, ptr %21, align 8, !tbaa !9
  %291 = load double, ptr %8, align 8, !tbaa !9
  store double %291, ptr %22, align 8, !tbaa !9
  %292 = load double, ptr %22, align 8, !tbaa !9
  %293 = load double, ptr %21, align 8, !tbaa !9
  %294 = fadd double %293, %292
  store double %294, ptr %21, align 8, !tbaa !9
  %295 = load double, ptr %21, align 8, !tbaa !9
  %296 = load double, ptr %20, align 8, !tbaa !9
  %297 = fmul double %296, %295
  store double %297, ptr %20, align 8, !tbaa !9
  %298 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %298, ptr %13, align 4, !tbaa !11
  store i32 79504, ptr %14, align 4, !tbaa !11
  %299 = load i32, ptr %14, align 4, !tbaa !11
  %300 = load i32, ptr %13, align 4, !tbaa !11
  %301 = add i32 %300, %299
  store i32 %301, ptr %13, align 4, !tbaa !11
  %302 = load ptr, ptr %3, align 8, !tbaa !5
  %303 = getelementptr inbounds %struct.w2c_hermes, ptr %302, i32 0, i32 6
  %304 = load i32, ptr %13, align 4, !tbaa !11
  %305 = zext i32 %304 to i64
  %306 = call double @f64_load(ptr noundef %303, i64 noundef %305)
  store double %306, ptr %21, align 8, !tbaa !9
  %307 = load double, ptr %21, align 8, !tbaa !9
  %308 = load double, ptr %20, align 8, !tbaa !9
  %309 = fsub double %308, %307
  store double %309, ptr %20, align 8, !tbaa !9
  %310 = load double, ptr %4, align 8, !tbaa !9
  store double %310, ptr %21, align 8, !tbaa !9
  %311 = load double, ptr %21, align 8, !tbaa !9
  %312 = load double, ptr %20, align 8, !tbaa !9
  %313 = fsub double %312, %311
  store double %313, ptr %20, align 8, !tbaa !9
  %314 = load double, ptr %20, align 8, !tbaa !9
  %315 = load double, ptr %19, align 8, !tbaa !9
  %316 = fsub double %315, %314
  store double %316, ptr %19, align 8, !tbaa !9
  %317 = load double, ptr %19, align 8, !tbaa !9
  store double %317, ptr %4, align 8, !tbaa !9
  %318 = load double, ptr %19, align 8, !tbaa !9
  %319 = fneg double %318
  store double %319, ptr %19, align 8, !tbaa !9
  %320 = load double, ptr %4, align 8, !tbaa !9
  store double %320, ptr %20, align 8, !tbaa !9
  %321 = load i64, ptr %7, align 8, !tbaa !13
  store i64 %321, ptr %17, align 8, !tbaa !13
  store i64 0, ptr %18, align 8, !tbaa !13
  %322 = load i64, ptr %17, align 8, !tbaa !13
  %323 = load i64, ptr %18, align 8, !tbaa !13
  %324 = icmp slt i64 %322, %323
  %325 = zext i1 %324 to i32
  %326 = sext i32 %325 to i64
  %327 = trunc i64 %326 to i32
  store i32 %327, ptr %13, align 4, !tbaa !11
  %328 = load i32, ptr %13, align 4, !tbaa !11
  %329 = icmp ne i32 %328, 0
  br i1 %329, label %330, label %332

330:                                              ; preds = %274
  %331 = load double, ptr %19, align 8, !tbaa !9
  br label %334

332:                                              ; preds = %274
  %333 = load double, ptr %20, align 8, !tbaa !9
  br label %334

334:                                              ; preds = %332, %330
  %335 = phi double [ %331, %330 ], [ %333, %332 ]
  store double %335, ptr %19, align 8, !tbaa !9
  %336 = load double, ptr %19, align 8, !tbaa !9
  store double %336, ptr %4, align 8, !tbaa !9
  br label %337

337:                                              ; preds = %334, %87
  %338 = load double, ptr %4, align 8, !tbaa !9
  store double %338, ptr %19, align 8, !tbaa !9
  br label %339

339:                                              ; preds = %337, %260, %68
  %340 = load double, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  ret double %340
}

; 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_load(ptr noundef, i64 noundef) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.copysign.f64(double, double) #3

; Function Attrs: nounwind uwtable
declare hidden double @wasm_fabs(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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"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_atan(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, 1141899263
  br i1 %7, label %8, label %14

8:                                                ; preds = %2
  %9 = tail call double @llvm.copysign.f64(double 0x3FF921FB54442D18, double %1)
  %10 = tail call i64 @i64_reinterpret_f64(double noundef %1)
  %11 = and i64 %10, 9223372036854775807
  %12 = icmp ugt i64 %11, 9218868437227405312
  %13 = select i1 %12, double %1, double %9
  br label %84

14:                                               ; preds = %2
  %15 = icmp ult i32 %6, 1071382528
  br i1 %15, label %16, label %18

16:                                               ; preds = %14
  %17 = icmp ugt i32 %6, 1044381695
  br i1 %17, label %41, label %84

18:                                               ; preds = %14
  %19 = tail call double @wasm_fabs(double noundef %1)
  %20 = icmp ult i32 %6, 1072889856
  br i1 %20, label %21, label %32

21:                                               ; preds = %18
  %22 = icmp ult i32 %6, 1072037888
  br i1 %22, label %23, label %28

23:                                               ; preds = %21
  %24 = fadd double %19, %19
  %25 = fadd double %24, -1.000000e+00
  %26 = fadd double %19, 2.000000e+00
  %27 = fdiv double %25, %26
  br label %41

28:                                               ; preds = %21
  %29 = fadd double %19, -1.000000e+00
  %30 = fadd double %19, 1.000000e+00
  %31 = fdiv double %29, %30
  br label %41

32:                                               ; preds = %18
  %33 = icmp ult i32 %6, 1073971200
  br i1 %33, label %34, label %39

34:                                               ; preds = %32
  %35 = fadd double %19, -1.500000e+00
  %36 = fmul double %19, 1.500000e+00
  %37 = fadd double %36, 1.000000e+00
  %38 = fdiv double %35, %37
  br label %41

39:                                               ; preds = %32
  %40 = fdiv double -1.000000e+00, %19
  br label %41

41:                                               ; preds = %16, %39, %34, %28, %23
  %.0199 = phi i32 [ -8, %16 ], [ 0, %23 ], [ 8, %28 ], [ 16, %34 ], [ 24, %39 ]
  %.0 = phi double [ %1, %16 ], [ %27, %23 ], [ %31, %28 ], [ %38, %34 ], [ %40, %39 ]
  %42 = fmul double %.0, %.0
  %43 = fmul double %42, %42
  %44 = fmul double %43, 0x3FA2B4442C6A6C2F
  %45 = fsub double 0xBFADDE2D52DEFD9A, %44
  %46 = fmul double %43, %45
  %47 = fadd double %46, 0xBFB3B0F2AF749A6D
  %48 = fmul double %43, %47
  %49 = fadd double %48, 0xBFBC71C6FE231671
  %50 = fmul double %43, %49
  %51 = fadd double %50, 0xBFC999999998EBC4
  %52 = fmul double %43, %51
  %53 = fmul double %43, 0x3F90AD3AE322DA11
  %54 = fadd double %53, 0x3FA97B4B24760DEB
  %55 = fmul double %43, %54
  %56 = fadd double %55, 0x3FB10D66A0D03D51
  %57 = fmul double %43, %56
  %58 = fadd double %57, 0x3FB745CDC54C206E
  %59 = fmul double %43, %58
  %60 = fadd double %59, 0x3FC24924920083FF
  %61 = fmul double %43, %60
  %62 = fadd double %61, 0x3FD555555555550D
  %63 = fmul double %42, %62
  br i1 %15, label %64, label %68

64:                                               ; preds = %41
  %65 = fadd double %52, %63
  %66 = fmul double %.0, %65
  %67 = fsub double %.0, %66
  br label %84

68:                                               ; preds = %41
  %69 = add nsw i32 %.0199, 79472
  %70 = getelementptr inbounds i8, ptr %0, i64 40
  %71 = zext nneg i32 %69 to i64
  %72 = tail call double @f64_load(ptr noundef nonnull %70, i64 noundef %71)
  %73 = fadd double %52, %63
  %74 = fmul double %.0, %73
  %75 = add nsw i32 %.0199, 79504
  %76 = zext nneg i32 %75 to i64
  %77 = tail call double @f64_load(ptr noundef nonnull %70, i64 noundef %76)
  %78 = fsub double %74, %77
  %79 = fsub double %78, %.0
  %80 = fsub double %72, %79
  %81 = fneg double %80
  %82 = icmp slt i64 %3, 0
  %83 = select i1 %82, double %81, double %80
  br label %84

84:                                               ; preds = %68, %16, %64, %8
  %.0198 = phi double [ %13, %8 ], [ %67, %64 ], [ %83, %68 ], [ %1, %16 ]
  ret double %.0198
}

; 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_load(ptr noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.copysign.f64(double, double) #2

; Function Attrs: nounwind uwtable
declare hidden double @wasm_fabs(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" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }

!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: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass