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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; Function Attrs: nounwind uwtable
define dso_local double @w2c_hermes_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) #4
  store i32 0, ptr %5, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  store i64 0, ptr %6, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  store double 0.000000e+00, ptr %7, align 8, !tbaa !9
  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 4, ptr %10) #4
  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 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, 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
  %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 %246

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 %246

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 %244

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_R0x2E1(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 %246

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 ptr, ptr %3, align 8, !tbaa !5
  %117 = load double, ptr %18, align 8, !tbaa !9
  %118 = call double @w2c_hermes_fabs(ptr noundef %116, double noundef %117)
  store double %118, ptr %18, align 8, !tbaa !9
  %119 = load double, ptr %18, align 8, !tbaa !9
  %120 = load double, ptr %17, align 8, !tbaa !9
  %121 = fsub double %120, %119
  store double %121, ptr %17, align 8, !tbaa !9
  store double 5.000000e-01, ptr %18, align 8, !tbaa !9
  %122 = load double, ptr %18, align 8, !tbaa !9
  %123 = load double, ptr %17, align 8, !tbaa !9
  %124 = fmul double %123, %122
  store double %124, ptr %17, align 8, !tbaa !9
  %125 = load double, ptr %17, align 8, !tbaa !9
  store double %125, ptr %8, align 8, !tbaa !9
  %126 = load ptr, ptr %3, align 8, !tbaa !5
  %127 = load double, ptr %17, align 8, !tbaa !9
  %128 = call double @w2c_hermes_sqrt(ptr noundef %126, double noundef %127)
  store double %128, ptr %17, align 8, !tbaa !9
  %129 = load double, ptr %17, align 8, !tbaa !9
  store double %129, ptr %4, align 8, !tbaa !9
  %130 = load double, ptr %8, align 8, !tbaa !9
  store double %130, ptr %17, align 8, !tbaa !9
  %131 = load ptr, ptr %3, align 8, !tbaa !5
  %132 = load double, ptr %17, align 8, !tbaa !9
  %133 = call double @w2c_hermes_R0x2E1(ptr noundef %131, double noundef %132)
  store double %133, ptr %17, align 8, !tbaa !9
  %134 = load double, ptr %17, align 8, !tbaa !9
  store double %134, ptr %9, align 8, !tbaa !9
  %135 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %135, ptr %10, align 4, !tbaa !11
  store i32 1072640819, ptr %11, align 4, !tbaa !11
  %136 = load i32, ptr %10, align 4, !tbaa !11
  %137 = load i32, ptr %11, align 4, !tbaa !11
  %138 = icmp uge i32 %136, %137
  %139 = zext i1 %138 to i32
  store i32 %139, ptr %10, align 4, !tbaa !11
  %140 = load i32, ptr %10, align 4, !tbaa !11
  %141 = icmp ne i32 %140, 0
  br i1 %141, label %142, label %163

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

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

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

237:                                              ; preds = %223
  %238 = load double, ptr %17, align 8, !tbaa !9
  br label %241

239:                                              ; preds = %223
  %240 = load double, ptr %18, align 8, !tbaa !9
  br label %241

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

244:                                              ; preds = %241, %96
  %245 = load double, ptr %4, align 8, !tbaa !9
  store double %245, ptr %17, align 8, !tbaa !9
  br label %246

246:                                              ; preds = %244, %97, %68, %60
  %247 = load double, ptr %17, 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 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, 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 4, 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 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  ret double %247
}

declare double @w2c_hermes_sqrt(ptr noundef, double noundef) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local double @w2c_hermes_R0x2E1(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 = { "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #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_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_R0x2E1(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 @w2c_hermes_fabs(ptr noundef %0, double noundef %1)
  %30 = fsub double 1.000000e+00, %29
  %31 = fmul double %30, 5.000000e-01
  %32 = tail call double @w2c_hermes_sqrt(ptr noundef %0, double noundef %31) #3
  %33 = tail call double @w2c_hermes_R0x2E1(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
  %.0142 = phi double [ %40, %35 ], [ %59, %41 ]
  %61 = fneg double %.0142
  %62 = icmp slt i64 %3, 0
  %63 = select i1 %62, double %61, double %.0142
  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
}

declare double @w2c_hermes_sqrt(ptr noundef, double noundef) local_unnamed_addr #1

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local double @w2c_hermes_R0x2E1(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 = { "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 = { 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)"}


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