; LLVM IR from facebook/hermes :: API/hermes_sandbox/external (hermes_sandbox_impl_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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: noreturn
declare void @wasm_rt_trap(i32 noundef) #2

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtoNumeric_RJS0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #4

declare i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3ABigIntPrimitive0x3E0x3A0x3AHandle0x28hermes0x3A0x3Avm0x3A0x3AHandleRootOwner0x260x2C0x20hermes0x3A0x3Avm0x3A0x3ABigIntPrimitive0x2A0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #3

declare i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHermesValue0x3A0x3AgetBigInt0x280x290x20const(ptr noundef, i32 noundef) #3

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

65:                                               ; preds = %4
  %66 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %66, ptr %13, align 4, !tbaa !9
  %67 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %67, ptr %14, align 4, !tbaa !9
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.w2c_hermes, ptr %68, i32 0, i32 6
  %70 = load i32, ptr %14, align 4, !tbaa !9
  %71 = zext i32 %70 to i64
  %72 = call i32 @i32_load(ptr noundef %69, i64 noundef %71)
  store i32 %72, ptr %14, align 4, !tbaa !9
  store i32 1, ptr %15, align 4, !tbaa !9
  %73 = load i32, ptr %15, align 4, !tbaa !9
  %74 = load i32, ptr %14, align 4, !tbaa !9
  %75 = add i32 %74, %73
  store i32 %75, ptr %14, align 4, !tbaa !9
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.w2c_hermes, ptr %76, i32 0, i32 6
  %78 = load i32, ptr %13, align 4, !tbaa !9
  %79 = zext i32 %78 to i64
  %80 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %77, i64 noundef %79, i32 noundef %80)
  br label %81

81:                                               ; preds = %65, %4
  %82 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %82, ptr %13, align 4, !tbaa !9
  store i32 32, ptr %14, align 4, !tbaa !9
  %83 = load i32, ptr %14, align 4, !tbaa !9
  %84 = load i32, ptr %13, align 4, !tbaa !9
  %85 = add i32 %84, %83
  store i32 %85, ptr %13, align 4, !tbaa !9
  %86 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %86, ptr %14, align 4, !tbaa !9
  %87 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %87, ptr %15, align 4, !tbaa !9
  store i32 24, ptr %16, align 4, !tbaa !9
  %88 = load i32, ptr %16, align 4, !tbaa !9
  %89 = load i32, ptr %15, align 4, !tbaa !9
  %90 = add i32 %89, %88
  store i32 %90, ptr %15, align 4, !tbaa !9
  %91 = load ptr, ptr %5, align 8, !tbaa !5
  %92 = load i32, ptr %13, align 4, !tbaa !9
  %93 = load i32, ptr %14, align 4, !tbaa !9
  %94 = load i32, ptr %15, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtoNumeric_RJS0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(ptr noundef %91, i32 noundef %92, i32 noundef %93, i32 noundef %94)
  %95 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %95, ptr %13, align 4, !tbaa !9
  %96 = load ptr, ptr %5, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.w2c_hermes, ptr %96, i32 0, i32 6
  %98 = load i32, ptr %13, align 4, !tbaa !9
  %99 = zext i32 %98 to i64
  %100 = add i64 %99, 24
  %101 = call i32 @i32_load(ptr noundef %97, i64 noundef %100)
  store i32 %101, ptr %13, align 4, !tbaa !9
  %102 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %102, ptr %8, align 4, !tbaa !9
  %103 = load i32, ptr %13, align 4, !tbaa !9
  %104 = icmp ne i32 %103, 0
  br i1 %104, label %105, label %121

105:                                              ; preds = %81
  %106 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %106, ptr %13, align 4, !tbaa !9
  %107 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %107, ptr %14, align 4, !tbaa !9
  %108 = load ptr, ptr %5, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.w2c_hermes, ptr %108, i32 0, i32 6
  %110 = load i32, ptr %14, align 4, !tbaa !9
  %111 = zext i32 %110 to i64
  %112 = call i32 @i32_load(ptr noundef %109, i64 noundef %111)
  store i32 %112, ptr %14, align 4, !tbaa !9
  store i32 1, ptr %15, align 4, !tbaa !9
  %113 = load i32, ptr %15, align 4, !tbaa !9
  %114 = load i32, ptr %14, align 4, !tbaa !9
  %115 = sub i32 %114, %113
  store i32 %115, ptr %14, align 4, !tbaa !9
  %116 = load ptr, ptr %5, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.w2c_hermes, ptr %116, i32 0, i32 6
  %118 = load i32, ptr %13, align 4, !tbaa !9
  %119 = zext i32 %118 to i64
  %120 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %117, i64 noundef %119, i32 noundef %120)
  br label %121

121:                                              ; preds = %105, %81
  %122 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %122, ptr %13, align 4, !tbaa !9
  %123 = load ptr, ptr %5, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.w2c_hermes, ptr %123, i32 0, i32 6
  %125 = load i32, ptr %13, align 4, !tbaa !9
  %126 = zext i32 %125 to i64
  %127 = add i64 %126, 32
  %128 = call i32 @i32_load(ptr noundef %124, i64 noundef %127)
  store i32 %128, ptr %13, align 4, !tbaa !9
  %129 = load i32, ptr %13, align 4, !tbaa !9
  switch i32 %129, label %132 [
    i32 0, label %130
    i32 1, label %131
  ]

130:                                              ; preds = %121
  br label %133

131:                                              ; preds = %121
  br label %158

132:                                              ; preds = %121
  br label %140

133:                                              ; preds = %130
  %134 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %134, ptr %13, align 4, !tbaa !9
  store i32 0, ptr %14, align 4, !tbaa !9
  %135 = load ptr, ptr %5, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.w2c_hermes, ptr %135, i32 0, i32 6
  %137 = load i32, ptr %13, align 4, !tbaa !9
  %138 = zext i32 %137 to i64
  %139 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %136, i64 noundef %138, i32 noundef %139)
  br label %356

140:                                              ; preds = %132
  store i32 0, ptr %13, align 4, !tbaa !9
  %141 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %141, ptr %9, align 4, !tbaa !9
  store i32 109639, ptr %14, align 4, !tbaa !9
  %142 = load i32, ptr %14, align 4, !tbaa !9
  %143 = load i32, ptr %13, align 4, !tbaa !9
  %144 = add i32 %143, %142
  store i32 %144, ptr %13, align 4, !tbaa !9
  %145 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %145, ptr %14, align 4, !tbaa !9
  store i32 77564, ptr %15, align 4, !tbaa !9
  %146 = load i32, ptr %15, align 4, !tbaa !9
  %147 = load i32, ptr %14, align 4, !tbaa !9
  %148 = add i32 %147, %146
  store i32 %148, ptr %14, align 4, !tbaa !9
  store i32 179, ptr %15, align 4, !tbaa !9
  %149 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %149, ptr %16, align 4, !tbaa !9
  store i32 90402, ptr %17, align 4, !tbaa !9
  %150 = load i32, ptr %17, align 4, !tbaa !9
  %151 = load i32, ptr %16, align 4, !tbaa !9
  %152 = add i32 %151, %150
  store i32 %152, ptr %16, align 4, !tbaa !9
  %153 = load ptr, ptr %5, align 8, !tbaa !5
  %154 = load i32, ptr %13, align 4, !tbaa !9
  %155 = load i32, ptr %14, align 4, !tbaa !9
  %156 = load i32, ptr %15, align 4, !tbaa !9
  %157 = load i32, ptr %16, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %153, i32 noundef %154, i32 noundef %155, i32 noundef %156, i32 noundef %157)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

158:                                              ; preds = %131
  %159 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %159, ptr %13, align 4, !tbaa !9
  %160 = load ptr, ptr %5, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.w2c_hermes, ptr %160, i32 0, i32 6
  %162 = load i32, ptr %13, align 4, !tbaa !9
  %163 = zext i32 %162 to i64
  %164 = add i64 %163, 40
  %165 = call i64 @i64_load(ptr noundef %161, i64 noundef %164)
  store i64 %165, ptr %18, align 8, !tbaa !11
  %166 = load i64, ptr %18, align 8, !tbaa !11
  store i64 %166, ptr %11, align 8, !tbaa !11
  store i64 48, ptr %19, align 8, !tbaa !11
  %167 = load i64, ptr %18, align 8, !tbaa !11
  %168 = load i64, ptr %19, align 8, !tbaa !11
  %169 = and i64 %168, 63
  %170 = ashr i64 %167, %169
  store i64 %170, ptr %18, align 8, !tbaa !11
  %171 = load i64, ptr %18, align 8, !tbaa !11
  %172 = trunc i64 %171 to i32
  store i32 %172, ptr %13, align 4, !tbaa !9
  store i32 -2, ptr %14, align 4, !tbaa !9
  %173 = load i32, ptr %13, align 4, !tbaa !9
  %174 = load i32, ptr %14, align 4, !tbaa !9
  %175 = icmp ne i32 %173, %174
  %176 = zext i1 %175 to i32
  store i32 %176, ptr %13, align 4, !tbaa !9
  %177 = load i32, ptr %13, align 4, !tbaa !9
  %178 = icmp ne i32 %177, 0
  br i1 %178, label %179, label %223

179:                                              ; preds = %158
  %180 = load i64, ptr %11, align 8, !tbaa !11
  store i64 %180, ptr %18, align 8, !tbaa !11
  store i64 -1970324836974592, ptr %19, align 8, !tbaa !11
  %181 = load i64, ptr %18, align 8, !tbaa !11
  %182 = load i64, ptr %19, align 8, !tbaa !11
  %183 = icmp uge i64 %181, %182
  %184 = zext i1 %183 to i32
  store i32 %184, ptr %13, align 4, !tbaa !9
  %185 = load i32, ptr %13, align 4, !tbaa !9
  %186 = icmp ne i32 %185, 0
  br i1 %186, label %187, label %188

187:                                              ; preds = %179
  br label %364

188:                                              ; preds = %179
  %189 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %189, ptr %13, align 4, !tbaa !9
  store i32 1, ptr %14, align 4, !tbaa !9
  %190 = load ptr, ptr %5, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.w2c_hermes, ptr %190, i32 0, i32 6
  %192 = load i32, ptr %13, align 4, !tbaa !9
  %193 = zext i32 %192 to i64
  %194 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %191, i64 noundef %193, i32 noundef %194)
  %195 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %195, ptr %13, align 4, !tbaa !9
  store i64 9221120237041090560, ptr %19, align 8, !tbaa !11
  %196 = load i64, ptr %11, align 8, !tbaa !11
  store i64 %196, ptr %20, align 8, !tbaa !11
  store i64 -9223372036854775808, ptr %21, align 8, !tbaa !11
  %197 = load i64, ptr %21, align 8, !tbaa !11
  %198 = load i64, ptr %20, align 8, !tbaa !11
  %199 = xor i64 %198, %197
  store i64 %199, ptr %20, align 8, !tbaa !11
  %200 = load i64, ptr %11, align 8, !tbaa !11
  store i64 %200, ptr %21, align 8, !tbaa !11
  %201 = load i64, ptr %21, align 8, !tbaa !11
  %202 = call double @f64_reinterpret_i64(i64 noundef %201)
  store double %202, ptr %22, align 8, !tbaa !13
  %203 = load double, ptr %22, align 8, !tbaa !13
  store double %203, ptr %12, align 8, !tbaa !13
  %204 = load double, ptr %12, align 8, !tbaa !13
  store double %204, ptr %23, align 8, !tbaa !13
  %205 = load double, ptr %22, align 8, !tbaa !13
  %206 = load double, ptr %23, align 8, !tbaa !13
  %207 = fcmp une double %205, %206
  %208 = zext i1 %207 to i32
  store i32 %208, ptr %16, align 4, !tbaa !9
  %209 = load i32, ptr %16, align 4, !tbaa !9
  %210 = icmp ne i32 %209, 0
  br i1 %210, label %211, label %213

211:                                              ; preds = %188
  %212 = load i64, ptr %19, align 8, !tbaa !11
  br label %215

213:                                              ; preds = %188
  %214 = load i64, ptr %20, align 8, !tbaa !11
  br label %215

215:                                              ; preds = %213, %211
  %216 = phi i64 [ %212, %211 ], [ %214, %213 ]
  store i64 %216, ptr %19, align 8, !tbaa !11
  %217 = load ptr, ptr %5, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.w2c_hermes, ptr %217, i32 0, i32 6
  %219 = load i32, ptr %13, align 4, !tbaa !9
  %220 = zext i32 %219 to i64
  %221 = add i64 %220, 8
  %222 = load i64, ptr %19, align 8, !tbaa !11
  call void @i64_store(ptr noundef %218, i64 noundef %221, i64 noundef %222)
  br label %356

223:                                              ; preds = %158
  %224 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %224, ptr %13, align 4, !tbaa !9
  %225 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %225, ptr %14, align 4, !tbaa !9
  store i32 16, ptr %15, align 4, !tbaa !9
  %226 = load i32, ptr %15, align 4, !tbaa !9
  %227 = load i32, ptr %14, align 4, !tbaa !9
  %228 = add i32 %227, %226
  store i32 %228, ptr %14, align 4, !tbaa !9
  %229 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %229, ptr %15, align 4, !tbaa !9
  %230 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %230, ptr %16, align 4, !tbaa !9
  store i32 40, ptr %17, align 4, !tbaa !9
  %231 = load i32, ptr %17, align 4, !tbaa !9
  %232 = load i32, ptr %16, align 4, !tbaa !9
  %233 = add i32 %232, %231
  store i32 %233, ptr %16, align 4, !tbaa !9
  %234 = load ptr, ptr %5, align 8, !tbaa !5
  %235 = load i32, ptr %16, align 4, !tbaa !9
  %236 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHermesValue0x3A0x3AgetBigInt0x280x290x20const(ptr noundef %234, i32 noundef %235)
  store i32 %236, ptr %16, align 4, !tbaa !9
  %237 = load ptr, ptr %5, align 8, !tbaa !5
  %238 = load i32, ptr %14, align 4, !tbaa !9
  %239 = load i32, ptr %15, align 4, !tbaa !9
  %240 = load i32, ptr %16, align 4, !tbaa !9
  %241 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3ABigIntPrimitive0x3E0x3A0x3AHandle0x28hermes0x3A0x3Avm0x3A0x3AHandleRootOwner0x260x2C0x20hermes0x3A0x3Avm0x3A0x3ABigIntPrimitive0x2A0x29(ptr noundef %237, i32 noundef %238, i32 noundef %239, i32 noundef %240)
  store i32 %241, ptr %14, align 4, !tbaa !9
  %242 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %242, ptr %10, align 4, !tbaa !9
  %243 = load ptr, ptr %5, align 8, !tbaa !5
  %244 = getelementptr inbounds %struct.w2c_hermes, ptr %243, i32 0, i32 6
  %245 = load i32, ptr %14, align 4, !tbaa !9
  %246 = zext i32 %245 to i64
  %247 = add i64 %246, 4
  %248 = call i32 @i32_load(ptr noundef %244, i64 noundef %247)
  store i32 %248, ptr %14, align 4, !tbaa !9
  %249 = load ptr, ptr %5, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.w2c_hermes, ptr %249, i32 0, i32 6
  %251 = load i32, ptr %13, align 4, !tbaa !9
  %252 = zext i32 %251 to i64
  %253 = add i64 %252, 12
  %254 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %250, i64 noundef %253, i32 noundef %254)
  %255 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %255, ptr %13, align 4, !tbaa !9
  %256 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %256, ptr %14, align 4, !tbaa !9
  %257 = load ptr, ptr %5, align 8, !tbaa !5
  %258 = getelementptr inbounds %struct.w2c_hermes, ptr %257, i32 0, i32 6
  %259 = load i32, ptr %14, align 4, !tbaa !9
  %260 = zext i32 %259 to i64
  %261 = call i32 @i32_load(ptr noundef %258, i64 noundef %260)
  store i32 %261, ptr %14, align 4, !tbaa !9
  %262 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %262, ptr %8, align 4, !tbaa !9
  %263 = load ptr, ptr %5, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.w2c_hermes, ptr %263, i32 0, i32 6
  %265 = load i32, ptr %13, align 4, !tbaa !9
  %266 = zext i32 %265 to i64
  %267 = add i64 %266, 8
  %268 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %264, i64 noundef %267, i32 noundef %268)
  %269 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %269, ptr %13, align 4, !tbaa !9
  %270 = load i32, ptr %13, align 4, !tbaa !9
  %271 = icmp ne i32 %270, 0
  br i1 %271, label %272, label %288

272:                                              ; preds = %223
  %273 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %273, ptr %13, align 4, !tbaa !9
  %274 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %274, ptr %14, align 4, !tbaa !9
  %275 = load ptr, ptr %5, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct.w2c_hermes, ptr %275, i32 0, i32 6
  %277 = load i32, ptr %14, align 4, !tbaa !9
  %278 = zext i32 %277 to i64
  %279 = call i32 @i32_load(ptr noundef %276, i64 noundef %278)
  store i32 %279, ptr %14, align 4, !tbaa !9
  store i32 1, ptr %15, align 4, !tbaa !9
  %280 = load i32, ptr %15, align 4, !tbaa !9
  %281 = load i32, ptr %14, align 4, !tbaa !9
  %282 = add i32 %281, %280
  store i32 %282, ptr %14, align 4, !tbaa !9
  %283 = load ptr, ptr %5, align 8, !tbaa !5
  %284 = getelementptr inbounds %struct.w2c_hermes, ptr %283, i32 0, i32 6
  %285 = load i32, ptr %13, align 4, !tbaa !9
  %286 = zext i32 %285 to i64
  %287 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %284, i64 noundef %286, i32 noundef %287)
  br label %288

288:                                              ; preds = %272, %223
  %289 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %289, ptr %13, align 4, !tbaa !9
  %290 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %290, ptr %14, align 4, !tbaa !9
  %291 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %291, ptr %15, align 4, !tbaa !9
  store i32 8, ptr %16, align 4, !tbaa !9
  %292 = load i32, ptr %16, align 4, !tbaa !9
  %293 = load i32, ptr %15, align 4, !tbaa !9
  %294 = add i32 %293, %292
  store i32 %294, ptr %15, align 4, !tbaa !9
  %295 = load ptr, ptr %5, align 8, !tbaa !5
  %296 = load i32, ptr %13, align 4, !tbaa !9
  %297 = load i32, ptr %14, align 4, !tbaa !9
  %298 = load i32, ptr %15, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ABigIntPrimitive0x3A0x3AunaryMinus0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3ABigIntPrimitive0x3E0x29(ptr noundef %295, i32 noundef %296, i32 noundef %297, i32 noundef %298)
  %299 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %299, ptr %13, align 4, !tbaa !9
  %300 = load ptr, ptr %5, align 8, !tbaa !5
  %301 = getelementptr inbounds %struct.w2c_hermes, ptr %300, i32 0, i32 6
  %302 = load i32, ptr %13, align 4, !tbaa !9
  %303 = zext i32 %302 to i64
  %304 = add i64 %303, 8
  %305 = call i32 @i32_load(ptr noundef %301, i64 noundef %304)
  store i32 %305, ptr %13, align 4, !tbaa !9
  %306 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %306, ptr %8, align 4, !tbaa !9
  %307 = load i32, ptr %13, align 4, !tbaa !9
  %308 = icmp ne i32 %307, 0
  br i1 %308, label %309, label %325

309:                                              ; preds = %288
  %310 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %310, ptr %13, align 4, !tbaa !9
  %311 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %311, ptr %14, align 4, !tbaa !9
  %312 = load ptr, ptr %5, align 8, !tbaa !5
  %313 = getelementptr inbounds %struct.w2c_hermes, ptr %312, i32 0, i32 6
  %314 = load i32, ptr %14, align 4, !tbaa !9
  %315 = zext i32 %314 to i64
  %316 = call i32 @i32_load(ptr noundef %313, i64 noundef %315)
  store i32 %316, ptr %14, align 4, !tbaa !9
  store i32 1, ptr %15, align 4, !tbaa !9
  %317 = load i32, ptr %15, align 4, !tbaa !9
  %318 = load i32, ptr %14, align 4, !tbaa !9
  %319 = sub i32 %318, %317
  store i32 %319, ptr %14, align 4, !tbaa !9
  %320 = load ptr, ptr %5, align 8, !tbaa !5
  %321 = getelementptr inbounds %struct.w2c_hermes, ptr %320, i32 0, i32 6
  %322 = load i32, ptr %13, align 4, !tbaa !9
  %323 = zext i32 %322 to i64
  %324 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %321, i64 noundef %323, i32 noundef %324)
  br label %325

325:                                              ; preds = %309, %288
  %326 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %326, ptr %13, align 4, !tbaa !9
  %327 = load ptr, ptr %5, align 8, !tbaa !5
  %328 = getelementptr inbounds %struct.w2c_hermes, ptr %327, i32 0, i32 6
  %329 = load i32, ptr %13, align 4, !tbaa !9
  %330 = zext i32 %329 to i64
  %331 = call i32 @i32_load(ptr noundef %328, i64 noundef %330)
  store i32 %331, ptr %13, align 4, !tbaa !9
  %332 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %332, ptr %8, align 4, !tbaa !9
  %333 = load i32, ptr %13, align 4, !tbaa !9
  %334 = icmp ne i32 %333, 0
  %335 = xor i1 %334, true
  %336 = zext i1 %335 to i32
  store i32 %336, ptr %13, align 4, !tbaa !9
  %337 = load i32, ptr %13, align 4, !tbaa !9
  %338 = icmp ne i32 %337, 0
  br i1 %338, label %339, label %340

339:                                              ; preds = %325
  br label %356

340:                                              ; preds = %325
  %341 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %341, ptr %13, align 4, !tbaa !9
  %342 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %342, ptr %14, align 4, !tbaa !9
  %343 = load ptr, ptr %5, align 8, !tbaa !5
  %344 = getelementptr inbounds %struct.w2c_hermes, ptr %343, i32 0, i32 6
  %345 = load i32, ptr %14, align 4, !tbaa !9
  %346 = zext i32 %345 to i64
  %347 = call i32 @i32_load(ptr noundef %344, i64 noundef %346)
  store i32 %347, ptr %14, align 4, !tbaa !9
  store i32 1, ptr %15, align 4, !tbaa !9
  %348 = load i32, ptr %15, align 4, !tbaa !9
  %349 = load i32, ptr %14, align 4, !tbaa !9
  %350 = sub i32 %349, %348
  store i32 %350, ptr %14, align 4, !tbaa !9
  %351 = load ptr, ptr %5, align 8, !tbaa !5
  %352 = getelementptr inbounds %struct.w2c_hermes, ptr %351, i32 0, i32 6
  %353 = load i32, ptr %13, align 4, !tbaa !9
  %354 = zext i32 %353 to i64
  %355 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %352, i64 noundef %354, i32 noundef %355)
  br label %356

356:                                              ; preds = %340, %339, %215, %133
  %357 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %357, ptr %13, align 4, !tbaa !9
  store i32 48, ptr %14, align 4, !tbaa !9
  %358 = load i32, ptr %14, align 4, !tbaa !9
  %359 = load i32, ptr %13, align 4, !tbaa !9
  %360 = add i32 %359, %358
  store i32 %360, ptr %13, align 4, !tbaa !9
  %361 = load i32, ptr %13, align 4, !tbaa !9
  %362 = load ptr, ptr %5, align 8, !tbaa !5
  %363 = getelementptr inbounds %struct.w2c_hermes, ptr %362, i32 0, i32 3
  store i32 %361, ptr %363, align 8, !tbaa !15
  br label %382

364:                                              ; preds = %187
  store i32 0, ptr %13, align 4, !tbaa !9
  %365 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %365, ptr %9, align 4, !tbaa !9
  store i32 118741, ptr %14, align 4, !tbaa !9
  %366 = load i32, ptr %14, align 4, !tbaa !9
  %367 = load i32, ptr %13, align 4, !tbaa !9
  %368 = add i32 %367, %366
  store i32 %368, ptr %13, align 4, !tbaa !9
  %369 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %369, ptr %14, align 4, !tbaa !9
  store i32 83341, ptr %15, align 4, !tbaa !9
  %370 = load i32, ptr %15, align 4, !tbaa !9
  %371 = load i32, ptr %14, align 4, !tbaa !9
  %372 = add i32 %371, %370
  store i32 %372, ptr %14, align 4, !tbaa !9
  store i32 444, ptr %15, align 4, !tbaa !9
  %373 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %373, ptr %16, align 4, !tbaa !9
  store i32 97283, ptr %17, align 4, !tbaa !9
  %374 = load i32, ptr %17, align 4, !tbaa !9
  %375 = load i32, ptr %16, align 4, !tbaa !9
  %376 = add i32 %375, %374
  store i32 %376, ptr %16, align 4, !tbaa !9
  %377 = load ptr, ptr %5, align 8, !tbaa !5
  %378 = load i32, ptr %13, align 4, !tbaa !9
  %379 = load i32, ptr %14, align 4, !tbaa !9
  %380 = load i32, ptr %15, align 4, !tbaa !9
  %381 = load i32, ptr %16, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %377, i32 noundef %378, i32 noundef %379, i32 noundef %380, i32 noundef %381)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

382:                                              ; preds = %356
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  ret void
}

declare void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ABigIntPrimitive0x3A0x3AunaryMinus0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3ABigIntPrimitive0x3E0x29(ptr noundef, i32 noundef, i32 noundef, i32 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 = { noreturn "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 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 #5 = { nounwind }
attributes #6 = { noreturn }

!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: 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: noreturn
declare void @wasm_rt_trap(i32 noundef) local_unnamed_addr #1

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

; 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 i64 @i64_load(ptr 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 dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtoNumeric_RJS0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

declare i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3ABigIntPrimitive0x3E0x3A0x3AHandle0x28hermes0x3A0x3Avm0x3A0x3AHandleRootOwner0x260x2C0x20hermes0x3A0x3Avm0x3A0x3ABigIntPrimitive0x2A0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

declare i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHermesValue0x3A0x3AgetBigInt0x280x290x20const(ptr noundef, i32 noundef) local_unnamed_addr #2

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

16:                                               ; preds = %4
  %17 = zext i32 %14 to i64
  %18 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %17)
  %19 = add i32 %18, 1
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %17, i32 noundef %19)
  br label %20

20:                                               ; preds = %16, %4
  %21 = add i32 %6, -16
  %22 = add i32 %6, -24
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtoNumeric_RJS0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(ptr noundef nonnull %0, i32 noundef %21, i32 noundef %2, i32 noundef %22)
  %23 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %15)
  %.not212 = icmp eq i32 %23, 0
  br i1 %.not212, label %28, label %24

24:                                               ; preds = %20
  %25 = zext i32 %23 to i64
  %26 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %25)
  %27 = add i32 %26, -1
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %25, i32 noundef %27)
  br label %28

28:                                               ; preds = %24, %20
  %29 = add nuw nsw i64 %12, 32
  %30 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %29)
  switch i32 %30, label %33 [
    i32 0, label %31
    i32 1, label %34
  ]

31:                                               ; preds = %28
  %32 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %32, i32 noundef 0)
  br label %74

33:                                               ; preds = %28
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 109639, i32 noundef 77564, i32 noundef 179, i32 noundef 90402) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

34:                                               ; preds = %28
  %35 = add nuw nsw i64 %12, 40
  %36 = tail call i64 @i64_load(ptr noundef nonnull %8, i64 noundef %35)
  %.mask = and i64 %36, -281474976710656
  %.not213 = icmp eq i64 %.mask, -562949953421312
  br i1 %.not213, label %46, label %37

37:                                               ; preds = %34
  %38 = icmp ugt i64 %36, -1970324836974593
  br i1 %38, label %75, label %39

39:                                               ; preds = %37
  %40 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %40, i32 noundef 1)
  %41 = xor i64 %36, -9223372036854775808
  %42 = tail call double @f64_reinterpret_i64(i64 noundef %36)
  %43 = fcmp uno double %42, 0.000000e+00
  %44 = select i1 %43, i64 9221120237041090560, i64 %41
  %45 = add nuw nsw i64 %40, 8
  tail call void @i64_store(ptr noundef nonnull %8, i64 noundef %45, i64 noundef %44)
  br label %74

46:                                               ; preds = %34
  %47 = add i32 %6, -32
  %48 = add i32 %6, -8
  %49 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHermesValue0x3A0x3AgetBigInt0x280x290x20const(ptr noundef nonnull %0, i32 noundef %48) #4
  %50 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3ABigIntPrimitive0x3E0x3A0x3AHandle0x28hermes0x3A0x3Avm0x3A0x3AHandleRootOwner0x260x2C0x20hermes0x3A0x3Avm0x3A0x3ABigIntPrimitive0x2A0x29(ptr noundef nonnull %0, i32 noundef %47, i32 noundef %2, i32 noundef %49) #4
  %51 = zext i32 %50 to i64
  %52 = add nuw nsw i64 %51, 4
  %53 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %52)
  %54 = add nuw nsw i64 %12, 12
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %54, i32 noundef %53)
  %55 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %51)
  %56 = add nuw nsw i64 %12, 8
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %56, i32 noundef %55)
  %.not214 = icmp eq i32 %55, 0
  br i1 %.not214, label %61, label %57

57:                                               ; preds = %46
  %58 = zext i32 %55 to i64
  %59 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %58)
  %60 = add i32 %59, 1
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %58, i32 noundef %60)
  br label %61

61:                                               ; preds = %57, %46
  %62 = add i32 %6, -40
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ABigIntPrimitive0x3A0x3AunaryMinus0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3ABigIntPrimitive0x3E0x29(ptr noundef nonnull %0, i32 noundef %1, i32 noundef %2, i32 noundef %62) #4
  %63 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %56)
  %.not215 = icmp eq i32 %63, 0
  br i1 %.not215, label %68, label %64

64:                                               ; preds = %61
  %65 = zext i32 %63 to i64
  %66 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %65)
  %67 = add i32 %66, -1
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %65, i32 noundef %67)
  br label %68

68:                                               ; preds = %64, %61
  %69 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %51)
  %.not216 = icmp eq i32 %69, 0
  br i1 %.not216, label %74, label %70

70:                                               ; preds = %68
  %71 = zext i32 %69 to i64
  %72 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %71)
  %73 = add i32 %72, -1
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %71, i32 noundef %73)
  br label %74

74:                                               ; preds = %68, %70, %39, %31
  store i32 %6, ptr %5, align 8, !tbaa !5
  ret void

75:                                               ; preds = %37
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 118741, i32 noundef 83341, i32 noundef 444, i32 noundef 97283) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable
}

declare void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ABigIntPrimitive0x3A0x3AunaryMinus0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3ABigIntPrimitive0x3E0x29(ptr noundef, i32 noundef, i32 noundef, i32 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 = { noreturn "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 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 }
attributes #5 = { noreturn 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