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

; 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

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @i32_load(ptr noundef, i64 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 i64 @i64_load(ptr noundef, i64 noundef) #2

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

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

51:                                               ; preds = %7
  %52 = load i64, ptr %15, align 8, !tbaa !11
  store i64 %52, ptr %22, align 8, !tbaa !11
  store i64 -844424930131969, ptr %23, align 8, !tbaa !11
  %53 = load i64, ptr %22, align 8, !tbaa !11
  %54 = load i64, ptr %23, align 8, !tbaa !11
  %55 = icmp ule i64 %53, %54
  %56 = zext i1 %55 to i32
  store i32 %56, ptr %17, align 4, !tbaa !9
  %57 = load i32, ptr %17, align 4, !tbaa !9
  %58 = icmp ne i32 %57, 0
  br i1 %58, label %59, label %60

59:                                               ; preds = %51
  br label %153

60:                                               ; preds = %51
  %61 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %61, ptr %17, align 4, !tbaa !9
  %62 = load ptr, ptr %8, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.w2c_hermes, ptr %62, i32 0, i32 6
  %64 = load i32, ptr %17, align 4, !tbaa !9
  %65 = zext i32 %64 to i64
  %66 = add i64 %65, 4
  %67 = call i32 @i32_load(ptr noundef %63, i64 noundef %66)
  store i32 %67, ptr %17, align 4, !tbaa !9
  %68 = load ptr, ptr %8, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.w2c_hermes, ptr %68, i32 0, i32 6
  %70 = load i32, ptr %17, align 4, !tbaa !9
  %71 = zext i32 %70 to i64
  %72 = call i64 @i64_load(ptr noundef %69, i64 noundef %71)
  store i64 %72, ptr %22, align 8, !tbaa !11
  %73 = load i64, ptr %22, align 8, !tbaa !11
  store i64 %73, ptr %16, align 8, !tbaa !11
  store i64 48, ptr %23, align 8, !tbaa !11
  %74 = load i64, ptr %22, align 8, !tbaa !11
  %75 = load i64, ptr %23, align 8, !tbaa !11
  %76 = and i64 %75, 63
  %77 = ashr i64 %74, %76
  store i64 %77, ptr %22, align 8, !tbaa !11
  %78 = load i64, ptr %22, align 8, !tbaa !11
  %79 = trunc i64 %78 to i32
  store i32 %79, ptr %17, align 4, !tbaa !9
  store i32 -1, ptr %18, align 4, !tbaa !9
  %80 = load i32, ptr %17, align 4, !tbaa !9
  %81 = load i32, ptr %18, align 4, !tbaa !9
  %82 = icmp ne i32 %80, %81
  %83 = zext i1 %82 to i32
  store i32 %83, ptr %17, align 4, !tbaa !9
  %84 = load i32, ptr %17, align 4, !tbaa !9
  %85 = icmp ne i32 %84, 0
  br i1 %85, label %86, label %87

86:                                               ; preds = %60
  br label %171

87:                                               ; preds = %60
  %88 = load i64, ptr %16, align 8, !tbaa !11
  store i64 %88, ptr %22, align 8, !tbaa !11
  store i64 -844424930131969, ptr %23, align 8, !tbaa !11
  %89 = load i64, ptr %22, align 8, !tbaa !11
  %90 = load i64, ptr %23, align 8, !tbaa !11
  %91 = icmp ule i64 %89, %90
  %92 = zext i1 %91 to i32
  store i32 %92, ptr %17, align 4, !tbaa !9
  %93 = load i32, ptr %17, align 4, !tbaa !9
  %94 = icmp ne i32 %93, 0
  br i1 %94, label %95, label %96

95:                                               ; preds = %87
  br label %189

96:                                               ; preds = %87
  %97 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %97, ptr %17, align 4, !tbaa !9
  %98 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %98, ptr %18, align 4, !tbaa !9
  %99 = load i64, ptr %15, align 8, !tbaa !11
  store i64 %99, ptr %24, align 8, !tbaa !11
  %100 = load i64, ptr %24, align 8, !tbaa !11
  %101 = trunc i64 %100 to i32
  store i32 %101, ptr %19, align 4, !tbaa !9
  %102 = load i64, ptr %16, align 8, !tbaa !11
  store i64 %102, ptr %25, align 8, !tbaa !11
  %103 = load i64, ptr %25, align 8, !tbaa !11
  %104 = trunc i64 %103 to i32
  store i32 %104, ptr %20, align 4, !tbaa !9
  %105 = load ptr, ptr %8, align 8, !tbaa !5
  %106 = load i32, ptr %17, align 4, !tbaa !9
  %107 = load i32, ptr %18, align 4, !tbaa !9
  %108 = load i32, ptr %19, align 4, !tbaa !9
  %109 = load i32, ptr %20, align 4, !tbaa !9
  %110 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSObject0x3A0x3AJSObject0x3Chermes0x3A0x3Avm0x3A0x3AGCPointerBase0x3A0x3ANoBarriers0x3E0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AJSObject0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3AHiddenClass0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3AGCPointerBase0x3A0x3ANoBarriers0x29(ptr noundef %105, i32 noundef %106, i32 noundef %107, i32 noundef %108, i32 noundef %109)
  store i32 %110, ptr %17, align 4, !tbaa !9
  %111 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %111, ptr %11, align 4, !tbaa !9
  %112 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %112, ptr %18, align 4, !tbaa !9
  %113 = load ptr, ptr %8, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.w2c_hermes, ptr %113, i32 0, i32 6
  %115 = load i32, ptr %17, align 4, !tbaa !9
  %116 = zext i32 %115 to i64
  %117 = add i64 %116, 36
  %118 = load i32, ptr %18, align 4, !tbaa !9
  call void @i32_store(ptr noundef %114, i64 noundef %117, i32 noundef %118)
  %119 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %119, ptr %17, align 4, !tbaa !9
  %120 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %120, ptr %18, align 4, !tbaa !9
  %121 = load ptr, ptr %8, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.w2c_hermes, ptr %121, i32 0, i32 6
  %123 = load i32, ptr %17, align 4, !tbaa !9
  %124 = zext i32 %123 to i64
  %125 = add i64 %124, 32
  %126 = load i32, ptr %18, align 4, !tbaa !9
  call void @i32_store(ptr noundef %122, i64 noundef %125, i32 noundef %126)
  %127 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %127, ptr %17, align 4, !tbaa !9
  store i32 0, ptr %18, align 4, !tbaa !9
  %128 = load ptr, ptr %8, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.w2c_hermes, ptr %128, i32 0, i32 6
  %130 = load i32, ptr %17, align 4, !tbaa !9
  %131 = zext i32 %130 to i64
  %132 = add i64 %131, 28
  %133 = load i32, ptr %18, align 4, !tbaa !9
  call void @i32_store(ptr noundef %129, i64 noundef %132, i32 noundef %133)
  %134 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %134, ptr %17, align 4, !tbaa !9
  br label %207

135:                                              ; preds = %7
  store i32 0, ptr %17, align 4, !tbaa !9
  %136 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %136, ptr %11, align 4, !tbaa !9
  store i32 118124, ptr %18, align 4, !tbaa !9
  %137 = load i32, ptr %18, align 4, !tbaa !9
  %138 = load i32, ptr %17, align 4, !tbaa !9
  %139 = add i32 %138, %137
  store i32 %139, ptr %17, align 4, !tbaa !9
  %140 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %140, ptr %18, align 4, !tbaa !9
  store i32 83341, ptr %19, align 4, !tbaa !9
  %141 = load i32, ptr %19, align 4, !tbaa !9
  %142 = load i32, ptr %18, align 4, !tbaa !9
  %143 = add i32 %142, %141
  store i32 %143, ptr %18, align 4, !tbaa !9
  store i32 480, ptr %19, align 4, !tbaa !9
  %144 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %144, ptr %20, align 4, !tbaa !9
  store i32 38798, ptr %21, align 4, !tbaa !9
  %145 = load i32, ptr %21, align 4, !tbaa !9
  %146 = load i32, ptr %20, align 4, !tbaa !9
  %147 = add i32 %146, %145
  store i32 %147, ptr %20, align 4, !tbaa !9
  %148 = load ptr, ptr %8, align 8, !tbaa !5
  %149 = load i32, ptr %17, align 4, !tbaa !9
  %150 = load i32, ptr %18, align 4, !tbaa !9
  %151 = load i32, ptr %19, align 4, !tbaa !9
  %152 = load i32, ptr %20, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %148, i32 noundef %149, i32 noundef %150, i32 noundef %151, i32 noundef %152)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

153:                                              ; preds = %59
  store i32 0, ptr %17, align 4, !tbaa !9
  %154 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %154, ptr %11, align 4, !tbaa !9
  store i32 118273, ptr %18, align 4, !tbaa !9
  %155 = load i32, ptr %18, align 4, !tbaa !9
  %156 = load i32, ptr %17, align 4, !tbaa !9
  %157 = add i32 %156, %155
  store i32 %157, ptr %17, align 4, !tbaa !9
  %158 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %158, ptr %18, align 4, !tbaa !9
  store i32 83341, ptr %19, align 4, !tbaa !9
  %159 = load i32, ptr %19, align 4, !tbaa !9
  %160 = load i32, ptr %18, align 4, !tbaa !9
  %161 = add i32 %160, %159
  store i32 %161, ptr %18, align 4, !tbaa !9
  store i32 438, ptr %19, align 4, !tbaa !9
  %162 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %162, ptr %20, align 4, !tbaa !9
  store i32 49706, ptr %21, align 4, !tbaa !9
  %163 = load i32, ptr %21, align 4, !tbaa !9
  %164 = load i32, ptr %20, align 4, !tbaa !9
  %165 = add i32 %164, %163
  store i32 %165, ptr %20, align 4, !tbaa !9
  %166 = load ptr, ptr %8, align 8, !tbaa !5
  %167 = load i32, ptr %17, align 4, !tbaa !9
  %168 = load i32, ptr %18, align 4, !tbaa !9
  %169 = load i32, ptr %19, align 4, !tbaa !9
  %170 = load i32, ptr %20, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %166, i32 noundef %167, i32 noundef %168, i32 noundef %169, i32 noundef %170)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

171:                                              ; preds = %86
  store i32 0, ptr %17, align 4, !tbaa !9
  %172 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %172, ptr %11, align 4, !tbaa !9
  store i32 118124, ptr %18, align 4, !tbaa !9
  %173 = load i32, ptr %18, align 4, !tbaa !9
  %174 = load i32, ptr %17, align 4, !tbaa !9
  %175 = add i32 %174, %173
  store i32 %175, ptr %17, align 4, !tbaa !9
  %176 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %176, ptr %18, align 4, !tbaa !9
  store i32 83341, ptr %19, align 4, !tbaa !9
  %177 = load i32, ptr %19, align 4, !tbaa !9
  %178 = load i32, ptr %18, align 4, !tbaa !9
  %179 = add i32 %178, %177
  store i32 %179, ptr %18, align 4, !tbaa !9
  store i32 480, ptr %19, align 4, !tbaa !9
  %180 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %180, ptr %20, align 4, !tbaa !9
  store i32 38798, ptr %21, align 4, !tbaa !9
  %181 = load i32, ptr %21, align 4, !tbaa !9
  %182 = load i32, ptr %20, align 4, !tbaa !9
  %183 = add i32 %182, %181
  store i32 %183, ptr %20, align 4, !tbaa !9
  %184 = load ptr, ptr %8, align 8, !tbaa !5
  %185 = load i32, ptr %17, align 4, !tbaa !9
  %186 = load i32, ptr %18, align 4, !tbaa !9
  %187 = load i32, ptr %19, align 4, !tbaa !9
  %188 = load i32, ptr %20, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %184, i32 noundef %185, i32 noundef %186, i32 noundef %187, i32 noundef %188)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

189:                                              ; preds = %95
  store i32 0, ptr %17, align 4, !tbaa !9
  %190 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %190, ptr %11, align 4, !tbaa !9
  store i32 118273, ptr %18, align 4, !tbaa !9
  %191 = load i32, ptr %18, align 4, !tbaa !9
  %192 = load i32, ptr %17, align 4, !tbaa !9
  %193 = add i32 %192, %191
  store i32 %193, ptr %17, align 4, !tbaa !9
  %194 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %194, ptr %18, align 4, !tbaa !9
  store i32 83341, ptr %19, align 4, !tbaa !9
  %195 = load i32, ptr %19, align 4, !tbaa !9
  %196 = load i32, ptr %18, align 4, !tbaa !9
  %197 = add i32 %196, %195
  store i32 %197, ptr %18, align 4, !tbaa !9
  store i32 438, ptr %19, align 4, !tbaa !9
  %198 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %198, ptr %20, align 4, !tbaa !9
  store i32 49706, ptr %21, align 4, !tbaa !9
  %199 = load i32, ptr %21, align 4, !tbaa !9
  %200 = load i32, ptr %20, align 4, !tbaa !9
  %201 = add i32 %200, %199
  store i32 %201, ptr %20, align 4, !tbaa !9
  %202 = load ptr, ptr %8, align 8, !tbaa !5
  %203 = load i32, ptr %17, align 4, !tbaa !9
  %204 = load i32, ptr %18, align 4, !tbaa !9
  %205 = load i32, ptr %19, align 4, !tbaa !9
  %206 = load i32, ptr %20, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %202, i32 noundef %203, i32 noundef %204, i32 noundef %205, i32 noundef %206)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

207:                                              ; preds = %96
  %208 = load i32, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, 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 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  ret i32 %208
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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: noreturn
declare void @wasm_rt_trap(i32 noundef) local_unnamed_addr #0

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @i32_load(ptr noundef, i64 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 i64 @i64_load(ptr noundef, i64 noundef) local_unnamed_addr #1

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

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

15:                                               ; preds = %7
  %16 = zext i32 %4 to i64
  %17 = add nuw nsw i64 %16, 4
  %18 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %17)
  %19 = zext i32 %18 to i64
  %20 = tail call i64 @i64_load(ptr noundef nonnull %8, i64 noundef %19)
  %.not = icmp ugt i64 %20, -281474976710657
  br i1 %.not, label %21, label %30

21:                                               ; preds = %15
  %22 = trunc i64 %13 to i32
  %23 = trunc i64 %20 to i32
  %24 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSObject0x3A0x3AJSObject0x3Chermes0x3A0x3Avm0x3A0x3AGCPointerBase0x3A0x3ANoBarriers0x3E0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AJSObject0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3AHiddenClass0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3AGCPointerBase0x3A0x3ANoBarriers0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %22, i32 noundef %23)
  %25 = zext i32 %24 to i64
  %26 = add nuw nsw i64 %25, 36
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %26, i32 noundef %6)
  %27 = add nuw nsw i64 %25, 32
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %27, i32 noundef %5)
  %28 = add nuw nsw i64 %25, 28
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %28, i32 noundef 0)
  ret i32 %24

29:                                               ; preds = %7
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 118124, i32 noundef 83341, i32 noundef 480, i32 noundef 38798) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

30:                                               ; preds = %15
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 118124, i32 noundef 83341, i32 noundef 480, i32 noundef 38798) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable
}

attributes #0 = { 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 #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 = { "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,SROAPass,SimplifyCFGPass,TailCallElimPass