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

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

60:                                               ; preds = %43
  %61 = load double, ptr %4, align 8, !tbaa !9
  store double %61, ptr %17, align 8, !tbaa !9
  store double 0x3FF921FB54442D18, ptr %18, align 8, !tbaa !9
  %62 = load double, ptr %18, align 8, !tbaa !9
  %63 = load double, ptr %17, align 8, !tbaa !9
  %64 = fmul double %63, %62
  store double %64, ptr %17, align 8, !tbaa !9
  store double 0x3870000000000000, ptr %18, align 8, !tbaa !9
  %65 = load double, ptr %18, align 8, !tbaa !9
  %66 = load double, ptr %17, align 8, !tbaa !9
  %67 = fadd double %66, %65
  store double %67, ptr %17, align 8, !tbaa !9
  br label %244

68:                                               ; preds = %43
  store double 0.000000e+00, ptr %17, align 8, !tbaa !9
  %69 = load double, ptr %4, align 8, !tbaa !9
  store double %69, ptr %18, align 8, !tbaa !9
  %70 = load double, ptr %4, align 8, !tbaa !9
  store double %70, ptr %19, align 8, !tbaa !9
  %71 = load double, ptr %19, align 8, !tbaa !9
  %72 = load double, ptr %18, align 8, !tbaa !9
  %73 = fsub double %72, %71
  store double %73, ptr %18, align 8, !tbaa !9
  %74 = load double, ptr %18, align 8, !tbaa !9
  %75 = load double, ptr %17, align 8, !tbaa !9
  %76 = fdiv double %75, %74
  store double %76, ptr %17, align 8, !tbaa !9
  br label %244

77:                                               ; preds = %2
  %78 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %78, ptr %10, align 4, !tbaa !11
  store i32 1071644671, ptr %11, align 4, !tbaa !11
  %79 = load i32, ptr %10, align 4, !tbaa !11
  %80 = load i32, ptr %11, align 4, !tbaa !11
  %81 = icmp ule i32 %79, %80
  %82 = zext i1 %81 to i32
  store i32 %82, ptr %10, align 4, !tbaa !11
  %83 = load i32, ptr %10, align 4, !tbaa !11
  %84 = icmp ne i32 %83, 0
  br i1 %84, label %85, label %114

85:                                               ; preds = %77
  %86 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %86, ptr %10, align 4, !tbaa !11
  store i32 -1048576, ptr %11, align 4, !tbaa !11
  %87 = load i32, ptr %11, align 4, !tbaa !11
  %88 = load i32, ptr %10, align 4, !tbaa !11
  %89 = add i32 %88, %87
  store i32 %89, ptr %10, align 4, !tbaa !11
  store i32 1044381696, ptr %11, align 4, !tbaa !11
  %90 = load i32, ptr %10, align 4, !tbaa !11
  %91 = load i32, ptr %11, align 4, !tbaa !11
  %92 = icmp ult i32 %90, %91
  %93 = zext i1 %92 to i32
  store i32 %93, ptr %10, align 4, !tbaa !11
  %94 = load i32, ptr %10, align 4, !tbaa !11
  %95 = icmp ne i32 %94, 0
  br i1 %95, label %96, label %97

96:                                               ; preds = %85
  br label %242

97:                                               ; preds = %85
  %98 = load double, ptr %4, align 8, !tbaa !9
  store double %98, ptr %17, align 8, !tbaa !9
  %99 = load double, ptr %4, align 8, !tbaa !9
  store double %99, ptr %18, align 8, !tbaa !9
  %100 = load double, ptr %4, align 8, !tbaa !9
  store double %100, ptr %19, align 8, !tbaa !9
  %101 = load double, ptr %19, align 8, !tbaa !9
  %102 = load double, ptr %18, align 8, !tbaa !9
  %103 = fmul double %102, %101
  store double %103, ptr %18, align 8, !tbaa !9
  %104 = load ptr, ptr %3, align 8, !tbaa !5
  %105 = load double, ptr %18, align 8, !tbaa !9
  %106 = call double @w2c_hermes_R(ptr noundef %104, double noundef %105)
  store double %106, ptr %18, align 8, !tbaa !9
  %107 = load double, ptr %18, align 8, !tbaa !9
  %108 = load double, ptr %17, align 8, !tbaa !9
  %109 = fmul double %108, %107
  store double %109, ptr %17, align 8, !tbaa !9
  %110 = load double, ptr %4, align 8, !tbaa !9
  store double %110, ptr %18, align 8, !tbaa !9
  %111 = load double, ptr %18, align 8, !tbaa !9
  %112 = load double, ptr %17, align 8, !tbaa !9
  %113 = fadd double %112, %111
  store double %113, ptr %17, align 8, !tbaa !9
  br label %244

114:                                              ; preds = %77
  store double 1.000000e+00, ptr %17, align 8, !tbaa !9
  %115 = load double, ptr %4, align 8, !tbaa !9
  store double %115, ptr %18, align 8, !tbaa !9
  %116 = load double, ptr %18, align 8, !tbaa !9
  %117 = call double @wasm_fabs(double noundef %116)
  store double %117, ptr %18, align 8, !tbaa !9
  %118 = load double, ptr %18, align 8, !tbaa !9
  %119 = load double, ptr %17, align 8, !tbaa !9
  %120 = fsub double %119, %118
  store double %120, ptr %17, align 8, !tbaa !9
  store double 5.000000e-01, ptr %18, align 8, !tbaa !9
  %121 = load double, ptr %18, align 8, !tbaa !9
  %122 = load double, ptr %17, align 8, !tbaa !9
  %123 = fmul double %122, %121
  store double %123, ptr %17, align 8, !tbaa !9
  %124 = load double, ptr %17, align 8, !tbaa !9
  store double %124, ptr %8, align 8, !tbaa !9
  %125 = load double, ptr %17, align 8, !tbaa !9
  %126 = call double @wasm_sqrt(double noundef %125)
  store double %126, ptr %17, align 8, !tbaa !9
  %127 = load double, ptr %17, align 8, !tbaa !9
  store double %127, ptr %4, align 8, !tbaa !9
  %128 = load double, ptr %8, align 8, !tbaa !9
  store double %128, ptr %17, align 8, !tbaa !9
  %129 = load ptr, ptr %3, align 8, !tbaa !5
  %130 = load double, ptr %17, align 8, !tbaa !9
  %131 = call double @w2c_hermes_R(ptr noundef %129, double noundef %130)
  store double %131, ptr %17, align 8, !tbaa !9
  %132 = load double, ptr %17, align 8, !tbaa !9
  store double %132, ptr %9, align 8, !tbaa !9
  %133 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %133, ptr %10, align 4, !tbaa !11
  store i32 1072640819, ptr %11, align 4, !tbaa !11
  %134 = load i32, ptr %10, align 4, !tbaa !11
  %135 = load i32, ptr %11, align 4, !tbaa !11
  %136 = icmp uge i32 %134, %135
  %137 = zext i1 %136 to i32
  store i32 %137, ptr %10, align 4, !tbaa !11
  %138 = load i32, ptr %10, align 4, !tbaa !11
  %139 = icmp ne i32 %138, 0
  br i1 %139, label %140, label %161

140:                                              ; preds = %114
  store double 0x3FF921FB54442D18, ptr %17, align 8, !tbaa !9
  %141 = load double, ptr %4, align 8, !tbaa !9
  store double %141, ptr %18, align 8, !tbaa !9
  %142 = load double, ptr %9, align 8, !tbaa !9
  store double %142, ptr %19, align 8, !tbaa !9
  %143 = load double, ptr %19, align 8, !tbaa !9
  %144 = load double, ptr %18, align 8, !tbaa !9
  %145 = fmul double %144, %143
  store double %145, ptr %18, align 8, !tbaa !9
  %146 = load double, ptr %4, align 8, !tbaa !9
  store double %146, ptr %19, align 8, !tbaa !9
  %147 = load double, ptr %19, align 8, !tbaa !9
  %148 = load double, ptr %18, align 8, !tbaa !9
  %149 = fadd double %148, %147
  store double %149, ptr %18, align 8, !tbaa !9
  %150 = load double, ptr %18, align 8, !tbaa !9
  store double %150, ptr %4, align 8, !tbaa !9
  %151 = load double, ptr %4, align 8, !tbaa !9
  store double %151, ptr %19, align 8, !tbaa !9
  %152 = load double, ptr %19, align 8, !tbaa !9
  %153 = load double, ptr %18, align 8, !tbaa !9
  %154 = fadd double %153, %152
  store double %154, ptr %18, align 8, !tbaa !9
  store double 0xBC91A62633145C07, ptr %19, align 8, !tbaa !9
  %155 = load double, ptr %19, align 8, !tbaa !9
  %156 = load double, ptr %18, align 8, !tbaa !9
  %157 = fadd double %156, %155
  store double %157, ptr %18, align 8, !tbaa !9
  %158 = load double, ptr %18, align 8, !tbaa !9
  %159 = load double, ptr %17, align 8, !tbaa !9
  %160 = fsub double %159, %158
  store double %160, ptr %17, align 8, !tbaa !9
  br label %221

161:                                              ; preds = %114
  store double 0x3FE921FB54442D18, ptr %17, align 8, !tbaa !9
  %162 = load double, ptr %4, align 8, !tbaa !9
  store double %162, ptr %18, align 8, !tbaa !9
  %163 = load double, ptr %18, align 8, !tbaa !9
  %164 = call i64 @i64_reinterpret_f64(double noundef %163)
  store i64 %164, ptr %14, align 8, !tbaa !13
  store i64 -4294967296, ptr %15, align 8, !tbaa !13
  %165 = load i64, ptr %15, align 8, !tbaa !13
  %166 = load i64, ptr %14, align 8, !tbaa !13
  %167 = and i64 %166, %165
  store i64 %167, ptr %14, align 8, !tbaa !13
  %168 = load i64, ptr %14, align 8, !tbaa !13
  %169 = call double @f64_reinterpret_i64(i64 noundef %168)
  store double %169, ptr %18, align 8, !tbaa !9
  %170 = load double, ptr %18, align 8, !tbaa !9
  store double %170, ptr %7, align 8, !tbaa !9
  %171 = load double, ptr %7, align 8, !tbaa !9
  store double %171, ptr %19, align 8, !tbaa !9
  %172 = load double, ptr %19, align 8, !tbaa !9
  %173 = load double, ptr %18, align 8, !tbaa !9
  %174 = fadd double %173, %172
  store double %174, ptr %18, align 8, !tbaa !9
  %175 = load double, ptr %18, align 8, !tbaa !9
  %176 = load double, ptr %17, align 8, !tbaa !9
  %177 = fsub double %176, %175
  store double %177, ptr %17, align 8, !tbaa !9
  %178 = load double, ptr %4, align 8, !tbaa !9
  store double %178, ptr %18, align 8, !tbaa !9
  %179 = load double, ptr %4, align 8, !tbaa !9
  store double %179, ptr %19, align 8, !tbaa !9
  %180 = load double, ptr %19, align 8, !tbaa !9
  %181 = load double, ptr %18, align 8, !tbaa !9
  %182 = fadd double %181, %180
  store double %182, ptr %18, align 8, !tbaa !9
  %183 = load double, ptr %9, align 8, !tbaa !9
  store double %183, ptr %19, align 8, !tbaa !9
  %184 = load double, ptr %19, align 8, !tbaa !9
  %185 = load double, ptr %18, align 8, !tbaa !9
  %186 = fmul double %185, %184
  store double %186, ptr %18, align 8, !tbaa !9
  store double 0x3C91A62633145C07, ptr %19, align 8, !tbaa !9
  %187 = load double, ptr %8, align 8, !tbaa !9
  store double %187, ptr %20, align 8, !tbaa !9
  %188 = load double, ptr %7, align 8, !tbaa !9
  store double %188, ptr %21, align 8, !tbaa !9
  %189 = load double, ptr %7, align 8, !tbaa !9
  store double %189, ptr %22, align 8, !tbaa !9
  %190 = load double, ptr %22, align 8, !tbaa !9
  %191 = load double, ptr %21, align 8, !tbaa !9
  %192 = fmul double %191, %190
  store double %192, ptr %21, align 8, !tbaa !9
  %193 = load double, ptr %21, align 8, !tbaa !9
  %194 = load double, ptr %20, align 8, !tbaa !9
  %195 = fsub double %194, %193
  store double %195, ptr %20, align 8, !tbaa !9
  %196 = load double, ptr %4, align 8, !tbaa !9
  store double %196, ptr %21, align 8, !tbaa !9
  %197 = load double, ptr %7, align 8, !tbaa !9
  store double %197, ptr %22, align 8, !tbaa !9
  %198 = load double, ptr %22, align 8, !tbaa !9
  %199 = load double, ptr %21, align 8, !tbaa !9
  %200 = fadd double %199, %198
  store double %200, ptr %21, align 8, !tbaa !9
  %201 = load double, ptr %21, align 8, !tbaa !9
  %202 = load double, ptr %20, align 8, !tbaa !9
  %203 = fdiv double %202, %201
  store double %203, ptr %20, align 8, !tbaa !9
  %204 = load double, ptr %20, align 8, !tbaa !9
  store double %204, ptr %4, align 8, !tbaa !9
  %205 = load double, ptr %4, align 8, !tbaa !9
  store double %205, 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 = fsub double %210, %209
  store double %211, ptr %19, align 8, !tbaa !9
  %212 = load double, ptr %19, align 8, !tbaa !9
  %213 = load double, ptr %18, align 8, !tbaa !9
  %214 = fsub double %213, %212
  store double %214, ptr %18, align 8, !tbaa !9
  %215 = load double, ptr %18, align 8, !tbaa !9
  %216 = load double, ptr %17, align 8, !tbaa !9
  %217 = fsub double %216, %215
  store double %217, ptr %17, align 8, !tbaa !9
  store double 0x3FE921FB54442D18, ptr %18, align 8, !tbaa !9
  %218 = load double, ptr %18, align 8, !tbaa !9
  %219 = load double, ptr %17, align 8, !tbaa !9
  %220 = fadd double %219, %218
  store double %220, ptr %17, align 8, !tbaa !9
  br label %221

221:                                              ; preds = %161, %140
  %222 = load double, ptr %17, align 8, !tbaa !9
  store double %222, ptr %4, align 8, !tbaa !9
  %223 = load double, ptr %17, align 8, !tbaa !9
  %224 = fneg double %223
  store double %224, ptr %17, align 8, !tbaa !9
  %225 = load double, ptr %4, align 8, !tbaa !9
  store double %225, ptr %18, align 8, !tbaa !9
  %226 = load i64, ptr %6, align 8, !tbaa !13
  store i64 %226, ptr %15, align 8, !tbaa !13
  store i64 0, ptr %16, align 8, !tbaa !13
  %227 = load i64, ptr %15, align 8, !tbaa !13
  %228 = load i64, ptr %16, align 8, !tbaa !13
  %229 = icmp slt i64 %227, %228
  %230 = zext i1 %229 to i32
  %231 = sext i32 %230 to i64
  %232 = trunc i64 %231 to i32
  store i32 %232, ptr %12, align 4, !tbaa !11
  %233 = load i32, ptr %12, align 4, !tbaa !11
  %234 = icmp ne i32 %233, 0
  br i1 %234, label %235, label %237

235:                                              ; preds = %221
  %236 = load double, ptr %17, align 8, !tbaa !9
  br label %239

237:                                              ; preds = %221
  %238 = load double, ptr %18, align 8, !tbaa !9
  br label %239

239:                                              ; preds = %237, %235
  %240 = phi double [ %236, %235 ], [ %238, %237 ]
  store double %240, ptr %17, align 8, !tbaa !9
  %241 = load double, ptr %17, align 8, !tbaa !9
  store double %241, ptr %4, align 8, !tbaa !9
  br label %242

242:                                              ; preds = %239, %96
  %243 = load double, ptr %4, align 8, !tbaa !9
  store double %243, ptr %17, align 8, !tbaa !9
  br label %244

244:                                              ; preds = %242, %97, %68, %60
  %245 = load double, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  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 4, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, 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 %245
}

; 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 hidden double @wasm_fabs(double noundef) #0

; 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_asin(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 = fmul double %1, 0x3FF921FB54442D18
  %14 = fadd double %13, 0x3870000000000000
  br label %64

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

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

20:                                               ; preds = %18
  %21 = add nsw i32 %6, -1048576
  %22 = icmp ult i32 %21, 1044381696
  br i1 %22, label %64, label %23

23:                                               ; preds = %20
  %24 = fmul double %1, %1
  %25 = tail call double @w2c_hermes_R(ptr noundef %0, double noundef %24)
  %26 = fmul double %25, %1
  %27 = fadd double %26, %1
  br label %64

28:                                               ; preds = %18
  %29 = tail call double @wasm_fabs(double noundef %1)
  %30 = fsub double 1.000000e+00, %29
  %31 = fmul double %30, 5.000000e-01
  %32 = tail call double @wasm_sqrt(double noundef %31)
  %33 = tail call double @w2c_hermes_R(ptr noundef %0, double noundef %31)
  %34 = icmp ugt i32 %6, 1072640818
  br i1 %34, label %35, label %41

35:                                               ; preds = %28
  %36 = fmul double %32, %33
  %37 = fadd double %32, %36
  %38 = fadd double %37, %37
  %39 = fadd double %38, 0xBC91A62633145C07
  %40 = fsub double 0x3FF921FB54442D18, %39
  br label %60

41:                                               ; preds = %28
  %42 = tail call i64 @i64_reinterpret_f64(double noundef %32)
  %43 = and i64 %42, -4294967296
  %44 = tail call double @f64_reinterpret_i64(i64 noundef %43)
  %45 = fadd double %32, %32
  %46 = fmul double %45, %33
  %47 = fmul double %44, %44
  %48 = fsub double %31, %47
  %49 = fadd double %32, %44
  %50 = fdiv double %48, %49
  %51 = insertelement <2 x double> poison, double %44, i64 0
  %52 = insertelement <2 x double> %51, double %50, i64 1
  %53 = fadd <2 x double> %52, %52
  %54 = fsub <2 x double> <double 0x3FE921FB54442D18, double 0x3C91A62633145C07>, %53
  %55 = extractelement <2 x double> %54, i64 1
  %56 = fsub double %55, %46
  %57 = extractelement <2 x double> %54, i64 0
  %58 = fadd double %57, %56
  %59 = fadd double %58, 0x3FE921FB54442D18
  br label %60

60:                                               ; preds = %41, %35
  %.0140 = phi double [ %40, %35 ], [ %59, %41 ]
  %61 = fneg double %.0140
  %62 = icmp slt i64 %3, 0
  %63 = select i1 %62, double %61, double %.0140
  br label %64

64:                                               ; preds = %60, %20, %23, %15, %12
  %.1 = phi double [ %14, %12 ], [ %17, %15 ], [ %27, %23 ], [ %1, %20 ], [ %63, %60 ]
  ret double %.1
}

; 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 hidden double @wasm_fabs(double noundef) local_unnamed_addr #0

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