; LLVM IR from facebook/hermes :: API/hermes_sandbox/external (hermes_sandbox_impl_opt_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: inlinehint nounwind uwtable
declare hidden void @i64_store(ptr noundef, i64 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: 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) #2

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

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

40:                                               ; preds = %5
  %41 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %41, ptr %14, align 4, !tbaa !9
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.w2c_hermes, ptr %42, i32 0, i32 6
  %44 = load i32, ptr %14, align 4, !tbaa !9
  %45 = zext i32 %44 to i64
  %46 = call i32 @i32_load(ptr noundef %43, i64 noundef %45)
  store i32 %46, ptr %14, align 4, !tbaa !9
  store i32 8, ptr %15, align 4, !tbaa !9
  %47 = load i32, ptr %15, align 4, !tbaa !9
  %48 = load i32, ptr %14, align 4, !tbaa !9
  %49 = sub i32 %48, %47
  store i32 %49, ptr %14, 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 %14, align 4, !tbaa !9
  %53 = zext i32 %52 to i64
  %54 = call i64 @i64_load(ptr noundef %51, i64 noundef %53)
  store i64 %54, ptr %18, align 8, !tbaa !11
  %55 = load i64, ptr %18, align 8, !tbaa !11
  store i64 %55, ptr %13, align 8, !tbaa !11
  store i64 -844424930131968, ptr %19, align 8, !tbaa !11
  %56 = load i64, ptr %18, align 8, !tbaa !11
  %57 = load i64, ptr %19, align 8, !tbaa !11
  %58 = icmp uge i64 %56, %57
  %59 = zext i1 %58 to i32
  store i32 %59, ptr %14, align 4, !tbaa !9
  %60 = load i32, ptr %14, align 4, !tbaa !9
  %61 = icmp ne i32 %60, 0
  br i1 %61, label %62, label %111

62:                                               ; preds = %40
  %63 = load i64, ptr %13, align 8, !tbaa !11
  store i64 %63, ptr %18, align 8, !tbaa !11
  %64 = load i64, ptr %18, align 8, !tbaa !11
  %65 = trunc i64 %64 to i32
  store i32 %65, ptr %14, align 4, !tbaa !9
  %66 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %66, ptr %8, align 4, !tbaa !9
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.w2c_hermes, ptr %67, i32 0, i32 6
  %69 = load i32, ptr %14, align 4, !tbaa !9
  %70 = zext i32 %69 to i64
  %71 = add i64 %70, 3
  %72 = call i32 @i32_load8_u(ptr noundef %68, i64 noundef %71)
  store i32 %72, ptr %14, align 4, !tbaa !9
  store i32 24, ptr %15, align 4, !tbaa !9
  %73 = load i32, ptr %15, align 4, !tbaa !9
  %74 = and i32 %73, 31
  %75 = load i32, ptr %14, align 4, !tbaa !9
  %76 = shl i32 %75, %74
  store i32 %76, ptr %14, align 4, !tbaa !9
  store i32 855638016, ptr %15, align 4, !tbaa !9
  %77 = load i32, ptr %14, align 4, !tbaa !9
  %78 = load i32, ptr %15, align 4, !tbaa !9
  %79 = icmp eq i32 %77, %78
  %80 = zext i1 %79 to i32
  store i32 %80, ptr %14, align 4, !tbaa !9
  %81 = load i32, ptr %14, align 4, !tbaa !9
  %82 = icmp ne i32 %81, 0
  br i1 %82, label %83, label %84

83:                                               ; preds = %62
  br label %165

84:                                               ; preds = %62
  store i32 67200, ptr %14, align 4, !tbaa !9
  %85 = load ptr, ptr %6, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.w2c_hermes, ptr %85, i32 0, i32 6
  %87 = load i32, ptr %14, align 4, !tbaa !9
  %88 = zext i32 %87 to i64
  %89 = call i64 @i64_load(ptr noundef %86, i64 noundef %88)
  store i64 %89, ptr %18, align 8, !tbaa !11
  %90 = load i64, ptr %18, align 8, !tbaa !11
  store i64 %90, ptr %12, align 8, !tbaa !11
  store i64 -844424930131968, ptr %19, align 8, !tbaa !11
  %91 = load i64, ptr %18, align 8, !tbaa !11
  %92 = load i64, ptr %19, align 8, !tbaa !11
  %93 = icmp ult i64 %91, %92
  %94 = zext i1 %93 to i32
  store i32 %94, ptr %14, align 4, !tbaa !9
  %95 = load i32, ptr %14, align 4, !tbaa !9
  %96 = icmp ne i32 %95, 0
  br i1 %96, label %97, label %98

97:                                               ; preds = %84
  br label %201

98:                                               ; preds = %84
  %99 = load i64, ptr %12, align 8, !tbaa !11
  store i64 %99, ptr %18, align 8, !tbaa !11
  store i64 4294967295, ptr %19, align 8, !tbaa !11
  %100 = load i64, ptr %19, align 8, !tbaa !11
  %101 = load i64, ptr %18, align 8, !tbaa !11
  %102 = and i64 %101, %100
  store i64 %102, ptr %18, align 8, !tbaa !11
  store i64 0, ptr %19, align 8, !tbaa !11
  %103 = load i64, ptr %18, align 8, !tbaa !11
  %104 = load i64, ptr %19, align 8, !tbaa !11
  %105 = icmp ne i64 %103, %104
  %106 = zext i1 %105 to i32
  store i32 %106, ptr %14, align 4, !tbaa !9
  %107 = load i32, ptr %14, align 4, !tbaa !9
  %108 = icmp ne i32 %107, 0
  br i1 %108, label %109, label %110

109:                                              ; preds = %98
  br label %177

110:                                              ; preds = %98
  br label %201

111:                                              ; preds = %40
  store i32 67200, ptr %14, align 4, !tbaa !9
  %112 = load ptr, ptr %6, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.w2c_hermes, ptr %112, i32 0, i32 6
  %114 = load i32, ptr %14, align 4, !tbaa !9
  %115 = zext i32 %114 to i64
  %116 = call i64 @i64_load(ptr noundef %113, i64 noundef %115)
  store i64 %116, ptr %18, align 8, !tbaa !11
  %117 = load i64, ptr %18, align 8, !tbaa !11
  store i64 %117, ptr %12, align 8, !tbaa !11
  store i64 -844424930131968, ptr %19, align 8, !tbaa !11
  %118 = load i64, ptr %18, align 8, !tbaa !11
  %119 = load i64, ptr %19, align 8, !tbaa !11
  %120 = icmp ult i64 %118, %119
  %121 = zext i1 %120 to i32
  store i32 %121, ptr %14, align 4, !tbaa !9
  %122 = load i32, ptr %14, align 4, !tbaa !9
  %123 = icmp ne i32 %122, 0
  br i1 %123, label %124, label %125

124:                                              ; preds = %111
  br label %221

125:                                              ; preds = %111
  %126 = load i64, ptr %12, align 8, !tbaa !11
  store i64 %126, ptr %18, align 8, !tbaa !11
  store i64 4294967295, ptr %19, align 8, !tbaa !11
  %127 = load i64, ptr %19, align 8, !tbaa !11
  %128 = load i64, ptr %18, align 8, !tbaa !11
  %129 = and i64 %128, %127
  store i64 %129, ptr %18, align 8, !tbaa !11
  store i64 0, ptr %19, align 8, !tbaa !11
  %130 = load i64, ptr %18, align 8, !tbaa !11
  %131 = load i64, ptr %19, align 8, !tbaa !11
  %132 = icmp ne i64 %130, %131
  %133 = zext i1 %132 to i32
  store i32 %133, ptr %14, align 4, !tbaa !9
  %134 = load i32, ptr %14, align 4, !tbaa !9
  %135 = icmp ne i32 %134, 0
  br i1 %135, label %136, label %137

136:                                              ; preds = %125
  br label %177

137:                                              ; preds = %125
  br label %221

138:                                              ; preds = %5
  store i32 67200, ptr %14, align 4, !tbaa !9
  %139 = load ptr, ptr %6, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.w2c_hermes, ptr %139, i32 0, i32 6
  %141 = load i32, ptr %14, align 4, !tbaa !9
  %142 = zext i32 %141 to i64
  %143 = call i64 @i64_load(ptr noundef %140, i64 noundef %142)
  store i64 %143, ptr %18, align 8, !tbaa !11
  %144 = load i64, ptr %18, align 8, !tbaa !11
  store i64 %144, ptr %12, align 8, !tbaa !11
  store i64 -844424930131968, ptr %19, align 8, !tbaa !11
  %145 = load i64, ptr %18, align 8, !tbaa !11
  %146 = load i64, ptr %19, align 8, !tbaa !11
  %147 = icmp ult i64 %145, %146
  %148 = zext i1 %147 to i32
  store i32 %148, ptr %14, align 4, !tbaa !9
  %149 = load i32, ptr %14, align 4, !tbaa !9
  %150 = icmp ne i32 %149, 0
  br i1 %150, label %151, label %152

151:                                              ; preds = %138
  br label %221

152:                                              ; preds = %138
  %153 = load i64, ptr %12, align 8, !tbaa !11
  store i64 %153, ptr %18, align 8, !tbaa !11
  store i64 4294967295, ptr %19, align 8, !tbaa !11
  %154 = load i64, ptr %19, align 8, !tbaa !11
  %155 = load i64, ptr %18, align 8, !tbaa !11
  %156 = and i64 %155, %154
  store i64 %156, ptr %18, align 8, !tbaa !11
  %157 = load i64, ptr %18, align 8, !tbaa !11
  %158 = icmp ne i64 %157, 0
  %159 = xor i1 %158, true
  %160 = zext i1 %159 to i32
  store i32 %160, ptr %14, align 4, !tbaa !9
  %161 = load i32, ptr %14, align 4, !tbaa !9
  %162 = icmp ne i32 %161, 0
  br i1 %162, label %163, label %164

163:                                              ; preds = %152
  br label %221

164:                                              ; preds = %152
  br label %177

165:                                              ; preds = %83
  %166 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %166, ptr %14, align 4, !tbaa !9
  %167 = load i32, ptr %14, align 4, !tbaa !9
  %168 = icmp ne i32 %167, 0
  %169 = xor i1 %168, true
  %170 = zext i1 %169 to i32
  store i32 %170, ptr %14, align 4, !tbaa !9
  %171 = load i32, ptr %14, align 4, !tbaa !9
  %172 = icmp ne i32 %171, 0
  br i1 %172, label %173, label %174

173:                                              ; preds = %165
  br label %201

174:                                              ; preds = %165
  %175 = load i64, ptr %13, align 8, !tbaa !11
  store i64 %175, ptr %18, align 8, !tbaa !11
  %176 = load i64, ptr %18, align 8, !tbaa !11
  store i64 %176, ptr %12, align 8, !tbaa !11
  br label %177

177:                                              ; preds = %174, %164, %136, %109
  %178 = load i64, ptr %12, align 8, !tbaa !11
  store i64 %178, ptr %18, align 8, !tbaa !11
  %179 = load i64, ptr %18, align 8, !tbaa !11
  %180 = trunc i64 %179 to i32
  store i32 %180, ptr %14, align 4, !tbaa !9
  %181 = load ptr, ptr %6, align 8, !tbaa !5
  %182 = load i32, ptr %14, align 4, !tbaa !9
  %183 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSWeakMapImplBase0x3A0x3AdebugFreeSlotsAndGetSize0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AJSWeakMapImplBase0x2A0x29(ptr noundef %181, i32 noundef %182)
  store i32 %183, ptr %14, align 4, !tbaa !9
  %184 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %184, ptr %8, align 4, !tbaa !9
  %185 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %185, ptr %14, align 4, !tbaa !9
  store i32 1, ptr %15, align 4, !tbaa !9
  %186 = load ptr, ptr %6, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.w2c_hermes, ptr %186, i32 0, i32 6
  %188 = load i32, ptr %14, align 4, !tbaa !9
  %189 = zext i32 %188 to i64
  %190 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %187, i64 noundef %189, i32 noundef %190)
  %191 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %191, ptr %14, align 4, !tbaa !9
  %192 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %192, ptr %15, align 4, !tbaa !9
  %193 = load i32, ptr %15, align 4, !tbaa !9
  %194 = uitofp i32 %193 to double
  store double %194, ptr %20, align 8, !tbaa !18
  %195 = load ptr, ptr %6, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.w2c_hermes, ptr %195, i32 0, i32 6
  %197 = load i32, ptr %14, align 4, !tbaa !9
  %198 = zext i32 %197 to i64
  %199 = add i64 %198, 8
  %200 = load double, ptr %20, align 8, !tbaa !18
  call void @f64_store(ptr noundef %196, i64 noundef %199, double noundef %200)
  br label %317

201:                                              ; preds = %173, %110, %97
  %202 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %202, ptr %14, align 4, !tbaa !9
  %203 = load ptr, ptr %6, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.w2c_hermes, ptr %203, i32 0, i32 6
  %205 = load i32, ptr %14, align 4, !tbaa !9
  %206 = zext i32 %205 to i64
  %207 = add i64 %206, 3
  %208 = call i32 @i32_load8_u(ptr noundef %204, i64 noundef %207)
  store i32 %208, ptr %14, align 4, !tbaa !9
  store i32 24, ptr %15, align 4, !tbaa !9
  %209 = load i32, ptr %15, align 4, !tbaa !9
  %210 = and i32 %209, 31
  %211 = load i32, ptr %14, align 4, !tbaa !9
  %212 = shl i32 %211, %210
  store i32 %212, ptr %14, align 4, !tbaa !9
  store i32 872415232, ptr %15, align 4, !tbaa !9
  %213 = load i32, ptr %14, align 4, !tbaa !9
  %214 = load i32, ptr %15, align 4, !tbaa !9
  %215 = icmp eq i32 %213, %214
  %216 = zext i1 %215 to i32
  store i32 %216, ptr %14, align 4, !tbaa !9
  %217 = load i32, ptr %14, align 4, !tbaa !9
  %218 = icmp ne i32 %217, 0
  br i1 %218, label %219, label %220

219:                                              ; preds = %201
  br label %228

220:                                              ; preds = %201
  br label %221

221:                                              ; preds = %220, %163, %151, %137, %124
  store i32 67200, ptr %14, 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 %14, align 4, !tbaa !9
  %225 = zext i32 %224 to i64
  %226 = call i64 @i64_load(ptr noundef %223, i64 noundef %225)
  store i64 %226, ptr %18, align 8, !tbaa !11
  %227 = load i64, ptr %18, align 8, !tbaa !11
  store i64 %227, ptr %13, align 8, !tbaa !11
  br label %228

228:                                              ; preds = %221, %219
  %229 = load i64, ptr %13, align 8, !tbaa !11
  store i64 %229, ptr %18, align 8, !tbaa !11
  store i64 -844424930131968, ptr %19, align 8, !tbaa !11
  %230 = load i64, ptr %18, align 8, !tbaa !11
  %231 = load i64, ptr %19, align 8, !tbaa !11
  %232 = icmp ult i64 %230, %231
  %233 = zext i1 %232 to i32
  store i32 %233, ptr %14, align 4, !tbaa !9
  %234 = load i32, ptr %14, align 4, !tbaa !9
  %235 = icmp ne i32 %234, 0
  br i1 %235, label %236, label %237

236:                                              ; preds = %228
  br label %273

237:                                              ; preds = %228
  %238 = load i64, ptr %13, align 8, !tbaa !11
  store i64 %238, ptr %18, align 8, !tbaa !11
  store i64 4294967295, ptr %19, align 8, !tbaa !11
  %239 = load i64, ptr %19, align 8, !tbaa !11
  %240 = load i64, ptr %18, align 8, !tbaa !11
  %241 = and i64 %240, %239
  store i64 %241, ptr %18, align 8, !tbaa !11
  %242 = load i64, ptr %18, align 8, !tbaa !11
  %243 = icmp ne i64 %242, 0
  %244 = xor i1 %243, true
  %245 = zext i1 %244 to i32
  store i32 %245, ptr %14, align 4, !tbaa !9
  %246 = load i32, ptr %14, align 4, !tbaa !9
  %247 = icmp ne i32 %246, 0
  br i1 %247, label %248, label %249

248:                                              ; preds = %237
  br label %273

249:                                              ; preds = %237
  %250 = load i64, ptr %13, align 8, !tbaa !11
  store i64 %250, ptr %18, align 8, !tbaa !11
  %251 = load i64, ptr %18, align 8, !tbaa !11
  %252 = trunc i64 %251 to i32
  store i32 %252, ptr %14, align 4, !tbaa !9
  %253 = load ptr, ptr %6, align 8, !tbaa !5
  %254 = load i32, ptr %14, align 4, !tbaa !9
  %255 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSWeakMapImplBase0x3A0x3AdebugFreeSlotsAndGetSize0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AJSWeakMapImplBase0x2A0x29(ptr noundef %253, i32 noundef %254)
  store i32 %255, ptr %14, align 4, !tbaa !9
  %256 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %256, ptr %8, align 4, !tbaa !9
  %257 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %257, ptr %14, align 4, !tbaa !9
  store i32 1, ptr %15, align 4, !tbaa !9
  %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 %14, align 4, !tbaa !9
  %261 = zext i32 %260 to i64
  %262 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %259, i64 noundef %261, i32 noundef %262)
  %263 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %263, ptr %14, align 4, !tbaa !9
  %264 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %264, ptr %15, align 4, !tbaa !9
  %265 = load i32, ptr %15, align 4, !tbaa !9
  %266 = uitofp i32 %265 to double
  store double %266, ptr %20, align 8, !tbaa !18
  %267 = load ptr, ptr %6, align 8, !tbaa !5
  %268 = getelementptr inbounds %struct.w2c_hermes, ptr %267, i32 0, i32 6
  %269 = load i32, ptr %14, align 4, !tbaa !9
  %270 = zext i32 %269 to i64
  %271 = add i64 %270, 8
  %272 = load double, ptr %20, align 8, !tbaa !18
  call void @f64_store(ptr noundef %268, i64 noundef %271, double noundef %272)
  br label %317

273:                                              ; preds = %248, %236
  %274 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %274, ptr %14, align 4, !tbaa !9
  store i32 0, ptr %15, align 4, !tbaa !9
  %275 = load ptr, ptr %6, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct.w2c_hermes, ptr %275, i32 0, i32 6
  %277 = load i32, ptr %14, align 4, !tbaa !9
  %278 = zext i32 %277 to i64
  %279 = add i64 %278, 40
  %280 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %276, i64 noundef %279, i32 noundef %280)
  %281 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %281, ptr %14, align 4, !tbaa !9
  store i64 219043332097, ptr %19, align 8, !tbaa !11
  %282 = load ptr, ptr %6, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct.w2c_hermes, ptr %282, i32 0, i32 6
  %284 = load i32, ptr %14, align 4, !tbaa !9
  %285 = zext i32 %284 to i64
  %286 = add i64 %285, 32
  %287 = load i64, ptr %19, align 8, !tbaa !11
  call void @i64_store(ptr noundef %283, i64 noundef %286, i64 noundef %287)
  %288 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %288, ptr %14, align 4, !tbaa !9
  store i32 3, ptr %15, align 4, !tbaa !9
  %289 = load ptr, ptr %6, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.w2c_hermes, ptr %289, i32 0, i32 6
  %291 = load i32, ptr %14, align 4, !tbaa !9
  %292 = zext i32 %291 to i64
  %293 = add i64 %292, 16
  %294 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %290, i64 noundef %293, i32 noundef %294)
  %295 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %295, ptr %14, align 4, !tbaa !9
  store i32 29642, ptr %15, align 4, !tbaa !9
  %296 = load ptr, ptr %6, align 8, !tbaa !5
  %297 = getelementptr inbounds %struct.w2c_hermes, ptr %296, i32 0, i32 6
  %298 = load i32, ptr %14, align 4, !tbaa !9
  %299 = zext i32 %298 to i64
  %300 = add i64 %299, 8
  %301 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %297, i64 noundef %300, i32 noundef %301)
  %302 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %302, ptr %14, align 4, !tbaa !9
  %303 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %303, ptr %15, align 4, !tbaa !9
  %304 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %304, ptr %16, align 4, !tbaa !9
  store i32 8, ptr %17, align 4, !tbaa !9
  %305 = load i32, ptr %17, align 4, !tbaa !9
  %306 = load i32, ptr %16, align 4, !tbaa !9
  %307 = add i32 %306, %305
  store i32 %307, ptr %16, align 4, !tbaa !9
  %308 = load ptr, ptr %6, align 8, !tbaa !5
  %309 = load i32, ptr %15, align 4, !tbaa !9
  %310 = load i32, ptr %16, align 4, !tbaa !9
  %311 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseTypeError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef %308, i32 noundef %309, i32 noundef %310)
  store i32 %311, ptr %15, align 4, !tbaa !9
  %312 = load ptr, ptr %6, align 8, !tbaa !5
  %313 = getelementptr inbounds %struct.w2c_hermes, ptr %312, i32 0, i32 6
  %314 = load i32, ptr %14, align 4, !tbaa !9
  %315 = zext i32 %314 to i64
  %316 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %313, i64 noundef %315, i32 noundef %316)
  br label %317

317:                                              ; preds = %273, %249, %177
  %318 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %318, ptr %14, align 4, !tbaa !9
  store i32 48, ptr %15, align 4, !tbaa !9
  %319 = load i32, ptr %15, align 4, !tbaa !9
  %320 = load i32, ptr %14, align 4, !tbaa !9
  %321 = add i32 %320, %319
  store i32 %321, ptr %14, align 4, !tbaa !9
  %322 = load i32, ptr %14, align 4, !tbaa !9
  %323 = load ptr, ptr %6, align 8, !tbaa !5
  %324 = getelementptr inbounds %struct.w2c_hermes, ptr %323, i32 0, i32 3
  store i32 %322, ptr %324, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  ret void
}

declare i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSWeakMapImplBase0x3A0x3AdebugFreeSlotsAndGetSize0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AJSWeakMapImplBase0x2A0x29(ptr noundef, i32 noundef) #2

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 = { "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 }

!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}
!18 = !{!19, !19, i64 0}
!19 = !{!"double", !7, 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: 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: 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 #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @f64_store(ptr noundef, i64 noundef, double noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AhermesInternalGetWeakSize0x28void0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3ANativeArgs0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #2 {
  %6 = getelementptr inbounds i8, ptr %0, i64 24
  %7 = load i32, ptr %6, align 8, !tbaa !5
  %8 = add i32 %7, -48
  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 %32, 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 ugt i64 %17, -844424930131969
  br i1 %18, label %19, label %28

19:                                               ; preds = %13
  %20 = and i64 %17, 4294967295
  %21 = add nuw nsw i64 %20, 3
  %22 = tail call i32 @i32_load8_u(ptr noundef nonnull %9, i64 noundef %21)
  %.mask = and i32 %22, 255
  %23 = icmp eq i32 %.mask, 51
  br i1 %23, label %36, label %24

24:                                               ; preds = %19
  %25 = tail call i64 @i64_load(ptr noundef nonnull %9, i64 noundef 67200)
  %26 = icmp ult i64 %25, -844424930131968
  %27 = and i64 %25, 4294967295
  %.not159 = icmp eq i64 %27, 0
  %or.cond = or i1 %26, %.not159
  br i1 %or.cond, label %43, label %37

28:                                               ; preds = %13
  %29 = tail call i64 @i64_load(ptr noundef nonnull %9, i64 noundef 67200)
  %30 = icmp ult i64 %29, -844424930131968
  %31 = and i64 %29, 4294967295
  %.not158 = icmp eq i64 %31, 0
  %or.cond163 = or i1 %30, %.not158
  br i1 %or.cond163, label %46, label %37

32:                                               ; preds = %5
  %33 = tail call i64 @i64_load(ptr noundef nonnull %9, i64 noundef 67200)
  %34 = icmp ult i64 %33, -844424930131968
  %35 = and i64 %33, 4294967295
  %.not157 = icmp eq i64 %35, 0
  %or.cond164 = or i1 %34, %.not157
  br i1 %or.cond164, label %46, label %37

36:                                               ; preds = %19
  %.not160 = icmp eq i64 %20, 0
  br i1 %.not160, label %43, label %37

37:                                               ; preds = %36, %32, %28, %24
  %.0152 = phi i64 [ %25, %24 ], [ %29, %28 ], [ %33, %32 ], [ %17, %36 ]
  %38 = trunc i64 %.0152 to i32
  %39 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSWeakMapImplBase0x3A0x3AdebugFreeSlotsAndGetSize0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AJSWeakMapImplBase0x2A0x29(ptr noundef nonnull %0, i32 noundef %38) #3
  %40 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %40, i32 noundef 1)
  %41 = uitofp i32 %39 to double
  %42 = add nuw nsw i64 %40, 8
  tail call void @f64_store(ptr noundef nonnull %9, i64 noundef %42, double noundef %41)
  br label %65

43:                                               ; preds = %36, %24
  %44 = tail call i32 @i32_load8_u(ptr noundef nonnull %9, i64 noundef %21)
  %.mask161 = and i32 %44, 255
  %45 = icmp eq i32 %.mask161, 52
  br i1 %45, label %48, label %46

46:                                               ; preds = %43, %32, %28
  %47 = tail call i64 @i64_load(ptr noundef nonnull %9, i64 noundef 67200)
  %.pre = and i64 %47, 4294967295
  br label %48

48:                                               ; preds = %43, %46
  %.pre-phi = phi i64 [ %20, %43 ], [ %.pre, %46 ]
  %.0 = phi i64 [ %17, %43 ], [ %47, %46 ]
  %49 = icmp ult i64 %.0, -844424930131968
  %.not162 = icmp eq i64 %.pre-phi, 0
  %or.cond165 = or i1 %49, %.not162
  br i1 %or.cond165, label %56, label %50

50:                                               ; preds = %48
  %51 = trunc i64 %.0 to i32
  %52 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSWeakMapImplBase0x3A0x3AdebugFreeSlotsAndGetSize0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AJSWeakMapImplBase0x2A0x29(ptr noundef nonnull %0, i32 noundef %51) #3
  %53 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %53, i32 noundef 1)
  %54 = uitofp i32 %52 to double
  %55 = add nuw nsw i64 %53, 8
  tail call void @f64_store(ptr noundef nonnull %9, i64 noundef %55, double noundef %54)
  br label %65

56:                                               ; preds = %48
  %57 = zext i32 %8 to i64
  %58 = add nuw nsw i64 %57, 40
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %58, i32 noundef 0)
  %59 = add nuw nsw i64 %57, 32
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %59, i64 noundef 219043332097)
  %60 = add nuw nsw i64 %57, 16
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %60, i32 noundef 3)
  %61 = add nuw nsw i64 %57, 8
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %61, i32 noundef 29642)
  %62 = add i32 %7, -40
  %63 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseTypeError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef nonnull %0, i32 noundef %3, i32 noundef %62) #3
  %64 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %64, i32 noundef %63)
  br label %65

65:                                               ; preds = %56, %50, %37
  store i32 %7, ptr %6, align 8, !tbaa !5
  ret void
}

declare i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSWeakMapImplBase0x3A0x3AdebugFreeSlotsAndGetSize0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AJSWeakMapImplBase0x2A0x29(ptr noundef, i32 noundef) local_unnamed_addr #1

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

!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,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass