; 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

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

; 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3AScopeDesc0x3A0x3AcreateInnerScope0x280x29(ptr noundef %0, i32 noundef %1) #4 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %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 %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 0, ptr %6, align 4, !tbaa !9
  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
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  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 8, ptr %14) #5
  store i32 136, ptr %9, align 4, !tbaa !9
  %15 = load ptr, ptr %3, align 8, !tbaa !5
  %16 = load i32, ptr %9, align 4, !tbaa !9
  %17 = call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %15, i32 noundef %16)
  store i32 %17, ptr %9, align 4, !tbaa !9
  %18 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %18, ptr %5, align 4, !tbaa !9
  store i32 459775, ptr %10, align 4, !tbaa !9
  %19 = load ptr, ptr %3, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.w2c_hermes, ptr %19, i32 0, i32 6
  %21 = load i32, ptr %9, align 4, !tbaa !9
  %22 = zext i32 %21 to i64
  %23 = add i64 %22, 2
  %24 = load i32, ptr %10, align 4, !tbaa !9
  call void @i32_store(ptr noundef %20, i64 noundef %23, i32 noundef %24)
  %25 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %25, ptr %9, align 4, !tbaa !9
  store i32 0, ptr %10, align 4, !tbaa !9
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.w2c_hermes, ptr %26, i32 0, i32 6
  %28 = load i32, ptr %9, align 4, !tbaa !9
  %29 = zext i32 %28 to i64
  %30 = add i64 %29, 132
  %31 = load i32, ptr %10, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %27, i64 noundef %30, i32 noundef %31)
  %32 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %32, ptr %9, align 4, !tbaa !9
  store i32 0, ptr %10, align 4, !tbaa !9
  %33 = load ptr, ptr %3, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.w2c_hermes, ptr %33, i32 0, i32 6
  %35 = load i32, ptr %9, align 4, !tbaa !9
  %36 = zext i32 %35 to i64
  %37 = add i64 %36, 84
  %38 = load i32, ptr %10, align 4, !tbaa !9
  call void @i32_store(ptr noundef %34, i64 noundef %37, i32 noundef %38)
  %39 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %39, ptr %9, align 4, !tbaa !9
  store i64 0, ptr %14, align 8, !tbaa !11
  %40 = load ptr, ptr %3, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.w2c_hermes, ptr %40, i32 0, i32 6
  %42 = load i32, ptr %9, align 4, !tbaa !9
  %43 = zext i32 %42 to i64
  %44 = add i64 %43, 76
  %45 = load i64, ptr %14, align 8, !tbaa !11
  call void @i64_store(ptr noundef %41, i64 noundef %44, i64 noundef %45)
  %46 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %46, ptr %9, align 4, !tbaa !9
  %47 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %47, ptr %10, align 4, !tbaa !9
  %48 = load ptr, ptr %3, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.w2c_hermes, ptr %48, i32 0, i32 6
  %50 = load i32, ptr %9, align 4, !tbaa !9
  %51 = zext i32 %50 to i64
  %52 = add i64 %51, 28
  %53 = load i32, ptr %10, align 4, !tbaa !9
  call void @i32_store(ptr noundef %49, i64 noundef %52, i32 noundef %53)
  %54 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %54, ptr %9, align 4, !tbaa !9
  store i32 120, ptr %10, align 4, !tbaa !9
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.w2c_hermes, ptr %55, i32 0, i32 6
  %57 = load i32, ptr %9, align 4, !tbaa !9
  %58 = zext i32 %57 to i64
  %59 = load i32, ptr %10, 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 %9, align 4, !tbaa !9
  store i64 8589934592, ptr %14, align 8, !tbaa !11
  %61 = load ptr, ptr %3, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.w2c_hermes, ptr %61, i32 0, i32 6
  %63 = load i32, ptr %9, align 4, !tbaa !9
  %64 = zext i32 %63 to i64
  %65 = add i64 %64, 12
  %66 = load i64, ptr %14, align 8, !tbaa !11
  call void @i64_store(ptr noundef %62, i64 noundef %65, i64 noundef %66)
  %67 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %67, ptr %9, align 4, !tbaa !9
  %68 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %68, ptr %10, align 4, !tbaa !9
  store i32 20, ptr %11, align 4, !tbaa !9
  %69 = load i32, ptr %11, align 4, !tbaa !9
  %70 = load i32, ptr %10, align 4, !tbaa !9
  %71 = add i32 %70, %69
  store i32 %71, ptr %10, align 4, !tbaa !9
  %72 = load ptr, ptr %3, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.w2c_hermes, ptr %72, i32 0, i32 6
  %74 = load i32, ptr %9, align 4, !tbaa !9
  %75 = zext i32 %74 to i64
  %76 = add i64 %75, 8
  %77 = load i32, ptr %10, align 4, !tbaa !9
  call void @i32_store(ptr noundef %73, i64 noundef %76, i32 noundef %77)
  %78 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %78, ptr %9, align 4, !tbaa !9
  store i64 34359738368, ptr %14, align 8, !tbaa !11
  %79 = load ptr, ptr %3, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.w2c_hermes, ptr %79, i32 0, i32 6
  %81 = load i32, ptr %9, align 4, !tbaa !9
  %82 = zext i32 %81 to i64
  %83 = add i64 %82, 92
  %84 = load i64, ptr %14, align 8, !tbaa !11
  call void @i64_store(ptr noundef %80, i64 noundef %83, i64 noundef %84)
  %85 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %85, ptr %9, align 4, !tbaa !9
  %86 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %86, ptr %10, align 4, !tbaa !9
  store i32 100, ptr %11, align 4, !tbaa !9
  %87 = load i32, ptr %11, align 4, !tbaa !9
  %88 = load i32, ptr %10, align 4, !tbaa !9
  %89 = add i32 %88, %87
  store i32 %89, ptr %10, align 4, !tbaa !9
  %90 = load ptr, ptr %3, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.w2c_hermes, ptr %90, i32 0, i32 6
  %92 = load i32, ptr %9, align 4, !tbaa !9
  %93 = zext i32 %92 to i64
  %94 = add i64 %93, 88
  %95 = load i32, ptr %10, align 4, !tbaa !9
  call void @i32_store(ptr noundef %91, i64 noundef %94, i32 noundef %95)
  %96 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %96, ptr %9, align 4, !tbaa !9
  store i64 34359738368, ptr %14, align 8, !tbaa !11
  %97 = load ptr, ptr %3, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.w2c_hermes, ptr %97, i32 0, i32 6
  %99 = load i32, ptr %9, align 4, !tbaa !9
  %100 = zext i32 %99 to i64
  %101 = add i64 %100, 36
  %102 = load i64, ptr %14, align 8, !tbaa !11
  call void @i64_store(ptr noundef %98, i64 noundef %101, i64 noundef %102)
  %103 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %103, ptr %9, align 4, !tbaa !9
  %104 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %104, ptr %10, align 4, !tbaa !9
  store i32 44, ptr %11, align 4, !tbaa !9
  %105 = load i32, ptr %11, align 4, !tbaa !9
  %106 = load i32, ptr %10, align 4, !tbaa !9
  %107 = add i32 %106, %105
  store i32 %107, ptr %10, align 4, !tbaa !9
  %108 = load ptr, ptr %3, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.w2c_hermes, ptr %108, i32 0, i32 6
  %110 = load i32, ptr %9, align 4, !tbaa !9
  %111 = zext i32 %110 to i64
  %112 = add i64 %111, 32
  %113 = load i32, ptr %10, align 4, !tbaa !9
  call void @i32_store(ptr noundef %109, i64 noundef %112, i32 noundef %113)
  %114 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %114, ptr %9, align 4, !tbaa !9
  store i32 32, ptr %10, align 4, !tbaa !9
  %115 = load i32, ptr %10, align 4, !tbaa !9
  %116 = load i32, ptr %9, align 4, !tbaa !9
  %117 = add i32 %116, %115
  store i32 %117, ptr %9, align 4, !tbaa !9
  %118 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %118, ptr %7, align 4, !tbaa !9
  %119 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %119, ptr %9, align 4, !tbaa !9
  %120 = load ptr, ptr %3, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.w2c_hermes, ptr %120, i32 0, i32 6
  %122 = load i32, ptr %9, align 4, !tbaa !9
  %123 = zext i32 %122 to i64
  %124 = add i64 %123, 36
  %125 = call i32 @i32_load(ptr noundef %121, i64 noundef %124)
  store i32 %125, ptr %9, align 4, !tbaa !9
  %126 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %126, ptr %6, align 4, !tbaa !9
  %127 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %127, ptr %10, align 4, !tbaa !9
  %128 = load ptr, ptr %3, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.w2c_hermes, ptr %128, i32 0, i32 6
  %130 = load i32, ptr %10, align 4, !tbaa !9
  %131 = zext i32 %130 to i64
  %132 = add i64 %131, 40
  %133 = call i32 @i32_load(ptr noundef %129, i64 noundef %132)
  store i32 %133, ptr %10, align 4, !tbaa !9
  %134 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %134, ptr %8, align 4, !tbaa !9
  %135 = load i32, ptr %9, align 4, !tbaa !9
  %136 = load i32, ptr %10, align 4, !tbaa !9
  %137 = icmp uge i32 %135, %136
  %138 = zext i1 %137 to i32
  store i32 %138, ptr %9, align 4, !tbaa !9
  %139 = load i32, ptr %9, align 4, !tbaa !9
  %140 = icmp ne i32 %139, 0
  br i1 %140, label %141, label %168

141:                                              ; preds = %2
  %142 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %142, ptr %9, align 4, !tbaa !9
  %143 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %143, ptr %10, align 4, !tbaa !9
  store i32 44, ptr %11, align 4, !tbaa !9
  %144 = load i32, ptr %11, align 4, !tbaa !9
  %145 = load i32, ptr %10, align 4, !tbaa !9
  %146 = add i32 %145, %144
  store i32 %146, ptr %10, align 4, !tbaa !9
  store i32 0, ptr %11, align 4, !tbaa !9
  store i32 4, ptr %12, align 4, !tbaa !9
  %147 = load ptr, ptr %3, align 8, !tbaa !5
  %148 = load i32, ptr %9, align 4, !tbaa !9
  %149 = load i32, ptr %10, align 4, !tbaa !9
  %150 = load i32, ptr %11, align 4, !tbaa !9
  %151 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_llvh0x3A0x3ASmallVectorBase0x3A0x3Agrow_pod0x28void0x2A0x2C0x20unsigned0x20long0x2C0x20unsigned0x20long0x29(ptr noundef %147, i32 noundef %148, i32 noundef %149, i32 noundef %150, i32 noundef %151)
  %152 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %152, ptr %9, align 4, !tbaa !9
  %153 = load ptr, ptr %3, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.w2c_hermes, ptr %153, i32 0, i32 6
  %155 = load i32, ptr %9, align 4, !tbaa !9
  %156 = zext i32 %155 to i64
  %157 = add i64 %156, 40
  %158 = call i32 @i32_load(ptr noundef %154, i64 noundef %157)
  store i32 %158, ptr %9, align 4, !tbaa !9
  %159 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %159, ptr %8, align 4, !tbaa !9
  %160 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %160, ptr %9, align 4, !tbaa !9
  %161 = load ptr, ptr %3, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.w2c_hermes, ptr %161, i32 0, i32 6
  %163 = load i32, ptr %9, align 4, !tbaa !9
  %164 = zext i32 %163 to i64
  %165 = add i64 %164, 36
  %166 = call i32 @i32_load(ptr noundef %162, i64 noundef %165)
  store i32 %166, ptr %9, align 4, !tbaa !9
  %167 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %167, ptr %6, align 4, !tbaa !9
  br label %168

168:                                              ; preds = %141, %2
  %169 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %169, ptr %9, align 4, !tbaa !9
  %170 = load ptr, ptr %3, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.w2c_hermes, ptr %170, i32 0, i32 6
  %172 = load i32, ptr %9, align 4, !tbaa !9
  %173 = zext i32 %172 to i64
  %174 = call i32 @i32_load(ptr noundef %171, i64 noundef %173)
  store i32 %174, ptr %9, align 4, !tbaa !9
  %175 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %175, ptr %10, align 4, !tbaa !9
  store i32 2, ptr %11, align 4, !tbaa !9
  %176 = load i32, ptr %11, align 4, !tbaa !9
  %177 = and i32 %176, 31
  %178 = load i32, ptr %10, align 4, !tbaa !9
  %179 = shl i32 %178, %177
  store i32 %179, ptr %10, align 4, !tbaa !9
  %180 = load i32, ptr %10, align 4, !tbaa !9
  %181 = load i32, ptr %9, align 4, !tbaa !9
  %182 = add i32 %181, %180
  store i32 %182, ptr %9, align 4, !tbaa !9
  %183 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %183, ptr %10, align 4, !tbaa !9
  %184 = load ptr, ptr %3, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.w2c_hermes, ptr %184, i32 0, i32 6
  %186 = load i32, ptr %9, align 4, !tbaa !9
  %187 = zext i32 %186 to i64
  %188 = load i32, ptr %10, align 4, !tbaa !9
  call void @i32_store(ptr noundef %185, i64 noundef %187, i32 noundef %188)
  %189 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %189, ptr %9, align 4, !tbaa !9
  store i32 1, ptr %10, align 4, !tbaa !9
  %190 = load i32, ptr %10, align 4, !tbaa !9
  %191 = load i32, ptr %9, align 4, !tbaa !9
  %192 = add i32 %191, %190
  store i32 %192, ptr %9, align 4, !tbaa !9
  %193 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %193, ptr %6, align 4, !tbaa !9
  %194 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %194, ptr %10, align 4, !tbaa !9
  %195 = load i32, ptr %9, align 4, !tbaa !9
  %196 = load i32, ptr %10, align 4, !tbaa !9
  %197 = icmp ugt i32 %195, %196
  %198 = zext i1 %197 to i32
  store i32 %198, ptr %9, align 4, !tbaa !9
  %199 = load i32, ptr %9, align 4, !tbaa !9
  %200 = icmp ne i32 %199, 0
  br i1 %200, label %201, label %219

201:                                              ; preds = %168
  store i32 0, ptr %9, align 4, !tbaa !9
  %202 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %202, ptr %5, align 4, !tbaa !9
  store i32 117789, ptr %10, align 4, !tbaa !9
  %203 = load i32, ptr %10, align 4, !tbaa !9
  %204 = load i32, ptr %9, align 4, !tbaa !9
  %205 = add i32 %204, %203
  store i32 %205, ptr %9, align 4, !tbaa !9
  %206 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %206, ptr %10, align 4, !tbaa !9
  store i32 79572, ptr %11, align 4, !tbaa !9
  %207 = load i32, ptr %11, align 4, !tbaa !9
  %208 = load i32, ptr %10, align 4, !tbaa !9
  %209 = add i32 %208, %207
  store i32 %209, ptr %10, align 4, !tbaa !9
  store i32 74, ptr %11, align 4, !tbaa !9
  %210 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %210, ptr %12, align 4, !tbaa !9
  store i32 88407, ptr %13, align 4, !tbaa !9
  %211 = load i32, ptr %13, align 4, !tbaa !9
  %212 = load i32, ptr %12, align 4, !tbaa !9
  %213 = add i32 %212, %211
  store i32 %213, ptr %12, align 4, !tbaa !9
  %214 = load ptr, ptr %3, align 8, !tbaa !5
  %215 = load i32, ptr %9, align 4, !tbaa !9
  %216 = load i32, ptr %10, align 4, !tbaa !9
  %217 = load i32, ptr %11, align 4, !tbaa !9
  %218 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %214, i32 noundef %215, i32 noundef %216, i32 noundef %217, i32 noundef %218)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

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

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

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

; 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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3AScopeDesc0x3A0x3AcreateInnerScope0x280x29(ptr noundef %0, i32 noundef %1) local_unnamed_addr #3 {
  %3 = tail call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %0, i32 noundef 136) #4
  %4 = getelementptr inbounds i8, ptr %0, i64 40
  %5 = zext i32 %3 to i64
  %6 = add nuw nsw i64 %5, 2
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %6, i32 noundef 459775)
  %7 = add nuw nsw i64 %5, 132
  tail call void @i32_store8(ptr noundef nonnull %4, i64 noundef %7, i32 noundef 0)
  %8 = add nuw nsw i64 %5, 84
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %8, i32 noundef 0)
  %9 = add nuw nsw i64 %5, 76
  tail call void @i64_store(ptr noundef nonnull %4, i64 noundef %9, i64 noundef 0)
  %10 = add nuw nsw i64 %5, 28
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %10, i32 noundef %1)
  tail call void @i32_store8(ptr noundef nonnull %4, i64 noundef %5, i32 noundef 120)
  %11 = add nuw nsw i64 %5, 12
  tail call void @i64_store(ptr noundef nonnull %4, i64 noundef %11, i64 noundef 8589934592)
  %12 = add i32 %3, 20
  %13 = add nuw nsw i64 %5, 8
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %13, i32 noundef %12)
  %14 = add nuw nsw i64 %5, 92
  tail call void @i64_store(ptr noundef nonnull %4, i64 noundef %14, i64 noundef 34359738368)
  %15 = add i32 %3, 100
  %16 = add nuw nsw i64 %5, 88
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %16, i32 noundef %15)
  %17 = add nuw nsw i64 %5, 36
  tail call void @i64_store(ptr noundef nonnull %4, i64 noundef %17, i64 noundef 34359738368)
  %18 = add i32 %3, 44
  %19 = add nuw nsw i64 %5, 32
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %19, i32 noundef %18)
  %20 = add i32 %1, 32
  %21 = zext i32 %1 to i64
  %22 = add nuw nsw i64 %21, 36
  %23 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %22)
  %24 = add nuw nsw i64 %21, 40
  %25 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %24)
  %.not = icmp ult i32 %23, %25
  br i1 %.not, label %30, label %26

26:                                               ; preds = %2
  %27 = add i32 %1, 44
  tail call void @w2c_hermes_llvh0x3A0x3ASmallVectorBase0x3A0x3Agrow_pod0x28void0x2A0x2C0x20unsigned0x20long0x2C0x20unsigned0x20long0x29(ptr noundef %0, i32 noundef %20, i32 noundef %27, i32 noundef 0, i32 noundef 4) #4
  %28 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %24)
  %29 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %22)
  br label %30

30:                                               ; preds = %26, %2
  %.0132 = phi i32 [ %28, %26 ], [ %25, %2 ]
  %.0 = phi i32 [ %29, %26 ], [ %23, %2 ]
  %31 = zext i32 %20 to i64
  %32 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %31)
  %33 = shl i32 %.0, 2
  %34 = add i32 %32, %33
  %35 = zext i32 %34 to i64
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %35, i32 noundef %3)
  %36 = add i32 %.0, 1
  %37 = icmp ugt i32 %36, %.0132
  br i1 %37, label %38, label %39

38:                                               ; preds = %30
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 117789, i32 noundef 79572, i32 noundef 74, i32 noundef 88407) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

39:                                               ; preds = %30
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %22, i32 noundef %36)
  ret i32 %3
}

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 = { nounwind }
attributes #5 = { 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: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,TailCallElimPass