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

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

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

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

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

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

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

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

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

declare void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Avector0x3Cbool0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cbool0x3E0x3E0x3A0x3Aresize0x28unsigned0x20long0x2C0x20bool0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #2

declare void @w2c_hermes_void0x20std0x3A0x3A_0x5F20x3A0x3A_0x5Ftree_balance_after_insert0x3Cstd0x3A0x3A_0x5F20x3A0x3A_0x5Ftree_node_base0x3Cvoid0x2A0x3E0x2A0x3E0x28std0x3A0x3A_0x5F20x3A0x3A_0x5Ftree_node_base0x3Cvoid0x2A0x3E0x2A0x2C0x20std0x3A0x3A_0x5F20x3A0x3A_0x5Ftree_node_base0x3Cvoid0x2A0x3E0x2A0x29(ptr noundef, i32 noundef, i32 noundef) #2

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

38:                                               ; preds = %4
  %39 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %39, ptr %15, align 4, !tbaa !9
  store i32 52, ptr %16, align 4, !tbaa !9
  %40 = load i32, ptr %16, align 4, !tbaa !9
  %41 = load i32, ptr %15, align 4, !tbaa !9
  %42 = add i32 %41, %40
  store i32 %42, ptr %15, align 4, !tbaa !9
  %43 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %43, ptr %16, align 4, !tbaa !9
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.w2c_hermes, ptr %44, i32 0, i32 6
  %46 = load i32, ptr %16, align 4, !tbaa !9
  %47 = zext i32 %46 to i64
  %48 = add i64 %47, 56
  %49 = call i32 @i32_load(ptr noundef %45, i64 noundef %48)
  store i32 %49, ptr %16, align 4, !tbaa !9
  %50 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %50, ptr %8, align 4, !tbaa !9
  %51 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %51, ptr %17, align 4, !tbaa !9
  store i32 4, ptr %18, align 4, !tbaa !9
  %52 = load i32, ptr %18, align 4, !tbaa !9
  %53 = load i32, ptr %17, align 4, !tbaa !9
  %54 = add i32 %53, %52
  store i32 %54, ptr %17, align 4, !tbaa !9
  %55 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %55, ptr %13, align 4, !tbaa !9
  %56 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %56, ptr %18, align 4, !tbaa !9
  %57 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %57, ptr %19, align 4, !tbaa !9
  %58 = load i32, ptr %18, align 4, !tbaa !9
  %59 = load i32, ptr %19, align 4, !tbaa !9
  %60 = icmp ugt i32 %58, %59
  %61 = zext i1 %60 to i32
  store i32 %61, ptr %18, align 4, !tbaa !9
  %62 = load i32, ptr %18, align 4, !tbaa !9
  %63 = icmp ne i32 %62, 0
  br i1 %63, label %64, label %66

64:                                               ; preds = %38
  %65 = load i32, ptr %16, align 4, !tbaa !9
  br label %68

66:                                               ; preds = %38
  %67 = load i32, ptr %17, align 4, !tbaa !9
  br label %68

68:                                               ; preds = %66, %64
  %69 = phi i32 [ %65, %64 ], [ %67, %66 ]
  store i32 %69, ptr %16, align 4, !tbaa !9
  store i32 0, ptr %17, align 4, !tbaa !9
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = load i32, ptr %15, align 4, !tbaa !9
  %72 = load i32, ptr %16, align 4, !tbaa !9
  %73 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Avector0x3Cbool0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cbool0x3E0x3E0x3A0x3Aresize0x28unsigned0x20long0x2C0x20bool0x29(ptr noundef %70, i32 noundef %71, i32 noundef %72, i32 noundef %73)
  %74 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %74, ptr %15, align 4, !tbaa !9
  %75 = load ptr, ptr %5, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.w2c_hermes, ptr %75, i32 0, i32 6
  %77 = load i32, ptr %15, align 4, !tbaa !9
  %78 = zext i32 %77 to i64
  %79 = add i64 %78, 52
  %80 = call i32 @i32_load(ptr noundef %76, i64 noundef %79)
  store i32 %80, ptr %15, align 4, !tbaa !9
  %81 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %81, ptr %14, align 4, !tbaa !9
  %82 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %82, ptr %15, align 4, !tbaa !9
  %83 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %83, ptr %8, align 4, !tbaa !9
  %84 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %84, ptr %9, align 4, !tbaa !9
  br label %85

85:                                               ; preds = %145, %68
  %86 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %86, ptr %15, align 4, !tbaa !9
  %87 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %87, ptr %16, align 4, !tbaa !9
  store i32 3, ptr %17, align 4, !tbaa !9
  %88 = load i32, ptr %17, align 4, !tbaa !9
  %89 = and i32 %88, 31
  %90 = load i32, ptr %16, align 4, !tbaa !9
  %91 = lshr i32 %90, %89
  store i32 %91, ptr %16, align 4, !tbaa !9
  store i32 536870908, ptr %17, align 4, !tbaa !9
  %92 = load i32, ptr %17, align 4, !tbaa !9
  %93 = load i32, ptr %16, align 4, !tbaa !9
  %94 = and i32 %93, %92
  store i32 %94, ptr %16, align 4, !tbaa !9
  %95 = load i32, ptr %16, align 4, !tbaa !9
  %96 = load i32, ptr %15, align 4, !tbaa !9
  %97 = add i32 %96, %95
  store i32 %97, ptr %15, align 4, !tbaa !9
  %98 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %98, ptr %11, align 4, !tbaa !9
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.w2c_hermes, ptr %99, i32 0, i32 6
  %101 = load i32, ptr %15, align 4, !tbaa !9
  %102 = zext i32 %101 to i64
  %103 = call i32 @i32_load(ptr noundef %100, i64 noundef %102)
  store i32 %103, ptr %15, align 4, !tbaa !9
  %104 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %104, ptr %10, align 4, !tbaa !9
  store i32 1, ptr %16, align 4, !tbaa !9
  %105 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %105, ptr %17, align 4, !tbaa !9
  %106 = load i32, ptr %17, align 4, !tbaa !9
  %107 = and i32 %106, 31
  %108 = load i32, ptr %16, align 4, !tbaa !9
  %109 = shl i32 %108, %107
  store i32 %109, ptr %16, align 4, !tbaa !9
  %110 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %110, ptr %8, align 4, !tbaa !9
  %111 = load i32, ptr %16, align 4, !tbaa !9
  %112 = load i32, ptr %15, align 4, !tbaa !9
  %113 = and i32 %112, %111
  store i32 %113, ptr %15, align 4, !tbaa !9
  %114 = load i32, ptr %15, align 4, !tbaa !9
  %115 = icmp ne i32 %114, 0
  br i1 %115, label %116, label %117

116:                                              ; preds = %85
  br label %365

117:                                              ; preds = %85
  %118 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %118, ptr %15, align 4, !tbaa !9
  %119 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %119, ptr %16, align 4, !tbaa !9
  %120 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %120, ptr %17, align 4, !tbaa !9
  %121 = load i32, ptr %17, align 4, !tbaa !9
  %122 = load i32, ptr %16, align 4, !tbaa !9
  %123 = or i32 %122, %121
  store i32 %123, ptr %16, align 4, !tbaa !9
  %124 = load ptr, ptr %5, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.w2c_hermes, ptr %124, i32 0, i32 6
  %126 = load i32, ptr %15, align 4, !tbaa !9
  %127 = zext i32 %126 to i64
  %128 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %125, i64 noundef %127, i32 noundef %128)
  %129 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %129, ptr %15, align 4, !tbaa !9
  %130 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %130, ptr %16, align 4, !tbaa !9
  store i32 1, ptr %17, align 4, !tbaa !9
  %131 = load i32, ptr %17, align 4, !tbaa !9
  %132 = load i32, ptr %16, align 4, !tbaa !9
  %133 = add i32 %132, %131
  store i32 %133, ptr %16, align 4, !tbaa !9
  %134 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %134, ptr %9, align 4, !tbaa !9
  store i32 255, ptr %17, align 4, !tbaa !9
  %135 = load i32, ptr %17, align 4, !tbaa !9
  %136 = load i32, ptr %16, align 4, !tbaa !9
  %137 = and i32 %136, %135
  store i32 %137, ptr %16, align 4, !tbaa !9
  %138 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %138, ptr %8, align 4, !tbaa !9
  %139 = load i32, ptr %15, align 4, !tbaa !9
  %140 = load i32, ptr %16, align 4, !tbaa !9
  %141 = icmp ugt i32 %139, %140
  %142 = zext i1 %141 to i32
  store i32 %142, ptr %15, align 4, !tbaa !9
  %143 = load i32, ptr %15, align 4, !tbaa !9
  %144 = icmp ne i32 %143, 0
  br i1 %144, label %145, label %146

145:                                              ; preds = %117
  br label %85

146:                                              ; preds = %117
  %147 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %147, ptr %15, align 4, !tbaa !9
  store i32 44, ptr %16, align 4, !tbaa !9
  %148 = load i32, ptr %16, align 4, !tbaa !9
  %149 = load i32, ptr %15, align 4, !tbaa !9
  %150 = add i32 %149, %148
  store i32 %150, ptr %15, align 4, !tbaa !9
  %151 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %151, ptr %10, align 4, !tbaa !9
  %152 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %152, ptr %8, align 4, !tbaa !9
  %153 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %153, ptr %15, align 4, !tbaa !9
  %154 = load ptr, ptr %5, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.w2c_hermes, ptr %154, i32 0, i32 6
  %156 = load i32, ptr %15, align 4, !tbaa !9
  %157 = zext i32 %156 to i64
  %158 = call i32 @i32_load(ptr noundef %155, i64 noundef %157)
  store i32 %158, ptr %15, align 4, !tbaa !9
  %159 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %159, ptr %9, align 4, !tbaa !9
  %160 = load i32, ptr %15, align 4, !tbaa !9
  %161 = icmp ne i32 %160, 0
  %162 = xor i1 %161, true
  %163 = zext i1 %162 to i32
  store i32 %163, ptr %15, align 4, !tbaa !9
  %164 = load i32, ptr %15, align 4, !tbaa !9
  %165 = icmp ne i32 %164, 0
  br i1 %165, label %166, label %167

166:                                              ; preds = %146
  br label %234

167:                                              ; preds = %146
  %168 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %168, ptr %15, align 4, !tbaa !9
  store i32 255, ptr %16, align 4, !tbaa !9
  %169 = load i32, ptr %16, align 4, !tbaa !9
  %170 = load i32, ptr %15, align 4, !tbaa !9
  %171 = and i32 %170, %169
  store i32 %171, ptr %15, align 4, !tbaa !9
  %172 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %172, ptr %11, align 4, !tbaa !9
  br label %173

173:                                              ; preds = %227, %202, %167
  %174 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %174, ptr %15, align 4, !tbaa !9
  %175 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %175, ptr %16, align 4, !tbaa !9
  %176 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %176, ptr %8, align 4, !tbaa !9
  %177 = load ptr, ptr %5, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.w2c_hermes, ptr %177, i32 0, i32 6
  %179 = load i32, ptr %16, align 4, !tbaa !9
  %180 = zext i32 %179 to i64
  %181 = add i64 %180, 16
  %182 = call i32 @i32_load8_u(ptr noundef %178, i64 noundef %181)
  store i32 %182, ptr %16, align 4, !tbaa !9
  %183 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %183, ptr %9, align 4, !tbaa !9
  %184 = load i32, ptr %15, align 4, !tbaa !9
  %185 = load i32, ptr %16, align 4, !tbaa !9
  %186 = icmp ult i32 %184, %185
  %187 = zext i1 %186 to i32
  store i32 %187, ptr %15, align 4, !tbaa !9
  %188 = load i32, ptr %15, align 4, !tbaa !9
  %189 = icmp ne i32 %188, 0
  br i1 %189, label %190, label %204

190:                                              ; preds = %173
  %191 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %191, ptr %15, align 4, !tbaa !9
  %192 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %192, ptr %10, align 4, !tbaa !9
  %193 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %193, ptr %15, align 4, !tbaa !9
  %194 = load ptr, ptr %5, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.w2c_hermes, ptr %194, i32 0, i32 6
  %196 = load i32, ptr %15, align 4, !tbaa !9
  %197 = zext i32 %196 to i64
  %198 = call i32 @i32_load(ptr noundef %195, i64 noundef %197)
  store i32 %198, ptr %15, align 4, !tbaa !9
  %199 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %199, ptr %9, align 4, !tbaa !9
  %200 = load i32, ptr %15, align 4, !tbaa !9
  %201 = icmp ne i32 %200, 0
  br i1 %201, label %202, label %203

202:                                              ; preds = %190
  br label %173

203:                                              ; preds = %190
  br label %234

204:                                              ; preds = %173
  %205 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %205, ptr %15, align 4, !tbaa !9
  %206 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %206, ptr %16, align 4, !tbaa !9
  %207 = load i32, ptr %15, align 4, !tbaa !9
  %208 = load i32, ptr %16, align 4, !tbaa !9
  %209 = icmp uge i32 %207, %208
  %210 = zext i1 %209 to i32
  store i32 %210, ptr %15, align 4, !tbaa !9
  %211 = load i32, ptr %15, align 4, !tbaa !9
  %212 = icmp ne i32 %211, 0
  br i1 %212, label %213, label %216

213:                                              ; preds = %204
  %214 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %214, ptr %15, align 4, !tbaa !9
  %215 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %215, ptr %9, align 4, !tbaa !9
  br label %338

216:                                              ; preds = %204
  %217 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %217, ptr %15, align 4, !tbaa !9
  %218 = load ptr, ptr %5, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.w2c_hermes, ptr %218, i32 0, i32 6
  %220 = load i32, ptr %15, align 4, !tbaa !9
  %221 = zext i32 %220 to i64
  %222 = add i64 %221, 4
  %223 = call i32 @i32_load(ptr noundef %219, i64 noundef %222)
  store i32 %223, ptr %15, align 4, !tbaa !9
  %224 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %224, ptr %9, align 4, !tbaa !9
  %225 = load i32, ptr %15, align 4, !tbaa !9
  %226 = icmp ne i32 %225, 0
  br i1 %226, label %227, label %228

227:                                              ; preds = %216
  br label %173

228:                                              ; preds = %216
  %229 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %229, ptr %15, align 4, !tbaa !9
  store i32 4, ptr %16, align 4, !tbaa !9
  %230 = load i32, ptr %16, align 4, !tbaa !9
  %231 = load i32, ptr %15, align 4, !tbaa !9
  %232 = add i32 %231, %230
  store i32 %232, ptr %15, align 4, !tbaa !9
  %233 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %233, ptr %10, align 4, !tbaa !9
  br label %234

234:                                              ; preds = %228, %203, %166
  store i32 24, ptr %15, align 4, !tbaa !9
  %235 = load ptr, ptr %5, align 8, !tbaa !5
  %236 = load i32, ptr %15, align 4, !tbaa !9
  %237 = call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %235, i32 noundef %236)
  store i32 %237, ptr %15, align 4, !tbaa !9
  %238 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %238, ptr %9, align 4, !tbaa !9
  %239 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %239, ptr %16, align 4, !tbaa !9
  %240 = load ptr, ptr %5, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.w2c_hermes, ptr %240, i32 0, i32 6
  %242 = load i32, ptr %15, align 4, !tbaa !9
  %243 = zext i32 %242 to i64
  %244 = add i64 %243, 16
  %245 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %241, i64 noundef %244, i32 noundef %245)
  %246 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %246, ptr %15, align 4, !tbaa !9
  %247 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %247, ptr %16, align 4, !tbaa !9
  %248 = load ptr, ptr %5, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.w2c_hermes, ptr %248, i32 0, i32 6
  %250 = load i32, ptr %15, align 4, !tbaa !9
  %251 = zext i32 %250 to i64
  %252 = add i64 %251, 8
  %253 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %249, i64 noundef %252, i32 noundef %253)
  %254 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %254, ptr %15, align 4, !tbaa !9
  store i64 0, ptr %20, align 8, !tbaa !11
  %255 = load ptr, ptr %5, align 8, !tbaa !5
  %256 = getelementptr inbounds %struct.w2c_hermes, ptr %255, i32 0, i32 6
  %257 = load i32, ptr %15, align 4, !tbaa !9
  %258 = zext i32 %257 to i64
  %259 = load i64, ptr %20, align 8, !tbaa !11
  call void @i64_store(ptr noundef %256, i64 noundef %258, i64 noundef %259)
  %260 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %260, ptr %15, align 4, !tbaa !9
  store i32 0, ptr %16, align 4, !tbaa !9
  %261 = load ptr, ptr %5, align 8, !tbaa !5
  %262 = getelementptr inbounds %struct.w2c_hermes, ptr %261, i32 0, i32 6
  %263 = load i32, ptr %15, align 4, !tbaa !9
  %264 = zext i32 %263 to i64
  %265 = add i64 %264, 20
  %266 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %262, i64 noundef %265, i32 noundef %266)
  %267 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %267, ptr %15, align 4, !tbaa !9
  %268 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %268, ptr %16, align 4, !tbaa !9
  %269 = load ptr, ptr %5, align 8, !tbaa !5
  %270 = getelementptr inbounds %struct.w2c_hermes, ptr %269, i32 0, i32 6
  %271 = load i32, ptr %15, align 4, !tbaa !9
  %272 = zext i32 %271 to i64
  %273 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %270, i64 noundef %272, i32 noundef %273)
  %274 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %274, ptr %15, align 4, !tbaa !9
  %275 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %275, ptr %8, align 4, !tbaa !9
  %276 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %276, ptr %15, align 4, !tbaa !9
  %277 = load ptr, ptr %5, align 8, !tbaa !5
  %278 = getelementptr inbounds %struct.w2c_hermes, ptr %277, i32 0, i32 6
  %279 = load i32, ptr %15, align 4, !tbaa !9
  %280 = zext i32 %279 to i64
  %281 = add i64 %280, 40
  %282 = call i32 @i32_load(ptr noundef %278, i64 noundef %281)
  store i32 %282, ptr %15, align 4, !tbaa !9
  %283 = load ptr, ptr %5, align 8, !tbaa !5
  %284 = getelementptr inbounds %struct.w2c_hermes, ptr %283, i32 0, i32 6
  %285 = load i32, ptr %15, align 4, !tbaa !9
  %286 = zext i32 %285 to i64
  %287 = call i32 @i32_load(ptr noundef %284, i64 noundef %286)
  store i32 %287, ptr %15, align 4, !tbaa !9
  %288 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %288, ptr %11, align 4, !tbaa !9
  %289 = load i32, ptr %15, align 4, !tbaa !9
  %290 = icmp ne i32 %289, 0
  br i1 %290, label %291, label %307

291:                                              ; preds = %234
  %292 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %292, ptr %15, align 4, !tbaa !9
  %293 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %293, ptr %16, align 4, !tbaa !9
  %294 = load ptr, ptr %5, align 8, !tbaa !5
  %295 = getelementptr inbounds %struct.w2c_hermes, ptr %294, i32 0, i32 6
  %296 = load i32, ptr %15, align 4, !tbaa !9
  %297 = zext i32 %296 to i64
  %298 = add i64 %297, 40
  %299 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %295, i64 noundef %298, i32 noundef %299)
  %300 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %300, ptr %15, align 4, !tbaa !9
  %301 = load ptr, ptr %5, align 8, !tbaa !5
  %302 = getelementptr inbounds %struct.w2c_hermes, ptr %301, i32 0, i32 6
  %303 = load i32, ptr %15, align 4, !tbaa !9
  %304 = zext i32 %303 to i64
  %305 = call i32 @i32_load(ptr noundef %302, i64 noundef %304)
  store i32 %305, ptr %15, align 4, !tbaa !9
  %306 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %306, ptr %8, align 4, !tbaa !9
  br label %307

307:                                              ; preds = %291, %234
  %308 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %308, ptr %15, align 4, !tbaa !9
  %309 = load ptr, ptr %5, align 8, !tbaa !5
  %310 = getelementptr inbounds %struct.w2c_hermes, ptr %309, i32 0, i32 6
  %311 = load i32, ptr %15, align 4, !tbaa !9
  %312 = zext i32 %311 to i64
  %313 = add i64 %312, 44
  %314 = call i32 @i32_load(ptr noundef %310, i64 noundef %313)
  store i32 %314, ptr %15, align 4, !tbaa !9
  %315 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %315, ptr %16, align 4, !tbaa !9
  %316 = load ptr, ptr %5, align 8, !tbaa !5
  %317 = load i32, ptr %15, align 4, !tbaa !9
  %318 = load i32, ptr %16, align 4, !tbaa !9
  call void @w2c_hermes_void0x20std0x3A0x3A_0x5F20x3A0x3A_0x5Ftree_balance_after_insert0x3Cstd0x3A0x3A_0x5F20x3A0x3A_0x5Ftree_node_base0x3Cvoid0x2A0x3E0x2A0x3E0x28std0x3A0x3A_0x5F20x3A0x3A_0x5Ftree_node_base0x3Cvoid0x2A0x3E0x2A0x2C0x20std0x3A0x3A_0x5F20x3A0x3A_0x5Ftree_node_base0x3Cvoid0x2A0x3E0x2A0x29(ptr noundef %316, i32 noundef %317, i32 noundef %318)
  %319 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %319, ptr %15, align 4, !tbaa !9
  store i32 48, ptr %16, align 4, !tbaa !9
  %320 = load i32, ptr %16, align 4, !tbaa !9
  %321 = load i32, ptr %15, align 4, !tbaa !9
  %322 = add i32 %321, %320
  store i32 %322, ptr %15, align 4, !tbaa !9
  %323 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %323, ptr %8, align 4, !tbaa !9
  %324 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %324, ptr %16, align 4, !tbaa !9
  %325 = load ptr, ptr %5, align 8, !tbaa !5
  %326 = getelementptr inbounds %struct.w2c_hermes, ptr %325, i32 0, i32 6
  %327 = load i32, ptr %16, align 4, !tbaa !9
  %328 = zext i32 %327 to i64
  %329 = call i32 @i32_load(ptr noundef %326, i64 noundef %328)
  store i32 %329, ptr %16, align 4, !tbaa !9
  store i32 1, ptr %17, align 4, !tbaa !9
  %330 = load i32, ptr %17, align 4, !tbaa !9
  %331 = load i32, ptr %16, align 4, !tbaa !9
  %332 = add i32 %331, %330
  store i32 %332, ptr %16, align 4, !tbaa !9
  %333 = load ptr, ptr %5, align 8, !tbaa !5
  %334 = getelementptr inbounds %struct.w2c_hermes, ptr %333, i32 0, i32 6
  %335 = load i32, ptr %15, align 4, !tbaa !9
  %336 = zext i32 %335 to i64
  %337 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %334, i64 noundef %336, i32 noundef %337)
  br label %338

