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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @i32_load8_u(ptr noundef, i64 noundef) #1

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

48:                                               ; preds = %4
  br label %116

49:                                               ; preds = %4
  %50 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %50, ptr %13, align 4, !tbaa !9
  store i32 255, ptr %14, align 4, !tbaa !9
  %51 = load i32, ptr %14, align 4, !tbaa !9
  %52 = load i32, ptr %13, align 4, !tbaa !9
  %53 = and i32 %52, %51
  store i32 %53, ptr %13, align 4, !tbaa !9
  %54 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %54, ptr %12, align 4, !tbaa !9
  br label %55

55:                                               ; preds = %109, %84, %49
  %56 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %56, ptr %13, align 4, !tbaa !9
  %57 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %57, ptr %14, align 4, !tbaa !9
  %58 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %58, ptr %8, align 4, !tbaa !9
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.w2c_hermes, ptr %59, i32 0, i32 6
  %61 = load i32, ptr %14, align 4, !tbaa !9
  %62 = zext i32 %61 to i64
  %63 = add i64 %62, 16
  %64 = call i32 @i32_load8_u(ptr noundef %60, i64 noundef %63)
  store i32 %64, ptr %14, align 4, !tbaa !9
  %65 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %65, ptr %9, align 4, !tbaa !9
  %66 = load i32, ptr %13, align 4, !tbaa !9
  %67 = load i32, ptr %14, align 4, !tbaa !9
  %68 = icmp ult i32 %66, %67
  %69 = zext i1 %68 to i32
  store i32 %69, ptr %13, align 4, !tbaa !9
  %70 = load i32, ptr %13, align 4, !tbaa !9
  %71 = icmp ne i32 %70, 0
  br i1 %71, label %72, label %86

72:                                               ; preds = %55
  %73 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %73, ptr %13, align 4, !tbaa !9
  %74 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %74, ptr %11, align 4, !tbaa !9
  %75 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %75, ptr %13, align 4, !tbaa !9
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.w2c_hermes, ptr %76, i32 0, i32 6
  %78 = load i32, ptr %13, align 4, !tbaa !9
  %79 = zext i32 %78 to i64
  %80 = call i32 @i32_load(ptr noundef %77, i64 noundef %79)
  store i32 %80, ptr %13, align 4, !tbaa !9
  %81 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %81, ptr %9, align 4, !tbaa !9
  %82 = load i32, ptr %13, align 4, !tbaa !9
  %83 = icmp ne i32 %82, 0
  br i1 %83, label %84, label %85

84:                                               ; preds = %72
  br label %55

85:                                               ; preds = %72
  br label %116

86:                                               ; preds = %55
  %87 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %87, ptr %13, align 4, !tbaa !9
  %88 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %88, ptr %14, align 4, !tbaa !9
  %89 = load i32, ptr %13, align 4, !tbaa !9
  %90 = load i32, ptr %14, align 4, !tbaa !9
  %91 = icmp uge i32 %89, %90
  %92 = zext i1 %91 to i32
  store i32 %92, ptr %13, align 4, !tbaa !9
  %93 = load i32, ptr %13, align 4, !tbaa !9
  %94 = icmp ne i32 %93, 0
  br i1 %94, label %95, label %98

95:                                               ; preds = %86
  %96 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %96, ptr %13, align 4, !tbaa !9
  %97 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %97, ptr %9, align 4, !tbaa !9
  br label %218

98:                                               ; preds = %86
  %99 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %99, ptr %13, align 4, !tbaa !9
  %100 = load ptr, ptr %5, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.w2c_hermes, ptr %100, i32 0, i32 6
  %102 = load i32, ptr %13, align 4, !tbaa !9
  %103 = zext i32 %102 to i64
  %104 = add i64 %103, 4
  %105 = call i32 @i32_load(ptr noundef %101, i64 noundef %104)
  store i32 %105, ptr %13, align 4, !tbaa !9
  %106 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %106, ptr %9, align 4, !tbaa !9
  %107 = load i32, ptr %13, align 4, !tbaa !9
  %108 = icmp ne i32 %107, 0
  br i1 %108, label %109, label %110

109:                                              ; preds = %98
  br label %55

110:                                              ; preds = %98
  %111 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %111, ptr %13, align 4, !tbaa !9
  store i32 4, ptr %14, align 4, !tbaa !9
  %112 = load i32, ptr %14, align 4, !tbaa !9
  %113 = load i32, ptr %13, align 4, !tbaa !9
  %114 = add i32 %113, %112
  store i32 %114, ptr %13, align 4, !tbaa !9
  %115 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %115, ptr %11, align 4, !tbaa !9
  br label %116

116:                                              ; preds = %110, %85, %48
  store i32 24, ptr %13, align 4, !tbaa !9
  %117 = load ptr, ptr %5, align 8, !tbaa !5
  %118 = load i32, ptr %13, align 4, !tbaa !9
  %119 = call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %117, i32 noundef %118)
  store i32 %119, ptr %13, align 4, !tbaa !9
  %120 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %120, ptr %9, align 4, !tbaa !9
  %121 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %121, ptr %14, align 4, !tbaa !9
  %122 = load ptr, ptr %5, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.w2c_hermes, ptr %122, i32 0, i32 6
  %124 = load i32, ptr %13, align 4, !tbaa !9
  %125 = zext i32 %124 to i64
  %126 = add i64 %125, 16
  %127 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %123, i64 noundef %126, i32 noundef %127)
  %128 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %128, ptr %13, align 4, !tbaa !9
  %129 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %129, ptr %14, align 4, !tbaa !9
  %130 = load ptr, ptr %5, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.w2c_hermes, ptr %130, i32 0, i32 6
  %132 = load i32, ptr %13, align 4, !tbaa !9
  %133 = zext i32 %132 to i64
  %134 = add i64 %133, 8
  %135 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %131, i64 noundef %134, i32 noundef %135)
  %136 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %136, ptr %13, align 4, !tbaa !9
  store i64 0, ptr %16, align 8, !tbaa !11
  %137 = load ptr, ptr %5, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.w2c_hermes, ptr %137, i32 0, i32 6
  %139 = load i32, ptr %13, align 4, !tbaa !9
  %140 = zext i32 %139 to i64
  %141 = load i64, ptr %16, align 8, !tbaa !11
  call void @i64_store(ptr noundef %138, i64 noundef %140, i64 noundef %141)
  %142 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %142, ptr %13, align 4, !tbaa !9
  store i32 0, ptr %14, align 4, !tbaa !9
  %143 = load ptr, ptr %5, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.w2c_hermes, ptr %143, i32 0, i32 6
  %145 = load i32, ptr %13, align 4, !tbaa !9
  %146 = zext i32 %145 to i64
  %147 = add i64 %146, 20
  %148 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %144, i64 noundef %147, i32 noundef %148)
  %149 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %149, ptr %13, align 4, !tbaa !9
  %150 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %150, ptr %14, align 4, !tbaa !9
  %151 = load ptr, ptr %5, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.w2c_hermes, ptr %151, i32 0, i32 6
  %153 = load i32, ptr %13, align 4, !tbaa !9
  %154 = zext i32 %153 to i64
  %155 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %152, i64 noundef %154, i32 noundef %155)
  %156 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %156, ptr %13, align 4, !tbaa !9
  %157 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %157, ptr %8, align 4, !tbaa !9
  %158 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %158, ptr %13, align 4, !tbaa !9
  %159 = load ptr, ptr %5, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.w2c_hermes, ptr %159, i32 0, i32 6
  %161 = load i32, ptr %13, align 4, !tbaa !9
  %162 = zext i32 %161 to i64
  %163 = add i64 %162, 4
  %164 = call i32 @i32_load(ptr noundef %160, i64 noundef %163)
  store i32 %164, ptr %13, align 4, !tbaa !9
  %165 = load ptr, ptr %5, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.w2c_hermes, ptr %165, i32 0, i32 6
  %167 = load i32, ptr %13, align 4, !tbaa !9
  %168 = zext i32 %167 to i64
  %169 = call i32 @i32_load(ptr noundef %166, i64 noundef %168)
  store i32 %169, ptr %13, align 4, !tbaa !9
  %170 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %170, ptr %10, align 4, !tbaa !9
  %171 = load i32, ptr %13, align 4, !tbaa !9
  %172 = icmp ne i32 %171, 0
  br i1 %172, label %173, label %189

173:                                              ; preds = %116
  %174 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %174, ptr %13, align 4, !tbaa !9
  %175 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %175, ptr %14, align 4, !tbaa !9
  %176 = load ptr, ptr %5, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.w2c_hermes, ptr %176, i32 0, i32 6
  %178 = load i32, ptr %13, align 4, !tbaa !9
  %179 = zext i32 %178 to i64
  %180 = add i64 %179, 4
  %181 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %177, i64 noundef %180, i32 noundef %181)
  %182 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %182, ptr %13, align 4, !tbaa !9
  %183 = load ptr, ptr %5, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.w2c_hermes, ptr %183, i32 0, i32 6
  %185 = load i32, ptr %13, align 4, !tbaa !9
  %186 = zext i32 %185 to i64
  %187 = call i32 @i32_load(ptr noundef %184, i64 noundef %186)
  store i32 %187, ptr %13, align 4, !tbaa !9
  %188 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %188, ptr %8, align 4, !tbaa !9
  br label %189

189:                                              ; preds = %173, %116
  %190 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %190, ptr %13, align 4, !tbaa !9
  %191 = load ptr, ptr %5, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.w2c_hermes, ptr %191, i32 0, i32 6
  %193 = load i32, ptr %13, align 4, !tbaa !9
  %194 = zext i32 %193 to i64
  %195 = add i64 %194, 8
  %196 = call i32 @i32_load(ptr noundef %192, i64 noundef %195)
  store i32 %196, ptr %13, align 4, !tbaa !9
  %197 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %197, ptr %14, align 4, !tbaa !9
  %198 = load ptr, ptr %5, align 8, !tbaa !5
  %199 = load i32, ptr %13, align 4, !tbaa !9
  %200 = load i32, ptr %14, 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 %198, i32 noundef %199, i32 noundef %200)
  %201 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %201, ptr %13, align 4, !tbaa !9
  %202 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %202, ptr %14, align 4, !tbaa !9
  %203 = load ptr, ptr %5, 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, 12
  %208 = call i32 @i32_load(ptr noundef %204, i64 noundef %207)
  store i32 %208, ptr %14, align 4, !tbaa !9
  store i32 1, ptr %15, align 4, !tbaa !9
  %209 = load i32, ptr %15, align 4, !tbaa !9
  %210 = load i32, ptr %14, align 4, !tbaa !9
  %211 = add i32 %210, %209
  store i32 %211, ptr %14, align 4, !tbaa !9
  %212 = load ptr, ptr %5, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.w2c_hermes, ptr %212, i32 0, i32 6
  %214 = load i32, ptr %13, align 4, !tbaa !9
  %215 = zext i32 %214 to i64
  %216 = add i64 %215, 12
  %217 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %213, i64 noundef %216, i32 noundef %217)
  br label %218

218:                                              ; preds = %189, %95
  %219 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %219, ptr %13, align 4, !tbaa !9
  %220 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %220, ptr %14, align 4, !tbaa !9
  %221 = load ptr, ptr %5, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.w2c_hermes, ptr %221, i32 0, i32 6
  %223 = load i32, ptr %13, align 4, !tbaa !9
  %224 = zext i32 %223 to i64
  %225 = add i64 %224, 20
  %226 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %222, i64 noundef %225, i32 noundef %226)
  call void @llvm.lifetime.end.p0(i64 8, 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 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  ret void
}

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

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

!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: 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 void @i32_store8(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 @i32_store(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @i32_load8_u(ptr noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AMetadata0x3A0x3ABuilder0x3A0x3AaddField0x28char0x20const0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3AGCPointerBase0x20const0x2A0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #1 {
  %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 = add i32 %1, 8
  %10 = add nuw nsw i64 %6, 8
  %11 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %10)
  %.not = icmp eq i32 %11, 0
  br i1 %.not, label %.loopexit129, label %12

12:                                               ; preds = %4
  %13 = and i32 %8, 255
  br label %.backedge

.backedge:                                        ; preds = %.backedge.backedge, %12
  %.0117 = phi i32 [ %11, %12 ], [ %.0117.be, %.backedge.backedge ]
  %14 = zext i32 %.0117 to i64
  %15 = add nuw nsw i64 %14, 16
  %16 = tail call i32 @i32_load8_u(ptr noundef nonnull %5, i64 noundef %15)
  %17 = icmp ult i32 %13, %16
  br i1 %17, label %18, label %20

18:                                               ; preds = %.backedge
  %19 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %14)
  %.not127 = icmp eq i32 %19, 0
  br i1 %.not127, label %.loopexit129, label %.backedge.backedge

.backedge.backedge:                               ; preds = %18, %21
  %.0117.be = phi i32 [ %19, %18 ], [ %23, %21 ]
  br label %.backedge

20:                                               ; preds = %.backedge
  %.not125 = icmp ult i32 %16, %13
  br i1 %.not125, label %21, label %.loopexit.loopexit

21:                                               ; preds = %20
  %22 = add nuw nsw i64 %14, 4
  %23 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %22)
  %.not126 = icmp eq i32 %23, 0
  br i1 %.not126, label %24, label %.backedge.backedge

24:                                               ; preds = %21
  %25 = add i32 %.0117, 4
  br label %.loopexit129

.loopexit129:                                     ; preds = %18, %4, %24
  %.0119 = phi i32 [ %9, %4 ], [ %25, %24 ], [ %.0117, %18 ]
  %.0 = phi i32 [ %9, %4 ], [ %.0117, %24 ], [ %.0117, %18 ]
  %26 = tail call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %0, i32 noundef 24) #3
  %27 = zext i32 %26 to i64
  %28 = add nuw nsw i64 %27, 16
  tail call void @i32_store8(ptr noundef nonnull %5, i64 noundef %28, i32 noundef %8)
  %29 = add nuw nsw i64 %27, 8
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %29, i32 noundef %.0)
  tail call void @i64_store(ptr noundef nonnull %5, i64 noundef %27, i64 noundef 0)
  %30 = add nuw nsw i64 %27, 20
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %30, i32 noundef 0)
  %31 = zext i32 %.0119 to i64
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %31, i32 noundef %26)
  %32 = add nuw nsw i64 %6, 4
  %33 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %32)
  %34 = zext i32 %33 to i64
  %35 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %34)
  %.not128 = icmp eq i32 %35, 0
  br i1 %.not128, label %38, label %36

36:                                               ; preds = %.loopexit129
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %32, i32 noundef %35)
  %37 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %31)
  br label %38

38:                                               ; preds = %36, %.loopexit129
  %.1 = phi i32 [ %37, %36 ], [ %26, %.loopexit129 ]
  %39 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %10)
  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 %39, i32 noundef %.1) #3
  %40 = add nuw nsw i64 %6, 12
  %41 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %40)
  %42 = add i32 %41, 1
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %40, i32 noundef %42)
  br label %.loopexit

.loopexit.loopexit:                               ; preds = %20
  %.pre = add nuw nsw i64 %14, 20
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %38
  %.pre-phi134 = phi i64 [ %.pre, %.loopexit.loopexit ], [ %30, %38 ]
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %.pre-phi134, i32 noundef %2)
  ret void
}

declare i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef, i32 noundef) local_unnamed_addr #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) 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 = { 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 }

!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,SROAPass,SimplifyCFGPass,TailCallElimPass