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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ACallResult0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x2C0x200x28hermes0x3A0x3Avm0x3A0x3Adetail0x3A0x3ACallResultSpecialize0x2920x3E0x20hermes0x3A0x3Avm0x3A0x3AdoIncDecOperSlowPath0x3C0x26hermes0x3A0x3Avm0x3A0x3AdoDec0x28double0x290x3E0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(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 i64, align 8
  %11 = alloca double, align 8
  %12 = alloca i32, align 4
  %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
  %24 = 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 8, ptr %10) #5
  store i64 0, ptr %10, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  store double 0.000000e+00, ptr %11, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  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
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.w2c_hermes, ptr %25, i32 0, i32 3
  %27 = load i32, ptr %26, align 8, !tbaa !15
  store i32 %27, ptr %12, align 4, !tbaa !9
  store i32 -64, ptr %13, align 4, !tbaa !9
  %28 = load i32, ptr %13, align 4, !tbaa !9
  %29 = load i32, ptr %12, align 4, !tbaa !9
  %30 = add i32 %29, %28
  store i32 %30, ptr %12, align 4, !tbaa !9
  %31 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %31, ptr %9, align 4, !tbaa !9
  %32 = load i32, ptr %12, align 4, !tbaa !9
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.w2c_hermes, ptr %33, i32 0, i32 3
  store i32 %32, ptr %34, align 8, !tbaa !15
  %35 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %35, ptr %12, align 4, !tbaa !9
  %36 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %36, ptr %13, align 4, !tbaa !9
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.w2c_hermes, ptr %37, i32 0, i32 6
  %39 = load i32, ptr %13, align 4, !tbaa !9
  %40 = zext i32 %39 to i64
  %41 = add i64 %40, 4
  %42 = call i32 @i32_load(ptr noundef %38, i64 noundef %41)
  store i32 %42, ptr %13, align 4, !tbaa !9
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.w2c_hermes, ptr %43, i32 0, i32 6
  %45 = load i32, ptr %12, align 4, !tbaa !9
  %46 = zext i32 %45 to i64
  %47 = add i64 %46, 44
  %48 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %44, i64 noundef %47, i32 noundef %48)
  %49 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %49, ptr %12, align 4, !tbaa !9
  %50 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %50, ptr %13, align 4, !tbaa !9
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.w2c_hermes, ptr %51, i32 0, i32 6
  %53 = load i32, ptr %13, align 4, !tbaa !9
  %54 = zext i32 %53 to i64
  %55 = call i32 @i32_load(ptr noundef %52, i64 noundef %54)
  store i32 %55, ptr %13, 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 %12, align 4, !tbaa !9
  %59 = zext i32 %58 to i64
  %60 = add i64 %59, 40
  %61 = load i32, ptr %13, 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 %12, align 4, !tbaa !9
  store i32 0, ptr %13, align 4, !tbaa !9
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.w2c_hermes, ptr %63, i32 0, i32 6
  %65 = load i32, ptr %12, align 4, !tbaa !9
  %66 = zext i32 %65 to i64
  %67 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %64, i64 noundef %66, i32 noundef %67)
  %68 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %68, ptr %12, align 4, !tbaa !9
  store i32 48, ptr %13, align 4, !tbaa !9
  %69 = load i32, ptr %13, align 4, !tbaa !9
  %70 = load i32, ptr %12, align 4, !tbaa !9
  %71 = add i32 %70, %69
  store i32 %71, ptr %12, align 4, !tbaa !9
  %72 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %72, ptr %13, align 4, !tbaa !9
  %73 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %73, ptr %14, align 4, !tbaa !9
  store i32 40, ptr %15, align 4, !tbaa !9
  %74 = load i32, ptr %15, align 4, !tbaa !9
  %75 = load i32, ptr %14, align 4, !tbaa !9
  %76 = add i32 %75, %74
  store i32 %76, ptr %14, align 4, !tbaa !9
  store i32 2, ptr %15, align 4, !tbaa !9
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = load i32, ptr %12, align 4, !tbaa !9
  %79 = load i32, ptr %13, align 4, !tbaa !9
  %80 = load i32, ptr %14, align 4, !tbaa !9
  %81 = load i32, ptr %15, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtoPrimitive_RJS0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3APreferredType0x29(ptr noundef %77, i32 noundef %78, i32 noundef %79, i32 noundef %80, i32 noundef %81)
  %82 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %82, ptr %12, align 4, !tbaa !9
  %83 = load ptr, ptr %5, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.w2c_hermes, ptr %83, i32 0, i32 6
  %85 = load i32, ptr %12, align 4, !tbaa !9
  %86 = zext i32 %85 to i64
  %87 = add i64 %86, 40
  %88 = call i32 @i32_load(ptr noundef %84, i64 noundef %87)
  store i32 %88, ptr %12, align 4, !tbaa !9
  %89 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %89, ptr %8, align 4, !tbaa !9
  %90 = load i32, ptr %12, align 4, !tbaa !9
  %91 = icmp ne i32 %90, 0
  br i1 %91, label %92, label %108

92:                                               ; preds = %4
  %93 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %93, ptr %12, align 4, !tbaa !9
  %94 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %94, ptr %13, align 4, !tbaa !9
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.w2c_hermes, ptr %95, i32 0, i32 6
  %97 = load i32, ptr %13, align 4, !tbaa !9
  %98 = zext i32 %97 to i64
  %99 = call i32 @i32_load(ptr noundef %96, i64 noundef %98)
  store i32 %99, ptr %13, align 4, !tbaa !9
  store i32 1, ptr %14, align 4, !tbaa !9
  %100 = load i32, ptr %14, align 4, !tbaa !9
  %101 = load i32, ptr %13, align 4, !tbaa !9
  %102 = sub i32 %101, %100
  store i32 %102, ptr %13, align 4, !tbaa !9
  %103 = load ptr, ptr %5, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.w2c_hermes, ptr %103, i32 0, i32 6
  %105 = load i32, ptr %12, align 4, !tbaa !9
  %106 = zext i32 %105 to i64
  %107 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %104, i64 noundef %106, i32 noundef %107)
  br label %108

108:                                              ; preds = %92, %4
  %109 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %109, ptr %12, align 4, !tbaa !9
  %110 = load ptr, ptr %5, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.w2c_hermes, ptr %110, i32 0, i32 6
  %112 = load i32, ptr %12, align 4, !tbaa !9
  %113 = zext i32 %112 to i64
  %114 = add i64 %113, 48
  %115 = call i32 @i32_load(ptr noundef %111, i64 noundef %114)
  store i32 %115, ptr %12, align 4, !tbaa !9
  %116 = load i32, ptr %12, align 4, !tbaa !9
  switch i32 %116, label %119 [
    i32 0, label %117
    i32 1, label %118
  ]

117:                                              ; preds = %108
  br label %120

118:                                              ; preds = %108
  br label %145

119:                                              ; preds = %108
  br label %127

120:                                              ; preds = %117
  %121 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %121, ptr %12, align 4, !tbaa !9
  store i32 0, ptr %13, align 4, !tbaa !9
  %122 = load ptr, ptr %5, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.w2c_hermes, ptr %122, i32 0, i32 6
  %124 = load i32, ptr %12, align 4, !tbaa !9
  %125 = zext i32 %124 to i64
  %126 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %123, i64 noundef %125, i32 noundef %126)
  br label %375

127:                                              ; preds = %119
  store i32 0, ptr %12, align 4, !tbaa !9
  %128 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %128, ptr %9, align 4, !tbaa !9
  store i32 109639, ptr %13, align 4, !tbaa !9
  %129 = load i32, ptr %13, align 4, !tbaa !9
  %130 = load i32, ptr %12, align 4, !tbaa !9
  %131 = add i32 %130, %129
  store i32 %131, ptr %12, align 4, !tbaa !9
  %132 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %132, ptr %13, align 4, !tbaa !9
  store i32 77564, ptr %14, align 4, !tbaa !9
  %133 = load i32, ptr %14, align 4, !tbaa !9
  %134 = load i32, ptr %13, align 4, !tbaa !9
  %135 = add i32 %134, %133
  store i32 %135, ptr %13, align 4, !tbaa !9
  store i32 179, ptr %14, align 4, !tbaa !9
  %136 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %136, ptr %15, align 4, !tbaa !9
  store i32 90402, ptr %16, align 4, !tbaa !9
  %137 = load i32, ptr %16, align 4, !tbaa !9
  %138 = load i32, ptr %15, align 4, !tbaa !9
  %139 = add i32 %138, %137
  store i32 %139, ptr %15, align 4, !tbaa !9
  %140 = load ptr, ptr %5, align 8, !tbaa !5
  %141 = load i32, ptr %12, align 4, !tbaa !9
  %142 = load i32, ptr %13, align 4, !tbaa !9
  %143 = load i32, ptr %14, align 4, !tbaa !9
  %144 = load i32, ptr %15, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %140, i32 noundef %141, i32 noundef %142, i32 noundef %143, i32 noundef %144)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

145:                                              ; preds = %118
  %146 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %146, ptr %12, align 4, !tbaa !9
  %147 = load ptr, ptr %5, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.w2c_hermes, ptr %147, i32 0, i32 6
  %149 = load i32, ptr %12, align 4, !tbaa !9
  %150 = zext i32 %149 to i64
  %151 = add i64 %150, 56
  %152 = call i64 @i64_load(ptr noundef %148, i64 noundef %151)
  store i64 %152, ptr %18, align 8, !tbaa !11
  %153 = load i64, ptr %18, align 8, !tbaa !11
  store i64 %153, ptr %10, align 8, !tbaa !11
  store i64 48, ptr %19, align 8, !tbaa !11
  %154 = load i64, ptr %18, align 8, !tbaa !11
  %155 = load i64, ptr %19, align 8, !tbaa !11
  %156 = and i64 %155, 63
  %157 = ashr i64 %154, %156
  store i64 %157, ptr %18, align 8, !tbaa !11
  %158 = load i64, ptr %18, align 8, !tbaa !11
  %159 = trunc i64 %158 to i32
  store i32 %159, ptr %12, align 4, !tbaa !9
  store i32 -2, ptr %13, align 4, !tbaa !9
  %160 = load i32, ptr %12, align 4, !tbaa !9
  %161 = load i32, ptr %13, align 4, !tbaa !9
  %162 = icmp ne i32 %160, %161
  %163 = zext i1 %162 to i32
  store i32 %163, ptr %12, align 4, !tbaa !9
  %164 = load i32, ptr %12, align 4, !tbaa !9
  %165 = icmp ne i32 %164, 0
  br i1 %165, label %166, label %320

166:                                              ; preds = %145
  %167 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %167, ptr %12, align 4, !tbaa !9
  store i32 24, ptr %13, align 4, !tbaa !9
  %168 = load i32, ptr %13, align 4, !tbaa !9
  %169 = load i32, ptr %12, align 4, !tbaa !9
  %170 = add i32 %169, %168
  store i32 %170, ptr %12, align 4, !tbaa !9
  %171 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %171, ptr %13, align 4, !tbaa !9
  %172 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %172, ptr %14, align 4, !tbaa !9
  store i32 16, ptr %15, align 4, !tbaa !9
  %173 = load i32, ptr %15, align 4, !tbaa !9
  %174 = load i32, ptr %14, align 4, !tbaa !9
  %175 = add i32 %174, %173
  store i32 %175, ptr %14, align 4, !tbaa !9
  %176 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %176, ptr %15, align 4, !tbaa !9
  %177 = load i64, ptr %10, align 8, !tbaa !11
  store i64 %177, ptr %21, align 8, !tbaa !11
  %178 = load ptr, ptr %5, align 8, !tbaa !5
  %179 = load i32, ptr %14, align 4, !tbaa !9
  %180 = load i32, ptr %15, align 4, !tbaa !9
  %181 = load i64, ptr %21, align 8, !tbaa !11
  %182 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x3A0x3AHandle0x28hermes0x3A0x3Avm0x3A0x3AHandleRootOwner0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef %178, i32 noundef %179, i32 noundef %180, i64 noundef %181)
  store i32 %182, ptr %14, align 4, !tbaa !9
  %183 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %183, ptr %8, align 4, !tbaa !9
  %184 = load ptr, ptr %5, align 8, !tbaa !5
  %185 = load i32, ptr %12, align 4, !tbaa !9
  %186 = load i32, ptr %13, align 4, !tbaa !9
  %187 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtoNumber_RJS0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(ptr noundef %184, i32 noundef %185, i32 noundef %186, i32 noundef %187)
  %188 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %188, ptr %12, align 4, !tbaa !9
  %189 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %189, ptr %13, 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 = add i64 %193, 24
  %195 = call i32 @i32_load(ptr noundef %191, i64 noundef %194)
  store i32 %195, ptr %13, align 4, !tbaa !9
  %196 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %196, ptr %7, align 4, !tbaa !9
  %197 = load ptr, ptr %5, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.w2c_hermes, ptr %197, i32 0, i32 6
  %199 = load i32, ptr %12, align 4, !tbaa !9
  %200 = zext i32 %199 to i64
  %201 = add i64 %200, 48
  %202 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %198, i64 noundef %201, i32 noundef %202)
  %203 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %203, ptr %12, align 4, !tbaa !9
  %204 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %204, ptr %13, align 4, !tbaa !9
  %205 = load ptr, ptr %5, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.w2c_hermes, ptr %205, i32 0, i32 6
  %207 = load i32, ptr %13, align 4, !tbaa !9
  %208 = zext i32 %207 to i64
  %209 = add i64 %208, 32
  %210 = call i64 @i64_load(ptr noundef %206, i64 noundef %209)
  store i64 %210, ptr %19, align 8, !tbaa !11
  %211 = load i64, ptr %19, align 8, !tbaa !11
  store i64 %211, ptr %10, align 8, !tbaa !11
  %212 = load ptr, ptr %5, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.w2c_hermes, ptr %212, i32 0, i32 6
  %214 = load i32, ptr %12, align 4, !tbaa !9
  %215 = zext i32 %214 to i64
  %216 = add i64 %215, 56
  %217 = load i64, ptr %19, align 8, !tbaa !11
  call void @i64_store(ptr noundef %213, i64 noundef %216, i64 noundef %217)
  %218 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %218, ptr %12, align 4, !tbaa !9
  %219 = load ptr, ptr %5, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.w2c_hermes, ptr %219, i32 0, i32 6
  %221 = load i32, ptr %12, align 4, !tbaa !9
  %222 = zext i32 %221 to i64
  %223 = call i32 @i32_load(ptr noundef %220, i64 noundef %222)
  store i32 %223, ptr %12, align 4, !tbaa !9
  %224 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %224, ptr %8, align 4, !tbaa !9
  %225 = load i32, ptr %12, align 4, !tbaa !9
  %226 = icmp ne i32 %225, 0
  br i1 %226, label %227, label %243

227:                                              ; preds = %166
  %228 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %228, ptr %12, align 4, !tbaa !9
  %229 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %229, ptr %13, align 4, !tbaa !9
  %230 = load ptr, ptr %5, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.w2c_hermes, ptr %230, i32 0, i32 6
  %232 = load i32, ptr %13, align 4, !tbaa !9
  %233 = zext i32 %232 to i64
  %234 = call i32 @i32_load(ptr noundef %231, i64 noundef %233)
  store i32 %234, ptr %13, align 4, !tbaa !9
  store i32 1, ptr %14, align 4, !tbaa !9
  %235 = load i32, ptr %14, align 4, !tbaa !9
  %236 = load i32, ptr %13, align 4, !tbaa !9
  %237 = sub i32 %236, %235
  store i32 %237, ptr %13, align 4, !tbaa !9
  %238 = load ptr, ptr %5, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.w2c_hermes, ptr %238, i32 0, i32 6
  %240 = load i32, ptr %12, align 4, !tbaa !9
  %241 = zext i32 %240 to i64
  %242 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %239, i64 noundef %241, i32 noundef %242)
  br label %243

243:                                              ; preds = %227, %166
  %244 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %244, ptr %12, align 4, !tbaa !9
  %245 = load i32, ptr %12, align 4, !tbaa !9
  switch i32 %245, label %248 [
    i32 0, label %246
    i32 1, label %247
  ]

246:                                              ; preds = %243
  br label %249

247:                                              ; preds = %243
  br label %274

248:                                              ; preds = %243
  br label %256

249:                                              ; preds = %246
  %250 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %250, ptr %12, align 4, !tbaa !9
  store i32 0, ptr %13, align 4, !tbaa !9
  %251 = load ptr, ptr %5, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.w2c_hermes, ptr %251, i32 0, i32 6
  %253 = load i32, ptr %12, align 4, !tbaa !9
  %254 = zext i32 %253 to i64
  %255 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %252, i64 noundef %254, i32 noundef %255)
  br label %375

256:                                              ; preds = %248
  store i32 0, ptr %12, align 4, !tbaa !9
  %257 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %257, ptr %9, align 4, !tbaa !9
  store i32 109639, ptr %13, align 4, !tbaa !9
  %258 = load i32, ptr %13, align 4, !tbaa !9
  %259 = load i32, ptr %12, align 4, !tbaa !9
  %260 = add i32 %259, %258
  store i32 %260, ptr %12, align 4, !tbaa !9
  %261 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %261, ptr %13, align 4, !tbaa !9
  store i32 77564, ptr %14, align 4, !tbaa !9
  %262 = load i32, ptr %14, align 4, !tbaa !9
  %263 = load i32, ptr %13, align 4, !tbaa !9
  %264 = add i32 %263, %262
  store i32 %264, ptr %13, align 4, !tbaa !9
  store i32 179, ptr %14, align 4, !tbaa !9
  %265 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %265, ptr %15, align 4, !tbaa !9
  store i32 90402, ptr %16, align 4, !tbaa !9
  %266 = load i32, ptr %16, align 4, !tbaa !9
  %267 = load i32, ptr %15, align 4, !tbaa !9
  %268 = add i32 %267, %266
  store i32 %268, ptr %15, align 4, !tbaa !9
  %269 = load ptr, ptr %5, align 8, !tbaa !5
  %270 = load i32, ptr %12, align 4, !tbaa !9
  %271 = load i32, ptr %13, align 4, !tbaa !9
  %272 = load i32, ptr %14, align 4, !tbaa !9
  %273 = load i32, ptr %15, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %269, i32 noundef %270, i32 noundef %271, i32 noundef %272, i32 noundef %273)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

274:                                              ; preds = %247
  %275 = load i64, ptr %10, align 8, !tbaa !11
  store i64 %275, ptr %18, align 8, !tbaa !11
  store i64 -1970324836974592, ptr %19, align 8, !tbaa !11
  %276 = load i64, ptr %18, align 8, !tbaa !11
  %277 = load i64, ptr %19, align 8, !tbaa !11
  %278 = icmp uge i64 %276, %277
  %279 = zext i1 %278 to i32
  store i32 %279, ptr %12, align 4, !tbaa !9
  %280 = load i32, ptr %12, align 4, !tbaa !9
  %281 = icmp ne i32 %280, 0
  br i1 %281, label %282, label %283

282:                                              ; preds = %274
  br label %383

283:                                              ; preds = %274
  %284 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %284, ptr %12, align 4, !tbaa !9
  store i32 1, ptr %13, align 4, !tbaa !9
  %285 = load ptr, ptr %5, align 8, !tbaa !5
  %286 = getelementptr inbounds %struct.w2c_hermes, ptr %285, i32 0, i32 6
  %287 = load i32, ptr %12, align 4, !tbaa !9
  %288 = zext i32 %287 to i64
  %289 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %286, i64 noundef %288, i32 noundef %289)
  %290 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %290, ptr %12, align 4, !tbaa !9
  store i64 9221120237041090560, ptr %19, align 8, !tbaa !11
  %291 = load i64, ptr %10, align 8, !tbaa !11
  store i64 %291, ptr %20, align 8, !tbaa !11
  %292 = load i64, ptr %20, align 8, !tbaa !11
  %293 = call double @f64_reinterpret_i64(i64 noundef %292)
  store double %293, ptr %22, align 8, !tbaa !13
  store double -1.000000e+00, ptr %23, align 8, !tbaa !13
  %294 = load double, ptr %23, align 8, !tbaa !13
  %295 = load double, ptr %22, align 8, !tbaa !13
  %296 = fadd double %295, %294
  store double %296, ptr %22, align 8, !tbaa !13
  %297 = load double, ptr %22, align 8, !tbaa !13
  store double %297, ptr %11, align 8, !tbaa !13
  %298 = load double, ptr %22, align 8, !tbaa !13
  %299 = call i64 @i64_reinterpret_f64(double noundef %298)
  store i64 %299, ptr %20, align 8, !tbaa !11
  %300 = load double, ptr %11, align 8, !tbaa !13
  store double %300, ptr %23, align 8, !tbaa !13
  %301 = load double, ptr %11, align 8, !tbaa !13
  store double %301, ptr %24, align 8, !tbaa !13
  %302 = load double, ptr %23, align 8, !tbaa !13
  %303 = load double, ptr %24, align 8, !tbaa !13
  %304 = fcmp une double %302, %303
  %305 = zext i1 %304 to i32
  store i32 %305, ptr %15, align 4, !tbaa !9
  %306 = load i32, ptr %15, align 4, !tbaa !9
  %307 = icmp ne i32 %306, 0
  br i1 %307, label %308, label %310

308:                                              ; preds = %283
  %309 = load i64, ptr %19, align 8, !tbaa !11
  br label %312

310:                                              ; preds = %283
  %311 = load i64, ptr %20, align 8, !tbaa !11
  br label %312

312:                                              ; preds = %310, %308
  %313 = phi i64 [ %309, %308 ], [ %311, %310 ]
  store i64 %313, ptr %19, align 8, !tbaa !11
  %314 = load ptr, ptr %5, align 8, !tbaa !5
  %315 = getelementptr inbounds %struct.w2c_hermes, ptr %314, i32 0, i32 6
  %316 = load i32, ptr %12, align 4, !tbaa !9
  %317 = zext i32 %316 to i64
  %318 = add i64 %317, 8
  %319 = load i64, ptr %19, align 8, !tbaa !11
  call void @i64_store(ptr noundef %315, i64 noundef %318, i64 noundef %319)
  br label %375

320:                                              ; preds = %145
  %321 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %321, ptr %12, align 4, !tbaa !9
  %322 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %322, ptr %13, align 4, !tbaa !9
  %323 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %323, ptr %14, align 4, !tbaa !9
  store i32 8, ptr %15, align 4, !tbaa !9
  %324 = load i32, ptr %15, align 4, !tbaa !9
  %325 = load i32, ptr %14, align 4, !tbaa !9
  %326 = add i32 %325, %324
  store i32 %326, ptr %14, align 4, !tbaa !9
  %327 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %327, ptr %15, align 4, !tbaa !9
  %328 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %328, ptr %16, align 4, !tbaa !9
  store i32 56, ptr %17, align 4, !tbaa !9
  %329 = load i32, ptr %17, align 4, !tbaa !9
  %330 = load i32, ptr %16, align 4, !tbaa !9
  %331 = add i32 %330, %329
  store i32 %331, ptr %16, align 4, !tbaa !9
  %332 = load ptr, ptr %5, align 8, !tbaa !5
  %333 = load i32, ptr %16, align 4, !tbaa !9
  %334 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHermesValue0x3A0x3AgetBigInt0x280x290x20const(ptr noundef %332, i32 noundef %333)
  store i32 %334, ptr %16, align 4, !tbaa !9
  %335 = load ptr, ptr %5, align 8, !tbaa !5
  %336 = load i32, ptr %14, align 4, !tbaa !9
  %337 = load i32, ptr %15, align 4, !tbaa !9
  %338 = load i32, ptr %16, align 4, !tbaa !9
  %339 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3ABigIntPrimitive0x3E0x3A0x3AHandle0x28hermes0x3A0x3Avm0x3A0x3AHandleRootOwner0x260x2C0x20hermes0x3A0x3Avm0x3A0x3ABigIntPrimitive0x2A0x29(ptr noundef %335, i32 noundef %336, i32 noundef %337, i32 noundef %338)
  store i32 %339, ptr %14, align 4, !tbaa !9
  %340 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %340, ptr %8, align 4, !tbaa !9
  %341 = load ptr, ptr %5, align 8, !tbaa !5
  %342 = load i32, ptr %12, align 4, !tbaa !9
  %343 = load i32, ptr %13, align 4, !tbaa !9
  %344 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ABigIntPrimitive0x3A0x3Adec0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3ABigIntPrimitive0x3E0x29(ptr noundef %341, i32 noundef %342, i32 noundef %343, i32 noundef %344)
  %345 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %345, ptr %12, align 4, !tbaa !9
  %346 = load ptr, ptr %5, align 8, !tbaa !5
  %347 = getelementptr inbounds %struct.w2c_hermes, ptr %346, i32 0, i32 6
  %348 = load i32, ptr %12, align 4, !tbaa !9
  %349 = zext i32 %348 to i64
  %350 = call i32 @i32_load(ptr noundef %347, i64 noundef %349)
  store i32 %350, ptr %12, align 4, !tbaa !9
  %351 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %351, ptr %8, align 4, !tbaa !9
  %352 = load i32, ptr %12, align 4, !tbaa !9
  %353 = icmp ne i32 %352, 0
  %354 = xor i1 %353, true
  %355 = zext i1 %354 to i32
  store i32 %355, ptr %12, align 4, !tbaa !9
  %356 = load i32, ptr %12, align 4, !tbaa !9
  %357 = icmp ne i32 %356, 0
  br i1 %357, label %358, label %359

358:                                              ; preds = %320
  br label %375

359:                                              ; preds = %320
  %360 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %360, ptr %12, align 4, !tbaa !9
  %361 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %361, 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 6
  %364 = load i32, ptr %13, align 4, !tbaa !9
  %365 = zext i32 %364 to i64
  %366 = call i32 @i32_load(ptr noundef %363, i64 noundef %365)
  store i32 %366, ptr %13, align 4, !tbaa !9
  store i32 1, ptr %14, align 4, !tbaa !9
  %367 = load i32, ptr %14, align 4, !tbaa !9
  %368 = load i32, ptr %13, align 4, !tbaa !9
  %369 = sub i32 %368, %367
  store i32 %369, ptr %13, align 4, !tbaa !9
  %370 = load ptr, ptr %5, align 8, !tbaa !5
  %371 = getelementptr inbounds %struct.w2c_hermes, ptr %370, i32 0, i32 6
  %372 = load i32, ptr %12, align 4, !tbaa !9
  %373 = zext i32 %372 to i64
  %374 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %371, i64 noundef %373, i32 noundef %374)
  br label %375

375:                                              ; preds = %359, %358, %312, %249, %120
  %376 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %376, ptr %12, align 4, !tbaa !9
  store i32 -64, ptr %13, align 4, !tbaa !9
  %377 = load i32, ptr %13, align 4, !tbaa !9
  %378 = load i32, ptr %12, align 4, !tbaa !9
  %379 = sub i32 %378, %377
  store i32 %379, ptr %12, align 4, !tbaa !9
  %380 = load i32, ptr %12, align 4, !tbaa !9
  %381 = load ptr, ptr %5, align 8, !tbaa !5
  %382 = getelementptr inbounds %struct.w2c_hermes, ptr %381, i32 0, i32 3
  store i32 %380, ptr %382, align 8, !tbaa !15
  br label %401

383:                                              ; preds = %282
  store i32 0, ptr %12, align 4, !tbaa !9
  %384 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %384, ptr %9, align 4, !tbaa !9
  store i32 118741, ptr %13, align 4, !tbaa !9
  %385 = load i32, ptr %13, align 4, !tbaa !9
  %386 = load i32, ptr %12, align 4, !tbaa !9
  %387 = add i32 %386, %385
  store i32 %387, ptr %12, align 4, !tbaa !9
  %388 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %388, ptr %13, align 4, !tbaa !9
  store i32 83341, ptr %14, align 4, !tbaa !9
  %389 = load i32, ptr %14, align 4, !tbaa !9
  %390 = load i32, ptr %13, align 4, !tbaa !9
  %391 = add i32 %390, %389
  store i32 %391, ptr %13, align 4, !tbaa !9
  store i32 444, ptr %14, align 4, !tbaa !9
  %392 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %392, ptr %15, align 4, !tbaa !9
  store i32 97283, ptr %16, align 4, !tbaa !9
  %393 = load i32, ptr %16, align 4, !tbaa !9
  %394 = load i32, ptr %15, align 4, !tbaa !9
  %395 = add i32 %394, %393
  store i32 %395, ptr %15, align 4, !tbaa !9
  %396 = load ptr, ptr %5, align 8, !tbaa !5
  %397 = load i32, ptr %12, align 4, !tbaa !9
  %398 = load i32, ptr %13, align 4, !tbaa !9
  %399 = load i32, ptr %14, align 4, !tbaa !9
  %400 = load i32, ptr %15, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %396, i32 noundef %397, i32 noundef %398, i32 noundef %399, i32 noundef %400)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

401:                                              ; preds = %375
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  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 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind 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"

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ABigIntPrimitive0x3A0x3Adec0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3ABigIntPrimitive0x3E0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x3A0x3AHandle0x28hermes0x3A0x3Avm0x3A0x3AHandleRootOwner0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef, i32 noundef, i32 noundef, i64 noundef) local_unnamed_addr #3

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ACallResult0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x2C0x200x28hermes0x3A0x3Avm0x3A0x3Adetail0x3A0x3ACallResultSpecialize0x2920x3E0x20hermes0x3A0x3Avm0x3A0x3AdoIncDecOperSlowPath0x3C0x26hermes0x3A0x3Avm0x3A0x3AdoDec0x28double0x290x3E0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(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, -64
  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, 44
  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, 40
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %15, i32 noundef %14)
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %9, i32 noundef 0)
  %16 = add i32 %6, -16
  %17 = add i32 %6, -24
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtoPrimitive_RJS0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3APreferredType0x29(ptr noundef %0, i32 noundef %16, i32 noundef %2, i32 noundef %17, i32 noundef 2) #4
  %18 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %15)
  %.not = icmp eq i32 %18, 0
  br i1 %.not, label %23, label %19

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

23:                                               ; preds = %19, %4
  %24 = add nuw nsw i64 %12, 48
  %25 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %24)
  switch i32 %25, label %28 [
    i32 0, label %26
    i32 1, label %29
  ]

26:                                               ; preds = %23
  %27 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %27, i32 noundef 0)
  br label %71

28:                                               ; preds = %23
  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

29:                                               ; preds = %23
  %30 = add nuw nsw i64 %12, 56
  %31 = tail call i64 @i64_load(ptr noundef nonnull %8, i64 noundef %30)
  %.mask = and i64 %31, -281474976710656
  %.not230 = icmp eq i64 %.mask, -562949953421312
  br i1 %.not230, label %60, label %32

32:                                               ; preds = %29
  %33 = add i32 %6, -40
  %34 = add i32 %6, -48
  %35 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x3A0x3AHandle0x28hermes0x3A0x3Avm0x3A0x3AHandleRootOwner0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef nonnull %0, i32 noundef %34, i32 noundef %2, i64 noundef %31)
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtoNumber_RJS0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(ptr noundef nonnull %0, i32 noundef %33, i32 noundef %2, i32 noundef %35) #4
  %36 = add nuw nsw i64 %12, 24
  %37 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %36)
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %24, i32 noundef %37)
  %38 = add nuw nsw i64 %12, 32
  %39 = tail call i64 @i64_load(ptr noundef nonnull %8, i64 noundef %38)
  tail call void @i64_store(ptr noundef nonnull %8, i64 noundef %30, i64 noundef %39)
  %40 = zext i32 %35 to i64
  %41 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %40)
  %.not232 = icmp eq i32 %41, 0
  br i1 %.not232, label %46, label %42

42:                                               ; preds = %32
  %43 = zext i32 %41 to i64
  %44 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %43)
  %45 = add i32 %44, -1
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %43, i32 noundef %45)
  br label %46

46:                                               ; preds = %42, %32
  switch i32 %37, label %49 [
    i32 0, label %47
    i32 1, label %50
  ]

47:                                               ; preds = %46
  %48 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %48, i32 noundef 0)
  br label %71

49:                                               ; preds = %46
  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

50:                                               ; preds = %46
  %51 = icmp ugt i64 %39, -1970324836974593
  br i1 %51, label %72, label %52

52:                                               ; preds = %50
  %53 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %53, i32 noundef 1)
  %54 = tail call double @f64_reinterpret_i64(i64 noundef %39)
  %55 = fadd double %54, -1.000000e+00
  %56 = tail call i64 @i64_reinterpret_f64(double noundef %55)
  %57 = fcmp uno double %55, 0.000000e+00
  %58 = select i1 %57, i64 9221120237041090560, i64 %56
  %59 = add nuw nsw i64 %53, 8
  tail call void @i64_store(ptr noundef nonnull %8, i64 noundef %59, i64 noundef %58)
  br label %71

60:                                               ; preds = %29
  %61 = add i32 %6, -56
  %62 = add i32 %6, -8
  %63 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHermesValue0x3A0x3AgetBigInt0x280x290x20const(ptr noundef nonnull %0, i32 noundef %62)
  %64 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3ABigIntPrimitive0x3E0x3A0x3AHandle0x28hermes0x3A0x3Avm0x3A0x3AHandleRootOwner0x260x2C0x20hermes0x3A0x3Avm0x3A0x3ABigIntPrimitive0x2A0x29(ptr noundef nonnull %0, i32 noundef %61, i32 noundef %2, i32 noundef %63)
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ABigIntPrimitive0x3A0x3Adec0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3ABigIntPrimitive0x3E0x29(ptr noundef nonnull %0, i32 noundef %1, i32 noundef %2, i32 noundef %64)
  %65 = zext i32 %64 to i64
  %66 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %65)
  %.not231 = icmp eq i32 %66, 0
  br i1 %.not231, label %71, label %67

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

71:                                               ; preds = %60, %67, %52, %47, %26
  store i32 %6, ptr %5, align 8, !tbaa !5
  ret void

72:                                               ; preds = %50
  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
}

attributes #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 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind 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