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

47:                                               ; preds = %5
  br label %102

48:                                               ; preds = %5
  %49 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %49, ptr %16, align 4, !tbaa !9
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.w2c_hermes, ptr %50, i32 0, i32 6
  %52 = load i32, ptr %16, align 4, !tbaa !9
  %53 = zext i32 %52 to i64
  %54 = call i32 @i32_load(ptr noundef %51, i64 noundef %53)
  store i32 %54, ptr %16, align 4, !tbaa !9
  store i32 8, ptr %17, align 4, !tbaa !9
  %55 = load i32, ptr %17, align 4, !tbaa !9
  %56 = load i32, ptr %16, align 4, !tbaa !9
  %57 = sub i32 %56, %55
  store i32 %57, ptr %16, align 4, !tbaa !9
  %58 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %58, ptr %13, align 4, !tbaa !9
  %59 = load ptr, ptr %6, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.w2c_hermes, ptr %59, i32 0, i32 6
  %61 = load i32, ptr %16, align 4, !tbaa !9
  %62 = zext i32 %61 to i64
  %63 = call i64 @i64_load(ptr noundef %60, i64 noundef %62)
  store i64 %63, ptr %21, align 8, !tbaa !11
  %64 = load i64, ptr %21, align 8, !tbaa !11
  store i64 %64, ptr %15, align 8, !tbaa !11
  store i64 -844424930131968, ptr %22, align 8, !tbaa !11
  %65 = load i64, ptr %21, align 8, !tbaa !11
  %66 = load i64, ptr %22, align 8, !tbaa !11
  %67 = icmp ult i64 %65, %66
  %68 = zext i1 %67 to i32
  store i32 %68, ptr %16, align 4, !tbaa !9
  %69 = load i32, ptr %16, align 4, !tbaa !9
  %70 = icmp ne i32 %69, 0
  br i1 %70, label %71, label %72

71:                                               ; preds = %48
  br label %102

72:                                               ; preds = %48
  %73 = load i64, ptr %15, align 8, !tbaa !11
  store i64 %73, ptr %21, align 8, !tbaa !11
  %74 = load i64, ptr %21, align 8, !tbaa !11
  %75 = trunc i64 %74 to i32
  store i32 %75, ptr %16, align 4, !tbaa !9
  %76 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %76, ptr %12, align 4, !tbaa !9
  %77 = load i32, ptr %16, align 4, !tbaa !9
  %78 = icmp ne i32 %77, 0
  %79 = xor i1 %78, true
  %80 = zext i1 %79 to i32
  store i32 %80, ptr %16, align 4, !tbaa !9
  %81 = load i32, ptr %16, align 4, !tbaa !9
  %82 = icmp ne i32 %81, 0
  br i1 %82, label %83, label %84

83:                                               ; preds = %72
  br label %270

84:                                               ; preds = %72
  %85 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %85, ptr %16, align 4, !tbaa !9
  %86 = load ptr, ptr %6, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.w2c_hermes, ptr %86, i32 0, i32 6
  %88 = load i32, ptr %16, align 4, !tbaa !9
  %89 = zext i32 %88 to i64
  %90 = call i32 @i32_load(ptr noundef %87, i64 noundef %89)
  store i32 %90, ptr %16, align 4, !tbaa !9
  store i32 436207616, ptr %17, align 4, !tbaa !9
  %91 = load i32, ptr %17, align 4, !tbaa !9
  %92 = load i32, ptr %16, align 4, !tbaa !9
  %93 = sub i32 %92, %91
  store i32 %93, ptr %16, align 4, !tbaa !9
  store i32 855638016, ptr %17, align 4, !tbaa !9
  %94 = load i32, ptr %16, align 4, !tbaa !9
  %95 = load i32, ptr %17, align 4, !tbaa !9
  %96 = icmp ult i32 %94, %95
  %97 = zext i1 %96 to i32
  store i32 %97, ptr %16, align 4, !tbaa !9
  %98 = load i32, ptr %16, align 4, !tbaa !9
  %99 = icmp ne i32 %98, 0
  br i1 %99, label %100, label %101

100:                                              ; preds = %84
  br label %173

101:                                              ; preds = %84
  br label %102

102:                                              ; preds = %101, %71, %47
  store i32 217520, ptr %16, align 4, !tbaa !9
  %103 = load ptr, ptr %6, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.w2c_hermes, ptr %103, i32 0, i32 6
  %105 = load i32, ptr %16, align 4, !tbaa !9
  %106 = zext i32 %105 to i64
  %107 = call i64 @i64_load(ptr noundef %104, i64 noundef %106)
  store i64 %107, ptr %21, align 8, !tbaa !11
  %108 = load i64, ptr %21, align 8, !tbaa !11
  store i64 %108, ptr %15, align 8, !tbaa !11
  store i64 -844424930131969, ptr %22, align 8, !tbaa !11
  %109 = load i64, ptr %21, align 8, !tbaa !11
  %110 = load i64, ptr %22, align 8, !tbaa !11
  %111 = icmp ule i64 %109, %110
  %112 = zext i1 %111 to i32
  store i32 %112, ptr %16, align 4, !tbaa !9
  %113 = load i32, ptr %16, align 4, !tbaa !9
  %114 = icmp ne i32 %113, 0
  br i1 %114, label %115, label %116

115:                                              ; preds = %102
  br label %288

116:                                              ; preds = %102
  %117 = load i64, ptr %15, align 8, !tbaa !11
  store i64 %117, ptr %21, align 8, !tbaa !11
  %118 = load i64, ptr %21, align 8, !tbaa !11
  %119 = trunc i64 %118 to i32
  store i32 %119, ptr %16, align 4, !tbaa !9
  %120 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %120, ptr %12, align 4, !tbaa !9
  %121 = load i32, ptr %16, align 4, !tbaa !9
  %122 = icmp ne i32 %121, 0
  br i1 %122, label %123, label %141

123:                                              ; preds = %116
  %124 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %124, ptr %16, align 4, !tbaa !9
  %125 = load ptr, ptr %6, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.w2c_hermes, ptr %125, i32 0, i32 6
  %127 = load i32, ptr %16, align 4, !tbaa !9
  %128 = zext i32 %127 to i64
  %129 = call i32 @i32_load(ptr noundef %126, i64 noundef %128)
  store i32 %129, ptr %16, align 4, !tbaa !9
  store i32 436207616, ptr %17, align 4, !tbaa !9
  %130 = load i32, ptr %17, align 4, !tbaa !9
  %131 = load i32, ptr %16, align 4, !tbaa !9
  %132 = sub i32 %131, %130
  store i32 %132, ptr %16, align 4, !tbaa !9
  store i32 855638016, ptr %17, align 4, !tbaa !9
  %133 = load i32, ptr %16, align 4, !tbaa !9
  %134 = load i32, ptr %17, align 4, !tbaa !9
  %135 = icmp uge i32 %133, %134
  %136 = zext i1 %135 to i32
  store i32 %136, ptr %16, align 4, !tbaa !9
  %137 = load i32, ptr %16, align 4, !tbaa !9
  %138 = icmp ne i32 %137, 0
  br i1 %138, label %139, label %140

139:                                              ; preds = %123
  br label %306

140:                                              ; preds = %123
  br label %141

141:                                              ; preds = %140, %116
  store i32 217520, ptr %16, align 4, !tbaa !9
  %142 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %142, ptr %13, align 4, !tbaa !9
  %143 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %143, ptr %16, align 4, !tbaa !9
  %144 = load i32, ptr %16, align 4, !tbaa !9
  %145 = icmp ne i32 %144, 0
  br i1 %145, label %146, label %147

146:                                              ; preds = %141
  br label %183

147:                                              ; preds = %141
  %148 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %148, ptr %16, align 4, !tbaa !9
  %149 = load i32, ptr %16, align 4, !tbaa !9
  %150 = icmp ne i32 %149, 0
  %151 = xor i1 %150, true
  %152 = zext i1 %151 to i32
  store i32 %152, ptr %16, align 4, !tbaa !9
  %153 = load i32, ptr %16, align 4, !tbaa !9
  %154 = icmp ne i32 %153, 0
  br i1 %154, label %155, label %157

155:                                              ; preds = %147
  store i64 -1688849860263936, ptr %21, align 8, !tbaa !11
  %156 = load i64, ptr %21, align 8, !tbaa !11
  store i64 %156, ptr %15, align 8, !tbaa !11
  br label %324

157:                                              ; preds = %147
  %158 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %158, ptr %16, align 4, !tbaa !9
  %159 = load ptr, ptr %6, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.w2c_hermes, ptr %159, i32 0, i32 6
  %161 = load i32, ptr %16, align 4, !tbaa !9
  %162 = zext i32 %161 to i64
  %163 = call i32 @i32_load(ptr noundef %160, i64 noundef %162)
  store i32 %163, ptr %16, align 4, !tbaa !9
  store i32 8, ptr %17, align 4, !tbaa !9
  %164 = load i32, ptr %17, align 4, !tbaa !9
  %165 = load i32, ptr %16, align 4, !tbaa !9
  %166 = sub i32 %165, %164
  store i32 %166, ptr %16, align 4, !tbaa !9
  %167 = load ptr, ptr %6, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.w2c_hermes, ptr %167, i32 0, i32 6
  %169 = load i32, ptr %16, align 4, !tbaa !9
  %170 = zext i32 %169 to i64
  %171 = call i64 @i64_load(ptr noundef %168, i64 noundef %170)
  store i64 %171, ptr %21, align 8, !tbaa !11
  %172 = load i64, ptr %21, align 8, !tbaa !11
  store i64 %172, ptr %15, align 8, !tbaa !11
  br label %324

173:                                              ; preds = %100
  %174 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %174, ptr %16, align 4, !tbaa !9
  %175 = load i32, ptr %16, align 4, !tbaa !9
  %176 = icmp ne i32 %175, 0
  %177 = xor i1 %176, true
  %178 = zext i1 %177 to i32
  store i32 %178, ptr %16, align 4, !tbaa !9
  %179 = load i32, ptr %16, align 4, !tbaa !9
  %180 = icmp ne i32 %179, 0
  br i1 %180, label %181, label %182

181:                                              ; preds = %173
  br label %324

182:                                              ; preds = %173
  br label %183

183:                                              ; preds = %182, %146
  %184 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %184, ptr %16, align 4, !tbaa !9
  store i32 0, ptr %17, align 4, !tbaa !9
  %185 = load ptr, ptr %6, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.w2c_hermes, ptr %185, i32 0, i32 6
  %187 = load i32, ptr %16, align 4, !tbaa !9
  %188 = zext i32 %187 to i64
  %189 = add i64 %188, 8
  %190 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %186, i64 noundef %189, i32 noundef %190)
  %191 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %191, ptr %16, align 4, !tbaa !9
  %192 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %192, ptr %17, align 4, !tbaa !9
  %193 = load ptr, ptr %6, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.w2c_hermes, ptr %193, i32 0, i32 6
  %195 = load i32, ptr %16, align 4, !tbaa !9
  %196 = zext i32 %195 to i64
  %197 = add i64 %196, 12
  %198 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %194, i64 noundef %197, i32 noundef %198)
  %199 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %199, ptr %16, align 4, !tbaa !9
  store i32 8, ptr %17, align 4, !tbaa !9
  %200 = load i32, ptr %17, align 4, !tbaa !9
  %201 = load i32, ptr %16, align 4, !tbaa !9
  %202 = add i32 %201, %200
  store i32 %202, ptr %16, align 4, !tbaa !9
  %203 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %203, ptr %17, align 4, !tbaa !9
  %204 = load ptr, ptr %6, align 8, !tbaa !5
  %205 = load i32, ptr %16, align 4, !tbaa !9
  %206 = load i32, ptr %17, align 4, !tbaa !9
  %207 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSObject0x3A0x3Afreeze0x28hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSObject0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x29(ptr noundef %204, i32 noundef %205, i32 noundef %206)
  store i32 %207, ptr %16, align 4, !tbaa !9
  %208 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %208, ptr %12, align 4, !tbaa !9
  %209 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %209, ptr %16, align 4, !tbaa !9
  %210 = load ptr, ptr %6, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.w2c_hermes, ptr %210, i32 0, i32 6
  %212 = load i32, ptr %16, align 4, !tbaa !9
  %213 = zext i32 %212 to i64
  %214 = add i64 %213, 8
  %215 = call i32 @i32_load(ptr noundef %211, i64 noundef %214)
  store i32 %215, ptr %16, align 4, !tbaa !9
  %216 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %216, ptr %10, align 4, !tbaa !9
  %217 = load i32, ptr %16, align 4, !tbaa !9
  %218 = icmp ne i32 %217, 0
  br i1 %218, label %219, label %235

219:                                              ; preds = %183
  %220 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %220, ptr %16, align 4, !tbaa !9
  %221 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %221, ptr %17, align 4, !tbaa !9
  %222 = load ptr, ptr %6, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.w2c_hermes, ptr %222, i32 0, i32 6
  %224 = load i32, ptr %17, align 4, !tbaa !9
  %225 = zext i32 %224 to i64
  %226 = call i32 @i32_load(ptr noundef %223, i64 noundef %225)
  store i32 %226, ptr %17, align 4, !tbaa !9
  store i32 1, ptr %18, align 4, !tbaa !9
  %227 = load i32, ptr %18, align 4, !tbaa !9
  %228 = load i32, ptr %17, align 4, !tbaa !9
  %229 = sub i32 %228, %227
  store i32 %229, ptr %17, align 4, !tbaa !9
  %230 = load ptr, ptr %6, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.w2c_hermes, ptr %230, i32 0, i32 6
  %232 = load i32, ptr %16, align 4, !tbaa !9
  %233 = zext i32 %232 to i64
  %234 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %231, i64 noundef %233, i32 noundef %234)
  br label %235

235:                                              ; preds = %219, %183
  %236 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %236, ptr %16, align 4, !tbaa !9
  %237 = load i32, ptr %16, align 4, !tbaa !9
  %238 = icmp ne i32 %237, 0
  %239 = xor i1 %238, true
  %240 = zext i1 %239 to i32
  store i32 %240, ptr %16, align 4, !tbaa !9
  %241 = load i32, ptr %16, align 4, !tbaa !9
  %242 = icmp ne i32 %241, 0
  br i1 %242, label %243, label %250

243:                                              ; preds = %235
  %244 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %244, ptr %16, align 4, !tbaa !9
  store i32 0, ptr %17, align 4, !tbaa !9
  %245 = load ptr, ptr %6, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.w2c_hermes, ptr %245, i32 0, i32 6
  %247 = load i32, ptr %16, align 4, !tbaa !9
  %248 = zext i32 %247 to i64
  %249 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %246, i64 noundef %248, i32 noundef %249)
  br label %339

250:                                              ; preds = %235
  %251 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %251, ptr %16, align 4, !tbaa !9
  %252 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %252, ptr %17, align 4, !tbaa !9
  %253 = load ptr, ptr %6, align 8, !tbaa !5
  %254 = getelementptr inbounds %struct.w2c_hermes, ptr %253, i32 0, i32 6
  %255 = load i32, ptr %17, align 4, !tbaa !9
  %256 = zext i32 %255 to i64
  %257 = call i64 @i64_load(ptr noundef %254, i64 noundef %256)
  store i64 %257, ptr %22, align 8, !tbaa !11
  %258 = load ptr, ptr %6, align 8, !tbaa !5
  %259 = getelementptr inbounds %struct.w2c_hermes, ptr %258, i32 0, i32 6
  %260 = load i32, ptr %16, align 4, !tbaa !9
  %261 = zext i32 %260 to i64
  %262 = add i64 %261, 8
  %263 = load i64, ptr %22, align 8, !tbaa !11
  call void @i64_store(ptr noundef %259, i64 noundef %262, i64 noundef %263)
  %264 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %264, ptr %16, align 4, !tbaa !9
  store i32 1, ptr %17, align 4, !tbaa !9
  %265 = load ptr, ptr %6, align 8, !tbaa !5
  %266 = getelementptr inbounds %struct.w2c_hermes, ptr %265, i32 0, i32 6
  %267 = load i32, ptr %16, align 4, !tbaa !9
  %268 = zext i32 %267 to i64
  %269 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %266, i64 noundef %268, i32 noundef %269)
  br label %339

270:                                              ; preds = %83
  store i32 0, ptr %16, align 4, !tbaa !9
  %271 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %271, ptr %11, align 4, !tbaa !9
  store i32 147142, ptr %17, align 4, !tbaa !9
  %272 = load i32, ptr %17, align 4, !tbaa !9
  %273 = load i32, ptr %16, align 4, !tbaa !9
  %274 = add i32 %273, %272
  store i32 %274, ptr %16, align 4, !tbaa !9
  %275 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %275, ptr %17, align 4, !tbaa !9
  store i32 82611, ptr %18, align 4, !tbaa !9
  %276 = load i32, ptr %18, align 4, !tbaa !9
  %277 = load i32, ptr %17, align 4, !tbaa !9
  %278 = add i32 %277, %276
  store i32 %278, ptr %17, align 4, !tbaa !9
  store i32 106, ptr %18, align 4, !tbaa !9
  %279 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %279, ptr %19, align 4, !tbaa !9
  store i32 28119, ptr %20, align 4, !tbaa !9
  %280 = load i32, ptr %20, align 4, !tbaa !9
  %281 = load i32, ptr %19, align 4, !tbaa !9
  %282 = add i32 %281, %280
  store i32 %282, ptr %19, align 4, !tbaa !9
  %283 = load ptr, ptr %6, align 8, !tbaa !5
  %284 = load i32, ptr %16, align 4, !tbaa !9
  %285 = load i32, ptr %17, align 4, !tbaa !9
  %286 = load i32, ptr %18, align 4, !tbaa !9
  %287 = load i32, ptr %19, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %283, i32 noundef %284, i32 noundef %285, i32 noundef %286, i32 noundef %287)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

288:                                              ; preds = %115
  store i32 0, ptr %16, align 4, !tbaa !9
  %289 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %289, ptr %11, align 4, !tbaa !9
  store i32 146777, ptr %17, align 4, !tbaa !9
  %290 = load i32, ptr %17, align 4, !tbaa !9
  %291 = load i32, ptr %16, align 4, !tbaa !9
  %292 = add i32 %291, %290
  store i32 %292, ptr %16, align 4, !tbaa !9
  %293 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %293, ptr %17, align 4, !tbaa !9
  store i32 82692, ptr %18, align 4, !tbaa !9
  %294 = load i32, ptr %18, align 4, !tbaa !9
  %295 = load i32, ptr %17, align 4, !tbaa !9
  %296 = add i32 %295, %294
  store i32 %296, ptr %17, align 4, !tbaa !9
  store i32 61, ptr %18, align 4, !tbaa !9
  %297 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %297, ptr %19, align 4, !tbaa !9
  store i32 72547, ptr %20, align 4, !tbaa !9
  %298 = load i32, ptr %20, align 4, !tbaa !9
  %299 = load i32, ptr %19, align 4, !tbaa !9
  %300 = add i32 %299, %298
  store i32 %300, ptr %19, align 4, !tbaa !9
  %301 = load ptr, ptr %6, align 8, !tbaa !5
  %302 = load i32, ptr %16, align 4, !tbaa !9
  %303 = load i32, ptr %17, align 4, !tbaa !9
  %304 = load i32, ptr %18, align 4, !tbaa !9
  %305 = load i32, ptr %19, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %301, i32 noundef %302, i32 noundef %303, i32 noundef %304, i32 noundef %305)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

306:                                              ; preds = %139
  store i32 0, ptr %16, align 4, !tbaa !9
  %307 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %307, ptr %11, align 4, !tbaa !9
  store i32 205071, ptr %17, align 4, !tbaa !9
  %308 = load i32, ptr %17, align 4, !tbaa !9
  %309 = load i32, ptr %16, align 4, !tbaa !9
  %310 = add i32 %309, %308
  store i32 %310, ptr %16, align 4, !tbaa !9
  %311 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %311, ptr %17, align 4, !tbaa !9
  store i32 82611, ptr %18, align 4, !tbaa !9
  %312 = load i32, ptr %18, align 4, !tbaa !9
  %313 = load i32, ptr %17, align 4, !tbaa !9
  %314 = add i32 %313, %312
  store i32 %314, ptr %17, align 4, !tbaa !9
  store i32 299, ptr %18, align 4, !tbaa !9
  %315 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %315, ptr %19, align 4, !tbaa !9
  store i32 72549, ptr %20, align 4, !tbaa !9
  %316 = load i32, ptr %20, align 4, !tbaa !9
  %317 = load i32, ptr %19, align 4, !tbaa !9
  %318 = add i32 %317, %316
  store i32 %318, ptr %19, align 4, !tbaa !9
  %319 = load ptr, ptr %6, align 8, !tbaa !5
  %320 = load i32, ptr %16, align 4, !tbaa !9
  %321 = load i32, ptr %17, align 4, !tbaa !9
  %322 = load i32, ptr %18, align 4, !tbaa !9
  %323 = load i32, ptr %19, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %319, i32 noundef %320, i32 noundef %321, i32 noundef %322, i32 noundef %323)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

324:                                              ; preds = %181, %157, %155
  %325 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %325, ptr %16, align 4, !tbaa !9
  %326 = load i64, ptr %15, align 8, !tbaa !11
  store i64 %326, ptr %22, align 8, !tbaa !11
  %327 = load ptr, ptr %6, align 8, !tbaa !5
  %328 = getelementptr inbounds %struct.w2c_hermes, ptr %327, i32 0, i32 6
  %329 = load i32, ptr %16, align 4, !tbaa !9
  %330 = zext i32 %329 to i64
  %331 = add i64 %330, 8
  %332 = load i64, ptr %22, align 8, !tbaa !11
  call void @i64_store(ptr noundef %328, i64 noundef %331, i64 noundef %332)
  %333 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %333, ptr %16, align 4, !tbaa !9
  store i32 1, ptr %17, align 4, !tbaa !9
  %334 = load ptr, ptr %6, align 8, !tbaa !5
  %335 = getelementptr inbounds %struct.w2c_hermes, ptr %334, i32 0, i32 6
  %336 = load i32, ptr %16, align 4, !tbaa !9
  %337 = zext i32 %336 to i64
  %338 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %335, i64 noundef %337, i32 noundef %338)
  br label %339

339:                                              ; preds = %324, %250, %243
  %340 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %340, ptr %16, align 4, !tbaa !9
  store i32 16, ptr %17, align 4, !tbaa !9
  %341 = load i32, ptr %17, align 4, !tbaa !9
  %342 = load i32, ptr %16, align 4, !tbaa !9
  %343 = add i32 %342, %341
  store i32 %343, ptr %16, align 4, !tbaa !9
  %344 = load i32, ptr %16, align 4, !tbaa !9
  %345 = load ptr, ptr %6, align 8, !tbaa !5
  %346 = getelementptr inbounds %struct.w2c_hermes, ptr %345, i32 0, i32 3
  store i32 %344, ptr %346, align 8, !tbaa !13
  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 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, 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 8, 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
  ret void
}

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

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !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: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AobjectFreeze0x28void0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3ANativeArgs0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #3 {
  %6 = getelementptr inbounds i8, ptr %0, i64 24
  %7 = load i32, ptr %6, align 8, !tbaa !5
  %8 = add i32 %7, -16
  store i32 %8, ptr %6, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %0, i64 40
  %10 = zext i32 %4 to i64
  %11 = add nuw nsw i64 %10, 4
  %12 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %11)
  %.not = icmp eq i32 %12, 0
  br i1 %.not, label %25, label %13

13:                                               ; preds = %5
  %14 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %10)
  %15 = add i32 %14, -8
  %16 = zext i32 %15 to i64
  %17 = tail call i64 @i64_load(ptr noundef nonnull %9, i64 noundef %16)
  %18 = icmp ult i64 %17, -844424930131968
  br i1 %18, label %25, label %19

19:                                               ; preds = %13
  %20 = and i64 %17, 4294967295
  %.not182 = icmp eq i64 %20, 0
  br i1 %.not182, label %58, label %21

21:                                               ; preds = %19
  %22 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %20)
  %23 = add i32 %22, -436207616
  %24 = icmp ult i32 %23, 855638016
  br i1 %24, label %39, label %25

25:                                               ; preds = %21, %13, %5
  %26 = tail call i64 @i64_load(ptr noundef nonnull %9, i64 noundef 217520)
  %27 = icmp ult i64 %26, -844424930131968
  br i1 %27, label %59, label %28

28:                                               ; preds = %25
  %29 = and i64 %26, 4294967295
  %.not183 = icmp eq i64 %29, 0
  br i1 %.not183, label %.critedge, label %30

30:                                               ; preds = %28
  %31 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %29)
  %32 = add i32 %31, -1291845632
  %33 = icmp ult i32 %32, -855638016
  br i1 %33, label %60, label %39

.critedge:                                        ; preds = %28
  br i1 %.not, label %61, label %34

34:                                               ; preds = %.critedge
  %35 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %10)
  %36 = add i32 %35, -8
  %37 = zext i32 %36 to i64
  %38 = tail call i64 @i64_load(ptr noundef nonnull %9, i64 noundef %37)
  br label %61

39:                                               ; preds = %30, %21
  %.0177 = phi i32 [ %15, %21 ], [ 217520, %30 ]
  %40 = zext i32 %8 to i64
  %41 = add nuw nsw i64 %40, 8
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %41, i32 noundef 0)
  %42 = add nuw nsw i64 %40, 12
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %42, i32 noundef %.0177)
  %43 = add i32 %7, -8
  %44 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSObject0x3A0x3Afreeze0x28hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSObject0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x29(ptr noundef nonnull %0, i32 noundef %43, i32 noundef %3) #4
  %45 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %41)
  %.not184 = icmp eq i32 %45, 0
  br i1 %.not184, label %50, label %46

46:                                               ; preds = %39
  %47 = zext i32 %45 to i64
  %48 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %47)
  %49 = add i32 %48, -1
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %47, i32 noundef %49)
  br label %50

50:                                               ; preds = %46, %39
  %.not185 = icmp eq i32 %44, 0
  br i1 %.not185, label %51, label %53

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

53:                                               ; preds = %50
  %54 = zext i32 %.0177 to i64
  %55 = tail call i64 @i64_load(ptr noundef nonnull %9, i64 noundef %54)
  %56 = zext i32 %1 to i64
  %57 = add nuw nsw i64 %56, 8
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %57, i64 noundef %55)
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %56, i32 noundef 1)
  br label %64

58:                                               ; preds = %19
  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

59:                                               ; preds = %25
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 146777, i32 noundef 82692, i32 noundef 61, i32 noundef 72547) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

60:                                               ; preds = %30
  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

61:                                               ; preds = %.critedge, %34
  %.0 = phi i64 [ %38, %34 ], [ -1688849860263936, %.critedge ]
  %62 = zext i32 %1 to i64
  %63 = add nuw nsw i64 %62, 8
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %63, i64 noundef %.0)
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %62, i32 noundef 1)
  br label %64

64:                                               ; preds = %61, %53, %51
  store i32 %7, ptr %6, align 8, !tbaa !5
  ret void
}

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

attributes #0 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !10, i64 24}
!6 = !{!"w2c_hermes", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !11, i64 40, !14, i64 80}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"", !7, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !13, i64 32}
!12 = !{!"long", !8, i64 0}
!13 = !{!"_Bool", !8, i64 0}
!14 = !{!"", !7, i64 0, !10, i64 8, !10, i64 12}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass,TailCallElimPass