; 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

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

46:                                               ; preds = %3
  br label %114

47:                                               ; preds = %3
  %48 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %48, ptr %11, align 4, !tbaa !9
  store i32 255, ptr %12, align 4, !tbaa !9
  %49 = load i32, ptr %12, align 4, !tbaa !9
  %50 = load i32, ptr %11, align 4, !tbaa !9
  %51 = and i32 %50, %49
  store i32 %51, ptr %11, align 4, !tbaa !9
  %52 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %52, ptr %10, align 4, !tbaa !9
  br label %53

53:                                               ; preds = %107, %82, %47
  %54 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %54, ptr %11, align 4, !tbaa !9
  %55 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %55, ptr %12, align 4, !tbaa !9
  %56 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %56, ptr %6, align 4, !tbaa !9
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.w2c_hermes, ptr %57, i32 0, i32 6
  %59 = load i32, ptr %12, align 4, !tbaa !9
  %60 = zext i32 %59 to i64
  %61 = add i64 %60, 16
  %62 = call i32 @i32_load8_u(ptr noundef %58, i64 noundef %61)
  store i32 %62, ptr %12, align 4, !tbaa !9
  %63 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %63, ptr %7, align 4, !tbaa !9
  %64 = load i32, ptr %11, align 4, !tbaa !9
  %65 = load i32, ptr %12, align 4, !tbaa !9
  %66 = icmp ult i32 %64, %65
  %67 = zext i1 %66 to i32
  store i32 %67, ptr %11, align 4, !tbaa !9
  %68 = load i32, ptr %11, align 4, !tbaa !9
  %69 = icmp ne i32 %68, 0
  br i1 %69, label %70, label %84

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

82:                                               ; preds = %70
  br label %53

83:                                               ; preds = %70
  br label %114

84:                                               ; preds = %53
  %85 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %85, ptr %11, align 4, !tbaa !9
  %86 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %86, ptr %12, align 4, !tbaa !9
  %87 = load i32, ptr %11, align 4, !tbaa !9
  %88 = load i32, ptr %12, align 4, !tbaa !9
  %89 = icmp uge i32 %87, %88
  %90 = zext i1 %89 to i32
  store i32 %90, ptr %11, align 4, !tbaa !9
  %91 = load i32, ptr %11, align 4, !tbaa !9
  %92 = icmp ne i32 %91, 0
  br i1 %92, label %93, label %96

93:                                               ; preds = %84
  %94 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %94, ptr %11, align 4, !tbaa !9
  %95 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %95, ptr %7, align 4, !tbaa !9
  br label %216

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

107:                                              ; preds = %96
  br label %53

108:                                              ; preds = %96
  %109 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %109, ptr %11, align 4, !tbaa !9
  store i32 4, ptr %12, align 4, !tbaa !9
  %110 = load i32, ptr %12, align 4, !tbaa !9
  %111 = load i32, ptr %11, align 4, !tbaa !9
  %112 = add i32 %111, %110
  store i32 %112, ptr %11, align 4, !tbaa !9
  %113 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %113, ptr %9, align 4, !tbaa !9
  br label %114

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

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

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

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

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}


; 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

declare i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr 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_hermes0x3A0x3Avm0x3A0x3AMetadata0x3A0x3ABuilder0x3A0x3AaddField0x28hermes0x3A0x3Avm0x3A0x3AGCPointerBase0x20const0x2A0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #2 {
  %4 = getelementptr inbounds i8, ptr %0, i64 40
  %5 = zext i32 %1 to i64
  %6 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %5)
  %7 = sub i32 %2, %6
  %8 = add i32 %1, 8
  %9 = add nuw nsw i64 %5, 8
  %10 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %9)
  %.not = icmp eq i32 %10, 0
  br i1 %.not, label %.loopexit128, label %11

11:                                               ; preds = %3
  %12 = and i32 %7, 255
  br label %.backedge

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

17:                                               ; preds = %.backedge
  %18 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %13)
  %.not126 = icmp eq i32 %18, 0
  br i1 %.not126, label %.loopexit128, label %.backedge.backedge

.backedge.backedge:                               ; preds = %17, %20
  %.0116.be = phi i32 [ %18, %17 ], [ %22, %20 ]
  br label %.backedge

19:                                               ; preds = %.backedge
  %.not124 = icmp ult i32 %15, %12
  br i1 %.not124, label %20, label %.loopexit.loopexit

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

23:                                               ; preds = %20
  %24 = add i32 %.0116, 4
  br label %.loopexit128

.loopexit128:                                     ; preds = %17, %3, %23
  %.0118 = phi i32 [ %8, %3 ], [ %24, %23 ], [ %.0116, %17 ]
  %.0 = phi i32 [ %8, %3 ], [ %.0116, %23 ], [ %.0116, %17 ]
  %25 = tail call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %0, i32 noundef 24) #3
  %26 = zext i32 %25 to i64
  %27 = add nuw nsw i64 %26, 16
  tail call void @i32_store8(ptr noundef nonnull %4, i64 noundef %27, i32 noundef %7)
  %28 = add nuw nsw i64 %26, 8
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %28, i32 noundef %.0)
  tail call void @i64_store(ptr noundef nonnull %4, i64 noundef %26, i64 noundef 0)
  %29 = add nuw nsw i64 %26, 20
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %29, i32 noundef 0)
  %30 = zext i32 %.0118 to i64
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %30, i32 noundef %25)
  %31 = add nuw nsw i64 %5, 4
  %32 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %31)
  %33 = zext i32 %32 to i64
  %34 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %33)
  %.not127 = icmp eq i32 %34, 0
  br i1 %.not127, label %37, label %35

35:                                               ; preds = %.loopexit128
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %31, i32 noundef %34)
  %36 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %30)
  br label %37

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

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

.loopexit:                                        ; preds = %.loopexit.loopexit, %37
  %.pre-phi133 = phi i64 [ %.pre, %.loopexit.loopexit ], [ %29, %37 ]
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %.pre-phi133, i32 noundef 0)
  ret void
}

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)"}


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