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

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

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden 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: noreturn
declare void @wasm_rt_trap(i32 noundef) #2

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

declare void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef, i32 noundef) #3

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

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

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

declare void @w2c_hermes_abort(ptr noundef) #3

declare void @w2c_hermes_hermes0x3A0x3Ahbc0x3A0x3ABytecodeInstructionGenerator0x3A0x3AemitReg80x28long0x20long0x29(ptr noundef, i32 noundef, i64 noundef) #3

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

53:                                               ; preds = %3
  %54 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %54, ptr %12, align 4, !tbaa !9
  store i32 49, ptr %13, align 4, !tbaa !9
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.w2c_hermes, ptr %55, i32 0, i32 6
  %57 = load i32, ptr %12, align 4, !tbaa !9
  %58 = zext i32 %57 to i64
  %59 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %56, i64 noundef %58, i32 noundef %59)
  %60 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %60, ptr %12, align 4, !tbaa !9
  %61 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %61, ptr %13, align 4, !tbaa !9
  store i32 1, ptr %14, align 4, !tbaa !9
  %62 = load i32, ptr %14, align 4, !tbaa !9
  %63 = load i32, ptr %13, align 4, !tbaa !9
  %64 = add i32 %63, %62
  store i32 %64, ptr %13, align 4, !tbaa !9
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.w2c_hermes, ptr %65, i32 0, i32 6
  %67 = load i32, ptr %12, align 4, !tbaa !9
  %68 = zext i32 %67 to i64
  %69 = add i64 %68, 4
  %70 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %66, i64 noundef %69, i32 noundef %70)
  %71 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %71, ptr %12, align 4, !tbaa !9
  %72 = load i64, ptr %6, align 8, !tbaa !11
  store i64 %72, ptr %18, align 8, !tbaa !11
  %73 = load ptr, ptr %4, align 8, !tbaa !5
  %74 = load i32, ptr %12, align 4, !tbaa !9
  %75 = load i64, ptr %18, align 8, !tbaa !11
  call void @w2c_hermes_hermes0x3A0x3Ahbc0x3A0x3ABytecodeInstructionGenerator0x3A0x3AemitReg80x28long0x20long0x29(ptr noundef %73, i32 noundef %74, i64 noundef %75)
  %76 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %76, ptr %12, align 4, !tbaa !9
  br label %204

77:                                               ; preds = %3
  %78 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %78, ptr %12, align 4, !tbaa !9
  store i32 1, ptr %13, align 4, !tbaa !9
  %79 = load i32, ptr %13, align 4, !tbaa !9
  %80 = load i32, ptr %12, align 4, !tbaa !9
  %81 = add i32 %80, %79
  store i32 %81, ptr %12, align 4, !tbaa !9
  %82 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %82, ptr %7, align 4, !tbaa !9
  store i32 0, ptr %13, align 4, !tbaa !9
  %83 = load i32, ptr %12, align 4, !tbaa !9
  %84 = load i32, ptr %13, align 4, !tbaa !9
  %85 = icmp sge i32 %83, %84
  %86 = zext i1 %85 to i32
  store i32 %86, ptr %12, align 4, !tbaa !9
  %87 = load i32, ptr %12, align 4, !tbaa !9
  %88 = icmp ne i32 %87, 0
  br i1 %88, label %89, label %202

89:                                               ; preds = %77
  %90 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %90, ptr %12, align 4, !tbaa !9
  store i32 2147483647, ptr %13, align 4, !tbaa !9
  %91 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %91, ptr %14, align 4, !tbaa !9
  %92 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %92, ptr %15, align 4, !tbaa !9
  %93 = load i32, ptr %15, align 4, !tbaa !9
  %94 = load i32, ptr %14, align 4, !tbaa !9
  %95 = sub i32 %94, %93
  store i32 %95, ptr %14, align 4, !tbaa !9
  %96 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %96, ptr %8, align 4, !tbaa !9
  store i32 1, ptr %15, align 4, !tbaa !9
  %97 = load i32, ptr %15, align 4, !tbaa !9
  %98 = and i32 %97, 31
  %99 = load i32, ptr %14, align 4, !tbaa !9
  %100 = shl i32 %99, %98
  store i32 %100, ptr %14, align 4, !tbaa !9
  %101 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %101, ptr %11, align 4, !tbaa !9
  %102 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %102, ptr %15, align 4, !tbaa !9
  %103 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %103, ptr %16, align 4, !tbaa !9
  %104 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %104, ptr %17, align 4, !tbaa !9
  %105 = load i32, ptr %16, align 4, !tbaa !9
  %106 = load i32, ptr %17, align 4, !tbaa !9
  %107 = icmp ult i32 %105, %106
  %108 = zext i1 %107 to i32
  store i32 %108, ptr %16, align 4, !tbaa !9
  %109 = load i32, ptr %16, align 4, !tbaa !9
  %110 = icmp ne i32 %109, 0
  br i1 %110, label %111, label %113

111:                                              ; preds = %89
  %112 = load i32, ptr %14, align 4, !tbaa !9
  br label %115

113:                                              ; preds = %89
  %114 = load i32, ptr %15, align 4, !tbaa !9
  br label %115

115:                                              ; preds = %113, %111
  %116 = phi i32 [ %112, %111 ], [ %114, %113 ]
  store i32 %116, ptr %14, align 4, !tbaa !9
  %117 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %117, ptr %15, align 4, !tbaa !9
  store i32 1073741823, ptr %16, align 4, !tbaa !9
  %118 = load i32, ptr %15, align 4, !tbaa !9
  %119 = load i32, ptr %16, align 4, !tbaa !9
  %120 = icmp uge i32 %118, %119
  %121 = zext i1 %120 to i32
  store i32 %121, ptr %15, align 4, !tbaa !9
  %122 = load i32, ptr %15, align 4, !tbaa !9
  %123 = icmp ne i32 %122, 0
  br i1 %123, label %124, label %126

124:                                              ; preds = %115
  %125 = load i32, ptr %13, align 4, !tbaa !9
  br label %128

126:                                              ; preds = %115
  %127 = load i32, ptr %14, align 4, !tbaa !9
  br label %128

128:                                              ; preds = %126, %124
  %129 = phi i32 [ %125, %124 ], [ %127, %126 ]
  store i32 %129, ptr %13, align 4, !tbaa !9
  %130 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %130, ptr %8, align 4, !tbaa !9
  %131 = load i32, ptr %13, align 4, !tbaa !9
  %132 = icmp ne i32 %131, 0
  br i1 %132, label %133, label %138

133:                                              ; preds = %128
  %134 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %134, ptr %13, align 4, !tbaa !9
  %135 = load ptr, ptr %4, align 8, !tbaa !5
  %136 = load i32, ptr %13, align 4, !tbaa !9
  %137 = call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %135, i32 noundef %136)
  store i32 %137, ptr %13, align 4, !tbaa !9
  br label %139

138:                                              ; preds = %128
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %139

139:                                              ; preds = %138, %133
  %140 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %140, ptr %7, align 4, !tbaa !9
  %141 = load i32, ptr %13, align 4, !tbaa !9
  %142 = load i32, ptr %12, align 4, !tbaa !9
  %143 = add i32 %142, %141
  store i32 %143, ptr %12, align 4, !tbaa !9
  %144 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %144, ptr %11, align 4, !tbaa !9
  store i32 49, ptr %13, align 4, !tbaa !9
  %145 = load ptr, ptr %4, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.w2c_hermes, ptr %145, i32 0, i32 6
  %147 = load i32, ptr %12, align 4, !tbaa !9
  %148 = zext i32 %147 to i64
  %149 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %146, i64 noundef %148, i32 noundef %149)
  %150 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %150, ptr %12, align 4, !tbaa !9
  %151 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %151, ptr %13, align 4, !tbaa !9
  %152 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %152, ptr %14, align 4, !tbaa !9
  %153 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %153, ptr %15, align 4, !tbaa !9
  %154 = load ptr, ptr %4, align 8, !tbaa !5
  %155 = load i32, ptr %13, align 4, !tbaa !9
  %156 = load i32, ptr %14, align 4, !tbaa !9
  %157 = load i32, ptr %15, align 4, !tbaa !9
  %158 = call i32 @w2c_hermes_memmove(ptr noundef %154, i32 noundef %155, i32 noundef %156, i32 noundef %157)
  store i32 %158, ptr %13, align 4, !tbaa !9
  %159 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %159, ptr %7, align 4, !tbaa !9
  %160 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %160, ptr %14, align 4, !tbaa !9
  %161 = load i32, ptr %14, align 4, !tbaa !9
  %162 = load i32, ptr %13, align 4, !tbaa !9
  %163 = add i32 %162, %161
  store i32 %163, ptr %13, align 4, !tbaa !9
  %164 = load ptr, ptr %4, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.w2c_hermes, ptr %164, i32 0, i32 6
  %166 = load i32, ptr %12, align 4, !tbaa !9
  %167 = zext i32 %166 to i64
  %168 = add i64 %167, 8
  %169 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %165, i64 noundef %168, i32 noundef %169)
  %170 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %170, ptr %12, align 4, !tbaa !9
  %171 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %171, ptr %13, align 4, !tbaa !9
  store i32 1, ptr %14, align 4, !tbaa !9
  %172 = load i32, ptr %14, align 4, !tbaa !9
  %173 = load i32, ptr %13, align 4, !tbaa !9
  %174 = add i32 %173, %172
  store i32 %174, ptr %13, align 4, !tbaa !9
  %175 = load ptr, ptr %4, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.w2c_hermes, ptr %175, i32 0, i32 6
  %177 = load i32, ptr %12, align 4, !tbaa !9
  %178 = zext i32 %177 to i64
  %179 = add i64 %178, 4
  %180 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %176, i64 noundef %179, i32 noundef %180)
  %181 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %181, ptr %12, align 4, !tbaa !9
  %182 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %182, ptr %13, align 4, !tbaa !9
  %183 = load ptr, ptr %4, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.w2c_hermes, ptr %183, i32 0, i32 6
  %185 = load i32, ptr %12, align 4, !tbaa !9
  %186 = zext i32 %185 to i64
  %187 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %184, i64 noundef %186, i32 noundef %187)
  %188 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %188, ptr %12, align 4, !tbaa !9
  %189 = load i32, ptr %12, align 4, !tbaa !9
  %190 = icmp ne i32 %189, 0
  br i1 %190, label %191, label %195

191:                                              ; preds = %139
  %192 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %192, ptr %12, align 4, !tbaa !9
  %193 = load ptr, ptr %4, align 8, !tbaa !5
  %194 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef %193, i32 noundef %194)
  br label %195

195:                                              ; preds = %191, %139
  %196 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %196, ptr %12, align 4, !tbaa !9
  %197 = load i64, ptr %6, align 8, !tbaa !11
  store i64 %197, ptr %18, align 8, !tbaa !11
  %198 = load ptr, ptr %4, align 8, !tbaa !5
  %199 = load i32, ptr %12, align 4, !tbaa !9
  %200 = load i64, ptr %18, align 8, !tbaa !11
  call void @w2c_hermes_hermes0x3A0x3Ahbc0x3A0x3ABytecodeInstructionGenerator0x3A0x3AemitReg80x28long0x20long0x29(ptr noundef %198, i32 noundef %199, i64 noundef %200)
  %201 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %201, ptr %12, align 4, !tbaa !9
  br label %204

202:                                              ; preds = %77
  %203 = load ptr, ptr %4, align 8, !tbaa !5
  call void @w2c_hermes_abort(ptr noundef %203)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

204:                                              ; preds = %195, %53
  %205 = load i32, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, 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
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  ret i32 %205
}

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

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

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


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

declare void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef, i32 noundef) local_unnamed_addr #2

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

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

declare void @w2c_hermes_abort(ptr noundef) local_unnamed_addr #2

declare void @w2c_hermes_hermes0x3A0x3Ahbc0x3A0x3ABytecodeInstructionGenerator0x3A0x3AemitReg80x28long0x20long0x29(ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3Ahbc0x3A0x3ABytecodeInstructionGenerator0x3A0x3AemitGetNewTarget0x28long0x20long0x29(ptr noundef %0, i32 noundef %1, i64 noundef %2) local_unnamed_addr #3 {
  %4 = getelementptr inbounds i8, ptr %0, i64 40
  %5 = zext i32 %1 to i64
  %6 = add nuw nsw i64 %5, 4
  %7 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %6)
  %8 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %5)
  %9 = sub i32 %7, %8
  %10 = add nuw nsw i64 %5, 8
  %11 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %10)
  %12 = icmp ugt i32 %11, %7
  br i1 %12, label %13, label %16

13:                                               ; preds = %3
  %14 = zext i32 %7 to i64
  tail call void @i32_store8(ptr noundef nonnull %4, i64 noundef %14, i32 noundef 49)
  %15 = add nuw i32 %7, 1
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %6, i32 noundef %15)
  br label %35

16:                                               ; preds = %3
  %17 = add i32 %9, 1
  %18 = icmp sgt i32 %17, -1
  br i1 %18, label %19, label %34

19:                                               ; preds = %16
  %20 = sub i32 %11, %8
  %21 = shl i32 %20, 1
  %22 = tail call i32 @llvm.umax.i32(i32 %17, i32 %21)
  %23 = icmp ugt i32 %20, 1073741822
  %24 = select i1 %23, i32 2147483647, i32 %22
  %.not = icmp eq i32 %24, 0
  br i1 %.not, label %27, label %25

25:                                               ; preds = %19
  %26 = tail call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %0, i32 noundef %24) #5
  br label %27

27:                                               ; preds = %19, %25
  %.0 = phi i32 [ %26, %25 ], [ 0, %19 ]
  %28 = add i32 %.0, %9
  %29 = zext i32 %28 to i64
  tail call void @i32_store8(ptr noundef nonnull %4, i64 noundef %29, i32 noundef 49)
  %30 = tail call i32 @w2c_hermes_memmove(ptr noundef %0, i32 noundef %.0, i32 noundef %8, i32 noundef %9) #5
  %31 = add i32 %30, %24
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %10, i32 noundef %31)
  %32 = add i32 %28, 1
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %6, i32 noundef %32)
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %5, i32 noundef %30)
  %.not123 = icmp eq i32 %8, 0
  br i1 %.not123, label %35, label %33

33:                                               ; preds = %27
  tail call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef %0, i32 noundef %8) #5
  br label %35

34:                                               ; preds = %16
  tail call void @w2c_hermes_abort(ptr noundef %0) #5
  tail call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

35:                                               ; preds = %27, %33, %13
  tail call void @w2c_hermes_hermes0x3A0x3Ahbc0x3A0x3ABytecodeInstructionGenerator0x3A0x3AemitReg80x28long0x20long0x29(ptr noundef %0, i32 noundef %1, i64 noundef %2) #5
  ret i32 %9
}

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

attributes #0 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass