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

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

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

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

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

declare i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AGCScope0x3A0x3A_newChunkAndPHV0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef, i32 noundef, i64 noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @i64_load(ptr noundef, i64 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

declare void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ABigIntPrimitive0x3A0x3AfromDouble0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20double0x29(ptr noundef, i32 noundef, i32 noundef, double noundef) #3

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

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

; Function Attrs: nounwind uwtable
declare hidden double @wasm_floor(double noundef) #0

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

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

58:                                               ; preds = %5
  %59 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %59, ptr %15, align 4, !tbaa !9
  store i32 0, ptr %16, align 4, !tbaa !9
  %60 = load ptr, ptr %6, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.w2c_hermes, ptr %60, i32 0, i32 6
  %62 = load i32, ptr %15, align 4, !tbaa !9
  %63 = zext i32 %62 to i64
  %64 = add i64 %63, 40
  %65 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %61, i64 noundef %64, i32 noundef %65)
  %66 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %66, ptr %15, align 4, !tbaa !9
  store i64 115964116993, ptr %20, align 8, !tbaa !11
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.w2c_hermes, ptr %67, i32 0, i32 6
  %69 = load i32, ptr %15, align 4, !tbaa !9
  %70 = zext i32 %69 to i64
  %71 = add i64 %70, 32
  %72 = load i64, ptr %20, align 8, !tbaa !11
  call void @i64_store(ptr noundef %68, i64 noundef %71, i64 noundef %72)
  %73 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %73, ptr %15, align 4, !tbaa !9
  store i32 3, ptr %16, align 4, !tbaa !9
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.w2c_hermes, ptr %74, i32 0, i32 6
  %76 = load i32, ptr %15, align 4, !tbaa !9
  %77 = zext i32 %76 to i64
  %78 = add i64 %77, 16
  %79 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %75, i64 noundef %78, i32 noundef %79)
  %80 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %80, ptr %15, align 4, !tbaa !9
  store i32 35957, ptr %16, align 4, !tbaa !9
  %81 = load ptr, ptr %6, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.w2c_hermes, ptr %81, i32 0, i32 6
  %83 = load i32, ptr %15, align 4, !tbaa !9
  %84 = zext i32 %83 to i64
  %85 = add i64 %84, 8
  %86 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %82, i64 noundef %85, i32 noundef %86)
  %87 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %87, ptr %15, align 4, !tbaa !9
  %88 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %88, ptr %16, align 4, !tbaa !9
  %89 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %89, ptr %17, align 4, !tbaa !9
  store i32 8, ptr %18, align 4, !tbaa !9
  %90 = load i32, ptr %18, align 4, !tbaa !9
  %91 = load i32, ptr %17, align 4, !tbaa !9
  %92 = add i32 %91, %90
  store i32 %92, ptr %17, align 4, !tbaa !9
  %93 = load ptr, ptr %6, align 8, !tbaa !5
  %94 = load i32, ptr %16, align 4, !tbaa !9
  %95 = load i32, ptr %17, align 4, !tbaa !9
  %96 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseTypeError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef %93, i32 noundef %94, i32 noundef %95)
  store i32 %96, ptr %16, align 4, !tbaa !9
  %97 = load ptr, ptr %6, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.w2c_hermes, ptr %97, i32 0, i32 6
  %99 = load i32, ptr %15, align 4, !tbaa !9
  %100 = zext i32 %99 to i64
  %101 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %98, i64 noundef %100, i32 noundef %101)
  br label %342

102:                                              ; preds = %5
  %103 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %103, ptr %15, align 4, !tbaa !9
  %104 = load ptr, ptr %6, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.w2c_hermes, ptr %104, i32 0, i32 6
  %106 = load i32, ptr %15, align 4, !tbaa !9
  %107 = zext i32 %106 to i64
  %108 = add i64 %107, 4
  %109 = call i32 @i32_load(ptr noundef %105, i64 noundef %108)
  store i32 %109, ptr %15, align 4, !tbaa !9
  %110 = load i32, ptr %15, align 4, !tbaa !9
  %111 = icmp ne i32 %110, 0
  br i1 %111, label %112, label %127

112:                                              ; preds = %102
  %113 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %113, ptr %15, align 4, !tbaa !9
  %114 = load ptr, ptr %6, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.w2c_hermes, ptr %114, i32 0, i32 6
  %116 = load i32, ptr %15, align 4, !tbaa !9
  %117 = zext i32 %116 to i64
  %118 = call i32 @i32_load(ptr noundef %115, i64 noundef %117)
  store i32 %118, ptr %15, align 4, !tbaa !9
  store i32 8, ptr %16, align 4, !tbaa !9
  %119 = load i32, ptr %16, align 4, !tbaa !9
  %120 = load i32, ptr %15, align 4, !tbaa !9
  %121 = sub i32 %120, %119
  store i32 %121, ptr %15, align 4, !tbaa !9
  %122 = load ptr, ptr %6, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.w2c_hermes, ptr %122, i32 0, i32 6
  %124 = load i32, ptr %15, align 4, !tbaa !9
  %125 = zext i32 %124 to i64
  %126 = call i64 @i64_load(ptr noundef %123, i64 noundef %125)
  store i64 %126, ptr %19, align 8, !tbaa !11
  br label %128

127:                                              ; preds = %102
  store i64 -1688849860263936, ptr %19, align 8, !tbaa !11
  br label %128

128:                                              ; preds = %127, %112
  %129 = load i64, ptr %19, align 8, !tbaa !11
  store i64 %129, ptr %12, align 8, !tbaa !11
  %130 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %130, ptr %15, align 4, !tbaa !9
  %131 = load ptr, ptr %6, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.w2c_hermes, ptr %131, i32 0, i32 6
  %133 = load i32, ptr %15, align 4, !tbaa !9
  %134 = zext i32 %133 to i64
  %135 = add i64 %134, 4
  %136 = call i32 @i32_load(ptr noundef %132, i64 noundef %135)
  store i32 %136, ptr %15, align 4, !tbaa !9
  %137 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %137, ptr %11, 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 %15, align 4, !tbaa !9
  %141 = zext i32 %140 to i64
  %142 = add i64 %141, 164
  %143 = call i32 @i32_load(ptr noundef %139, i64 noundef %142)
  store i32 %143, ptr %15, align 4, !tbaa !9
  %144 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %144, ptr %10, align 4, !tbaa !9
  %145 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %145, ptr %16, 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 %16, align 4, !tbaa !9
  %149 = zext i32 %148 to i64
  %150 = add i64 %149, 168
  %151 = call i32 @i32_load(ptr noundef %147, i64 noundef %150)
  store i32 %151, ptr %16, align 4, !tbaa !9
  %152 = load i32, ptr %15, align 4, !tbaa !9
  %153 = load i32, ptr %16, align 4, !tbaa !9
  %154 = icmp ult i32 %152, %153
  %155 = zext i1 %154 to i32
  store i32 %155, ptr %15, align 4, !tbaa !9
  %156 = load i32, ptr %15, align 4, !tbaa !9
  %157 = icmp ne i32 %156, 0
  br i1 %157, label %158, label %177

158:                                              ; preds = %128
  %159 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %159, ptr %15, align 4, !tbaa !9
  %160 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %160, ptr %16, align 4, !tbaa !9
  store i32 8, ptr %17, align 4, !tbaa !9
  %161 = load i32, ptr %17, align 4, !tbaa !9
  %162 = load i32, ptr %16, align 4, !tbaa !9
  %163 = add i32 %162, %161
  store i32 %163, ptr %16, align 4, !tbaa !9
  %164 = load ptr, ptr %6, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.w2c_hermes, ptr %164, i32 0, i32 6
  %166 = load i32, ptr %15, align 4, !tbaa !9
  %167 = zext i32 %166 to i64
  %168 = add i64 %167, 164
  %169 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %165, i64 noundef %168, i32 noundef %169)
  %170 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %170, ptr %15, align 4, !tbaa !9
  %171 = load i64, ptr %12, align 8, !tbaa !11
  store i64 %171, ptr %20, align 8, !tbaa !11
  %172 = load ptr, ptr %6, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.w2c_hermes, ptr %172, i32 0, i32 6
  %174 = load i32, ptr %15, align 4, !tbaa !9
  %175 = zext i32 %174 to i64
  %176 = load i64, ptr %20, align 8, !tbaa !11
  call void @i64_store(ptr noundef %173, i64 noundef %175, i64 noundef %176)
  br label %185

177:                                              ; preds = %128
  %178 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %178, ptr %15, align 4, !tbaa !9
  %179 = load i64, ptr %12, align 8, !tbaa !11
  store i64 %179, ptr %20, align 8, !tbaa !11
  %180 = load ptr, ptr %6, align 8, !tbaa !5
  %181 = load i32, ptr %15, align 4, !tbaa !9
  %182 = load i64, ptr %20, align 8, !tbaa !11
  %183 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AGCScope0x3A0x3A_newChunkAndPHV0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef %180, i32 noundef %181, i64 noundef %182)
  store i32 %183, ptr %15, align 4, !tbaa !9
  %184 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %184, ptr %10, align 4, !tbaa !9
  br label %185

185:                                              ; preds = %177, %158
  %186 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %186, ptr %15, align 4, !tbaa !9
  store i32 8, ptr %16, align 4, !tbaa !9
  %187 = load i32, ptr %16, align 4, !tbaa !9
  %188 = load i32, ptr %15, align 4, !tbaa !9
  %189 = add i32 %188, %187
  store i32 %189, ptr %15, align 4, !tbaa !9
  %190 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %190, ptr %16, align 4, !tbaa !9
  %191 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %191, ptr %17, align 4, !tbaa !9
  store i32 2, ptr %18, align 4, !tbaa !9
  %192 = load ptr, ptr %6, align 8, !tbaa !5
  %193 = load i32, ptr %15, align 4, !tbaa !9
  %194 = load i32, ptr %16, align 4, !tbaa !9
  %195 = load i32, ptr %17, align 4, !tbaa !9
  %196 = load i32, ptr %18, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtoPrimitive_RJS0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3APreferredType0x29(ptr noundef %192, i32 noundef %193, i32 noundef %194, i32 noundef %195, i32 noundef %196)
  %197 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %197, ptr %15, align 4, !tbaa !9
  %198 = load ptr, ptr %6, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.w2c_hermes, ptr %198, i32 0, i32 6
  %200 = load i32, ptr %15, align 4, !tbaa !9
  %201 = zext i32 %200 to i64
  %202 = add i64 %201, 8
  %203 = call i32 @i32_load(ptr noundef %199, i64 noundef %202)
  store i32 %203, ptr %15, align 4, !tbaa !9
  %204 = load i32, ptr %15, align 4, !tbaa !9
  %205 = icmp ne i32 %204, 0
  %206 = xor i1 %205, true
  %207 = zext i1 %206 to i32
  store i32 %207, ptr %15, align 4, !tbaa !9
  %208 = load i32, ptr %15, align 4, !tbaa !9
  %209 = icmp ne i32 %208, 0
  br i1 %209, label %210, label %217

210:                                              ; preds = %185
  %211 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %211, ptr %15, align 4, !tbaa !9
  store i32 0, ptr %16, align 4, !tbaa !9
  %212 = load ptr, ptr %6, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.w2c_hermes, ptr %212, i32 0, i32 6
  %214 = load i32, ptr %15, align 4, !tbaa !9
  %215 = zext i32 %214 to i64
  %216 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %213, i64 noundef %215, i32 noundef %216)
  br label %342

217:                                              ; preds = %185
  %218 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %218, ptr %15, align 4, !tbaa !9
  %219 = load ptr, ptr %6, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.w2c_hermes, ptr %219, i32 0, i32 6
  %221 = load i32, ptr %15, align 4, !tbaa !9
  %222 = zext i32 %221 to i64
  %223 = add i64 %222, 16
  %224 = call i64 @i64_load(ptr noundef %220, i64 noundef %223)
  store i64 %224, ptr %19, align 8, !tbaa !11
  %225 = load i64, ptr %19, align 8, !tbaa !11
  store i64 %225, ptr %12, align 8, !tbaa !11
  store i64 -1970324836974593, ptr %20, align 8, !tbaa !11
  %226 = load i64, ptr %19, align 8, !tbaa !11
  %227 = load i64, ptr %20, align 8, !tbaa !11
  %228 = icmp ule i64 %226, %227
  %229 = zext i1 %228 to i32
  store i32 %229, ptr %15, align 4, !tbaa !9
  %230 = load i32, ptr %15, align 4, !tbaa !9
  %231 = icmp ne i32 %230, 0
  br i1 %231, label %232, label %334

232:                                              ; preds = %217
  %233 = load ptr, ptr %6, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.w2c_hermes, ptr %233, i32 0, i32 3
  %235 = load i32, ptr %234, align 8, !tbaa !15
  store i32 %235, ptr %15, align 4, !tbaa !9
  store i32 48, ptr %16, align 4, !tbaa !9
  %236 = load i32, ptr %16, align 4, !tbaa !9
  %237 = load i32, ptr %15, align 4, !tbaa !9
  %238 = sub i32 %237, %236
  store i32 %238, ptr %15, align 4, !tbaa !9
  %239 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %239, ptr %10, align 4, !tbaa !9
  %240 = load i32, ptr %15, align 4, !tbaa !9
  %241 = load ptr, ptr %6, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.w2c_hermes, ptr %241, i32 0, i32 3
  store i32 %240, ptr %242, align 8, !tbaa !15
  %243 = load i64, ptr %12, align 8, !tbaa !11
  store i64 %243, ptr %19, align 8, !tbaa !11
  %244 = load i64, ptr %19, align 8, !tbaa !11
  %245 = call double @f64_reinterpret_i64(i64 noundef %244)
  store double %245, ptr %21, align 8, !tbaa !13
  %246 = load double, ptr %21, align 8, !tbaa !13
  store double %246, ptr %13, align 8, !tbaa !13
  %247 = load double, ptr %21, align 8, !tbaa !13
  %248 = call i64 @i64_reinterpret_f64(double noundef %247)
  store i64 %248, ptr %19, align 8, !tbaa !11
  store i64 9223372036854775807, ptr %20, align 8, !tbaa !11
  %249 = load i64, ptr %20, align 8, !tbaa !11
  %250 = load i64, ptr %19, align 8, !tbaa !11
  %251 = and i64 %250, %249
  store i64 %251, ptr %19, align 8, !tbaa !11
  store i64 9218868437227405311, ptr %20, align 8, !tbaa !11
  %252 = load i64, ptr %19, align 8, !tbaa !11
  %253 = load i64, ptr %20, align 8, !tbaa !11
  %254 = icmp ule i64 %252, %253
  %255 = zext i1 %254 to i32
  store i32 %255, ptr %15, align 4, !tbaa !9
  %256 = load i32, ptr %15, align 4, !tbaa !9
  %257 = icmp ne i32 %256, 0
  br i1 %257, label %258, label %274

258:                                              ; preds = %232
  %259 = load double, ptr %13, align 8, !tbaa !13
  store double %259, ptr %21, align 8, !tbaa !13
  %260 = load double, ptr %21, align 8, !tbaa !13
  %261 = call double @wasm_fabs(double noundef %260)
  store double %261, ptr %21, align 8, !tbaa !13
  %262 = load double, ptr %21, align 8, !tbaa !13
  store double %262, ptr %14, align 8, !tbaa !13
  %263 = load double, ptr %21, align 8, !tbaa !13
  %264 = call double @wasm_floor(double noundef %263)
  store double %264, ptr %21, align 8, !tbaa !13
  %265 = load double, ptr %14, align 8, !tbaa !13
  store double %265, ptr %22, align 8, !tbaa !13
  %266 = load double, ptr %21, align 8, !tbaa !13
  %267 = load double, ptr %22, align 8, !tbaa !13
  %268 = fcmp oeq double %266, %267
  %269 = zext i1 %268 to i32
  store i32 %269, ptr %15, align 4, !tbaa !9
  %270 = load i32, ptr %15, align 4, !tbaa !9
  %271 = icmp ne i32 %270, 0
  br i1 %271, label %272, label %273

272:                                              ; preds = %258
  br label %318

273:                                              ; preds = %258
  br label %274

274:                                              ; preds = %273, %232
  %275 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %275, ptr %15, align 4, !tbaa !9
  store i32 0, ptr %16, align 4, !tbaa !9
  %276 = load ptr, ptr %6, align 8, !tbaa !5
  %277 = getelementptr inbounds %struct.w2c_hermes, ptr %276, i32 0, i32 6
  %278 = load i32, ptr %15, align 4, !tbaa !9
  %279 = zext i32 %278 to i64
  %280 = add i64 %279, 40
  %281 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %277, i64 noundef %280, i32 noundef %281)
  %282 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %282, ptr %15, align 4, !tbaa !9
  store i64 94489280513, ptr %20, align 8, !tbaa !11
  %283 = load ptr, ptr %6, align 8, !tbaa !5
  %284 = getelementptr inbounds %struct.w2c_hermes, ptr %283, i32 0, i32 6
  %285 = load i32, ptr %15, align 4, !tbaa !9
  %286 = zext i32 %285 to i64
  %287 = add i64 %286, 32
  %288 = load i64, ptr %20, align 8, !tbaa !11
  call void @i64_store(ptr noundef %284, i64 noundef %287, i64 noundef %288)
  %289 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %289, ptr %15, align 4, !tbaa !9
  store i32 3, ptr %16, align 4, !tbaa !9
  %290 = load ptr, ptr %6, align 8, !tbaa !5
  %291 = getelementptr inbounds %struct.w2c_hermes, ptr %290, i32 0, i32 6
  %292 = load i32, ptr %15, align 4, !tbaa !9
  %293 = zext i32 %292 to i64
  %294 = add i64 %293, 16
  %295 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %291, i64 noundef %294, i32 noundef %295)
  %296 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %296, ptr %15, align 4, !tbaa !9
  store i32 43781, ptr %16, align 4, !tbaa !9
  %297 = load ptr, ptr %6, align 8, !tbaa !5
  %298 = getelementptr inbounds %struct.w2c_hermes, ptr %297, i32 0, i32 6
  %299 = load i32, ptr %15, align 4, !tbaa !9
  %300 = zext i32 %299 to i64
  %301 = add i64 %300, 8
  %302 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %298, i64 noundef %301, i32 noundef %302)
  %303 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %303, ptr %15, align 4, !tbaa !9
  %304 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %304, ptr %16, align 4, !tbaa !9
  %305 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %305, ptr %17, align 4, !tbaa !9
  store i32 8, ptr %18, align 4, !tbaa !9
  %306 = load i32, ptr %18, align 4, !tbaa !9
  %307 = load i32, ptr %17, align 4, !tbaa !9
  %308 = add i32 %307, %306
  store i32 %308, ptr %17, align 4, !tbaa !9
  %309 = load ptr, ptr %6, align 8, !tbaa !5
  %310 = load i32, ptr %16, align 4, !tbaa !9
  %311 = load i32, ptr %17, align 4, !tbaa !9
  %312 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseRangeError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef %309, i32 noundef %310, i32 noundef %311)
  store i32 %312, ptr %16, align 4, !tbaa !9
  %313 = load ptr, ptr %6, align 8, !tbaa !5
  %314 = getelementptr inbounds %struct.w2c_hermes, ptr %313, i32 0, i32 6
  %315 = load i32, ptr %15, align 4, !tbaa !9
  %316 = zext i32 %315 to i64
  %317 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %314, i64 noundef %316, i32 noundef %317)
  br label %326

318:                                              ; preds = %272
  %319 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %319, ptr %15, align 4, !tbaa !9
  %320 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %320, ptr %16, align 4, !tbaa !9
  %321 = load double, ptr %13, align 8, !tbaa !13
  store double %321, ptr %23, align 8, !tbaa !13
  %322 = load ptr, ptr %6, align 8, !tbaa !5
  %323 = load i32, ptr %15, align 4, !tbaa !9
  %324 = load i32, ptr %16, align 4, !tbaa !9
  %325 = load double, ptr %23, align 8, !tbaa !13
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ABigIntPrimitive0x3A0x3AfromDouble0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20double0x29(ptr noundef %322, i32 noundef %323, i32 noundef %324, double noundef %325)
  br label %326

326:                                              ; preds = %318, %274
  %327 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %327, ptr %15, align 4, !tbaa !9
  store i32 48, ptr %16, align 4, !tbaa !9
  %328 = load i32, ptr %16, align 4, !tbaa !9
  %329 = load i32, ptr %15, align 4, !tbaa !9
  %330 = add i32 %329, %328
  store i32 %330, ptr %15, align 4, !tbaa !9
  %331 = load i32, ptr %15, align 4, !tbaa !9
  %332 = load ptr, ptr %6, align 8, !tbaa !5
  %333 = getelementptr inbounds %struct.w2c_hermes, ptr %332, i32 0, i32 3
  store i32 %331, ptr %333, align 8, !tbaa !15
  br label %342

334:                                              ; preds = %217
  %335 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %335, ptr %15, align 4, !tbaa !9
  %336 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %336, ptr %16, align 4, !tbaa !9
  %337 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %337, ptr %17, align 4, !tbaa !9
  %338 = load ptr, ptr %6, align 8, !tbaa !5
  %339 = load i32, ptr %15, align 4, !tbaa !9
  %340 = load i32, ptr %16, align 4, !tbaa !9
  %341 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtoBigInt_RJS0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(ptr noundef %338, i32 noundef %339, i32 noundef %340, i32 noundef %341)
  br label %342

342:                                              ; preds = %334, %326, %210, %58
  %343 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %343, ptr %15, align 4, !tbaa !9
  store i32 48, ptr %16, align 4, !tbaa !9
  %344 = load i32, ptr %16, align 4, !tbaa !9
  %345 = load i32, ptr %15, align 4, !tbaa !9
  %346 = add i32 %345, %344
  store i32 %346, ptr %15, align 4, !tbaa !9
  %347 = load i32, ptr %15, align 4, !tbaa !9
  %348 = load ptr, ptr %6, align 8, !tbaa !5
  %349 = getelementptr inbounds %struct.w2c_hermes, ptr %348, i32 0, i32 3
  store i32 %347, ptr %349, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 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 8, 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
}

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 = { "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 = !{!"long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!16, !10, i64 24}
!16 = !{!"w2c_hermes", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !17, i64 40, !19, i64 80}
!17 = !{!"", !6, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !18, i64 32}
!18 = !{!"_Bool", !7, i64 0}
!19 = !{!"", !6, i64 0, !10, i64 8, !10, i64 12}


; 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 i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseTypeError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

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

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

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

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

declare i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AGCScope0x3A0x3A_newChunkAndPHV0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @i64_load(ptr noundef, i64 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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AbigintConstructor0x28void0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3ANativeArgs0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #0 {
  %6 = getelementptr inbounds i8, ptr %0, i64 24
  %7 = load i32, ptr %6, align 8, !tbaa !5
  %8 = add i32 %7, -48
  store i32 %8, ptr %6, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %0, i64 40
  %10 = zext i32 %4 to i64
  %11 = add nuw nsw i64 %10, 8
  %12 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %11)
  %13 = zext i32 %12 to i64
  %14 = tail call i64 @i64_load(ptr noundef nonnull %9, i64 noundef %13)
  %.mask = and i64 %14, -140737488355328
  %.not = icmp eq i64 %.mask, -1688849860263936
  br i1 %.not, label %24, label %15

15:                                               ; preds = %5
  %16 = zext i32 %8 to i64
  %17 = add nuw nsw i64 %16, 40
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %17, i32 noundef 0)
  %18 = add nuw nsw i64 %16, 32
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %18, i64 noundef 115964116993)
  %19 = add nuw nsw i64 %16, 16
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %19, i32 noundef 3)
  %20 = add nuw nsw i64 %16, 8
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %20, i32 noundef 35957)
  %21 = add i32 %7, -40
  %22 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseTypeError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef nonnull %0, i32 noundef %3, i32 noundef %21)
  %23 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %23, i32 noundef %22)
  br label %79

24:                                               ; preds = %5
  %25 = add nuw nsw i64 %10, 4
  %26 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %25)
  %.not189 = icmp eq i32 %26, 0
  br i1 %.not189, label %32, label %27

27:                                               ; preds = %24
  %28 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %10)
  %29 = add i32 %28, -8
  %30 = zext i32 %29 to i64
  %31 = tail call i64 @i64_load(ptr noundef nonnull %9, i64 noundef %30)
  br label %32

32:                                               ; preds = %24, %27
  %.0186 = phi i64 [ %31, %27 ], [ -1688849860263936, %24 ]
  %33 = zext i32 %3 to i64
  %34 = add nuw nsw i64 %33, 4
  %35 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %34)
  %36 = zext i32 %35 to i64
  %37 = add nuw nsw i64 %36, 164
  %38 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %37)
  %39 = add nuw nsw i64 %36, 168
  %40 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %39)
  %41 = icmp ult i32 %38, %40
  br i1 %41, label %42, label %45

42:                                               ; preds = %32
  %43 = add i32 %38, 8
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %37, i32 noundef %43)
  %44 = zext i32 %38 to i64
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %44, i64 noundef %.0186)
  br label %47

45:                                               ; preds = %32
  %46 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AGCScope0x3A0x3A_newChunkAndPHV0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef nonnull %0, i32 noundef %35, i64 noundef %.0186) #3
  br label %47

47:                                               ; preds = %45, %42
  %.0 = phi i32 [ %38, %42 ], [ %46, %45 ]
  %48 = add i32 %7, -40
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtoPrimitive_RJS0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3APreferredType0x29(ptr noundef nonnull %0, i32 noundef %48, i32 noundef %3, i32 noundef %.0, i32 noundef 2) #3
  %49 = zext i32 %8 to i64
  %50 = add nuw nsw i64 %49, 8
  %51 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %50)
  %.not190 = icmp eq i32 %51, 0
  br i1 %.not190, label %52, label %54

52:                                               ; preds = %47
  %53 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %53, i32 noundef 0)
  br label %79

54:                                               ; preds = %47
  %55 = add nuw nsw i64 %49, 16
  %56 = tail call i64 @i64_load(ptr noundef nonnull %9, i64 noundef %55)
  %57 = icmp ult i64 %56, -1970324836974592
  br i1 %57, label %58, label %78

58:                                               ; preds = %54
  %59 = load i32, ptr %6, align 8, !tbaa !5
  %60 = add i32 %59, -48
  store i32 %60, ptr %6, align 8, !tbaa !5
  %61 = tail call double @f64_reinterpret_i64(i64 noundef %56)
  %62 = tail call i64 @i64_reinterpret_f64(double noundef %61)
  %63 = and i64 %62, 9218868437227405312
  %.not191 = icmp eq i64 %63, 9218868437227405312
  br i1 %.not191, label %68, label %64

64:                                               ; preds = %58
  %65 = tail call double @wasm_fabs(double noundef %61)
  %66 = tail call double @wasm_floor(double noundef %65)
  %67 = fcmp oeq double %66, %65
  br i1 %67, label %77, label %68

68:                                               ; preds = %64, %58
  %69 = zext i32 %60 to i64
  %70 = add nuw nsw i64 %69, 40
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %70, i32 noundef 0)
  %71 = add nuw nsw i64 %69, 32
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %71, i64 noundef 94489280513)
  %72 = add nuw nsw i64 %69, 16
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %72, i32 noundef 3)
  %73 = add nuw nsw i64 %69, 8
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %73, i32 noundef 43781)
  %74 = add i32 %59, -40
  %75 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseRangeError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef nonnull %0, i32 noundef %3, i32 noundef %74)
  %76 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %76, i32 noundef %75)
  br label %79

77:                                               ; preds = %64
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ABigIntPrimitive0x3A0x3AfromDouble0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20double0x29(ptr noundef nonnull %0, i32 noundef %1, i32 noundef %3, double noundef %61) #3
  br label %79

78:                                               ; preds = %54
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtoBigInt_RJS0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(ptr noundef nonnull %0, i32 noundef %1, i32 noundef %3, i32 noundef %.0) #3
  br label %79

79:                                               ; preds = %68, %77, %78, %52, %15
  store i32 %7, ptr %6, align 8, !tbaa !5
  ret void
}

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 = { "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,DSEPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass