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

59:                                               ; preds = %6
  %60 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %60, ptr %18, align 4, !tbaa !9
  store i32 83, ptr %19, align 4, !tbaa !9
  %61 = load ptr, ptr %7, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.w2c_hermes, ptr %61, i32 0, i32 6
  %63 = load i32, ptr %18, align 4, !tbaa !9
  %64 = zext i32 %63 to i64
  %65 = load i32, ptr %19, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %62, i64 noundef %64, i32 noundef %65)
  %66 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %66, ptr %18, align 4, !tbaa !9
  %67 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %67, ptr %19, align 4, !tbaa !9
  store i32 1, ptr %20, align 4, !tbaa !9
  %68 = load i32, ptr %20, align 4, !tbaa !9
  %69 = load i32, ptr %19, align 4, !tbaa !9
  %70 = add i32 %69, %68
  store i32 %70, ptr %19, align 4, !tbaa !9
  %71 = load ptr, ptr %7, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.w2c_hermes, ptr %71, i32 0, i32 6
  %73 = load i32, ptr %18, align 4, !tbaa !9
  %74 = zext i32 %73 to i64
  %75 = add i64 %74, 4
  %76 = load i32, ptr %19, align 4, !tbaa !9
  call void @i32_store(ptr noundef %72, i64 noundef %75, i32 noundef %76)
  br label %201

77:                                               ; preds = %6
  %78 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %78, ptr %18, align 4, !tbaa !9
  store i32 1, ptr %19, align 4, !tbaa !9
  %79 = load i32, ptr %19, align 4, !tbaa !9
  %80 = load i32, ptr %18, align 4, !tbaa !9
  %81 = add i32 %80, %79
  store i32 %81, ptr %18, align 4, !tbaa !9
  %82 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %82, ptr %13, align 4, !tbaa !9
  store i32 0, ptr %19, align 4, !tbaa !9
  %83 = load i32, ptr %18, align 4, !tbaa !9
  %84 = load i32, ptr %19, align 4, !tbaa !9
  %85 = icmp slt i32 %83, %84
  %86 = zext i1 %85 to i32
  store i32 %86, ptr %18, align 4, !tbaa !9
  %87 = load i32, ptr %18, align 4, !tbaa !9
  %88 = icmp ne i32 %87, 0
  br i1 %88, label %89, label %90

89:                                               ; preds = %77
  br label %223

90:                                               ; preds = %77
  %91 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %91, ptr %18, align 4, !tbaa !9
  store i32 2147483647, ptr %19, align 4, !tbaa !9
  %92 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %92, ptr %20, align 4, !tbaa !9
  %93 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %93, ptr %21, align 4, !tbaa !9
  %94 = load i32, ptr %21, align 4, !tbaa !9
  %95 = load i32, ptr %20, align 4, !tbaa !9
  %96 = sub i32 %95, %94
  store i32 %96, ptr %20, align 4, !tbaa !9
  %97 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %97, ptr %14, align 4, !tbaa !9
  store i32 1, ptr %21, align 4, !tbaa !9
  %98 = load i32, ptr %21, align 4, !tbaa !9
  %99 = and i32 %98, 31
  %100 = load i32, ptr %20, align 4, !tbaa !9
  %101 = shl i32 %100, %99
  store i32 %101, ptr %20, align 4, !tbaa !9
  %102 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %102, ptr %17, align 4, !tbaa !9
  %103 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %103, ptr %21, align 4, !tbaa !9
  %104 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %104, ptr %22, align 4, !tbaa !9
  %105 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %105, ptr %23, align 4, !tbaa !9
  %106 = load i32, ptr %22, align 4, !tbaa !9
  %107 = load i32, ptr %23, align 4, !tbaa !9
  %108 = icmp ult i32 %106, %107
  %109 = zext i1 %108 to i32
  store i32 %109, ptr %22, align 4, !tbaa !9
  %110 = load i32, ptr %22, align 4, !tbaa !9
  %111 = icmp ne i32 %110, 0
  br i1 %111, label %112, label %114

112:                                              ; preds = %90
  %113 = load i32, ptr %20, align 4, !tbaa !9
  br label %116

114:                                              ; preds = %90
  %115 = load i32, ptr %21, align 4, !tbaa !9
  br label %116

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

125:                                              ; preds = %116
  %126 = load i32, ptr %19, align 4, !tbaa !9
  br label %129

127:                                              ; preds = %116
  %128 = load i32, ptr %20, align 4, !tbaa !9
  br label %129

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

134:                                              ; preds = %129
  %135 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %135, ptr %19, align 4, !tbaa !9
  %136 = load ptr, ptr %7, align 8, !tbaa !5
  %137 = load i32, ptr %19, align 4, !tbaa !9
  %138 = call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %136, i32 noundef %137)
  store i32 %138, ptr %19, align 4, !tbaa !9
  br label %140

139:                                              ; preds = %129
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %140

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

196:                                              ; preds = %140
  br label %201

197:                                              ; preds = %140
  %198 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %198, ptr %18, align 4, !tbaa !9
  %199 = load ptr, ptr %7, align 8, !tbaa !5
  %200 = load i32, ptr %18, align 4, !tbaa !9
  call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef %199, i32 noundef %200)
  br label %201

201:                                              ; preds = %197, %196, %59
  %202 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %202, ptr %18, align 4, !tbaa !9
  %203 = load i64, ptr %9, align 8, !tbaa !11
  store i64 %203, ptr %24, align 8, !tbaa !11
  %204 = load ptr, ptr %7, align 8, !tbaa !5
  %205 = load i32, ptr %18, align 4, !tbaa !9
  %206 = load i64, ptr %24, align 8, !tbaa !11
  call void @w2c_hermes_hermes0x3A0x3Ahbc0x3A0x3ABytecodeInstructionGenerator0x3A0x3AemitReg80x28long0x20long0x29(ptr noundef %204, i32 noundef %205, i64 noundef %206)
  %207 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %207, ptr %18, align 4, !tbaa !9
  %208 = load i64, ptr %10, align 8, !tbaa !11
  store i64 %208, ptr %24, align 8, !tbaa !11
  %209 = load ptr, ptr %7, align 8, !tbaa !5
  %210 = load i32, ptr %18, align 4, !tbaa !9
  %211 = load i64, ptr %24, align 8, !tbaa !11
  call void @w2c_hermes_hermes0x3A0x3Ahbc0x3A0x3ABytecodeInstructionGenerator0x3A0x3AemitReg80x28long0x20long0x29(ptr noundef %209, i32 noundef %210, i64 noundef %211)
  %212 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %212, ptr %18, align 4, !tbaa !9
  %213 = load i64, ptr %11, align 8, !tbaa !11
  store i64 %213, ptr %24, align 8, !tbaa !11
  %214 = load ptr, ptr %7, align 8, !tbaa !5
  %215 = load i32, ptr %18, align 4, !tbaa !9
  %216 = load i64, ptr %24, align 8, !tbaa !11
  call void @w2c_hermes_hermes0x3A0x3Ahbc0x3A0x3ABytecodeInstructionGenerator0x3A0x3AemitReg80x28long0x20long0x29(ptr noundef %214, i32 noundef %215, i64 noundef %216)
  %217 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %217, ptr %18, align 4, !tbaa !9
  %218 = load i64, ptr %12, align 8, !tbaa !11
  store i64 %218, ptr %24, align 8, !tbaa !11
  %219 = load ptr, ptr %7, align 8, !tbaa !5
  %220 = load i32, ptr %18, align 4, !tbaa !9
  %221 = load i64, ptr %24, align 8, !tbaa !11
  call void @w2c_hermes_hermes0x3A0x3Ahbc0x3A0x3ABytecodeInstructionGenerator0x3A0x3AemitReg80x28long0x20long0x29(ptr noundef %219, i32 noundef %220, i64 noundef %221)
  %222 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %222, ptr %18, align 4, !tbaa !9
  br label %225

223:                                              ; preds = %89
  %224 = load ptr, ptr %7, align 8, !tbaa !5
  call void @w2c_hermes_abort(ptr noundef %224)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

225:                                              ; preds = %201
  %226 = load i32, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, 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
  ret i32 %226
}

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_hermes0x3A0x3Ahbc0x3A0x3ABytecodeInstructionGenerator0x3A0x3AemitCall20x28long0x20long0x2C0x20long0x20long0x2C0x20long0x20long0x2C0x20long0x20long0x29(ptr noundef %0, i32 noundef %1, i64 noundef %2, i64 noundef %3, i64 noundef %4, i64 noundef %5) local_unnamed_addr #3 {
  %7 = getelementptr inbounds i8, ptr %0, i64 40
  %8 = zext i32 %1 to i64
  %9 = add nuw nsw i64 %8, 4
  %10 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %9)
  %11 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %8)
  %12 = sub i32 %10, %11
  %13 = add nuw nsw i64 %8, 8
  %14 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %13)
  %15 = icmp ugt i32 %14, %10
  br i1 %15, label %16, label %19

16:                                               ; preds = %6
  %17 = zext i32 %10 to i64
  tail call void @i32_store8(ptr noundef nonnull %7, i64 noundef %17, i32 noundef 83)
  %18 = add nuw i32 %10, 1
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %9, i32 noundef %18)
  br label %37

19:                                               ; preds = %6
  %20 = add i32 %12, 1
  %21 = icmp slt i32 %20, 0
  br i1 %21, label %38, label %22

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

28:                                               ; preds = %22
  %29 = tail call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %0, i32 noundef %27) #5
  br label %30

30:                                               ; preds = %22, %28
  %.0 = phi i32 [ %29, %28 ], [ 0, %22 ]
  %31 = add i32 %.0, %12
  %32 = zext i32 %31 to i64
  tail call void @i32_store8(ptr noundef nonnull %7, i64 noundef %32, i32 noundef 83)
  %33 = tail call i32 @w2c_hermes_memmove(ptr noundef %0, i32 noundef %.0, i32 noundef %11, i32 noundef %12) #5
  %34 = add i32 %33, %27
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %13, i32 noundef %34)
  %35 = add i32 %31, 1
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %9, i32 noundef %35)
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %8, i32 noundef %33)
  %.not131 = icmp eq i32 %11, 0
  br i1 %.not131, label %37, label %36

36:                                               ; preds = %30
  tail call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef %0, i32 noundef %11) #5
  br label %37

37:                                               ; preds = %30, %36, %16
  tail call void @w2c_hermes_hermes0x3A0x3Ahbc0x3A0x3ABytecodeInstructionGenerator0x3A0x3AemitReg80x28long0x20long0x29(ptr noundef %0, i32 noundef %1, i64 noundef %2) #5
  tail call void @w2c_hermes_hermes0x3A0x3Ahbc0x3A0x3ABytecodeInstructionGenerator0x3A0x3AemitReg80x28long0x20long0x29(ptr noundef %0, i32 noundef %1, i64 noundef %3) #5
  tail call void @w2c_hermes_hermes0x3A0x3Ahbc0x3A0x3ABytecodeInstructionGenerator0x3A0x3AemitReg80x28long0x20long0x29(ptr noundef %0, i32 noundef %1, i64 noundef %4) #5
  tail call void @w2c_hermes_hermes0x3A0x3Ahbc0x3A0x3ABytecodeInstructionGenerator0x3A0x3AemitReg80x28long0x20long0x29(ptr noundef %0, i32 noundef %1, i64 noundef %5) #5
  ret i32 %12

38:                                               ; preds = %19
  tail call void @w2c_hermes_abort(ptr noundef %0) #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 = { 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