338:                                              ; preds = %307, %213
  %339 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %339, ptr %15, align 4, !tbaa !9
  %340 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %340, ptr %16, align 4, !tbaa !9
  %341 = load ptr, ptr %5, align 8, !tbaa !5
  %342 = getelementptr inbounds %struct.w2c_hermes, ptr %341, i32 0, i32 6
  %343 = load i32, ptr %15, align 4, !tbaa !9
  %344 = zext i32 %343 to i64
  %345 = add i64 %344, 20
  %346 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %342, i64 noundef %345, i32 noundef %346)
  br label %383

347:                                              ; preds = %4
  store i32 0, ptr %15, align 4, !tbaa !9
  %348 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %348, ptr %8, align 4, !tbaa !9
  store i32 198121, ptr %16, align 4, !tbaa !9
  %349 = load i32, ptr %16, align 4, !tbaa !9
  %350 = load i32, ptr %15, align 4, !tbaa !9
  %351 = add i32 %350, %349
  store i32 %351, ptr %15, align 4, !tbaa !9
  %352 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %352, ptr %16, align 4, !tbaa !9
  store i32 62208, ptr %17, align 4, !tbaa !9
  %353 = load i32, ptr %17, align 4, !tbaa !9
  %354 = load i32, ptr %16, align 4, !tbaa !9
  %355 = add i32 %354, %353
  store i32 %355, ptr %16, align 4, !tbaa !9
  store i32 45, ptr %17, align 4, !tbaa !9
  %356 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %356, ptr %18, align 4, !tbaa !9
  store i32 34666, ptr %19, align 4, !tbaa !9
  %357 = load i32, ptr %19, align 4, !tbaa !9
  %358 = load i32, ptr %18, align 4, !tbaa !9
  %359 = add i32 %358, %357
  store i32 %359, ptr %18, align 4, !tbaa !9
  %360 = load ptr, ptr %5, align 8, !tbaa !5
  %361 = load i32, ptr %15, align 4, !tbaa !9
  %362 = load i32, ptr %16, align 4, !tbaa !9
  %363 = load i32, ptr %17, align 4, !tbaa !9
  %364 = load i32, ptr %18, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %360, i32 noundef %361, i32 noundef %362, i32 noundef %363, i32 noundef %364)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

365:                                              ; preds = %116
  store i32 0, ptr %15, align 4, !tbaa !9
  %366 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %366, ptr %8, align 4, !tbaa !9
  store i32 150696, ptr %16, align 4, !tbaa !9
  %367 = load i32, ptr %16, align 4, !tbaa !9
  %368 = load i32, ptr %15, align 4, !tbaa !9
  %369 = add i32 %368, %367
  store i32 %369, ptr %15, align 4, !tbaa !9
  %370 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %370, ptr %16, align 4, !tbaa !9
  store i32 87986, ptr %17, align 4, !tbaa !9
  %371 = load i32, ptr %17, align 4, !tbaa !9
  %372 = load i32, ptr %16, align 4, !tbaa !9
  %373 = add i32 %372, %371
  store i32 %373, ptr %16, align 4, !tbaa !9
  store i32 13, ptr %17, align 4, !tbaa !9
  %374 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %374, ptr %18, align 4, !tbaa !9
  store i32 103429, ptr %19, align 4, !tbaa !9
  %375 = load i32, ptr %19, align 4, !tbaa !9
  %376 = load i32, ptr %18, align 4, !tbaa !9
  %377 = add i32 %376, %375
  store i32 %377, ptr %18, align 4, !tbaa !9
  %378 = load ptr, ptr %5, align 8, !tbaa !5
  %379 = load i32, ptr %15, align 4, !tbaa !9
  %380 = load i32, ptr %16, align 4, !tbaa !9
  %381 = load i32, ptr %17, align 4, !tbaa !9
  %382 = load i32, ptr %18, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %378, i32 noundef %379, i32 noundef %380, i32 noundef %381, i32 noundef %382)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

383:                                              ; preds = %338
  call void @llvm.lifetime.end.p0(i64 8, 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 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
  ret void
}

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

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

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


; 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: noreturn
declare void @wasm_rt_trap(i32 noundef) local_unnamed_addr #0

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

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

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

declare void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Avector0x3Cbool0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cbool0x3E0x3E0x3A0x3Aresize0x28unsigned0x20long0x2C0x20bool0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

declare void @w2c_hermes_void0x20std0x3A0x3A_0x5F20x3A0x3A_0x5Ftree_balance_after_insert0x3Cstd0x3A0x3A_0x5F20x3A0x3A_0x5Ftree_node_base0x3Cvoid0x2A0x3E0x2A0x3E0x28std0x3A0x3A_0x5F20x3A0x3A_0x5Ftree_node_base0x3Cvoid0x2A0x3E0x2A0x2C0x20std0x3A0x3A_0x5F20x3A0x3A_0x5Ftree_node_base0x3Cvoid0x2A0x3E0x2A0x29(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AMetadata0x3A0x3ABuilder0x3A0x3AaddField0x28char0x20const0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3AGCSymbolID0x20const0x2A0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #3 {
  %5 = getelementptr inbounds i8, ptr %0, i64 40
  %6 = zext i32 %1 to i64
  %7 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %6)
  %8 = sub i32 %3, %7
  %9 = icmp ult i32 %8, 256
  br i1 %9, label %10, label %66

10:                                               ; preds = %4
  %11 = add i32 %1, 52
  %12 = add nuw nsw i64 %6, 56
  %13 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %12)
  %14 = add nuw nsw i32 %8, 4
  %15 = tail call i32 @llvm.umax.i32(i32 %13, i32 %14)
  tail call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Avector0x3Cbool0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cbool0x3E0x3E0x3A0x3Aresize0x28unsigned0x20long0x2C0x20bool0x29(ptr noundef %0, i32 noundef %11, i32 noundef %15, i32 noundef 0) #5
  %16 = add nuw nsw i64 %6, 52
  %17 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %16)
  br label %18

18:                                               ; preds = %27, %10
  %.0219 = phi i32 [ %8, %10 ], [ %29, %27 ]
  %.0 = phi i32 [ %8, %10 ], [ %30, %27 ]
  %19 = lshr i32 %.0, 3
  %20 = and i32 %19, 28
  %21 = add i32 %20, %17
  %22 = zext i32 %21 to i64
  %23 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %22)
  %24 = and i32 %.0, 31
  %25 = shl nuw i32 1, %24
  %26 = and i32 %25, %23
  %.not = icmp eq i32 %26, 0
  br i1 %.not, label %27, label %67

27:                                               ; preds = %18
  %28 = or i32 %25, %23
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %22, i32 noundef %28)
  %29 = add i32 %.0219, 1
  %30 = and i32 %29, 255
  %31 = icmp ugt i32 %14, %30
  br i1 %31, label %18, label %32

32:                                               ; preds = %27
  %33 = add i32 %1, 44
  %34 = zext i32 %33 to i64
  %35 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %34)
  %.not229 = icmp eq i32 %35, 0
  br i1 %.not229, label %.loopexit234, label %.preheader

.preheader:                                       ; preds = %32, %.preheader.backedge
  %.1220 = phi i32 [ %.1220.be, %.preheader.backedge ], [ %35, %32 ]
  %36 = zext i32 %.1220 to i64
  %37 = add nuw nsw i64 %36, 16
  %38 = tail call i32 @i32_load8_u(ptr noundef nonnull %5, i64 noundef %37)
  %39 = icmp ult i32 %8, %38
  br i1 %39, label %40, label %42

40:                                               ; preds = %.preheader
  %41 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %36)
  %.not232 = icmp eq i32 %41, 0
  br i1 %.not232, label %.loopexit234, label %.preheader.backedge

.preheader.backedge:                              ; preds = %40, %43
  %.1220.be = phi i32 [ %41, %40 ], [ %45, %43 ]
  br label %.preheader

42:                                               ; preds = %.preheader
  %.not230 = icmp ult i32 %38, %8
  br i1 %.not230, label %43, label %.loopexit.loopexit

43:                                               ; preds = %42
  %44 = add nuw nsw i64 %36, 4
  %45 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %44)
  %.not231 = icmp eq i32 %45, 0
  br i1 %.not231, label %46, label %.preheader.backedge

46:                                               ; preds = %43
  %47 = add i32 %.1220, 4
  %.pre = zext i32 %47 to i64
  br label %.loopexit234

.loopexit234:                                     ; preds = %40, %32, %46
  %.pre-phi = phi i64 [ %34, %32 ], [ %.pre, %46 ], [ %36, %40 ]
  %.1 = phi i32 [ %33, %32 ], [ %.1220, %46 ], [ %.1220, %40 ]
  %48 = tail call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %0, i32 noundef 24) #5
  %49 = zext i32 %48 to i64
  %50 = add nuw nsw i64 %49, 16
  tail call void @i32_store8(ptr noundef nonnull %5, i64 noundef %50, i32 noundef %8)
  %51 = add nuw nsw i64 %49, 8
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %51, i32 noundef %.1)
  tail call void @i64_store(ptr noundef nonnull %5, i64 noundef %49, i64 noundef 0)
  %52 = add nuw nsw i64 %49, 20
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %52, i32 noundef 0)
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %.pre-phi, i32 noundef %48)
  %53 = add nuw nsw i64 %6, 40
  %54 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %53)
  %55 = zext i32 %54 to i64
  %56 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %55)
  %.not233 = icmp eq i32 %56, 0
  br i1 %.not233, label %59, label %57

57:                                               ; preds = %.loopexit234
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %53, i32 noundef %56)
  %58 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %.pre-phi)
  br label %59

59:                                               ; preds = %57, %.loopexit234
  %.2 = phi i32 [ %58, %57 ], [ %48, %.loopexit234 ]
  %60 = add nuw nsw i64 %6, 44
  %61 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %60)
  tail call void @w2c_hermes_void0x20std0x3A0x3A_0x5F20x3A0x3A_0x5Ftree_balance_after_insert0x3Cstd0x3A0x3A_0x5F20x3A0x3A_0x5Ftree_node_base0x3Cvoid0x2A0x3E0x2A0x3E0x28std0x3A0x3A_0x5F20x3A0x3A_0x5Ftree_node_base0x3Cvoid0x2A0x3E0x2A0x2C0x20std0x3A0x3A_0x5F20x3A0x3A_0x5Ftree_node_base0x3Cvoid0x2A0x3E0x2A0x29(ptr noundef %0, i32 noundef %61, i32 noundef %.2) #5
  %62 = add i32 %1, 48
  %63 = zext i32 %62 to i64
  %64 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %63)
  %65 = add i32 %64, 1
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %63, i32 noundef %65)
  br label %.loopexit

.loopexit.loopexit:                               ; preds = %42
  %.pre240 = add nuw nsw i64 %36, 20
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %59
  %.pre-phi241 = phi i64 [ %.pre240, %.loopexit.loopexit ], [ %52, %59 ]
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %.pre-phi241, i32 noundef %2)
  ret void

66:                                               ; preds = %4
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 198121, i32 noundef 62208, i32 noundef 45, i32 noundef 34666) #5
  tail call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

67:                                               ; preds = %18
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 150696, i32 noundef 87986, i32 noundef 13, i32 noundef 103429) #5
  tail call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umax.i32(i32, i32) #4

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


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass