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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.w2c_hermes = type { ptr, ptr, ptr, i32, i32, i32, %struct.wasm_rt_memory_t, %struct.wasm_rt_funcref_table_t }
%struct.wasm_rt_memory_t = type { ptr, i64, i64, i64, i8 }
%struct.wasm_rt_funcref_table_t = type { ptr, i32, i32 }

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_0x28anonymous0x20namespace0x290x3A0x3Acreate_object_from_host_object0x28HermesABIRuntime0x2A0x2C0x20HermesABIHostObject0x2A0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %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 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
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, 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 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !9
  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
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.w2c_hermes, ptr %17, i32 0, i32 3
  %19 = load i32, ptr %18, align 8, !tbaa !11
  store i32 %19, ptr %12, align 4, !tbaa !9
  store i32 224, ptr %13, align 4, !tbaa !9
  %20 = load i32, ptr %13, align 4, !tbaa !9
  %21 = load i32, ptr %12, align 4, !tbaa !9
  %22 = sub i32 %21, %20
  store i32 %22, ptr %12, align 4, !tbaa !9
  %23 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %23, ptr %7, align 4, !tbaa !9
  %24 = load i32, ptr %12, align 4, !tbaa !9
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.w2c_hermes, ptr %25, i32 0, i32 3
  store i32 %24, ptr %26, align 8, !tbaa !11
  %27 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %27, ptr %12, align 4, !tbaa !9
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.w2c_hermes, ptr %28, i32 0, i32 6
  %30 = load i32, ptr %12, align 4, !tbaa !9
  %31 = zext i32 %30 to i64
  %32 = add i64 %31, 4
  %33 = call i32 @i32_load(ptr noundef %29, i64 noundef %32)
  store i32 %33, ptr %12, align 4, !tbaa !9
  %34 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %34, ptr %8, align 4, !tbaa !9
  %35 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %35, ptr %12, align 4, !tbaa !9
  store i64 48, ptr %16, align 8, !tbaa !17
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.w2c_hermes, ptr %36, i32 0, i32 6
  %38 = load i32, ptr %12, align 4, !tbaa !9
  %39 = zext i32 %38 to i64
  %40 = add i64 %39, 32
  %41 = load i64, ptr %16, align 8, !tbaa !17
  call void @i64_store(ptr noundef %37, i64 noundef %40, i64 noundef %41)
  %42 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %42, ptr %12, align 4, !tbaa !9
  %43 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %43, ptr %13, align 4, !tbaa !9
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.w2c_hermes, ptr %44, i32 0, i32 6
  %46 = load i32, ptr %12, align 4, !tbaa !9
  %47 = zext i32 %46 to i64
  %48 = add i64 %47, 28
  %49 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %45, i64 noundef %48, i32 noundef %49)
  %50 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %50, ptr %12, align 4, !tbaa !9
  store i32 0, ptr %13, align 4, !tbaa !9
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.w2c_hermes, ptr %51, i32 0, i32 6
  %53 = load i32, ptr %12, align 4, !tbaa !9
  %54 = zext i32 %53 to i64
  %55 = add i64 %54, 24
  %56 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %52, i64 noundef %55, i32 noundef %56)
  %57 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %57, ptr %12, align 4, !tbaa !9
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.w2c_hermes, ptr %58, i32 0, i32 6
  %60 = load i32, ptr %12, align 4, !tbaa !9
  %61 = zext i32 %60 to i64
  %62 = add i64 %61, 4
  %63 = call i32 @i32_load(ptr noundef %59, i64 noundef %62)
  store i32 %63, ptr %12, align 4, !tbaa !9
  %64 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %64, ptr %9, align 4, !tbaa !9
  %65 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %65, ptr %12, align 4, !tbaa !9
  store i32 188, ptr %13, align 4, !tbaa !9
  %66 = load i32, ptr %13, align 4, !tbaa !9
  %67 = load i32, ptr %12, align 4, !tbaa !9
  %68 = add i32 %67, %66
  store i32 %68, ptr %12, align 4, !tbaa !9
  %69 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %69, ptr %10, align 4, !tbaa !9
  %70 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %70, ptr %13, align 4, !tbaa !9
  store i32 48, ptr %14, align 4, !tbaa !9
  %71 = load i32, ptr %14, align 4, !tbaa !9
  %72 = load i32, ptr %13, align 4, !tbaa !9
  %73 = add i32 %72, %71
  store i32 %73, ptr %13, align 4, !tbaa !9
  %74 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %74, ptr %11, align 4, !tbaa !9
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.w2c_hermes, ptr %75, i32 0, i32 6
  %77 = load i32, ptr %12, align 4, !tbaa !9
  %78 = zext i32 %77 to i64
  %79 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %76, i64 noundef %78, i32 noundef %79)
  %80 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %80, ptr %12, align 4, !tbaa !9
  store i64 17179869185, ptr %16, align 8, !tbaa !17
  %81 = load ptr, ptr %4, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.w2c_hermes, ptr %81, i32 0, i32 6
  %83 = load i32, ptr %12, align 4, !tbaa !9
  %84 = zext i32 %83 to i64
  %85 = add i64 %84, 180
  %86 = load i64, ptr %16, align 8, !tbaa !17
  call void @i64_store(ptr noundef %82, i64 noundef %85, i64 noundef %86)
  %87 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %87, ptr %12, align 4, !tbaa !9
  %88 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %88, ptr %13, align 4, !tbaa !9
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.w2c_hermes, ptr %89, i32 0, i32 6
  %91 = load i32, ptr %12, align 4, !tbaa !9
  %92 = zext i32 %91 to i64
  %93 = add i64 %92, 176
  %94 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %90, i64 noundef %93, i32 noundef %94)
  %95 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %95, ptr %12, align 4, !tbaa !9
  %96 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %96, ptr %13, align 4, !tbaa !9
  %97 = load ptr, ptr %4, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.w2c_hermes, ptr %97, i32 0, i32 6
  %99 = load i32, ptr %12, align 4, !tbaa !9
  %100 = zext i32 %99 to i64
  %101 = add i64 %100, 40
  %102 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %98, i64 noundef %101, i32 noundef %102)
  %103 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %103, ptr %12, align 4, !tbaa !9
  store i32 0, ptr %13, align 4, !tbaa !9
  %104 = load ptr, ptr %4, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.w2c_hermes, ptr %104, i32 0, i32 6
  %106 = load i32, ptr %12, align 4, !tbaa !9
  %107 = zext i32 %106 to i64
  %108 = add i64 %107, 212
  %109 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %105, i64 noundef %108, i32 noundef %109)
  %110 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %110, ptr %12, align 4, !tbaa !9
  %111 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %111, ptr %13, align 4, !tbaa !9
  store i32 176, ptr %14, align 4, !tbaa !9
  %112 = load i32, ptr %14, align 4, !tbaa !9
  %113 = load i32, ptr %13, align 4, !tbaa !9
  %114 = add i32 %113, %112
  store i32 %114, ptr %13, align 4, !tbaa !9
  %115 = load ptr, ptr %4, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.w2c_hermes, ptr %115, i32 0, i32 6
  %117 = load i32, ptr %12, align 4, !tbaa !9
  %118 = zext i32 %117 to i64
  %119 = add i64 %118, 208
  %120 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %116, i64 noundef %119, i32 noundef %120)
  %121 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %121, ptr %12, align 4, !tbaa !9
  %122 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %122, ptr %13, align 4, !tbaa !9
  %123 = load ptr, ptr %4, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.w2c_hermes, ptr %123, i32 0, i32 6
  %125 = load i32, ptr %12, align 4, !tbaa !9
  %126 = zext i32 %125 to i64
  %127 = add i64 %126, 204
  %128 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %124, i64 noundef %127, i32 noundef %128)
  %129 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %129, ptr %12, align 4, !tbaa !9
  %130 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %130, ptr %13, align 4, !tbaa !9
  store i32 24, ptr %14, align 4, !tbaa !9
  %131 = load i32, ptr %14, align 4, !tbaa !9
  %132 = load i32, ptr %13, align 4, !tbaa !9
  %133 = add i32 %132, %131
  store i32 %133, ptr %13, align 4, !tbaa !9
  %134 = load ptr, ptr %4, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.w2c_hermes, ptr %134, i32 0, i32 6
  %136 = load i32, ptr %12, align 4, !tbaa !9
  %137 = zext i32 %136 to i64
  %138 = add i64 %137, 4
  %139 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %135, i64 noundef %138, i32 noundef %139)
  store i32 12, ptr %12, align 4, !tbaa !9
  %140 = load ptr, ptr %4, align 8, !tbaa !5
  %141 = load i32, ptr %12, align 4, !tbaa !9
  %142 = call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %140, i32 noundef %141)
  store i32 %142, ptr %12, align 4, !tbaa !9
  %143 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %143, ptr %9, align 4, !tbaa !9
  %144 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %144, ptr %13, align 4, !tbaa !9
  %145 = load ptr, ptr %4, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.w2c_hermes, ptr %145, i32 0, i32 6
  %147 = load i32, ptr %12, align 4, !tbaa !9
  %148 = zext i32 %147 to i64
  %149 = add i64 %148, 8
  %150 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %146, i64 noundef %149, i32 noundef %150)
  %151 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %151, ptr %12, align 4, !tbaa !9
  %152 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %152, ptr %13, align 4, !tbaa !9
  %153 = load ptr, ptr %4, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.w2c_hermes, ptr %153, i32 0, i32 6
  %155 = load i32, ptr %12, align 4, !tbaa !9
  %156 = zext i32 %155 to i64
  %157 = add i64 %156, 4
  %158 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %154, i64 noundef %157, i32 noundef %158)
  %159 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %159, ptr %12, align 4, !tbaa !9
  store i32 265896, ptr %13, align 4, !tbaa !9
  %160 = load ptr, ptr %4, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.w2c_hermes, ptr %160, i32 0, i32 6
  %162 = load i32, ptr %12, align 4, !tbaa !9
  %163 = zext i32 %162 to i64
  %164 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %161, i64 noundef %163, i32 noundef %164)
  %165 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %165, ptr %12, align 4, !tbaa !9
  store i32 8, ptr %13, align 4, !tbaa !9
  %166 = load i32, ptr %13, align 4, !tbaa !9
  %167 = load i32, ptr %12, align 4, !tbaa !9
  %168 = add i32 %167, %166
  store i32 %168, ptr %12, align 4, !tbaa !9
  %169 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %169, ptr %13, align 4, !tbaa !9
  %170 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %170, ptr %14, align 4, !tbaa !9
  %171 = load ptr, ptr %4, align 8, !tbaa !5
  %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_hermes0x3A0x3Avm0x3A0x3AHostObject0x3A0x3AcreateWithoutPrototype0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20std0x3A0x3A_0x5F20x3A0x3Aunique_ptr0x3Chermes0x3A0x3Avm0x3A0x3AHostObjectProxy0x2C0x20std0x3A0x3A_0x5F20x3A0x3Adefault_delete0x3Chermes0x3A0x3Avm0x3A0x3AHostObjectProxy0x3E0x3E0x29(ptr noundef %171, i32 noundef %172, i32 noundef %173, i32 noundef %174)
  %175 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %175, ptr %12, align 4, !tbaa !9
  %176 = load ptr, ptr %4, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.w2c_hermes, ptr %176, i32 0, i32 6
  %178 = load i32, ptr %12, align 4, !tbaa !9
  %179 = zext i32 %178 to i64
  %180 = add i64 %179, 8
  %181 = call i32 @i32_load(ptr noundef %177, i64 noundef %180)
  store i32 %181, ptr %12, align 4, !tbaa !9
  %182 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %182, ptr %8, align 4, !tbaa !9
  store i32 1, ptr %13, align 4, !tbaa !9
  %183 = load i32, ptr %12, align 4, !tbaa !9
  %184 = load i32, ptr %13, align 4, !tbaa !9
  %185 = icmp ne i32 %183, %184
  %186 = zext i1 %185 to i32
  store i32 %186, ptr %12, align 4, !tbaa !9
  %187 = load i32, ptr %12, align 4, !tbaa !9
  %188 = icmp ne i32 %187, 0
  br i1 %188, label %189, label %204

189:                                              ; preds = %3
  %190 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %190, ptr %12, align 4, !tbaa !9
  %191 = load i32, ptr %12, align 4, !tbaa !9
  %192 = icmp ne i32 %191, 0
  %193 = xor i1 %192, true
  %194 = zext i1 %193 to i32
  store i32 %194, ptr %12, align 4, !tbaa !9
  %195 = load i32, ptr %12, align 4, !tbaa !9
  %196 = icmp ne i32 %195, 0
  br i1 %196, label %197, label %198

197:                                              ; preds = %189
  br label %247

198:                                              ; preds = %189
  store i32 109639, ptr %12, align 4, !tbaa !9
  store i32 77564, ptr %13, align 4, !tbaa !9
  store i32 179, ptr %14, align 4, !tbaa !9
  store i32 90402, ptr %15, align 4, !tbaa !9
  %199 = load ptr, ptr %4, align 8, !tbaa !5
  %200 = load i32, ptr %12, align 4, !tbaa !9
  %201 = load i32, ptr %13, align 4, !tbaa !9
  %202 = load i32, ptr %14, align 4, !tbaa !9
  %203 = load i32, ptr %15, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %199, i32 noundef %200, i32 noundef %201, i32 noundef %202, i32 noundef %203)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

204:                                              ; preds = %3
  %205 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %205, ptr %12, align 4, !tbaa !9
  %206 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %206, ptr %13, align 4, !tbaa !9
  %207 = load ptr, ptr %4, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.w2c_hermes, ptr %207, i32 0, i32 6
  %209 = load i32, ptr %13, align 4, !tbaa !9
  %210 = zext i32 %209 to i64
  %211 = add i64 %210, 16
  %212 = call i64 @i64_load(ptr noundef %208, i64 noundef %211)
  store i64 %212, ptr %16, align 8, !tbaa !17
  %213 = load ptr, ptr %4, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.w2c_hermes, ptr %213, i32 0, i32 6
  %215 = load i32, ptr %12, align 4, !tbaa !9
  %216 = zext i32 %215 to i64
  %217 = add i64 %216, 216
  %218 = load i64, ptr %16, align 8, !tbaa !17
  call void @i64_store(ptr noundef %214, i64 noundef %217, i64 noundef %218)
  %219 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %219, ptr %12, align 4, !tbaa !9
  store i32 16, ptr %13, align 4, !tbaa !9
  %220 = load i32, ptr %13, align 4, !tbaa !9
  %221 = load i32, ptr %12, align 4, !tbaa !9
  %222 = add i32 %221, %220
  store i32 %222, ptr %12, align 4, !tbaa !9
  %223 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %223, ptr %13, align 4, !tbaa !9
  store i32 216, ptr %14, align 4, !tbaa !9
  %224 = load i32, ptr %14, align 4, !tbaa !9
  %225 = load i32, ptr %13, align 4, !tbaa !9
  %226 = add i32 %225, %224
  store i32 %226, ptr %13, align 4, !tbaa !9
  %227 = load ptr, ptr %4, align 8, !tbaa !5
  %228 = load i32, ptr %12, align 4, !tbaa !9
  %229 = load i32, ptr %13, align 4, !tbaa !9
  %230 = call i32 @w2c_hermes_0x28anonymous0x20namespace0x290x3A0x3AManagedValue0x3Chermes0x3A0x3Avm0x3A0x3APinnedHermesValue0x3E0x260x20hermes0x3A0x3AManagedChunkedList0x3C0x28anonymous0x20namespace0x290x3A0x3AManagedValue0x3Chermes0x3A0x3Avm0x3A0x3APinnedHermesValue0x3E0x2C0x2016ul0x3E0x3A0x3Aadd0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x260x3E0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x260x29(ptr noundef %227, i32 noundef %228, i32 noundef %229)
  store i32 %230, ptr %12, align 4, !tbaa !9
  %231 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %231, ptr %8, align 4, !tbaa !9
  %232 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %232, ptr %12, align 4, !tbaa !9
  store i32 24, ptr %13, align 4, !tbaa !9
  %233 = load i32, ptr %13, align 4, !tbaa !9
  %234 = load i32, ptr %12, align 4, !tbaa !9
  %235 = add i32 %234, %233
  store i32 %235, ptr %12, align 4, !tbaa !9
  %236 = load ptr, ptr %4, align 8, !tbaa !5
  %237 = load i32, ptr %12, align 4, !tbaa !9
  %238 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AGCScope0x3A0x3A0x7EGCScope0x280x29(ptr noundef %236, i32 noundef %237)
  store i32 %238, ptr %12, align 4, !tbaa !9
  %239 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %239, ptr %12, align 4, !tbaa !9
  store i32 224, ptr %13, align 4, !tbaa !9
  %240 = load i32, ptr %13, align 4, !tbaa !9
  %241 = load i32, ptr %12, align 4, !tbaa !9
  %242 = add i32 %241, %240
  store i32 %242, ptr %12, align 4, !tbaa !9
  %243 = load i32, ptr %12, align 4, !tbaa !9
  %244 = load ptr, ptr %4, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.w2c_hermes, ptr %244, i32 0, i32 3
  store i32 %243, ptr %245, align 8, !tbaa !11
  %246 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %246, ptr %12, align 4, !tbaa !9
  br label %253

247:                                              ; preds = %197
  store i32 135964, ptr %12, align 4, !tbaa !9
  store i32 61000, ptr %13, align 4, !tbaa !9
  store i32 1144, ptr %14, align 4, !tbaa !9
  store i32 35961, ptr %15, align 4, !tbaa !9
  %248 = load ptr, ptr %4, align 8, !tbaa !5
  %249 = load i32, ptr %12, align 4, !tbaa !9
  %250 = load i32, ptr %13, align 4, !tbaa !9
  %251 = load i32, ptr %14, align 4, !tbaa !9
  %252 = load i32, ptr %15, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %248, i32 noundef %249, i32 noundef %250, i32 noundef %251, i32 noundef %252)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

253:                                              ; preds = %204
  %254 = load i32, ptr %12, align 4, !tbaa !9
  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 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  ret i32 %254
}

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

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

; Function Attrs: 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 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: inlinehint nounwind uwtable
declare hidden i32 @i32_load(ptr noundef, i64 noundef) #3

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

declare i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef, i32 noundef) #4

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

declare i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AGCScope0x3A0x3A0x7EGCScope0x280x29(ptr noundef, i32 noundef) #4

declare void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHostObject0x3A0x3AcreateWithoutPrototype0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20std0x3A0x3A_0x5F20x3A0x3Aunique_ptr0x3Chermes0x3A0x3Avm0x3A0x3AHostObjectProxy0x2C0x20std0x3A0x3A_0x5F20x3A0x3Adefault_delete0x3Chermes0x3A0x3Avm0x3A0x3AHostObjectProxy0x3E0x3E0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #4

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = { "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, !10, i64 24}
!12 = !{!"w2c_hermes", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !13, i64 40, !16, i64 80}
!13 = !{!"", !6, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !15, i64 32}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_Bool", !7, i64 0}
!16 = !{!"", !6, i64 0, !10, i64 8, !10, i64 12}
!17 = !{!14, !14, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_0x28anonymous0x20namespace0x290x3A0x3Acreate_object_from_host_object0x28HermesABIRuntime0x2A0x2C0x20HermesABIHostObject0x2A0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #0 {
  %4 = getelementptr inbounds i8, ptr %0, i64 24
  %5 = load i32, ptr %4, align 8, !tbaa !5
  %6 = add i32 %5, -224
  store i32 %6, ptr %4, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 40
  %8 = zext i32 %1 to i64
  %9 = add nuw nsw i64 %8, 4
  %10 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %9)
  %11 = zext i32 %6 to i64
  %12 = add nuw nsw i64 %11, 32
  tail call void @i64_store(ptr noundef nonnull %7, i64 noundef %12, i64 noundef 48)
  %13 = add nuw nsw i64 %11, 28
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %13, i32 noundef %10)
  %14 = add nuw nsw i64 %11, 24
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %14, i32 noundef 0)
  %15 = zext i32 %10 to i64
  %16 = add nuw nsw i64 %15, 4
  %17 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %16)
  %18 = add i32 %5, -36
  %19 = add i32 %5, -176
  %20 = zext i32 %18 to i64
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %20, i32 noundef %19)
  %21 = add nuw nsw i64 %11, 180
  tail call void @i64_store(ptr noundef nonnull %7, i64 noundef %21, i64 noundef 17179869185)
  %22 = add nuw nsw i64 %11, 176
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %22, i32 noundef %18)
  %23 = add nuw nsw i64 %11, 40
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %23, i32 noundef %17)
  %24 = add nuw nsw i64 %11, 212
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %24, i32 noundef 0)
  %25 = add i32 %5, -48
  %26 = add nuw nsw i64 %11, 208
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %26, i32 noundef %25)
  %27 = add nuw nsw i64 %11, 204
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %27, i32 noundef %19)
  %28 = add i32 %5, -200
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %16, i32 noundef %28)
  %29 = tail call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %0, i32 noundef 12) #4
  %30 = zext i32 %29 to i64
  %31 = add nuw nsw i64 %30, 8
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %31, i32 noundef %2)
  %32 = add nuw nsw i64 %30, 4
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %32, i32 noundef %1)
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %30, i32 noundef 265896)
  %33 = add i32 %5, -216
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHostObject0x3A0x3AcreateWithoutPrototype0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20std0x3A0x3A_0x5F20x3A0x3Aunique_ptr0x3Chermes0x3A0x3Avm0x3A0x3AHostObjectProxy0x2C0x20std0x3A0x3A_0x5F20x3A0x3Adefault_delete0x3Chermes0x3A0x3Avm0x3A0x3AHostObjectProxy0x3E0x3E0x29(ptr noundef %0, i32 noundef %33, i32 noundef %10, i32 noundef %29) #4
  %34 = add nuw nsw i64 %11, 8
  %35 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %34)
  switch i32 %35, label %36 [
    i32 1, label %37
    i32 0, label %45
  ]

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

37:                                               ; preds = %3
  %38 = add nuw nsw i64 %11, 16
  %39 = tail call i64 @i64_load(ptr noundef nonnull %7, i64 noundef %38)
  %40 = add nuw nsw i64 %11, 216
  tail call void @i64_store(ptr noundef nonnull %7, i64 noundef %40, i64 noundef %39)
  %41 = add i32 %1, 16
  %42 = add i32 %5, -8
  %43 = tail call i32 @w2c_hermes_0x28anonymous0x20namespace0x290x3A0x3AManagedValue0x3Chermes0x3A0x3Avm0x3A0x3APinnedHermesValue0x3E0x260x20hermes0x3A0x3AManagedChunkedList0x3C0x28anonymous0x20namespace0x290x3A0x3AManagedValue0x3Chermes0x3A0x3Avm0x3A0x3APinnedHermesValue0x3E0x2C0x2016ul0x3E0x3A0x3Aadd0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x260x3E0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x260x29(ptr noundef nonnull %0, i32 noundef %41, i32 noundef %42)
  %44 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AGCScope0x3A0x3A0x7EGCScope0x280x29(ptr noundef nonnull %0, i32 noundef %28) #4
  store i32 %5, ptr %4, align 8, !tbaa !5
  ret i32 %43

45:                                               ; preds = %3
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 135964, i32 noundef 61000, i32 noundef 1144, i32 noundef 35961)
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable
}

; 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 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: inlinehint nounwind uwtable
declare hidden i32 @i32_load(ptr noundef, i64 noundef) local_unnamed_addr #2

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

declare i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef, i32 noundef) local_unnamed_addr #3

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

declare i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AGCScope0x3A0x3A0x7EGCScope0x280x29(ptr noundef, i32 noundef) local_unnamed_addr #3

declare void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHostObject0x3A0x3AcreateWithoutPrototype0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20std0x3A0x3A_0x5F20x3A0x3Aunique_ptr0x3Chermes0x3A0x3Avm0x3A0x3AHostObjectProxy0x2C0x20std0x3A0x3A_0x5F20x3A0x3Adefault_delete0x3Chermes0x3A0x3Avm0x3A0x3AHostObjectProxy0x3E0x3E0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

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