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

%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
declare dso_local double @w2c_hermes_atan(ptr noundef, double noundef) #0

; 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: nounwind uwtable
declare dso_local double @w2c_hermes_fabs(ptr noundef, double noundef) #0

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

; Function Attrs: nounwind uwtable
define dso_local double @w2c_hermes_atan2(ptr noundef %0, double noundef %1, double noundef %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %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 double, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store double %1, ptr %5, align 8, !tbaa !9
  store double %2, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  store i64 0, ptr %12, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  store double 0.000000e+00, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 4, 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
  %23 = load double, ptr %6, align 8, !tbaa !9
  store double %23, ptr %20, align 8, !tbaa !9
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = load double, ptr %20, align 8, !tbaa !9
  %26 = call i64 @w2c_hermes_0x5F_DOUBLE_BITS0x2E6(ptr noundef %24, double noundef %25)
  store i64 %26, ptr %17, align 8, !tbaa !13
  store i64 9223372036854775807, ptr %18, align 8, !tbaa !13
  %27 = load i64, ptr %18, align 8, !tbaa !13
  %28 = load i64, ptr %17, align 8, !tbaa !13
  %29 = and i64 %28, %27
  store i64 %29, ptr %17, align 8, !tbaa !13
  store i64 9218868437227405312, ptr %18, align 8, !tbaa !13
  %30 = load i64, ptr %17, align 8, !tbaa !13
  %31 = load i64, ptr %18, align 8, !tbaa !13
  %32 = icmp ule i64 %30, %31
  %33 = zext i1 %32 to i32
  store i32 %33, ptr %14, align 4, !tbaa !11
  %34 = load i32, ptr %14, align 4, !tbaa !11
  %35 = icmp ne i32 %34, 0
  br i1 %35, label %36, label %52

36:                                               ; preds = %3
  %37 = load double, ptr %5, align 8, !tbaa !9
  store double %37, ptr %20, align 8, !tbaa !9
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = load double, ptr %20, align 8, !tbaa !9
  %40 = call i64 @w2c_hermes_0x5F_DOUBLE_BITS0x2E6(ptr noundef %38, double noundef %39)
  store i64 %40, ptr %17, align 8, !tbaa !13
  store i64 9223372036854775807, ptr %18, align 8, !tbaa !13
  %41 = load i64, ptr %18, align 8, !tbaa !13
  %42 = load i64, ptr %17, align 8, !tbaa !13
  %43 = and i64 %42, %41
  store i64 %43, ptr %17, align 8, !tbaa !13
  store i64 9218868437227405313, ptr %18, align 8, !tbaa !13
  %44 = load i64, ptr %17, align 8, !tbaa !13
  %45 = load i64, ptr %18, align 8, !tbaa !13
  %46 = icmp ult i64 %44, %45
  %47 = zext i1 %46 to i32
  store i32 %47, ptr %14, align 4, !tbaa !11
  %48 = load i32, ptr %14, align 4, !tbaa !11
  %49 = icmp ne i32 %48, 0
  br i1 %49, label %50, label %51

50:                                               ; preds = %36
  br label %58

51:                                               ; preds = %36
  br label %52

52:                                               ; preds = %51, %3
  %53 = load double, ptr %5, align 8, !tbaa !9
  store double %53, ptr %20, align 8, !tbaa !9
  %54 = load double, ptr %6, align 8, !tbaa !9
  store double %54, ptr %21, align 8, !tbaa !9
  %55 = load double, ptr %21, align 8, !tbaa !9
  %56 = load double, ptr %20, align 8, !tbaa !9
  %57 = fadd double %56, %55
  store double %57, ptr %20, align 8, !tbaa !9
  br label %307

58:                                               ; preds = %50
  %59 = load double, ptr %6, align 8, !tbaa !9
  store double %59, ptr %20, align 8, !tbaa !9
  %60 = load double, ptr %20, align 8, !tbaa !9
  %61 = call i64 @i64_reinterpret_f64(double noundef %60)
  store i64 %61, ptr %17, align 8, !tbaa !13
  %62 = load i64, ptr %17, align 8, !tbaa !13
  store i64 %62, ptr %12, align 8, !tbaa !13
  store i64 32, ptr %18, align 8, !tbaa !13
  %63 = load i64, ptr %18, align 8, !tbaa !13
  %64 = and i64 %63, 63
  %65 = load i64, ptr %17, align 8, !tbaa !13
  %66 = lshr i64 %65, %64
  store i64 %66, ptr %17, align 8, !tbaa !13
  %67 = load i64, ptr %17, align 8, !tbaa !13
  %68 = trunc i64 %67 to i32
  store i32 %68, ptr %14, align 4, !tbaa !11
  %69 = load i32, ptr %14, align 4, !tbaa !11
  store i32 %69, ptr %7, align 4, !tbaa !11
  store i32 1072693248, ptr %15, align 4, !tbaa !11
  %70 = load i32, ptr %15, align 4, !tbaa !11
  %71 = load i32, ptr %14, align 4, !tbaa !11
  %72 = sub i32 %71, %70
  store i32 %72, ptr %14, align 4, !tbaa !11
  %73 = load i64, ptr %12, align 8, !tbaa !13
  store i64 %73, ptr %18, align 8, !tbaa !13
  %74 = load i64, ptr %18, align 8, !tbaa !13
  %75 = trunc i64 %74 to i32
  store i32 %75, ptr %15, align 4, !tbaa !11
  %76 = load i32, ptr %15, align 4, !tbaa !11
  store i32 %76, ptr %10, align 4, !tbaa !11
  %77 = load i32, ptr %15, align 4, !tbaa !11
  %78 = load i32, ptr %14, align 4, !tbaa !11
  %79 = or i32 %78, %77
  store i32 %79, ptr %14, align 4, !tbaa !11
  %80 = load i32, ptr %14, align 4, !tbaa !11
  %81 = icmp ne i32 %80, 0
  %82 = xor i1 %81, true
  %83 = zext i1 %82 to i32
  store i32 %83, ptr %14, align 4, !tbaa !11
  %84 = load i32, ptr %14, align 4, !tbaa !11
  %85 = icmp ne i32 %84, 0
  br i1 %85, label %86, label %91

86:                                               ; preds = %58
  %87 = load double, ptr %5, align 8, !tbaa !9
  store double %87, ptr %20, align 8, !tbaa !9
  %88 = load ptr, ptr %4, align 8, !tbaa !5
  %89 = load double, ptr %20, align 8, !tbaa !9
  %90 = call double @w2c_hermes_atan(ptr noundef %88, double noundef %89)
  store double %90, ptr %20, align 8, !tbaa !9
  br label %307

91:                                               ; preds = %58
  %92 = load i32, ptr %7, align 4, !tbaa !11
  store i32 %92, ptr %14, align 4, !tbaa !11
  store i32 30, ptr %15, align 4, !tbaa !11
  %93 = load i32, ptr %15, align 4, !tbaa !11
  %94 = and i32 %93, 31
  %95 = load i32, ptr %14, align 4, !tbaa !11
  %96 = lshr i32 %95, %94
  store i32 %96, ptr %14, align 4, !tbaa !11
  store i32 2, ptr %15, align 4, !tbaa !11
  %97 = load i32, ptr %15, align 4, !tbaa !11
  %98 = load i32, ptr %14, align 4, !tbaa !11
  %99 = and i32 %98, %97
  store i32 %99, ptr %14, align 4, !tbaa !11
  %100 = load i32, ptr %14, align 4, !tbaa !11
  store i32 %100, ptr %11, align 4, !tbaa !11
  %101 = load double, ptr %5, align 8, !tbaa !9
  store double %101, ptr %21, align 8, !tbaa !9
  %102 = load double, ptr %21, align 8, !tbaa !9
  %103 = call i64 @i64_reinterpret_f64(double noundef %102)
  store i64 %103, ptr %18, align 8, !tbaa !13
  %104 = load i64, ptr %18, align 8, !tbaa !13
  store i64 %104, ptr %12, align 8, !tbaa !13
  store i64 63, ptr %19, align 8, !tbaa !13
  %105 = load i64, ptr %19, align 8, !tbaa !13
  %106 = and i64 %105, 63
  %107 = load i64, ptr %18, align 8, !tbaa !13
  %108 = lshr i64 %107, %106
  store i64 %108, ptr %18, align 8, !tbaa !13
  %109 = load i64, ptr %18, align 8, !tbaa !13
  %110 = trunc i64 %109 to i32
  store i32 %110, ptr %15, align 4, !tbaa !11
  %111 = load i32, ptr %15, align 4, !tbaa !11
  %112 = load i32, ptr %14, align 4, !tbaa !11
  %113 = or i32 %112, %111
  store i32 %113, ptr %14, align 4, !tbaa !11
  %114 = load i32, ptr %14, align 4, !tbaa !11
  store i32 %114, ptr %8, align 4, !tbaa !11
  %115 = load i64, ptr %12, align 8, !tbaa !13
  store i64 %115, ptr %17, align 8, !tbaa !13
  store i64 32, ptr %18, align 8, !tbaa !13
  %116 = load i64, ptr %18, align 8, !tbaa !13
  %117 = and i64 %116, 63
  %118 = load i64, ptr %17, align 8, !tbaa !13
  %119 = lshr i64 %118, %117
  store i64 %119, ptr %17, align 8, !tbaa !13
  %120 = load i64, ptr %17, align 8, !tbaa !13
  %121 = trunc i64 %120 to i32
  store i32 %121, ptr %14, align 4, !tbaa !11
  store i32 2147483647, ptr %15, align 4, !tbaa !11
  %122 = load i32, ptr %15, align 4, !tbaa !11
  %123 = load i32, ptr %14, align 4, !tbaa !11
  %124 = and i32 %123, %122
  store i32 %124, ptr %14, align 4, !tbaa !11
  %125 = load i32, ptr %14, align 4, !tbaa !11
  store i32 %125, ptr %9, align 4, !tbaa !11
  %126 = load i64, ptr %12, align 8, !tbaa !13
  store i64 %126, ptr %18, align 8, !tbaa !13
  %127 = load i64, ptr %18, align 8, !tbaa !13
  %128 = trunc i64 %127 to i32
  store i32 %128, ptr %15, align 4, !tbaa !11
  %129 = load i32, ptr %15, align 4, !tbaa !11
  %130 = load i32, ptr %14, align 4, !tbaa !11
  %131 = or i32 %130, %129
  store i32 %131, ptr %14, align 4, !tbaa !11
  %132 = load i32, ptr %14, align 4, !tbaa !11
  %133 = icmp ne i32 %132, 0
  %134 = xor i1 %133, true
  %135 = zext i1 %134 to i32
  store i32 %135, ptr %14, align 4, !tbaa !11
  %136 = load i32, ptr %14, align 4, !tbaa !11
  %137 = icmp ne i32 %136, 0
  br i1 %137, label %138, label %151

138:                                              ; preds = %91
  %139 = load double, ptr %5, align 8, !tbaa !9
  store double %139, ptr %20, align 8, !tbaa !9
  %140 = load double, ptr %20, align 8, !tbaa !9
  store double %140, ptr %13, align 8, !tbaa !9
  %141 = load i32, ptr %8, align 4, !tbaa !11
  store i32 %141, ptr %14, align 4, !tbaa !11
  store i32 2, ptr %15, align 4, !tbaa !11
  %142 = load i32, ptr %15, align 4, !tbaa !11
  %143 = load i32, ptr %14, align 4, !tbaa !11
  %144 = sub i32 %143, %142
  store i32 %144, ptr %14, align 4, !tbaa !11
  %145 = load i32, ptr %14, align 4, !tbaa !11
  switch i32 %145, label %148 [
    i32 0, label %146
    i32 1, label %147
  ]

146:                                              ; preds = %138
  br label %149

147:                                              ; preds = %138
  br label %150

148:                                              ; preds = %138
  br label %305

149:                                              ; preds = %146
  store double 0x400921FB54442D18, ptr %20, align 8, !tbaa !9
  br label %307

150:                                              ; preds = %147
  store double 0xC00921FB54442D18, ptr %20, align 8, !tbaa !9
  br label %307

151:                                              ; preds = %91
  %152 = load i32, ptr %7, align 4, !tbaa !11
  store i32 %152, ptr %14, align 4, !tbaa !11
  store i32 2147483647, ptr %15, align 4, !tbaa !11
  %153 = load i32, ptr %15, align 4, !tbaa !11
  %154 = load i32, ptr %14, align 4, !tbaa !11
  %155 = and i32 %154, %153
  store i32 %155, ptr %14, align 4, !tbaa !11
  %156 = load i32, ptr %14, align 4, !tbaa !11
  store i32 %156, ptr %7, align 4, !tbaa !11
  %157 = load i32, ptr %10, align 4, !tbaa !11
  store i32 %157, ptr %15, align 4, !tbaa !11
  %158 = load i32, ptr %15, align 4, !tbaa !11
  %159 = load i32, ptr %14, align 4, !tbaa !11
  %160 = or i32 %159, %158
  store i32 %160, ptr %14, align 4, !tbaa !11
  %161 = load i32, ptr %14, align 4, !tbaa !11
  %162 = icmp ne i32 %161, 0
  %163 = xor i1 %162, true
  %164 = zext i1 %163 to i32
  store i32 %164, ptr %14, align 4, !tbaa !11
  %165 = load i32, ptr %14, align 4, !tbaa !11
  %166 = icmp ne i32 %165, 0
  br i1 %166, label %167, label %172

167:                                              ; preds = %151
  store double 0x3FF921FB54442D18, ptr %20, align 8, !tbaa !9
  %168 = load double, ptr %5, align 8, !tbaa !9
  store double %168, ptr %21, align 8, !tbaa !9
  %169 = load double, ptr %20, align 8, !tbaa !9
  %170 = load double, ptr %21, align 8, !tbaa !9
  %171 = call double @llvm.copysign.f64(double %169, double %170)
  store double %171, ptr %20, align 8, !tbaa !9
  br label %307

172:                                              ; preds = %151
  %173 = load i32, ptr %7, align 4, !tbaa !11
  store i32 %173, ptr %14, align 4, !tbaa !11
  store i32 2146435072, ptr %15, align 4, !tbaa !11
  %174 = load i32, ptr %14, align 4, !tbaa !11
  %175 = load i32, ptr %15, align 4, !tbaa !11
  %176 = icmp eq i32 %174, %175
  %177 = zext i1 %176 to i32
  store i32 %177, ptr %14, align 4, !tbaa !11
  %178 = load i32, ptr %14, align 4, !tbaa !11
  %179 = icmp ne i32 %178, 0
  br i1 %179, label %180, label %203

180:                                              ; preds = %172
  %181 = load i32, ptr %9, align 4, !tbaa !11
  store i32 %181, ptr %14, align 4, !tbaa !11
  store i32 2146435072, ptr %15, align 4, !tbaa !11
  %182 = load i32, ptr %14, align 4, !tbaa !11
  %183 = load i32, ptr %15, align 4, !tbaa !11
  %184 = icmp ne i32 %182, %183
  %185 = zext i1 %184 to i32
  store i32 %185, ptr %14, align 4, !tbaa !11
  %186 = load i32, ptr %14, align 4, !tbaa !11
  %187 = icmp ne i32 %186, 0
  br i1 %187, label %188, label %189

188:                                              ; preds = %180
  br label %290

189:                                              ; preds = %180
  %190 = load i32, ptr %8, align 4, !tbaa !11
  store i32 %190, ptr %14, align 4, !tbaa !11
  store i32 3, ptr %15, align 4, !tbaa !11
  %191 = load i32, ptr %15, align 4, !tbaa !11
  %192 = and i32 %191, 31
  %193 = load i32, ptr %14, align 4, !tbaa !11
  %194 = shl i32 %193, %192
  store i32 %194, ptr %14, align 4, !tbaa !11
  store i32 236016, ptr %15, align 4, !tbaa !11
  %195 = load i32, ptr %15, align 4, !tbaa !11
  %196 = load i32, ptr %14, align 4, !tbaa !11
  %197 = add i32 %196, %195
  store i32 %197, ptr %14, align 4, !tbaa !11
  %198 = load ptr, ptr %4, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.w2c_hermes, ptr %198, i32 0, i32 6
  %200 = load i32, ptr %14, align 4, !tbaa !11
  %201 = zext i32 %200 to i64
  %202 = call double @f64_load(ptr noundef %199, i64 noundef %201)
  store double %202, ptr %20, align 8, !tbaa !9
  br label %307

203:                                              ; preds = %172
  %204 = load i32, ptr %9, align 4, !tbaa !11
  store i32 %204, ptr %14, align 4, !tbaa !11
  store i32 2146435072, ptr %15, align 4, !tbaa !11
  %205 = load i32, ptr %14, align 4, !tbaa !11
  %206 = load i32, ptr %15, align 4, !tbaa !11
  %207 = icmp ne i32 %205, %206
  %208 = zext i1 %207 to i32
  store i32 %208, ptr %14, align 4, !tbaa !11
  %209 = load i32, ptr %7, align 4, !tbaa !11
  store i32 %209, ptr %15, align 4, !tbaa !11
  store i32 67108864, ptr %16, align 4, !tbaa !11
  %210 = load i32, ptr %16, align 4, !tbaa !11
  %211 = load i32, ptr %15, align 4, !tbaa !11
  %212 = add i32 %211, %210
  store i32 %212, ptr %15, align 4, !tbaa !11
  %213 = load i32, ptr %9, align 4, !tbaa !11
  store i32 %213, ptr %16, align 4, !tbaa !11
  %214 = load i32, ptr %15, align 4, !tbaa !11
  %215 = load i32, ptr %16, align 4, !tbaa !11
  %216 = icmp uge i32 %214, %215
  %217 = zext i1 %216 to i32
  store i32 %217, ptr %15, align 4, !tbaa !11
  %218 = load i32, ptr %15, align 4, !tbaa !11
  %219 = load i32, ptr %14, align 4, !tbaa !11
  %220 = and i32 %219, %218
  store i32 %220, ptr %14, align 4, !tbaa !11
  %221 = load i32, ptr %14, align 4, !tbaa !11
  %222 = icmp ne i32 %221, 0
  %223 = xor i1 %222, true
  %224 = zext i1 %223 to i32
  store i32 %224, ptr %14, align 4, !tbaa !11
  %225 = load i32, ptr %14, align 4, !tbaa !11
  %226 = icmp ne i32 %225, 0
  br i1 %226, label %227, label %232

227:                                              ; preds = %203
  store double 0x3FF921FB54442D18, ptr %20, align 8, !tbaa !9
  %228 = load double, ptr %5, align 8, !tbaa !9
  store double %228, ptr %21, align 8, !tbaa !9
  %229 = load double, ptr %20, align 8, !tbaa !9
  %230 = load double, ptr %21, align 8, !tbaa !9
  %231 = call double @llvm.copysign.f64(double %229, double %230)
  store double %231, ptr %20, align 8, !tbaa !9
  br label %307

232:                                              ; preds = %203
  %233 = load i32, ptr %11, align 4, !tbaa !11
  store i32 %233, ptr %14, align 4, !tbaa !11
  %234 = load i32, ptr %14, align 4, !tbaa !11
  %235 = icmp ne i32 %234, 0
  br i1 %235, label %236, label %250

236:                                              ; preds = %232
  store double 0.000000e+00, ptr %20, align 8, !tbaa !9
  %237 = load i32, ptr %9, align 4, !tbaa !11
  store i32 %237, ptr %15, align 4, !tbaa !11
  store i32 67108864, ptr %16, align 4, !tbaa !11
  %238 = load i32, ptr %16, align 4, !tbaa !11
  %239 = load i32, ptr %15, align 4, !tbaa !11
  %240 = add i32 %239, %238
  store i32 %240, ptr %15, align 4, !tbaa !11
  %241 = load i32, ptr %7, align 4, !tbaa !11
  store i32 %241, ptr %16, align 4, !tbaa !11
  %242 = load i32, ptr %15, align 4, !tbaa !11
  %243 = load i32, ptr %16, align 4, !tbaa !11
  %244 = icmp ult i32 %242, %243
  %245 = zext i1 %244 to i32
  store i32 %245, ptr %15, align 4, !tbaa !11
  %246 = load i32, ptr %15, align 4, !tbaa !11
  %247 = icmp ne i32 %246, 0
  br i1 %247, label %248, label %249

248:                                              ; preds = %236
  br label %262

249:                                              ; preds = %236
  br label %250

250:                                              ; preds = %249, %232
  %251 = load double, ptr %5, align 8, !tbaa !9
  store double %251, ptr %20, align 8, !tbaa !9
  %252 = load double, ptr %6, align 8, !tbaa !9
  store double %252, ptr %21, align 8, !tbaa !9
  %253 = load double, ptr %21, align 8, !tbaa !9
  %254 = load double, ptr %20, align 8, !tbaa !9
  %255 = fdiv double %254, %253
  store double %255, ptr %20, align 8, !tbaa !9
  %256 = load ptr, ptr %4, align 8, !tbaa !5
  %257 = load double, ptr %20, align 8, !tbaa !9
  %258 = call double @w2c_hermes_fabs(ptr noundef %256, double noundef %257)
  store double %258, ptr %20, align 8, !tbaa !9
  %259 = load ptr, ptr %4, align 8, !tbaa !5
  %260 = load double, ptr %20, align 8, !tbaa !9
  %261 = call double @w2c_hermes_atan(ptr noundef %259, double noundef %260)
  store double %261, ptr %20, align 8, !tbaa !9
  br label %262

262:                                              ; preds = %250, %248
  %263 = load double, ptr %20, align 8, !tbaa !9
  store double %263, ptr %13, align 8, !tbaa !9
  %264 = load i32, ptr %8, align 4, !tbaa !11
  store i32 %264, ptr %14, align 4, !tbaa !11
  %265 = load i32, ptr %14, align 4, !tbaa !11
  switch i32 %265, label %269 [
    i32 0, label %266
    i32 1, label %267
    i32 2, label %268
  ]

266:                                              ; preds = %262
  br label %305

267:                                              ; preds = %262
  br label %270

268:                                              ; preds = %262
  br label %274

269:                                              ; preds = %262
  br label %282

270:                                              ; preds = %267
  %271 = load double, ptr %13, align 8, !tbaa !9
  store double %271, ptr %20, align 8, !tbaa !9
  %272 = load double, ptr %20, align 8, !tbaa !9
  %273 = fneg double %272
  store double %273, ptr %20, align 8, !tbaa !9
  br label %307

274:                                              ; preds = %268
  store double 0x400921FB54442D18, ptr %20, align 8, !tbaa !9
  %275 = load double, ptr %13, align 8, !tbaa !9
  store double %275, ptr %21, align 8, !tbaa !9
  store double 0xBCA1A62633145C07, ptr %22, align 8, !tbaa !9
  %276 = load double, ptr %22, align 8, !tbaa !9
  %277 = load double, ptr %21, align 8, !tbaa !9
  %278 = fadd double %277, %276
  store double %278, ptr %21, align 8, !tbaa !9
  %279 = load double, ptr %21, align 8, !tbaa !9
  %280 = load double, ptr %20, align 8, !tbaa !9
  %281 = fsub double %280, %279
  store double %281, ptr %20, align 8, !tbaa !9
  br label %307

282:                                              ; preds = %269
  %283 = load double, ptr %13, align 8, !tbaa !9
  store double %283, ptr %20, align 8, !tbaa !9
  store double 0xBCA1A62633145C07, ptr %21, align 8, !tbaa !9
  %284 = load double, ptr %21, align 8, !tbaa !9
  %285 = load double, ptr %20, align 8, !tbaa !9
  %286 = fadd double %285, %284
  store double %286, ptr %20, align 8, !tbaa !9
  store double 0xC00921FB54442D18, ptr %21, align 8, !tbaa !9
  %287 = load double, ptr %21, align 8, !tbaa !9
  %288 = load double, ptr %20, align 8, !tbaa !9
  %289 = fadd double %288, %287
  store double %289, ptr %20, align 8, !tbaa !9
  br label %307

290:                                              ; preds = %188
  %291 = load i32, ptr %8, align 4, !tbaa !11
  store i32 %291, ptr %14, align 4, !tbaa !11
  store i32 3, ptr %15, align 4, !tbaa !11
  %292 = load i32, ptr %15, align 4, !tbaa !11
  %293 = and i32 %292, 31
  %294 = load i32, ptr %14, align 4, !tbaa !11
  %295 = shl i32 %294, %293
  store i32 %295, ptr %14, align 4, !tbaa !11
  store i32 236048, ptr %15, align 4, !tbaa !11
  %296 = load i32, ptr %15, align 4, !tbaa !11
  %297 = load i32, ptr %14, align 4, !tbaa !11
  %298 = add i32 %297, %296
  store i32 %298, ptr %14, align 4, !tbaa !11
  %299 = load ptr, ptr %4, align 8, !tbaa !5
  %300 = getelementptr inbounds %struct.w2c_hermes, ptr %299, i32 0, i32 6
  %301 = load i32, ptr %14, align 4, !tbaa !11
  %302 = zext i32 %301 to i64
  %303 = call double @f64_load(ptr noundef %300, i64 noundef %302)
  store double %303, ptr %20, align 8, !tbaa !9
  %304 = load double, ptr %20, align 8, !tbaa !9
  store double %304, ptr %13, align 8, !tbaa !9
  br label %305

305:                                              ; preds = %290, %266, %148
  %306 = load double, ptr %13, align 8, !tbaa !9
  store double %306, ptr %20, align 8, !tbaa !9
  br label %307

307:                                              ; preds = %305, %282, %274, %270, %227, %189, %167, %150, %149, %86, %52
  %308 = load double, ptr %20, align 8, !tbaa !9
  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 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  ret double %308
}

; Function Attrs: nounwind uwtable
declare dso_local i64 @w2c_hermes_0x5F_DOUBLE_BITS0x2E6(ptr noundef, 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
declare dso_local double @w2c_hermes_atan(ptr noundef, double noundef) local_unnamed_addr #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_load(ptr noundef, i64 noundef) local_unnamed_addr #1

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

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

; Function Attrs: nounwind uwtable
define dso_local double @w2c_hermes_atan2(ptr noundef %0, double noundef %1, double noundef %2) local_unnamed_addr #0 {
  %4 = tail call i64 @w2c_hermes_0x5F_DOUBLE_BITS0x2E6(ptr noundef %0, double noundef %2)
  %5 = and i64 %4, 9223372036854775807
  %6 = icmp ult i64 %5, 9218868437227405313
  br i1 %6, label %7, label %11

7:                                                ; preds = %3
  %8 = tail call i64 @w2c_hermes_0x5F_DOUBLE_BITS0x2E6(ptr noundef %0, double noundef %1)
  %9 = and i64 %8, 9223372036854775807
  %10 = icmp ult i64 %9, 9218868437227405313
  br i1 %10, label %13, label %11

11:                                               ; preds = %7, %3
  %12 = fadd double %1, %2
  br label %76

13:                                               ; preds = %7
  %14 = tail call i64 @i64_reinterpret_f64(double noundef %2)
  %15 = lshr i64 %14, 32
  %16 = trunc nuw i64 %15 to i32
  %17 = add i32 %16, -1072693248
  %18 = trunc i64 %14 to i32
  %19 = or i32 %17, %18
  %.not = icmp eq i32 %19, 0
  br i1 %.not, label %20, label %22

20:                                               ; preds = %13
  %21 = tail call double @w2c_hermes_atan(ptr noundef %0, double noundef %1)
  br label %76

22:                                               ; preds = %13
  %23 = lshr i32 %16, 30
  %24 = and i32 %23, 2
  %25 = tail call i64 @i64_reinterpret_f64(double noundef %1)
  %26 = lshr i64 %25, 63
  %27 = trunc nuw nsw i64 %26 to i32
  %28 = or disjoint i32 %24, %27
  %29 = lshr i64 %25, 32
  %30 = trunc nuw i64 %29 to i32
  %31 = and i32 %30, 2147483647
  %32 = trunc i64 %25 to i32
  %33 = or i32 %31, %32
  %.not159 = icmp eq i32 %33, 0
  br i1 %.not159, label %34, label %36

34:                                               ; preds = %22
  switch i32 %28, label %75 [
    i32 2, label %76
    i32 3, label %35
  ]

35:                                               ; preds = %34
  br label %76

36:                                               ; preds = %22
  %37 = and i32 %16, 2147483647
  %38 = or i32 %37, %18
  %.not160 = icmp eq i32 %38, 0
  br i1 %.not160, label %39, label %41

39:                                               ; preds = %36
  %40 = tail call double @llvm.copysign.f64(double 0x3FF921FB54442D18, double %1)
  br label %76

41:                                               ; preds = %36
  %42 = icmp eq i32 %37, 2146435072
  %.not165 = icmp eq i32 %31, 2146435072
  br i1 %42, label %43, label %50

43:                                               ; preds = %41
  %44 = shl nuw nsw i32 %28, 3
  %45 = getelementptr inbounds i8, ptr %0, i64 40
  br i1 %.not165, label %46, label %71

46:                                               ; preds = %43
  %47 = add nuw nsw i32 %44, 236016
  %48 = zext nneg i32 %47 to i64
  %49 = tail call double @f64_load(ptr noundef nonnull %45, i64 noundef %48)
  br label %76

50:                                               ; preds = %41
  %51 = add nuw i32 %37, 67108864
  %52 = icmp ult i32 %51, %31
  %.not163 = or i1 %.not165, %52
  br i1 %.not163, label %53, label %55

53:                                               ; preds = %50
  %54 = tail call double @llvm.copysign.f64(double 0x3FF921FB54442D18, double %1)
  br label %76

55:                                               ; preds = %50
  %.not164 = icmp ne i32 %24, 0
  %56 = add nuw i32 %31, 67108864
  %57 = icmp ult i32 %56, %37
  %or.cond = select i1 %.not164, i1 %57, i1 false
  br i1 %or.cond, label %62, label %58

58:                                               ; preds = %55
  %59 = fdiv double %1, %2
  %60 = tail call double @w2c_hermes_fabs(ptr noundef %0, double noundef %59)
  %61 = tail call double @w2c_hermes_atan(ptr noundef %0, double noundef %60)
  br label %62

62:                                               ; preds = %55, %58
  %.0 = phi double [ %61, %58 ], [ 0.000000e+00, %55 ]
  switch i32 %28, label %default.unreachable [
    i32 0, label %76
    i32 1, label %63
    i32 2, label %65
    i32 3, label %68
  ]

63:                                               ; preds = %62
  %64 = fneg double %.0
  br label %76

65:                                               ; preds = %62
  %66 = fadd double %.0, 0xBCA1A62633145C07
  %67 = fsub double 0x400921FB54442D18, %66
  br label %76

default.unreachable:                              ; preds = %62
  unreachable

68:                                               ; preds = %62
  %69 = fadd double %.0, 0xBCA1A62633145C07
  %70 = fadd double %69, 0xC00921FB54442D18
  br label %76

71:                                               ; preds = %43
  %72 = add nuw nsw i32 %44, 236048
  %73 = zext nneg i32 %72 to i64
  %74 = tail call double @f64_load(ptr noundef nonnull %45, i64 noundef %73)
  br label %76

75:                                               ; preds = %34
  br label %76

76:                                               ; preds = %71, %62, %34, %75, %68, %65, %63, %53, %46, %39, %35, %20, %11
  %.1 = phi double [ %21, %20 ], [ 0xC00921FB54442D18, %35 ], [ %40, %39 ], [ %49, %46 ], [ %54, %53 ], [ %70, %68 ], [ %67, %65 ], [ %64, %63 ], [ %12, %11 ], [ 0x400921FB54442D18, %34 ], [ %74, %71 ], [ %.0, %62 ], [ %1, %75 ]
  ret double %.1
}

; Function Attrs: nounwind uwtable
declare dso_local i64 @w2c_hermes_0x5F_DOUBLE_BITS0x2E6(ptr noundef, 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: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass