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

; 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i32_store(ptr noundef, i64 noundef, i32 noundef) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @i32_load(ptr noundef, i64 noundef) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i64_store(ptr noundef, i64 noundef, i64 noundef) #1

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

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

; Function Attrs: nounwind uwtable
declare hidden double @wasm_fabs(double noundef) #2

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden double @f64_load(ptr noundef, i64 noundef) #1

declare void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtoNumber_RJS0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #3

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AmathPow0x28void0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3ANativeArgs0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #2 {
  %6 = alloca ptr, 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 double, align 8
  %13 = alloca double, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store i32 %2, ptr %8, align 4, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !9
  store i32 %4, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  store double 0.000000e+00, ptr %12, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  store double 0.000000e+00, ptr %13, align 8, !tbaa !11
  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 4, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 4, 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
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.w2c_hermes, ptr %27, i32 0, i32 3
  %29 = load i32, ptr %28, align 8, !tbaa !13
  store i32 %29, ptr %14, align 4, !tbaa !9
  store i32 32, ptr %15, align 4, !tbaa !9
  %30 = load i32, ptr %15, align 4, !tbaa !9
  %31 = load i32, ptr %14, align 4, !tbaa !9
  %32 = sub i32 %31, %30
  store i32 %32, ptr %14, align 4, !tbaa !9
  %33 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %33, ptr %8, align 4, !tbaa !9
  %34 = load i32, ptr %14, align 4, !tbaa !9
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.w2c_hermes, ptr %35, i32 0, i32 3
  store i32 %34, ptr %36, align 8, !tbaa !13
  %37 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %37, ptr %14, align 4, !tbaa !9
  store i32 16, ptr %15, align 4, !tbaa !9
  %38 = load i32, ptr %15, align 4, !tbaa !9
  %39 = load i32, ptr %14, align 4, !tbaa !9
  %40 = add i32 %39, %38
  store i32 %40, ptr %14, align 4, !tbaa !9
  %41 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %41, ptr %15, align 4, !tbaa !9
  %42 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %42, ptr %16, align 4, !tbaa !9
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.w2c_hermes, ptr %43, i32 0, i32 6
  %45 = load i32, ptr %16, align 4, !tbaa !9
  %46 = zext i32 %45 to i64
  %47 = call i32 @i32_load(ptr noundef %44, i64 noundef %46)
  store i32 %47, ptr %16, align 4, !tbaa !9
  %48 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %48, ptr %11, align 4, !tbaa !9
  store i32 8, ptr %17, align 4, !tbaa !9
  %49 = load i32, ptr %17, align 4, !tbaa !9
  %50 = load i32, ptr %16, align 4, !tbaa !9
  %51 = sub i32 %50, %49
  store i32 %51, ptr %16, align 4, !tbaa !9
  store i32 67208, ptr %17, align 4, !tbaa !9
  %52 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %52, ptr %18, align 4, !tbaa !9
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.w2c_hermes, ptr %53, i32 0, i32 6
  %55 = load i32, ptr %18, align 4, !tbaa !9
  %56 = zext i32 %55 to i64
  %57 = add i64 %56, 4
  %58 = call i32 @i32_load(ptr noundef %54, i64 noundef %57)
  store i32 %58, ptr %18, align 4, !tbaa !9
  %59 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %59, ptr %10, align 4, !tbaa !9
  %60 = load i32, ptr %18, align 4, !tbaa !9
  %61 = icmp ne i32 %60, 0
  br i1 %61, label %62, label %64

62:                                               ; preds = %5
  %63 = load i32, ptr %16, align 4, !tbaa !9
  br label %66

64:                                               ; preds = %5
  %65 = load i32, ptr %17, align 4, !tbaa !9
  br label %66

66:                                               ; preds = %64, %62
  %67 = phi i32 [ %63, %62 ], [ %65, %64 ]
  store i32 %67, ptr %16, align 4, !tbaa !9
  %68 = load ptr, ptr %6, align 8, !tbaa !5
  %69 = load i32, ptr %14, align 4, !tbaa !9
  %70 = load i32, ptr %15, align 4, !tbaa !9
  %71 = load i32, ptr %16, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtoNumber_RJS0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(ptr noundef %68, i32 noundef %69, i32 noundef %70, i32 noundef %71)
  %72 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %72, ptr %14, align 4, !tbaa !9
  %73 = load ptr, ptr %6, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.w2c_hermes, ptr %73, i32 0, i32 6
  %75 = load i32, ptr %14, align 4, !tbaa !9
  %76 = zext i32 %75 to i64
  %77 = add i64 %76, 16
  %78 = call i32 @i32_load(ptr noundef %74, i64 noundef %77)
  store i32 %78, ptr %14, align 4, !tbaa !9
  %79 = load i32, ptr %14, align 4, !tbaa !9
  %80 = icmp ne i32 %79, 0
  %81 = xor i1 %80, true
  %82 = zext i1 %81 to i32
  store i32 %82, ptr %14, align 4, !tbaa !9
  %83 = load i32, ptr %14, align 4, !tbaa !9
  %84 = icmp ne i32 %83, 0
  br i1 %84, label %85, label %92

85:                                               ; preds = %66
  %86 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %86, ptr %14, align 4, !tbaa !9
  store i32 0, ptr %15, align 4, !tbaa !9
  %87 = load ptr, ptr %6, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.w2c_hermes, ptr %87, i32 0, i32 6
  %89 = load i32, ptr %14, align 4, !tbaa !9
  %90 = zext i32 %89 to i64
  %91 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %88, i64 noundef %90, i32 noundef %91)
  br label %232

92:                                               ; preds = %66
  %93 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %93, ptr %14, align 4, !tbaa !9
  %94 = load ptr, ptr %6, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.w2c_hermes, ptr %94, i32 0, i32 6
  %96 = load i32, ptr %14, align 4, !tbaa !9
  %97 = zext i32 %96 to i64
  %98 = add i64 %97, 24
  %99 = call double @f64_load(ptr noundef %95, i64 noundef %98)
  store double %99, ptr %22, align 8, !tbaa !11
  %100 = load double, ptr %22, align 8, !tbaa !11
  store double %100, ptr %13, align 8, !tbaa !11
  %101 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %101, ptr %14, align 4, !tbaa !9
  %102 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %102, ptr %15, align 4, !tbaa !9
  store i32 67208, ptr %16, align 4, !tbaa !9
  %103 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %103, ptr %17, align 4, !tbaa !9
  store i32 16, ptr %18, align 4, !tbaa !9
  %104 = load i32, ptr %18, align 4, !tbaa !9
  %105 = load i32, ptr %17, align 4, !tbaa !9
  %106 = sub i32 %105, %104
  store i32 %106, ptr %17, align 4, !tbaa !9
  %107 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %107, ptr %18, align 4, !tbaa !9
  store i32 1, ptr %19, align 4, !tbaa !9
  %108 = load i32, ptr %18, align 4, !tbaa !9
  %109 = load i32, ptr %19, align 4, !tbaa !9
  %110 = icmp ule i32 %108, %109
  %111 = zext i1 %110 to i32
  store i32 %111, ptr %18, align 4, !tbaa !9
  %112 = load i32, ptr %18, align 4, !tbaa !9
  %113 = icmp ne i32 %112, 0
  br i1 %113, label %114, label %116

114:                                              ; preds = %92
  %115 = load i32, ptr %16, align 4, !tbaa !9
  br label %118

116:                                              ; preds = %92
  %117 = load i32, ptr %17, align 4, !tbaa !9
  br label %118

118:                                              ; preds = %116, %114
  %119 = phi i32 [ %115, %114 ], [ %117, %116 ]
  store i32 %119, ptr %16, align 4, !tbaa !9
  %120 = load ptr, ptr %6, align 8, !tbaa !5
  %121 = load i32, ptr %14, align 4, !tbaa !9
  %122 = load i32, ptr %15, align 4, !tbaa !9
  %123 = load i32, ptr %16, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtoNumber_RJS0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(ptr noundef %120, i32 noundef %121, i32 noundef %122, i32 noundef %123)
  %124 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %124, ptr %14, align 4, !tbaa !9
  %125 = load ptr, ptr %6, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.w2c_hermes, ptr %125, i32 0, i32 6
  %127 = load i32, ptr %14, align 4, !tbaa !9
  %128 = zext i32 %127 to i64
  %129 = call i32 @i32_load(ptr noundef %126, i64 noundef %128)
  store i32 %129, ptr %14, align 4, !tbaa !9
  %130 = load i32, ptr %14, align 4, !tbaa !9
  %131 = icmp ne i32 %130, 0
  %132 = xor i1 %131, true
  %133 = zext i1 %132 to i32
  store i32 %133, ptr %14, align 4, !tbaa !9
  %134 = load i32, ptr %14, align 4, !tbaa !9
  %135 = icmp ne i32 %134, 0
  br i1 %135, label %136, label %143

136:                                              ; preds = %118
  %137 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %137, ptr %14, align 4, !tbaa !9
  store i32 0, ptr %15, align 4, !tbaa !9
  %138 = load ptr, ptr %6, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.w2c_hermes, ptr %138, i32 0, i32 6
  %140 = load i32, ptr %14, align 4, !tbaa !9
  %141 = zext i32 %140 to i64
  %142 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %139, i64 noundef %141, i32 noundef %142)
  br label %232

143:                                              ; preds = %118
  %144 = call double @f64_reinterpret_i64(i64 noundef 9221120237041090560)
  store double %144, ptr %22, align 8, !tbaa !11
  %145 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %145, ptr %15, align 4, !tbaa !9
  %146 = load ptr, ptr %6, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.w2c_hermes, ptr %146, i32 0, i32 6
  %148 = load i32, ptr %15, align 4, !tbaa !9
  %149 = zext i32 %148 to i64
  %150 = add i64 %149, 8
  %151 = call double @f64_load(ptr noundef %147, i64 noundef %150)
  store double %151, ptr %23, align 8, !tbaa !11
  %152 = load double, ptr %23, align 8, !tbaa !11
  store double %152, ptr %12, align 8, !tbaa !11
  %153 = load double, ptr %12, align 8, !tbaa !11
  store double %153, ptr %24, align 8, !tbaa !11
  %154 = load double, ptr %23, align 8, !tbaa !11
  %155 = load double, ptr %24, align 8, !tbaa !11
  %156 = fcmp une double %154, %155
  %157 = zext i1 %156 to i32
  store i32 %157, ptr %15, align 4, !tbaa !9
  %158 = load i32, ptr %15, align 4, !tbaa !9
  %159 = icmp ne i32 %158, 0
  br i1 %159, label %160, label %161

160:                                              ; preds = %143
  br label %200

161:                                              ; preds = %143
  store double 1.000000e+00, ptr %22, align 8, !tbaa !11
  %162 = load double, ptr %12, align 8, !tbaa !11
  store double %162, ptr %23, align 8, !tbaa !11
  store double 0.000000e+00, ptr %24, align 8, !tbaa !11
  %163 = load double, ptr %23, align 8, !tbaa !11
  %164 = load double, ptr %24, align 8, !tbaa !11
  %165 = fcmp oeq double %163, %164
  %166 = zext i1 %165 to i32
  store i32 %166, ptr %15, align 4, !tbaa !9
  %167 = load i32, ptr %15, align 4, !tbaa !9
  %168 = icmp ne i32 %167, 0
  br i1 %168, label %169, label %170

169:                                              ; preds = %161
  br label %200

170:                                              ; preds = %161
  %171 = load double, ptr %13, align 8, !tbaa !11
  store double %171, ptr %22, align 8, !tbaa !11
  %172 = load double, ptr %22, align 8, !tbaa !11
  %173 = call double @wasm_fabs(double noundef %172)
  store double %173, ptr %22, align 8, !tbaa !11
  store double 1.000000e+00, ptr %23, align 8, !tbaa !11
  %174 = load double, ptr %22, align 8, !tbaa !11
  %175 = load double, ptr %23, align 8, !tbaa !11
  %176 = fcmp oeq double %174, %175
  %177 = zext i1 %176 to i32
  store i32 %177, ptr %14, align 4, !tbaa !9
  %178 = load i32, ptr %14, align 4, !tbaa !9
  %179 = icmp ne i32 %178, 0
  br i1 %179, label %180, label %193

180:                                              ; preds = %170
  %181 = call double @f64_reinterpret_i64(i64 noundef 9221120237041090560)
  store double %181, ptr %22, align 8, !tbaa !11
  %182 = load double, ptr %12, align 8, !tbaa !11
  store double %182, ptr %23, align 8, !tbaa !11
  %183 = load double, ptr %23, align 8, !tbaa !11
  %184 = call double @wasm_fabs(double noundef %183)
  store double %184, ptr %23, align 8, !tbaa !11
  store double 0x7FF0000000000000, ptr %24, align 8, !tbaa !11
  %185 = load double, ptr %23, align 8, !tbaa !11
  %186 = load double, ptr %24, align 8, !tbaa !11
  %187 = fcmp oeq double %185, %186
  %188 = zext i1 %187 to i32
  store i32 %188, ptr %15, align 4, !tbaa !9
  %189 = load i32, ptr %15, align 4, !tbaa !9
  %190 = icmp ne i32 %189, 0
  br i1 %190, label %191, label %192

191:                                              ; preds = %180
  br label %200

192:                                              ; preds = %180
  br label %193

193:                                              ; preds = %192, %170
  %194 = load double, ptr %13, align 8, !tbaa !11
  store double %194, ptr %22, align 8, !tbaa !11
  %195 = load double, ptr %12, align 8, !tbaa !11
  store double %195, ptr %23, align 8, !tbaa !11
  %196 = load ptr, ptr %6, align 8, !tbaa !5
  %197 = load double, ptr %22, align 8, !tbaa !11
  %198 = load double, ptr %23, align 8, !tbaa !11
  %199 = call double @w2c_hermes_pow(ptr noundef %196, double noundef %197, double noundef %198)
  store double %199, ptr %22, align 8, !tbaa !11
  br label %200

200:                                              ; preds = %193, %191, %169, %160
  %201 = load double, ptr %22, align 8, !tbaa !11
  store double %201, ptr %12, align 8, !tbaa !11
  %202 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %202, ptr %14, align 4, !tbaa !9
  store i32 1, ptr %15, align 4, !tbaa !9
  %203 = load ptr, ptr %6, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.w2c_hermes, ptr %203, i32 0, i32 6
  %205 = load i32, ptr %14, align 4, !tbaa !9
  %206 = zext i32 %205 to i64
  %207 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %204, i64 noundef %206, i32 noundef %207)
  %208 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %208, ptr %14, align 4, !tbaa !9
  store i64 9221120237041090560, ptr %20, align 8, !tbaa !19
  %209 = load double, ptr %12, align 8, !tbaa !11
  store double %209, ptr %24, align 8, !tbaa !11
  %210 = load double, ptr %24, align 8, !tbaa !11
  %211 = call i64 @i64_reinterpret_f64(double noundef %210)
  store i64 %211, ptr %21, align 8, !tbaa !19
  %212 = load double, ptr %12, align 8, !tbaa !11
  store double %212, ptr %25, align 8, !tbaa !11
  %213 = load double, ptr %12, align 8, !tbaa !11
  store double %213, ptr %26, align 8, !tbaa !11
  %214 = load double, ptr %25, align 8, !tbaa !11
  %215 = load double, ptr %26, align 8, !tbaa !11
  %216 = fcmp une double %214, %215
  %217 = zext i1 %216 to i32
  store i32 %217, ptr %17, align 4, !tbaa !9
  %218 = load i32, ptr %17, align 4, !tbaa !9
  %219 = icmp ne i32 %218, 0
  br i1 %219, label %220, label %222

220:                                              ; preds = %200
  %221 = load i64, ptr %20, align 8, !tbaa !19
  br label %224

222:                                              ; preds = %200
  %223 = load i64, ptr %21, align 8, !tbaa !19
  br label %224

224:                                              ; preds = %222, %220
  %225 = phi i64 [ %221, %220 ], [ %223, %222 ]
  store i64 %225, ptr %20, align 8, !tbaa !19
  %226 = load ptr, ptr %6, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.w2c_hermes, ptr %226, i32 0, i32 6
  %228 = load i32, ptr %14, align 4, !tbaa !9
  %229 = zext i32 %228 to i64
  %230 = add i64 %229, 8
  %231 = load i64, ptr %20, align 8, !tbaa !19
  call void @i64_store(ptr noundef %227, i64 noundef %230, i64 noundef %231)
  br label %232

232:                                              ; preds = %224, %136, %85
  %233 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %233, ptr %14, align 4, !tbaa !9
  store i32 32, ptr %15, align 4, !tbaa !9
  %234 = load i32, ptr %15, align 4, !tbaa !9
  %235 = load i32, ptr %14, align 4, !tbaa !9
  %236 = add i32 %235, %234
  store i32 %236, ptr %14, align 4, !tbaa !9
  %237 = load i32, ptr %14, align 4, !tbaa !9
  %238 = load ptr, ptr %6, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.w2c_hermes, ptr %238, i32 0, i32 3
  store i32 %237, ptr %239, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  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 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, 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
  ret void
}

declare double @w2c_hermes_pow(ptr noundef, double noundef, double noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { "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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !10, i64 24}
!14 = !{!"w2c_hermes", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !15, i64 40, !18, i64 80}
!15 = !{!"", !6, i64 0, !16, i64 8, !16, i64 16, !16, i64 24, !17, i64 32}
!16 = !{!"long", !7, i64 0}
!17 = !{!"_Bool", !7, i64 0}
!18 = !{!"", !6, i64 0, !10, i64 8, !10, i64 12}
!19 = !{!16, !16, 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: inlinehint nounwind uwtable
declare hidden void @i32_store(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @i32_load(ptr noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i64_store(ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
declare hidden double @wasm_fabs(double noundef) local_unnamed_addr #1

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden double @f64_load(ptr noundef, i64 noundef) local_unnamed_addr #0

declare void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtoNumber_RJS0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AmathPow0x28void0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3ANativeArgs0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #1 {
  %6 = getelementptr inbounds i8, ptr %0, i64 24
  %7 = load i32, ptr %6, align 8, !tbaa !5
  %8 = add i32 %7, -32
  store i32 %8, ptr %6, align 8, !tbaa !5
  %9 = add i32 %7, -16
  %10 = getelementptr inbounds i8, ptr %0, i64 40
  %11 = zext i32 %4 to i64
  %12 = tail call i32 @i32_load(ptr noundef nonnull %10, i64 noundef %11)
  %13 = add i32 %12, -8
  %14 = add nuw nsw i64 %11, 4
  %15 = tail call i32 @i32_load(ptr noundef nonnull %10, i64 noundef %14)
  %.not = icmp eq i32 %15, 0
  %16 = select i1 %.not, i32 67208, i32 %13
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtoNumber_RJS0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(ptr noundef %0, i32 noundef %9, i32 noundef %3, i32 noundef %16) #3
  %17 = zext i32 %8 to i64
  %18 = add nuw nsw i64 %17, 16
  %19 = tail call i32 @i32_load(ptr noundef nonnull %10, i64 noundef %18)
  %.not114 = icmp eq i32 %19, 0
  br i1 %.not114, label %20, label %22

20:                                               ; preds = %5
  %21 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %10, i64 noundef %21, i32 noundef 0)
  br label %53

22:                                               ; preds = %5
  %23 = add nuw nsw i64 %17, 24
  %24 = tail call double @f64_load(ptr noundef nonnull %10, i64 noundef %23)
  %25 = add i32 %12, -16
  %26 = icmp ult i32 %15, 2
  %27 = select i1 %26, i32 67208, i32 %25
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtoNumber_RJS0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(ptr noundef nonnull %0, i32 noundef %8, i32 noundef %3, i32 noundef %27) #3
  %28 = tail call i32 @i32_load(ptr noundef nonnull %10, i64 noundef %17)
  %.not115 = icmp eq i32 %28, 0
  br i1 %.not115, label %29, label %31

29:                                               ; preds = %22
  %30 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %10, i64 noundef %30, i32 noundef 0)
  br label %53

31:                                               ; preds = %22
  %32 = tail call double @f64_reinterpret_i64(i64 noundef 9221120237041090560)
  %33 = add nuw nsw i64 %17, 8
  %34 = tail call double @f64_load(ptr noundef nonnull %10, i64 noundef %33)
  %35 = fcmp uno double %34, 0.000000e+00
  br i1 %35, label %47, label %36

36:                                               ; preds = %31
  %37 = fcmp oeq double %34, 0.000000e+00
  br i1 %37, label %47, label %38

38:                                               ; preds = %36
  %39 = tail call double @wasm_fabs(double noundef %24)
  %40 = fcmp oeq double %39, 1.000000e+00
  br i1 %40, label %41, label %45

41:                                               ; preds = %38
  %42 = tail call double @f64_reinterpret_i64(i64 noundef 9221120237041090560)
  %43 = tail call double @wasm_fabs(double noundef %34)
  %44 = fcmp oeq double %43, 0x7FF0000000000000
  br i1 %44, label %47, label %45

45:                                               ; preds = %41, %38
  %46 = tail call double @w2c_hermes_pow(ptr noundef nonnull %0, double noundef %24, double noundef %34) #3
  br label %47

47:                                               ; preds = %41, %36, %31, %45
  %.0 = phi double [ %32, %31 ], [ 1.000000e+00, %36 ], [ %42, %41 ], [ %46, %45 ]
  %48 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %10, i64 noundef %48, i32 noundef 1)
  %49 = tail call i64 @i64_reinterpret_f64(double noundef %.0)
  %50 = fcmp uno double %.0, 0.000000e+00
  %51 = select i1 %50, i64 9221120237041090560, i64 %49
  %52 = add nuw nsw i64 %48, 8
  tail call void @i64_store(ptr noundef nonnull %10, i64 noundef %52, i64 noundef %51)
  br label %53

53:                                               ; preds = %47, %29, %20
  store i32 %7, ptr %6, align 8, !tbaa !5
  ret void
}

declare double @w2c_hermes_pow(ptr noundef, double noundef, double noundef) local_unnamed_addr #2

attributes #0 = { 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 #1 = { 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 = { "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, !10, i64 24}
!6 = !{!"w2c_hermes", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !11, i64 40, !14, i64 80}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"", !7, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !13, i64 32}
!12 = !{!"long", !8, i64 0}
!13 = !{!"_Bool", !8, i64 0}
!14 = !{!"", !7, i64 0, !10, i64 8, !10, i64 12}


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