; 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 i32 @i32_load8_u(ptr noundef, i64 noundef) #1

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

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

54:                                               ; preds = %4
  %55 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %55, ptr %11, align 4, !tbaa !9
  %56 = load i64, ptr %10, align 8, !tbaa !11
  store i64 %56, ptr %17, align 8, !tbaa !11
  %57 = load ptr, ptr %5, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.w2c_hermes, ptr %57, i32 0, i32 6
  %59 = load i32, ptr %11, align 4, !tbaa !9
  %60 = zext i32 %59 to i64
  %61 = add i64 %60, 8
  %62 = load i64, ptr %17, align 8, !tbaa !11
  call void @i64_store(ptr noundef %58, i64 noundef %61, i64 noundef %62)
  %63 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %63, ptr %11, align 4, !tbaa !9
  store i32 1, ptr %12, align 4, !tbaa !9
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.w2c_hermes, ptr %64, i32 0, i32 6
  %66 = load i32, ptr %11, align 4, !tbaa !9
  %67 = zext i32 %66 to i64
  %68 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %65, i64 noundef %67, i32 noundef %68)
  br label %249

69:                                               ; preds = %4
  %70 = load i64, ptr %10, align 8, !tbaa !11
  store i64 %70, ptr %16, align 8, !tbaa !11
  store i64 -844424930131968, ptr %17, align 8, !tbaa !11
  %71 = load i64, ptr %16, align 8, !tbaa !11
  %72 = load i64, ptr %17, align 8, !tbaa !11
  %73 = icmp ult i64 %71, %72
  %74 = zext i1 %73 to i32
  store i32 %74, ptr %11, align 4, !tbaa !9
  %75 = load i32, ptr %11, align 4, !tbaa !9
  %76 = icmp ne i32 %75, 0
  br i1 %76, label %77, label %78

77:                                               ; preds = %69
  br label %195

78:                                               ; preds = %69
  %79 = load i64, ptr %10, align 8, !tbaa !11
  store i64 %79, ptr %16, align 8, !tbaa !11
  %80 = load i64, ptr %16, align 8, !tbaa !11
  %81 = trunc i64 %80 to i32
  store i32 %81, ptr %11, align 4, !tbaa !9
  %82 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %82, ptr %8, align 4, !tbaa !9
  %83 = load i32, ptr %11, align 4, !tbaa !9
  %84 = icmp ne i32 %83, 0
  %85 = xor i1 %84, true
  %86 = zext i1 %85 to i32
  store i32 %86, ptr %11, align 4, !tbaa !9
  %87 = load i32, ptr %11, align 4, !tbaa !9
  %88 = icmp ne i32 %87, 0
  br i1 %88, label %89, label %90

89:                                               ; preds = %78
  br label %257

90:                                               ; preds = %78
  %91 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %91, ptr %11, align 4, !tbaa !9
  %92 = load ptr, ptr %5, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.w2c_hermes, ptr %92, i32 0, i32 6
  %94 = load i32, ptr %11, align 4, !tbaa !9
  %95 = zext i32 %94 to i64
  %96 = add i64 %95, 3
  %97 = call i32 @i32_load8_u(ptr noundef %93, i64 noundef %96)
  store i32 %97, ptr %11, align 4, !tbaa !9
  store i32 24, ptr %12, align 4, !tbaa !9
  %98 = load i32, ptr %12, align 4, !tbaa !9
  %99 = and i32 %98, 31
  %100 = load i32, ptr %11, align 4, !tbaa !9
  %101 = shl i32 %100, %99
  store i32 %101, ptr %11, align 4, !tbaa !9
  store i32 1124073472, ptr %12, align 4, !tbaa !9
  %102 = load i32, ptr %11, align 4, !tbaa !9
  %103 = load i32, ptr %12, align 4, !tbaa !9
  %104 = icmp ne i32 %102, %103
  %105 = zext i1 %104 to i32
  store i32 %105, ptr %11, align 4, !tbaa !9
  %106 = load i32, ptr %11, align 4, !tbaa !9
  %107 = icmp ne i32 %106, 0
  br i1 %107, label %108, label %109

108:                                              ; preds = %90
  br label %195

109:                                              ; preds = %90
  %110 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %110, ptr %11, align 4, !tbaa !9
  %111 = load ptr, ptr %5, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.w2c_hermes, ptr %111, i32 0, i32 6
  %113 = load i32, ptr %11, align 4, !tbaa !9
  %114 = zext i32 %113 to i64
  %115 = add i64 %114, 28
  %116 = call i32 @i32_load(ptr noundef %112, i64 noundef %115)
  store i32 %116, ptr %11, align 4, !tbaa !9
  %117 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %117, ptr %8, align 4, !tbaa !9
  %118 = load i32, ptr %11, align 4, !tbaa !9
  %119 = icmp ne i32 %118, 0
  br i1 %119, label %120, label %157

120:                                              ; preds = %109
  %121 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %121, ptr %11, 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 %11, align 4, !tbaa !9
  %125 = zext i32 %124 to i64
  %126 = add i64 %125, 3
  %127 = call i32 @i32_load8_u(ptr noundef %123, i64 noundef %126)
  store i32 %127, ptr %11, align 4, !tbaa !9
  store i32 24, ptr %12, align 4, !tbaa !9
  %128 = load i32, ptr %12, align 4, !tbaa !9
  %129 = and i32 %128, 31
  %130 = load i32, ptr %11, align 4, !tbaa !9
  %131 = shl i32 %130, %129
  store i32 %131, ptr %11, align 4, !tbaa !9
  store i32 1291845632, ptr %12, align 4, !tbaa !9
  %132 = load i32, ptr %11, align 4, !tbaa !9
  %133 = load i32, ptr %12, align 4, !tbaa !9
  %134 = icmp eq i32 %132, %133
  %135 = zext i1 %134 to i32
  store i32 %135, ptr %11, align 4, !tbaa !9
  %136 = load i32, ptr %11, align 4, !tbaa !9
  %137 = icmp ne i32 %136, 0
  br i1 %137, label %138, label %139

138:                                              ; preds = %120
  br label %175

139:                                              ; preds = %120
  store i32 0, ptr %11, align 4, !tbaa !9
  %140 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %140, ptr %9, align 4, !tbaa !9
  store i32 205071, ptr %12, align 4, !tbaa !9
  %141 = load i32, ptr %12, align 4, !tbaa !9
  %142 = load i32, ptr %11, align 4, !tbaa !9
  %143 = add i32 %142, %141
  store i32 %143, ptr %11, align 4, !tbaa !9
  %144 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %144, ptr %12, align 4, !tbaa !9
  store i32 82611, ptr %13, align 4, !tbaa !9
  %145 = load i32, ptr %13, align 4, !tbaa !9
  %146 = load i32, ptr %12, align 4, !tbaa !9
  %147 = add i32 %146, %145
  store i32 %147, ptr %12, align 4, !tbaa !9
  store i32 299, ptr %13, align 4, !tbaa !9
  %148 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %148, ptr %14, align 4, !tbaa !9
  store i32 72549, ptr %15, align 4, !tbaa !9
  %149 = load i32, ptr %15, align 4, !tbaa !9
  %150 = load i32, ptr %14, align 4, !tbaa !9
  %151 = add i32 %150, %149
  store i32 %151, ptr %14, align 4, !tbaa !9
  %152 = load ptr, ptr %5, align 8, !tbaa !5
  %153 = load i32, ptr %11, align 4, !tbaa !9
  %154 = load i32, ptr %12, align 4, !tbaa !9
  %155 = load i32, ptr %13, align 4, !tbaa !9
  %156 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %152, i32 noundef %153, i32 noundef %154, i32 noundef %155, i32 noundef %156)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

157:                                              ; preds = %109
  store i32 0, ptr %11, align 4, !tbaa !9
  %158 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %158, ptr %9, align 4, !tbaa !9
  store i32 195004, ptr %12, align 4, !tbaa !9
  %159 = load i32, ptr %12, align 4, !tbaa !9
  %160 = load i32, ptr %11, align 4, !tbaa !9
  %161 = add i32 %160, %159
  store i32 %161, ptr %11, align 4, !tbaa !9
  %162 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %162, ptr %12, align 4, !tbaa !9
  store i32 83341, ptr %13, align 4, !tbaa !9
  %163 = load i32, ptr %13, align 4, !tbaa !9
  %164 = load i32, ptr %12, align 4, !tbaa !9
  %165 = add i32 %164, %163
  store i32 %165, ptr %12, align 4, !tbaa !9
  store i32 278, ptr %13, align 4, !tbaa !9
  %166 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %166, ptr %14, align 4, !tbaa !9
  store i32 90361, ptr %15, align 4, !tbaa !9
  %167 = load i32, ptr %15, align 4, !tbaa !9
  %168 = load i32, ptr %14, align 4, !tbaa !9
  %169 = add i32 %168, %167
  store i32 %169, ptr %14, align 4, !tbaa !9
  %170 = load ptr, ptr %5, align 8, !tbaa !5
  %171 = load i32, ptr %11, align 4, !tbaa !9
  %172 = load i32, ptr %12, align 4, !tbaa !9
  %173 = load i32, ptr %13, align 4, !tbaa !9
  %174 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %170, i32 noundef %171, i32 noundef %172, i32 noundef %173, i32 noundef %174)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

175:                                              ; preds = %138
  %176 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %176, ptr %11, align 4, !tbaa !9
  store i32 1, ptr %12, align 4, !tbaa !9
  %177 = load ptr, ptr %5, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.w2c_hermes, ptr %177, i32 0, i32 6
  %179 = load i32, ptr %11, align 4, !tbaa !9
  %180 = zext i32 %179 to i64
  %181 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %178, i64 noundef %180, i32 noundef %181)
  %182 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %182, ptr %11, align 4, !tbaa !9
  %183 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %183, ptr %12, align 4, !tbaa !9
  %184 = load i32, ptr %12, align 4, !tbaa !9
  %185 = zext i32 %184 to i64
  store i64 %185, ptr %17, align 8, !tbaa !11
  store i64 -562949953421312, ptr %18, align 8, !tbaa !11
  %186 = load i64, ptr %18, align 8, !tbaa !11
  %187 = load i64, ptr %17, align 8, !tbaa !11
  %188 = or i64 %187, %186
  store i64 %188, ptr %17, align 8, !tbaa !11
  %189 = load ptr, ptr %5, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.w2c_hermes, ptr %189, i32 0, i32 6
  %191 = load i32, ptr %11, align 4, !tbaa !9
  %192 = zext i32 %191 to i64
  %193 = add i64 %192, 8
  %194 = load i64, ptr %17, align 8, !tbaa !11
  call void @i64_store(ptr noundef %190, i64 noundef %193, i64 noundef %194)
  br label %249

195:                                              ; preds = %108, %77
  %196 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %196, ptr %11, align 4, !tbaa !9
  store i32 0, ptr %12, 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 %11, align 4, !tbaa !9
  %200 = zext i32 %199 to i64
  %201 = add i64 %200, 40
  %202 = load i32, ptr %12, 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 %11, align 4, !tbaa !9
  store i64 90194313217, ptr %17, align 8, !tbaa !11
  %204 = load ptr, ptr %5, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.w2c_hermes, ptr %204, i32 0, i32 6
  %206 = load i32, ptr %11, align 4, !tbaa !9
  %207 = zext i32 %206 to i64
  %208 = add i64 %207, 32
  %209 = load i64, ptr %17, align 8, !tbaa !11
  call void @i64_store(ptr noundef %205, i64 noundef %208, i64 noundef %209)
  %210 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %210, ptr %11, align 4, !tbaa !9
  store i32 3, ptr %12, align 4, !tbaa !9
  %211 = load ptr, ptr %5, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.w2c_hermes, ptr %211, i32 0, i32 6
  %213 = load i32, ptr %11, align 4, !tbaa !9
  %214 = zext i32 %213 to i64
  %215 = add i64 %214, 16
  %216 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %212, i64 noundef %215, i32 noundef %216)
  %217 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %217, ptr %11, align 4, !tbaa !9
  store i32 25677, ptr %12, align 4, !tbaa !9
  %218 = load ptr, ptr %5, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.w2c_hermes, ptr %218, i32 0, i32 6
  %220 = load i32, ptr %11, align 4, !tbaa !9
  %221 = zext i32 %220 to i64
  %222 = add i64 %221, 8
  %223 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %219, i64 noundef %222, i32 noundef %223)
  %224 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %224, ptr %11, align 4, !tbaa !9
  %225 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %225, ptr %12, align 4, !tbaa !9
  %226 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %226, ptr %13, align 4, !tbaa !9
  store i32 8, ptr %14, align 4, !tbaa !9
  %227 = load i32, ptr %14, align 4, !tbaa !9
  %228 = load i32, ptr %13, align 4, !tbaa !9
  %229 = add i32 %228, %227
  store i32 %229, ptr %13, align 4, !tbaa !9
  %230 = load ptr, ptr %5, align 8, !tbaa !5
  %231 = load i32, ptr %12, align 4, !tbaa !9
  %232 = load i32, ptr %13, align 4, !tbaa !9
  %233 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseTypeError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef %230, i32 noundef %231, i32 noundef %232)
  store i32 %233, ptr %12, align 4, !tbaa !9
  %234 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %234, ptr %8, align 4, !tbaa !9
  %235 = load ptr, ptr %5, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.w2c_hermes, ptr %235, i32 0, i32 6
  %237 = load i32, ptr %11, align 4, !tbaa !9
  %238 = zext i32 %237 to i64
  %239 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %236, i64 noundef %238, i32 noundef %239)
  %240 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %240, ptr %11, align 4, !tbaa !9
  store i32 1, ptr %12, align 4, !tbaa !9
  %241 = load i32, ptr %11, align 4, !tbaa !9
  %242 = load i32, ptr %12, align 4, !tbaa !9
  %243 = icmp eq i32 %241, %242
  %244 = zext i1 %243 to i32
  store i32 %244, ptr %11, align 4, !tbaa !9
  %245 = load i32, ptr %11, align 4, !tbaa !9
  %246 = icmp ne i32 %245, 0
  br i1 %246, label %247, label %248

247:                                              ; preds = %195
  br label %275

248:                                              ; preds = %195
  br label %249

249:                                              ; preds = %248, %175, %54
  %250 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %250, ptr %11, align 4, !tbaa !9
  store i32 48, ptr %12, align 4, !tbaa !9
  %251 = load i32, ptr %12, align 4, !tbaa !9
  %252 = load i32, ptr %11, align 4, !tbaa !9
  %253 = add i32 %252, %251
  store i32 %253, ptr %11, align 4, !tbaa !9
  %254 = load i32, ptr %11, align 4, !tbaa !9
  %255 = load ptr, ptr %5, align 8, !tbaa !5
  %256 = getelementptr inbounds %struct.w2c_hermes, ptr %255, i32 0, i32 3
  store i32 %254, ptr %256, align 8, !tbaa !13
  br label %293

257:                                              ; preds = %89
  store i32 0, ptr %11, align 4, !tbaa !9
  %258 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %258, ptr %9, align 4, !tbaa !9
  store i32 147142, ptr %12, align 4, !tbaa !9
  %259 = load i32, ptr %12, align 4, !tbaa !9
  %260 = load i32, ptr %11, align 4, !tbaa !9
  %261 = add i32 %260, %259
  store i32 %261, ptr %11, align 4, !tbaa !9
  %262 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %262, ptr %12, align 4, !tbaa !9
  store i32 82611, ptr %13, align 4, !tbaa !9
  %263 = load i32, ptr %13, align 4, !tbaa !9
  %264 = load i32, ptr %12, align 4, !tbaa !9
  %265 = add i32 %264, %263
  store i32 %265, ptr %12, align 4, !tbaa !9
  store i32 106, ptr %13, align 4, !tbaa !9
  %266 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %266, ptr %14, align 4, !tbaa !9
  store i32 28119, ptr %15, align 4, !tbaa !9
  %267 = load i32, ptr %15, align 4, !tbaa !9
  %268 = load i32, ptr %14, align 4, !tbaa !9
  %269 = add i32 %268, %267
  store i32 %269, ptr %14, align 4, !tbaa !9
  %270 = load ptr, ptr %5, align 8, !tbaa !5
  %271 = load i32, ptr %11, align 4, !tbaa !9
  %272 = load i32, ptr %12, align 4, !tbaa !9
  %273 = load i32, ptr %13, align 4, !tbaa !9
  %274 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %270, i32 noundef %271, i32 noundef %272, i32 noundef %273, i32 noundef %274)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

275:                                              ; preds = %247
  store i32 0, ptr %11, align 4, !tbaa !9
  %276 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %276, ptr %9, align 4, !tbaa !9
  store i32 109717, ptr %12, align 4, !tbaa !9
  %277 = load i32, ptr %12, align 4, !tbaa !9
  %278 = load i32, ptr %11, align 4, !tbaa !9
  %279 = add i32 %278, %277
  store i32 %279, ptr %11, align 4, !tbaa !9
  %280 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %280, ptr %12, align 4, !tbaa !9
  store i32 77564, ptr %13, align 4, !tbaa !9
  %281 = load i32, ptr %13, align 4, !tbaa !9
  %282 = load i32, ptr %12, align 4, !tbaa !9
  %283 = add i32 %282, %281
  store i32 %283, ptr %12, align 4, !tbaa !9
  store i32 168, ptr %13, align 4, !tbaa !9
  %284 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %284, ptr %14, align 4, !tbaa !9
  store i32 28083, ptr %15, align 4, !tbaa !9
  %285 = load i32, ptr %15, align 4, !tbaa !9
  %286 = load i32, ptr %14, align 4, !tbaa !9
  %287 = add i32 %286, %285
  store i32 %287, ptr %14, align 4, !tbaa !9
  %288 = load ptr, ptr %5, align 8, !tbaa !5
  %289 = load i32, ptr %11, align 4, !tbaa !9
  %290 = load i32, ptr %12, align 4, !tbaa !9
  %291 = load i32, ptr %13, align 4, !tbaa !9
  %292 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %288, i32 noundef %289, i32 noundef %290, i32 noundef %291, i32 noundef %292)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

293:                                              ; preds = %249
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, 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 4, 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 = { 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, !10, i64 24}
!14 = !{!"w2c_hermes", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !15, i64 40, !17, i64 80}
!15 = !{!"", !6, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !16, i64 32}
!16 = !{!"_Bool", !7, i64 0}
!17 = !{!"", !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 i32 @i32_load8_u(ptr noundef, i64 noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AthisBigIntValue0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(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 %11 to i64
  %13 = tail call i64 @i64_load(ptr noundef nonnull %8, i64 noundef %12)
  %.mask = and i64 %13, -281474976710656
  %14 = icmp eq i64 %.mask, -562949953421312
  br i1 %14, label %15, label %18

15:                                               ; preds = %4
  %16 = zext i32 %1 to i64
  %17 = add nuw nsw i64 %16, 8
  tail call void @i64_store(ptr noundef nonnull %8, i64 noundef %17, i64 noundef %13)
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %16, i32 noundef 1)
  br label %49

18:                                               ; preds = %4
  %19 = icmp ult i64 %13, -844424930131968
  br i1 %19, label %39, label %20

20:                                               ; preds = %18
  %21 = and i64 %13, 4294967295
  %.not = icmp eq i64 %21, 0
  br i1 %.not, label %50, label %22

22:                                               ; preds = %20
  %23 = add nuw nsw i64 %21, 3
  %24 = tail call i32 @i32_load8_u(ptr noundef nonnull %8, i64 noundef %23)
  %.mask163 = and i32 %24, 255
  %.not162 = icmp eq i32 %.mask163, 67
  br i1 %.not162, label %25, label %39

25:                                               ; preds = %22
  %26 = add nuw nsw i64 %21, 28
  %27 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %26)
  %.not164 = icmp eq i32 %27, 0
  br i1 %.not164, label %34, label %28

28:                                               ; preds = %25
  %29 = zext i32 %27 to i64
  %30 = add nuw nsw i64 %29, 3
  %31 = tail call i32 @i32_load8_u(ptr noundef nonnull %8, i64 noundef %30)
  %.mask165 = and i32 %31, 255
  %32 = icmp eq i32 %.mask165, 77
  br i1 %32, label %35, label %33

33:                                               ; preds = %28
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 205071, i32 noundef 82611, i32 noundef 299, i32 noundef 72549) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

34:                                               ; preds = %25
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 195004, i32 noundef 83341, i32 noundef 278, i32 noundef 90361) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

35:                                               ; preds = %28
  %36 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %36, i32 noundef 1)
  %37 = or disjoint i64 %29, -562949953421312
  %38 = add nuw nsw i64 %36, 8
  tail call void @i64_store(ptr noundef nonnull %8, i64 noundef %38, i64 noundef %37)
  br label %49

39:                                               ; preds = %22, %18
  %40 = zext i32 %7 to i64
  %41 = add nuw nsw i64 %40, 40
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %41, i32 noundef 0)
  %42 = add nuw nsw i64 %40, 32
  tail call void @i64_store(ptr noundef nonnull %8, i64 noundef %42, i64 noundef 90194313217)
  %43 = add nuw nsw i64 %40, 16
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %43, i32 noundef 3)
  %44 = add nuw nsw i64 %40, 8
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %44, i32 noundef 25677)
  %45 = add i32 %6, -40
  %46 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseTypeError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef nonnull %0, i32 noundef %2, i32 noundef %45) #4
  %47 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %47, i32 noundef %46)
  %48 = icmp eq i32 %46, 1
  br i1 %48, label %51, label %49

49:                                               ; preds = %39, %35, %15
  store i32 %6, ptr %5, align 8, !tbaa !5
  ret void

50:                                               ; preds = %20
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 147142, i32 noundef 82611, i32 noundef 106, i32 noundef 28119) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

51:                                               ; preds = %39
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 109717, i32 noundef 77564, i32 noundef 168, i32 noundef 28083) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable
}

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