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

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

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

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

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

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

; Function Attrs: noreturn
declare void @wasm_rt_trap(i32 noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @i32_load8_u(ptr noundef, i64 noundef) #3

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @i32_load(ptr noundef, i64 noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @i64_load(ptr noundef, i64 noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i64_store(ptr noundef, i64 noundef, i64 noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3ASymbolID0x3E0x3A0x3AHandle0x28hermes0x3A0x3Avm0x3A0x3AHandleRootOwner0x260x2C0x20hermes0x3A0x3Avm0x3A0x3ASymbolID0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #4

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

58:                                               ; preds = %6
  %59 = load i64, ptr %14, align 8, !tbaa !11
  store i64 %59, ptr %21, align 8, !tbaa !11
  %60 = load i64, ptr %21, align 8, !tbaa !11
  %61 = trunc i64 %60 to i32
  store i32 %61, ptr %15, align 4, !tbaa !9
  %62 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %62, ptr %11, align 4, !tbaa !9
  %63 = load i32, ptr %15, align 4, !tbaa !9
  %64 = icmp ne i32 %63, 0
  br i1 %64, label %65, label %83

65:                                               ; preds = %58
  %66 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %66, ptr %15, align 4, !tbaa !9
  %67 = load ptr, ptr %7, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.w2c_hermes, ptr %67, i32 0, i32 6
  %69 = load i32, ptr %15, align 4, !tbaa !9
  %70 = zext i32 %69 to i64
  %71 = call i32 @i32_load(ptr noundef %68, i64 noundef %70)
  store i32 %71, ptr %15, align 4, !tbaa !9
  store i32 50331648, ptr %16, align 4, !tbaa !9
  %72 = load i32, ptr %16, align 4, !tbaa !9
  %73 = load i32, ptr %15, align 4, !tbaa !9
  %74 = sub i32 %73, %72
  store i32 %74, ptr %15, align 4, !tbaa !9
  store i32 134217728, ptr %16, align 4, !tbaa !9
  %75 = load i32, ptr %15, align 4, !tbaa !9
  %76 = load i32, ptr %16, align 4, !tbaa !9
  %77 = icmp uge i32 %75, %76
  %78 = zext i1 %77 to i32
  store i32 %78, ptr %15, align 4, !tbaa !9
  %79 = load i32, ptr %15, align 4, !tbaa !9
  %80 = icmp ne i32 %79, 0
  br i1 %80, label %81, label %82

81:                                               ; preds = %65
  br label %246

82:                                               ; preds = %65
  br label %83

83:                                               ; preds = %82, %58
  store i32 0, ptr %15, align 4, !tbaa !9
  %84 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %84, ptr %11, align 4, !tbaa !9
  %85 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %85, ptr %15, align 4, !tbaa !9
  store i32 0, ptr %16, align 4, !tbaa !9
  %86 = load ptr, ptr %7, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.w2c_hermes, ptr %86, i32 0, i32 6
  %88 = load i32, ptr %15, align 4, !tbaa !9
  %89 = zext i32 %88 to i64
  %90 = add i64 %89, 24
  %91 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %87, i64 noundef %90, i32 noundef %91)
  %92 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %92, ptr %15, align 4, !tbaa !9
  store i32 217520, ptr %16, align 4, !tbaa !9
  %93 = load ptr, ptr %7, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.w2c_hermes, ptr %93, i32 0, i32 6
  %95 = load i32, ptr %15, align 4, !tbaa !9
  %96 = zext i32 %95 to i64
  %97 = add i64 %96, 28
  %98 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %94, i64 noundef %97, i32 noundef %98)
  %99 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %99, ptr %15, align 4, !tbaa !9
  %100 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %100, ptr %16, align 4, !tbaa !9
  %101 = load ptr, ptr %7, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.w2c_hermes, ptr %101, i32 0, i32 6
  %103 = load i32, ptr %16, align 4, !tbaa !9
  %104 = zext i32 %103 to i64
  %105 = add i64 %104, 32
  %106 = call i64 @i64_load(ptr noundef %102, i64 noundef %105)
  store i64 %106, ptr %22, align 8, !tbaa !11
  %107 = load ptr, ptr %7, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.w2c_hermes, ptr %107, i32 0, i32 6
  %109 = load i32, ptr %15, align 4, !tbaa !9
  %110 = zext i32 %109 to i64
  %111 = add i64 %110, 8
  %112 = load i64, ptr %22, align 8, !tbaa !11
  call void @i64_store(ptr noundef %108, i64 noundef %111, i64 noundef %112)
  %113 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %113, ptr %15, align 4, !tbaa !9
  store i32 40, ptr %16, align 4, !tbaa !9
  %114 = load i32, ptr %16, align 4, !tbaa !9
  %115 = load i32, ptr %15, align 4, !tbaa !9
  %116 = add i32 %115, %114
  store i32 %116, ptr %15, align 4, !tbaa !9
  %117 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %117, ptr %16, align 4, !tbaa !9
  %118 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %118, ptr %17, align 4, !tbaa !9
  %119 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %119, ptr %18, align 4, !tbaa !9
  store i32 8, ptr %19, align 4, !tbaa !9
  %120 = load i32, ptr %19, align 4, !tbaa !9
  %121 = load i32, ptr %18, align 4, !tbaa !9
  %122 = add i32 %121, %120
  store i32 %122, ptr %18, align 4, !tbaa !9
  %123 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %123, ptr %19, align 4, !tbaa !9
  store i32 24, ptr %20, align 4, !tbaa !9
  %124 = load i32, ptr %20, align 4, !tbaa !9
  %125 = load i32, ptr %19, align 4, !tbaa !9
  %126 = add i32 %125, %124
  store i32 %126, ptr %19, align 4, !tbaa !9
  %127 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %127, ptr %20, align 4, !tbaa !9
  %128 = load ptr, ptr %7, align 8, !tbaa !5
  %129 = load i32, ptr %15, align 4, !tbaa !9
  %130 = load i32, ptr %16, align 4, !tbaa !9
  %131 = load i32, ptr %17, align 4, !tbaa !9
  %132 = load i32, ptr %18, align 4, !tbaa !9
  %133 = load i32, ptr %19, align 4, !tbaa !9
  %134 = load i32, ptr %20, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ACallResult0x3Chermes0x3A0x3Avm0x3A0x3ASymbolID0x2C0x200x28hermes0x3A0x3Avm0x3A0x3Adetail0x3A0x3ACallResultSpecialize0x2900x3E0x20hermes0x3A0x3Avm0x3A0x3AIdentifierTable0x3A0x3AgetOrCreateIdentifier0x3Cchar0x3E0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20llvh0x3A0x3AArrayRef0x3Cchar0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AStringPrimitive0x3E0x2C0x20unsigned0x20int0x29(ptr noundef %128, i32 noundef %129, i32 noundef %130, i32 noundef %131, i32 noundef %132, i32 noundef %133, i32 noundef %134)
  %135 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %135, ptr %15, align 4, !tbaa !9
  %136 = load ptr, ptr %7, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.w2c_hermes, ptr %136, i32 0, i32 6
  %138 = load i32, ptr %15, align 4, !tbaa !9
  %139 = zext i32 %138 to i64
  %140 = add i64 %139, 24
  %141 = call i32 @i32_load(ptr noundef %137, i64 noundef %140)
  store i32 %141, ptr %15, align 4, !tbaa !9
  %142 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %142, ptr %12, align 4, !tbaa !9
  %143 = load i32, ptr %15, align 4, !tbaa !9
  %144 = icmp ne i32 %143, 0
  br i1 %144, label %145, label %161

145:                                              ; preds = %83
  %146 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %146, ptr %15, align 4, !tbaa !9
  %147 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %147, ptr %16, align 4, !tbaa !9
  %148 = load ptr, ptr %7, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.w2c_hermes, ptr %148, i32 0, i32 6
  %150 = load i32, ptr %16, align 4, !tbaa !9
  %151 = zext i32 %150 to i64
  %152 = call i32 @i32_load(ptr noundef %149, i64 noundef %151)
  store i32 %152, ptr %16, align 4, !tbaa !9
  store i32 1, ptr %17, align 4, !tbaa !9
  %153 = load i32, ptr %17, align 4, !tbaa !9
  %154 = load i32, ptr %16, align 4, !tbaa !9
  %155 = sub i32 %154, %153
  store i32 %155, ptr %16, align 4, !tbaa !9
  %156 = load ptr, ptr %7, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.w2c_hermes, ptr %156, i32 0, i32 6
  %158 = load i32, ptr %15, align 4, !tbaa !9
  %159 = zext i32 %158 to i64
  %160 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %157, i64 noundef %159, i32 noundef %160)
  br label %161

161:                                              ; preds = %145, %83
  %162 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %162, ptr %15, align 4, !tbaa !9
  %163 = load ptr, ptr %7, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.w2c_hermes, ptr %163, i32 0, i32 6
  %165 = load i32, ptr %15, align 4, !tbaa !9
  %166 = zext i32 %165 to i64
  %167 = add i64 %166, 44
  %168 = call i32 @i32_load8_u(ptr noundef %164, i64 noundef %167)
  store i32 %168, ptr %15, align 4, !tbaa !9
  %169 = load i32, ptr %15, align 4, !tbaa !9
  %170 = icmp ne i32 %169, 0
  br i1 %170, label %171, label %203

171:                                              ; preds = %161
  %172 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %172, ptr %15, align 4, !tbaa !9
  store i32 16, ptr %16, align 4, !tbaa !9
  %173 = load i32, ptr %16, align 4, !tbaa !9
  %174 = load i32, ptr %15, align 4, !tbaa !9
  %175 = add i32 %174, %173
  store i32 %175, ptr %15, align 4, !tbaa !9
  %176 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %176, ptr %16, align 4, !tbaa !9
  %177 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %177, ptr %17, align 4, !tbaa !9
  %178 = load ptr, ptr %7, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.w2c_hermes, ptr %178, i32 0, i32 6
  %180 = load i32, ptr %17, align 4, !tbaa !9
  %181 = zext i32 %180 to i64
  %182 = add i64 %181, 40
  %183 = call i32 @i32_load(ptr noundef %179, i64 noundef %182)
  store i32 %183, ptr %17, align 4, !tbaa !9
  %184 = load ptr, ptr %7, align 8, !tbaa !5
  %185 = load i32, ptr %15, align 4, !tbaa !9
  %186 = load i32, ptr %16, align 4, !tbaa !9
  %187 = load i32, ptr %17, align 4, !tbaa !9
  %188 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3ASymbolID0x3E0x3A0x3AHandle0x28hermes0x3A0x3Avm0x3A0x3AHandleRootOwner0x260x2C0x20hermes0x3A0x3Avm0x3A0x3ASymbolID0x29(ptr noundef %184, i32 noundef %185, i32 noundef %186, i32 noundef %187)
  store i32 %188, ptr %15, align 4, !tbaa !9
  %189 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %189, ptr %10, align 4, !tbaa !9
  %190 = load ptr, ptr %7, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.w2c_hermes, ptr %190, i32 0, i32 6
  %192 = load i32, ptr %15, align 4, !tbaa !9
  %193 = zext i32 %192 to i64
  %194 = call i32 @i32_load(ptr noundef %191, i64 noundef %193)
  store i32 %194, ptr %15, align 4, !tbaa !9
  %195 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %195, ptr %11, align 4, !tbaa !9
  %196 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %196, ptr %15, align 4, !tbaa !9
  %197 = load ptr, ptr %7, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.w2c_hermes, ptr %197, i32 0, i32 6
  %199 = load i32, ptr %15, align 4, !tbaa !9
  %200 = zext i32 %199 to i64
  %201 = add i64 %200, 4
  %202 = call i32 @i32_load(ptr noundef %198, i64 noundef %201)
  store i32 %202, ptr %15, align 4, !tbaa !9
  br label %204

203:                                              ; preds = %161
  store i32 -1, ptr %15, align 4, !tbaa !9
  br label %204

204:                                              ; preds = %203, %171
  %205 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %205, ptr %10, align 4, !tbaa !9
  %206 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %206, ptr %15, align 4, !tbaa !9
  %207 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %207, ptr %16, align 4, !tbaa !9
  %208 = load ptr, ptr %7, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.w2c_hermes, ptr %208, i32 0, i32 6
  %210 = load i32, ptr %15, align 4, !tbaa !9
  %211 = zext i32 %210 to i64
  %212 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %209, i64 noundef %211, i32 noundef %212)
  %213 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %213, ptr %15, align 4, !tbaa !9
  %214 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %214, ptr %16, align 4, !tbaa !9
  %215 = load ptr, ptr %7, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.w2c_hermes, ptr %215, i32 0, i32 6
  %217 = load i32, ptr %15, align 4, !tbaa !9
  %218 = zext i32 %217 to i64
  %219 = add i64 %218, 4
  %220 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %216, i64 noundef %219, i32 noundef %220)
  %221 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %221, ptr %15, align 4, !tbaa !9
  store i32 48, ptr %16, align 4, !tbaa !9
  %222 = load i32, ptr %16, align 4, !tbaa !9
  %223 = load i32, ptr %15, align 4, !tbaa !9
  %224 = add i32 %223, %222
  store i32 %224, ptr %15, align 4, !tbaa !9
  %225 = load i32, ptr %15, align 4, !tbaa !9
  %226 = load ptr, ptr %7, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.w2c_hermes, ptr %226, i32 0, i32 3
  store i32 %225, ptr %227, align 8, !tbaa !13
  br label %264

228:                                              ; preds = %6
  store i32 0, ptr %15, align 4, !tbaa !9
  %229 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %229, ptr %13, align 4, !tbaa !9
  store i32 146777, ptr %16, align 4, !tbaa !9
  %230 = load i32, ptr %16, align 4, !tbaa !9
  %231 = load i32, ptr %15, align 4, !tbaa !9
  %232 = add i32 %231, %230
  store i32 %232, ptr %15, align 4, !tbaa !9
  %233 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %233, ptr %16, align 4, !tbaa !9
  store i32 82692, ptr %17, align 4, !tbaa !9
  %234 = load i32, ptr %17, align 4, !tbaa !9
  %235 = load i32, ptr %16, align 4, !tbaa !9
  %236 = add i32 %235, %234
  store i32 %236, ptr %16, align 4, !tbaa !9
  store i32 61, ptr %17, align 4, !tbaa !9
  %237 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %237, ptr %18, align 4, !tbaa !9
  store i32 72547, ptr %19, align 4, !tbaa !9
  %238 = load i32, ptr %19, align 4, !tbaa !9
  %239 = load i32, ptr %18, align 4, !tbaa !9
  %240 = add i32 %239, %238
  store i32 %240, ptr %18, align 4, !tbaa !9
  %241 = load ptr, ptr %7, align 8, !tbaa !5
  %242 = load i32, ptr %15, align 4, !tbaa !9
  %243 = load i32, ptr %16, align 4, !tbaa !9
  %244 = load i32, ptr %17, align 4, !tbaa !9
  %245 = load i32, ptr %18, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %241, i32 noundef %242, i32 noundef %243, i32 noundef %244, i32 noundef %245)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

246:                                              ; preds = %81
  store i32 0, ptr %15, align 4, !tbaa !9
  %247 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %247, ptr %13, align 4, !tbaa !9
  store i32 205071, ptr %16, align 4, !tbaa !9
  %248 = load i32, ptr %16, align 4, !tbaa !9
  %249 = load i32, ptr %15, align 4, !tbaa !9
  %250 = add i32 %249, %248
  store i32 %250, ptr %15, align 4, !tbaa !9
  %251 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %251, ptr %16, align 4, !tbaa !9
  store i32 82611, ptr %17, align 4, !tbaa !9
  %252 = load i32, ptr %17, align 4, !tbaa !9
  %253 = load i32, ptr %16, align 4, !tbaa !9
  %254 = add i32 %253, %252
  store i32 %254, ptr %16, align 4, !tbaa !9
  store i32 299, ptr %17, align 4, !tbaa !9
  %255 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %255, ptr %18, align 4, !tbaa !9
  store i32 72549, ptr %19, align 4, !tbaa !9
  %256 = load i32, ptr %19, align 4, !tbaa !9
  %257 = load i32, ptr %18, align 4, !tbaa !9
  %258 = add i32 %257, %256
  store i32 %258, ptr %18, align 4, !tbaa !9
  %259 = load ptr, ptr %7, align 8, !tbaa !5
  %260 = load i32, ptr %15, align 4, !tbaa !9
  %261 = load i32, ptr %16, align 4, !tbaa !9
  %262 = load i32, ptr %17, align 4, !tbaa !9
  %263 = load i32, ptr %18, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %259, i32 noundef %260, i32 noundef %261, i32 noundef %262, i32 noundef %263)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

264:                                              ; preds = %204
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, 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 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ACallResult0x3Chermes0x3A0x3Avm0x3A0x3ASymbolID0x2C0x200x28hermes0x3A0x3Avm0x3A0x3Adetail0x3A0x3ACallResultSpecialize0x2900x3E0x20hermes0x3A0x3Avm0x3A0x3AIdentifierTable0x3A0x3AgetOrCreateIdentifier0x3Cchar0x3E0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20llvh0x3A0x3AArrayRef0x3Cchar0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AStringPrimitive0x3E0x2C0x20unsigned0x20int0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { 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 #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}
!13 = !{!14, !10, i64 24}
!14 = !{!"w2c_hermes", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !15, i64 40, !17, i64 80}
!15 = !{!"", !6, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !16, i64 32}
!16 = !{!"_Bool", !7, i64 0}
!17 = !{!"", !6, i64 0, !10, i64 8, !10, i64 12}


; 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"

declare void @w2c_hermes_0x5F_assert_fail(ptr noundef, i32 noundef, i32 noundef, i32 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 i32 @i32_load8_u(ptr noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i32_store(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @i32_load(ptr noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @i64_load(ptr noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i64_store(ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3ASymbolID0x3E0x3A0x3AHandle0x28hermes0x3A0x3Avm0x3A0x3AHandleRootOwner0x260x2C0x20hermes0x3A0x3Avm0x3A0x3ASymbolID0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AIdentifierTable0x3A0x3AgetSymbolHandle0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20llvh0x3A0x3AArrayRef0x3Cchar0x3E0x2C0x20unsigned0x20int0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) local_unnamed_addr #3 {
  %7 = getelementptr inbounds i8, ptr %0, i64 24
  %8 = load i32, ptr %7, align 8, !tbaa !5
  %9 = add i32 %8, -48
  store i32 %9, ptr %7, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %0, i64 40
  %11 = zext i32 %4 to i64
  %12 = tail call i64 @i64_load(ptr noundef nonnull %10, i64 noundef %11)
  %13 = zext i32 %9 to i64
  %14 = add nuw nsw i64 %13, 32
  tail call void @i64_store(ptr noundef nonnull %10, i64 noundef %14, i64 noundef %12)
  %15 = tail call i64 @i64_load(ptr noundef nonnull %10, i64 noundef 217520)
  %16 = icmp ugt i64 %15, -844424930131969
  br i1 %16, label %17, label %51

17:                                               ; preds = %6
  %18 = and i64 %15, 4294967295
  %.not = icmp eq i64 %18, 0
  br i1 %.not, label %23, label %19

19:                                               ; preds = %17
  %20 = tail call i32 @i32_load(ptr noundef nonnull %10, i64 noundef %18)
  %21 = add i32 %20, -184549376
  %22 = icmp ult i32 %21, -134217728
  br i1 %22, label %52, label %23

23:                                               ; preds = %19, %17
  %24 = add nuw nsw i64 %13, 24
  tail call void @i32_store(ptr noundef nonnull %10, i64 noundef %24, i32 noundef 0)
  %25 = add nuw nsw i64 %13, 28
  tail call void @i32_store(ptr noundef nonnull %10, i64 noundef %25, i32 noundef 217520)
  %26 = tail call i64 @i64_load(ptr noundef nonnull %10, i64 noundef %14)
  %27 = add nuw nsw i64 %13, 8
  tail call void @i64_store(ptr noundef nonnull %10, i64 noundef %27, i64 noundef %26)
  %28 = add i32 %8, -8
  %29 = add i32 %8, -40
  %30 = add i32 %8, -24
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ACallResult0x3Chermes0x3A0x3Avm0x3A0x3ASymbolID0x2C0x200x28hermes0x3A0x3Avm0x3A0x3Adetail0x3A0x3ACallResultSpecialize0x2900x3E0x20hermes0x3A0x3Avm0x3A0x3AIdentifierTable0x3A0x3AgetOrCreateIdentifier0x3Cchar0x3E0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20llvh0x3A0x3AArrayRef0x3Cchar0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AStringPrimitive0x3E0x2C0x20unsigned0x20int0x29(ptr noundef nonnull %0, i32 noundef %28, i32 noundef %2, i32 noundef %3, i32 noundef %29, i32 noundef %30, i32 noundef %5)
  %31 = tail call i32 @i32_load(ptr noundef nonnull %10, i64 noundef %24)
  %.not149 = icmp eq i32 %31, 0
  br i1 %.not149, label %36, label %32

32:                                               ; preds = %23
  %33 = zext i32 %31 to i64
  %34 = tail call i32 @i32_load(ptr noundef nonnull %10, i64 noundef %33)
  %35 = add i32 %34, -1
  tail call void @i32_store(ptr noundef nonnull %10, i64 noundef %33, i32 noundef %35)
  br label %36

36:                                               ; preds = %32, %23
  %37 = add nuw nsw i64 %13, 44
  %38 = tail call i32 @i32_load8_u(ptr noundef nonnull %10, i64 noundef %37)
  %.not150 = icmp eq i32 %38, 0
  br i1 %.not150, label %48, label %39

39:                                               ; preds = %36
  %40 = add i32 %8, -32
  %41 = add nuw nsw i64 %13, 40
  %42 = tail call i32 @i32_load(ptr noundef nonnull %10, i64 noundef %41)
  %43 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3ASymbolID0x3E0x3A0x3AHandle0x28hermes0x3A0x3Avm0x3A0x3AHandleRootOwner0x260x2C0x20hermes0x3A0x3Avm0x3A0x3ASymbolID0x29(ptr noundef nonnull %0, i32 noundef %40, i32 noundef %3, i32 noundef %42)
  %44 = zext i32 %43 to i64
  %45 = tail call i32 @i32_load(ptr noundef nonnull %10, i64 noundef %44)
  %46 = add nuw nsw i64 %44, 4
  %47 = tail call i32 @i32_load(ptr noundef nonnull %10, i64 noundef %46)
  br label %48

48:                                               ; preds = %36, %39
  %.0145 = phi i32 [ %45, %39 ], [ 0, %36 ]
  %.0 = phi i32 [ %47, %39 ], [ -1, %36 ]
  %49 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %10, i64 noundef %49, i32 noundef %.0145)
  %50 = add nuw nsw i64 %49, 4
  tail call void @i32_store(ptr noundef nonnull %10, i64 noundef %50, i32 noundef %.0)
  store i32 %8, ptr %7, align 8, !tbaa !5
  ret void

51:                                               ; preds = %6
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 146777, i32 noundef 82692, i32 noundef 61, i32 noundef 72547) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

52:                                               ; preds = %19
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 205071, i32 noundef 82611, i32 noundef 299, i32 noundef 72549) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable
}

; Function Attrs: nounwind uwtable
declare dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ACallResult0x3Chermes0x3A0x3Avm0x3A0x3ASymbolID0x2C0x200x28hermes0x3A0x3Avm0x3A0x3Adetail0x3A0x3ACallResultSpecialize0x2900x3E0x20hermes0x3A0x3Avm0x3A0x3AIdentifierTable0x3A0x3AgetOrCreateIdentifier0x3Cchar0x3E0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20llvh0x3A0x3AArrayRef0x3Cchar0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AStringPrimitive0x3E0x2C0x20unsigned0x20int0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

attributes #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 = { 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 #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)"}
!5 = !{!6, !10, i64 24}
!6 = !{!"w2c_hermes", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !11, i64 40, !14, i64 80}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"", !7, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !13, i64 32}
!12 = !{!"long", !8, i64 0}
!13 = !{!"_Bool", !8, i64 0}
!14 = !{!"", !7, i64 0, !10, i64 8, !10, i64 12}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass