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

63:                                               ; preds = %8
  %64 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %64, ptr %22, align 4, !tbaa !9
  store i32 85, ptr %23, align 4, !tbaa !9
  %65 = load ptr, ptr %9, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.w2c_hermes, ptr %65, i32 0, i32 6
  %67 = load i32, ptr %22, align 4, !tbaa !9
  %68 = zext i32 %67 to i64
  %69 = load i32, ptr %23, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %66, i64 noundef %68, i32 noundef %69)
  %70 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %70, ptr %22, align 4, !tbaa !9
  %71 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %71, ptr %23, align 4, !tbaa !9
  store i32 1, ptr %24, align 4, !tbaa !9
  %72 = load i32, ptr %24, align 4, !tbaa !9
  %73 = load i32, ptr %23, align 4, !tbaa !9
  %74 = add i32 %73, %72
  store i32 %74, ptr %23, align 4, !tbaa !9
  %75 = load ptr, ptr %9, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.w2c_hermes, ptr %75, i32 0, i32 6
  %77 = load i32, ptr %22, align 4, !tbaa !9
  %78 = zext i32 %77 to i64
  %79 = add i64 %78, 4
  %80 = load i32, ptr %23, align 4, !tbaa !9
  call void @i32_store(ptr noundef %76, i64 noundef %79, i32 noundef %80)
  br label %205

81:                                               ; preds = %8
  %82 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %82, ptr %22, align 4, !tbaa !9
  store i32 1, ptr %23, align 4, !tbaa !9
  %83 = load i32, ptr %23, align 4, !tbaa !9
  %84 = load i32, ptr %22, align 4, !tbaa !9
  %85 = add i32 %84, %83
  store i32 %85, ptr %22, align 4, !tbaa !9
  %86 = load i32, ptr %22, align 4, !tbaa !9
  store i32 %86, ptr %17, align 4, !tbaa !9
  store i32 0, ptr %23, align 4, !tbaa !9
  %87 = load i32, ptr %22, align 4, !tbaa !9
  %88 = load i32, ptr %23, align 4, !tbaa !9
  %89 = icmp slt i32 %87, %88
  %90 = zext i1 %89 to i32
  store i32 %90, ptr %22, align 4, !tbaa !9
  %91 = load i32, ptr %22, align 4, !tbaa !9
  %92 = icmp ne i32 %91, 0
  br i1 %92, label %93, label %94

93:                                               ; preds = %81
  br label %237

94:                                               ; preds = %81
  %95 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %95, ptr %22, align 4, !tbaa !9
  store i32 2147483647, ptr %23, align 4, !tbaa !9
  %96 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %96, ptr %24, align 4, !tbaa !9
  %97 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %97, ptr %25, align 4, !tbaa !9
  %98 = load i32, ptr %25, align 4, !tbaa !9
  %99 = load i32, ptr %24, align 4, !tbaa !9
  %100 = sub i32 %99, %98
  store i32 %100, ptr %24, align 4, !tbaa !9
  %101 = load i32, ptr %24, align 4, !tbaa !9
  store i32 %101, ptr %18, align 4, !tbaa !9
  store i32 1, ptr %25, align 4, !tbaa !9
  %102 = load i32, ptr %25, align 4, !tbaa !9
  %103 = and i32 %102, 31
  %104 = load i32, ptr %24, align 4, !tbaa !9
  %105 = shl i32 %104, %103
  store i32 %105, ptr %24, align 4, !tbaa !9
  %106 = load i32, ptr %24, align 4, !tbaa !9
  store i32 %106, ptr %21, align 4, !tbaa !9
  %107 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %107, ptr %25, align 4, !tbaa !9
  %108 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %108, ptr %26, align 4, !tbaa !9
  %109 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %109, ptr %27, align 4, !tbaa !9
  %110 = load i32, ptr %26, align 4, !tbaa !9
  %111 = load i32, ptr %27, align 4, !tbaa !9
  %112 = icmp ult i32 %110, %111
  %113 = zext i1 %112 to i32
  store i32 %113, ptr %26, align 4, !tbaa !9
  %114 = load i32, ptr %26, align 4, !tbaa !9
  %115 = icmp ne i32 %114, 0
  br i1 %115, label %116, label %118

116:                                              ; preds = %94
  %117 = load i32, ptr %24, align 4, !tbaa !9
  br label %120

118:                                              ; preds = %94
  %119 = load i32, ptr %25, align 4, !tbaa !9
  br label %120

120:                                              ; preds = %118, %116
  %121 = phi i32 [ %117, %116 ], [ %119, %118 ]
  store i32 %121, ptr %24, align 4, !tbaa !9
  %122 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %122, ptr %25, align 4, !tbaa !9
  store i32 1073741823, ptr %26, align 4, !tbaa !9
  %123 = load i32, ptr %25, align 4, !tbaa !9
  %124 = load i32, ptr %26, align 4, !tbaa !9
  %125 = icmp uge i32 %123, %124
  %126 = zext i1 %125 to i32
  store i32 %126, ptr %25, align 4, !tbaa !9
  %127 = load i32, ptr %25, align 4, !tbaa !9
  %128 = icmp ne i32 %127, 0
  br i1 %128, label %129, label %131

129:                                              ; preds = %120
  %130 = load i32, ptr %23, align 4, !tbaa !9
  br label %133

131:                                              ; preds = %120
  %132 = load i32, ptr %24, align 4, !tbaa !9
  br label %133

133:                                              ; preds = %131, %129
  %134 = phi i32 [ %130, %129 ], [ %132, %131 ]
  store i32 %134, ptr %23, align 4, !tbaa !9
  %135 = load i32, ptr %23, align 4, !tbaa !9
  store i32 %135, ptr %18, align 4, !tbaa !9
  %136 = load i32, ptr %23, align 4, !tbaa !9
  %137 = icmp ne i32 %136, 0
  br i1 %137, label %138, label %143

138:                                              ; preds = %133
  %139 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %139, ptr %23, align 4, !tbaa !9
  %140 = load ptr, ptr %9, align 8, !tbaa !5
  %141 = load i32, ptr %23, align 4, !tbaa !9
  %142 = call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %140, i32 noundef %141)
  store i32 %142, ptr %23, align 4, !tbaa !9
  br label %144

143:                                              ; preds = %133
  store i32 0, ptr %23, align 4, !tbaa !9
  br label %144

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

200:                                              ; preds = %144
  br label %205

201:                                              ; preds = %144
  %202 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %202, ptr %22, align 4, !tbaa !9
  %203 = load ptr, ptr %9, align 8, !tbaa !5
  %204 = load i32, ptr %22, align 4, !tbaa !9
  call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef %203, i32 noundef %204)
  br label %205

205:                                              ; preds = %201, %200, %63
  %206 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %206, ptr %22, align 4, !tbaa !9
  %207 = load i64, ptr %11, align 8, !tbaa !11
  store i64 %207, ptr %28, align 8, !tbaa !11
  %208 = load ptr, ptr %9, align 8, !tbaa !5
  %209 = load i32, ptr %22, align 4, !tbaa !9
  %210 = load i64, ptr %28, align 8, !tbaa !11
  call void @w2c_hermes_hermes0x3A0x3Ahbc0x3A0x3ABytecodeInstructionGenerator0x3A0x3AemitReg80x28long0x20long0x29(ptr noundef %208, i32 noundef %209, i64 noundef %210)
  %211 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %211, ptr %22, align 4, !tbaa !9
  %212 = load i64, ptr %12, align 8, !tbaa !11
  store i64 %212, ptr %28, align 8, !tbaa !11
  %213 = load ptr, ptr %9, align 8, !tbaa !5
  %214 = load i32, ptr %22, align 4, !tbaa !9
  %215 = load i64, ptr %28, align 8, !tbaa !11
  call void @w2c_hermes_hermes0x3A0x3Ahbc0x3A0x3ABytecodeInstructionGenerator0x3A0x3AemitReg80x28long0x20long0x29(ptr noundef %213, i32 noundef %214, i64 noundef %215)
  %216 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %216, ptr %22, align 4, !tbaa !9
  %217 = load i64, ptr %13, align 8, !tbaa !11
  store i64 %217, ptr %28, align 8, !tbaa !11
  %218 = load ptr, ptr %9, align 8, !tbaa !5
  %219 = load i32, ptr %22, align 4, !tbaa !9
  %220 = load i64, ptr %28, align 8, !tbaa !11
  call void @w2c_hermes_hermes0x3A0x3Ahbc0x3A0x3ABytecodeInstructionGenerator0x3A0x3AemitReg80x28long0x20long0x29(ptr noundef %218, i32 noundef %219, i64 noundef %220)
  %221 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %221, ptr %22, align 4, !tbaa !9
  %222 = load i64, ptr %14, align 8, !tbaa !11
  store i64 %222, ptr %28, align 8, !tbaa !11
  %223 = load ptr, ptr %9, align 8, !tbaa !5
  %224 = load i32, ptr %22, align 4, !tbaa !9
  %225 = load i64, ptr %28, align 8, !tbaa !11
  call void @w2c_hermes_hermes0x3A0x3Ahbc0x3A0x3ABytecodeInstructionGenerator0x3A0x3AemitReg80x28long0x20long0x29(ptr noundef %223, i32 noundef %224, i64 noundef %225)
  %226 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %226, ptr %22, align 4, !tbaa !9
  %227 = load i64, ptr %15, align 8, !tbaa !11
  store i64 %227, ptr %28, align 8, !tbaa !11
  %228 = load ptr, ptr %9, align 8, !tbaa !5
  %229 = load i32, ptr %22, align 4, !tbaa !9
  %230 = load i64, ptr %28, align 8, !tbaa !11
  call void @w2c_hermes_hermes0x3A0x3Ahbc0x3A0x3ABytecodeInstructionGenerator0x3A0x3AemitReg80x28long0x20long0x29(ptr noundef %228, i32 noundef %229, i64 noundef %230)
  %231 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %231, ptr %22, align 4, !tbaa !9
  %232 = load i64, ptr %16, align 8, !tbaa !11
  store i64 %232, ptr %28, align 8, !tbaa !11
  %233 = load ptr, ptr %9, align 8, !tbaa !5
  %234 = load i32, ptr %22, align 4, !tbaa !9
  %235 = load i64, ptr %28, align 8, !tbaa !11
  call void @w2c_hermes_hermes0x3A0x3Ahbc0x3A0x3ABytecodeInstructionGenerator0x3A0x3AemitReg80x28long0x20long0x29(ptr noundef %233, i32 noundef %234, i64 noundef %235)
  %236 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %236, ptr %22, align 4, !tbaa !9
  br label %239

237:                                              ; preds = %93
  %238 = load ptr, ptr %9, align 8, !tbaa !5
  call void @w2c_hermes_abort(ptr noundef %238)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

239:                                              ; preds = %205
  %240 = load i32, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 4, 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
  ret i32 %240
}

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

18:                                               ; preds = %8
  %19 = zext i32 %12 to i64
  tail call void @i32_store8(ptr noundef nonnull %9, i64 noundef %19, i32 noundef 85)
  %20 = add nuw i32 %12, 1
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %11, i32 noundef %20)
  br label %39

21:                                               ; preds = %8
  %22 = add i32 %14, 1
  %23 = icmp slt i32 %22, 0
  br i1 %23, label %40, label %24

24:                                               ; preds = %21
  %25 = sub i32 %16, %13
  %26 = shl i32 %25, 1
  %27 = tail call i32 @llvm.umax.i32(i32 %22, i32 %26)
  %28 = icmp ugt i32 %25, 1073741822
  %29 = select i1 %28, i32 2147483647, i32 %27
  %.not = icmp eq i32 %29, 0
  br i1 %.not, label %32, label %30

30:                                               ; preds = %24
  %31 = tail call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %0, i32 noundef %29) #5
  br label %32

32:                                               ; preds = %24, %30
  %.0 = phi i32 [ %31, %30 ], [ 0, %24 ]
  %33 = add i32 %.0, %14
  %34 = zext i32 %33 to i64
  tail call void @i32_store8(ptr noundef nonnull %9, i64 noundef %34, i32 noundef 85)
  %35 = tail call i32 @w2c_hermes_memmove(ptr noundef %0, i32 noundef %.0, i32 noundef %13, i32 noundef %14) #5
  %36 = add i32 %35, %29
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %15, i32 noundef %36)
  %37 = add i32 %33, 1
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %11, i32 noundef %37)
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %10, i32 noundef %35)
  %.not141 = icmp eq i32 %13, 0
  br i1 %.not141, label %39, label %38

38:                                               ; preds = %32
  tail call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef %0, i32 noundef %13) #5
  br label %39

39:                                               ; preds = %32, %38, %18
  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
  tail call void @w2c_hermes_hermes0x3A0x3Ahbc0x3A0x3ABytecodeInstructionGenerator0x3A0x3AemitReg80x28long0x20long0x29(ptr noundef %0, i32 noundef %1, i64 noundef %6) #5
  tail call void @w2c_hermes_hermes0x3A0x3Ahbc0x3A0x3ABytecodeInstructionGenerator0x3A0x3AemitReg80x28long0x20long0x29(ptr noundef %0, i32 noundef %1, i64 noundef %7) #5
  ret i32 %14

40:                                               ; preds = %21
  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