; 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 void @i32_store8(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

declare i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSObject0x3A0x3AJSObject0x3Chermes0x3A0x3Avm0x3A0x3AGCPointerBase0x3A0x3ANoBarriers0x3E0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AJSObject0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3AHiddenClass0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3AGCPointerBase0x3A0x3ANoBarriers0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1

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

49:                                               ; preds = %6
  %50 = load i64, ptr %13, align 8, !tbaa !11
  store i64 %50, ptr %20, align 8, !tbaa !11
  store i64 -844424930131969, ptr %21, align 8, !tbaa !11
  %51 = load i64, ptr %20, align 8, !tbaa !11
  %52 = load i64, ptr %21, align 8, !tbaa !11
  %53 = icmp ule i64 %51, %52
  %54 = zext i1 %53 to i32
  store i32 %54, ptr %15, align 4, !tbaa !9
  %55 = load i32, ptr %15, align 4, !tbaa !9
  %56 = icmp ne i32 %55, 0
  br i1 %56, label %57, label %58

57:                                               ; preds = %49
  br label %136

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

84:                                               ; preds = %58
  br label %154

85:                                               ; preds = %58
  %86 = load i64, ptr %14, align 8, !tbaa !11
  store i64 %86, ptr %20, align 8, !tbaa !11
  store i64 -844424930131969, ptr %21, align 8, !tbaa !11
  %87 = load i64, ptr %20, align 8, !tbaa !11
  %88 = load i64, ptr %21, align 8, !tbaa !11
  %89 = icmp ule i64 %87, %88
  %90 = zext i1 %89 to i32
  store i32 %90, ptr %15, align 4, !tbaa !9
  %91 = load i32, ptr %15, align 4, !tbaa !9
  %92 = icmp ne i32 %91, 0
  br i1 %92, label %93, label %94

93:                                               ; preds = %85
  br label %172

94:                                               ; preds = %85
  %95 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %95, ptr %15, align 4, !tbaa !9
  %96 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %96, ptr %16, align 4, !tbaa !9
  %97 = load i64, ptr %13, align 8, !tbaa !11
  store i64 %97, ptr %22, align 8, !tbaa !11
  %98 = load i64, ptr %22, align 8, !tbaa !11
  %99 = trunc i64 %98 to i32
  store i32 %99, ptr %17, align 4, !tbaa !9
  %100 = load i64, ptr %14, align 8, !tbaa !11
  store i64 %100, ptr %23, align 8, !tbaa !11
  %101 = load i64, ptr %23, align 8, !tbaa !11
  %102 = trunc i64 %101 to i32
  store i32 %102, ptr %18, align 4, !tbaa !9
  %103 = load ptr, ptr %7, align 8, !tbaa !5
  %104 = load i32, ptr %15, align 4, !tbaa !9
  %105 = load i32, ptr %16, align 4, !tbaa !9
  %106 = load i32, ptr %17, align 4, !tbaa !9
  %107 = load i32, ptr %18, align 4, !tbaa !9
  %108 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSObject0x3A0x3AJSObject0x3Chermes0x3A0x3Avm0x3A0x3AGCPointerBase0x3A0x3ANoBarriers0x3E0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AJSObject0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3AHiddenClass0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3AGCPointerBase0x3A0x3ANoBarriers0x29(ptr noundef %103, i32 noundef %104, i32 noundef %105, i32 noundef %106, i32 noundef %107)
  store i32 %108, ptr %15, align 4, !tbaa !9
  %109 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %109, ptr %11, align 4, !tbaa !9
  %110 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %110, ptr %16, align 4, !tbaa !9
  %111 = load ptr, ptr %7, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.w2c_hermes, ptr %111, i32 0, i32 6
  %113 = load i32, ptr %15, align 4, !tbaa !9
  %114 = zext i32 %113 to i64
  %115 = add i64 %114, 28
  %116 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %112, i64 noundef %115, i32 noundef %116)
  %117 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %117, ptr %15, align 4, !tbaa !9
  br label %190

118:                                              ; preds = %6
  store i32 0, ptr %15, align 4, !tbaa !9
  %119 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %119, ptr %11, align 4, !tbaa !9
  store i32 118124, ptr %16, align 4, !tbaa !9
  %120 = load i32, ptr %16, align 4, !tbaa !9
  %121 = load i32, ptr %15, align 4, !tbaa !9
  %122 = add i32 %121, %120
  store i32 %122, ptr %15, align 4, !tbaa !9
  %123 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %123, ptr %16, align 4, !tbaa !9
  store i32 83341, ptr %17, align 4, !tbaa !9
  %124 = load i32, ptr %17, align 4, !tbaa !9
  %125 = load i32, ptr %16, align 4, !tbaa !9
  %126 = add i32 %125, %124
  store i32 %126, ptr %16, align 4, !tbaa !9
  store i32 480, ptr %17, align 4, !tbaa !9
  %127 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %127, ptr %18, align 4, !tbaa !9
  store i32 38798, ptr %19, align 4, !tbaa !9
  %128 = load i32, ptr %19, align 4, !tbaa !9
  %129 = load i32, ptr %18, align 4, !tbaa !9
  %130 = add i32 %129, %128
  store i32 %130, ptr %18, align 4, !tbaa !9
  %131 = load ptr, ptr %7, align 8, !tbaa !5
  %132 = load i32, ptr %15, align 4, !tbaa !9
  %133 = load i32, ptr %16, align 4, !tbaa !9
  %134 = load i32, ptr %17, align 4, !tbaa !9
  %135 = load i32, ptr %18, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %131, i32 noundef %132, i32 noundef %133, i32 noundef %134, i32 noundef %135)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

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

154:                                              ; preds = %84
  store i32 0, ptr %15, align 4, !tbaa !9
  %155 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %155, ptr %11, align 4, !tbaa !9
  store i32 118124, ptr %16, align 4, !tbaa !9
  %156 = load i32, ptr %16, align 4, !tbaa !9
  %157 = load i32, ptr %15, align 4, !tbaa !9
  %158 = add i32 %157, %156
  store i32 %158, ptr %15, align 4, !tbaa !9
  %159 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %159, ptr %16, align 4, !tbaa !9
  store i32 83341, ptr %17, align 4, !tbaa !9
  %160 = load i32, ptr %17, align 4, !tbaa !9
  %161 = load i32, ptr %16, align 4, !tbaa !9
  %162 = add i32 %161, %160
  store i32 %162, ptr %16, align 4, !tbaa !9
  store i32 480, ptr %17, align 4, !tbaa !9
  %163 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %163, ptr %18, align 4, !tbaa !9
  store i32 38798, ptr %19, align 4, !tbaa !9
  %164 = load i32, ptr %19, align 4, !tbaa !9
  %165 = load i32, ptr %18, align 4, !tbaa !9
  %166 = add i32 %165, %164
  store i32 %166, ptr %18, align 4, !tbaa !9
  %167 = load ptr, ptr %7, align 8, !tbaa !5
  %168 = load i32, ptr %15, align 4, !tbaa !9
  %169 = load i32, ptr %16, align 4, !tbaa !9
  %170 = load i32, ptr %17, align 4, !tbaa !9
  %171 = load i32, ptr %18, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %167, i32 noundef %168, i32 noundef %169, i32 noundef %170, i32 noundef %171)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

172:                                              ; preds = %93
  store i32 0, ptr %15, align 4, !tbaa !9
  %173 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %173, ptr %11, align 4, !tbaa !9
  store i32 118273, ptr %16, align 4, !tbaa !9
  %174 = load i32, ptr %16, align 4, !tbaa !9
  %175 = load i32, ptr %15, align 4, !tbaa !9
  %176 = add i32 %175, %174
  store i32 %176, ptr %15, align 4, !tbaa !9
  %177 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %177, ptr %16, align 4, !tbaa !9
  store i32 83341, ptr %17, align 4, !tbaa !9
  %178 = load i32, ptr %17, align 4, !tbaa !9
  %179 = load i32, ptr %16, align 4, !tbaa !9
  %180 = add i32 %179, %178
  store i32 %180, ptr %16, align 4, !tbaa !9
  store i32 438, ptr %17, align 4, !tbaa !9
  %181 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %181, ptr %18, align 4, !tbaa !9
  store i32 49706, ptr %19, align 4, !tbaa !9
  %182 = load i32, ptr %19, align 4, !tbaa !9
  %183 = load i32, ptr %18, align 4, !tbaa !9
  %184 = add i32 %183, %182
  store i32 %184, ptr %18, align 4, !tbaa !9
  %185 = load ptr, ptr %7, align 8, !tbaa !5
  %186 = load i32, ptr %15, align 4, !tbaa !9
  %187 = load i32, ptr %16, align 4, !tbaa !9
  %188 = load i32, ptr %17, align 4, !tbaa !9
  %189 = load i32, ptr %18, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %185, i32 noundef %186, i32 noundef %187, i32 noundef %188, i32 noundef %189)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

190:                                              ; preds = %94
  %191 = load i32, ptr %15, align 4, !tbaa !9
  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 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, 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 8, ptr %13) #5
  ret i32 %191
}

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}


; 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 void @i32_store8(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

declare i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSObject0x3A0x3AJSObject0x3Chermes0x3A0x3Avm0x3A0x3AGCPointerBase0x3A0x3ANoBarriers0x3E0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AJSObject0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3AHiddenClass0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3AGCPointerBase0x3A0x3ANoBarriers0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSBoolean0x3A0x3AJSBoolean0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20bool0x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSObject0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHiddenClass0x3E0x29(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 40
  %8 = zext i32 %4 to i64
  %9 = add nuw nsw i64 %8, 4
  %10 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %9)
  %11 = zext i32 %10 to i64
  %12 = tail call i64 @i64_load(ptr noundef nonnull %7, i64 noundef %11)
  %13 = icmp ugt i64 %12, -281474976710657
  br i1 %13, label %14, label %26

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

20:                                               ; preds = %14
  %21 = trunc i64 %12 to i32
  %22 = trunc i64 %19 to i32
  %23 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSObject0x3A0x3AJSObject0x3Chermes0x3A0x3Avm0x3A0x3AGCPointerBase0x3A0x3ANoBarriers0x3E0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AJSObject0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3AHiddenClass0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3AGCPointerBase0x3A0x3ANoBarriers0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %21, i32 noundef %22) #4
  %24 = zext i32 %23 to i64
  %25 = add nuw nsw i64 %24, 28
  tail call void @i32_store8(ptr noundef nonnull %7, i64 noundef %25, i32 noundef %3)
  ret i32 %23

26:                                               ; preds = %6
  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

27:                                               ; preds = %14
  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 = { "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)"}


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