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

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

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden double @f64_reinterpret_i64(i64 noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtoBoolean0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef %0, i64 noundef %1) #2 {
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca double, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i64 %1, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  store i32 0, ptr %5, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 0, ptr %6, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  store double 0.000000e+00, ptr %7, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %15 = load ptr, ptr %3, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.w2c_hermes, ptr %15, i32 0, i32 3
  %17 = load i32, ptr %16, align 8, !tbaa !15
  store i32 %17, ptr %8, align 4, !tbaa !11
  store i32 16, ptr %9, align 4, !tbaa !11
  %18 = load i32, ptr %9, align 4, !tbaa !11
  %19 = load i32, ptr %8, align 4, !tbaa !11
  %20 = sub i32 %19, %18
  store i32 %20, ptr %8, align 4, !tbaa !11
  %21 = load i32, ptr %8, align 4, !tbaa !11
  store i32 %21, ptr %6, align 4, !tbaa !11
  %22 = load i32, ptr %8, align 4, !tbaa !11
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.w2c_hermes, ptr %23, i32 0, i32 3
  store i32 %22, ptr %24, align 8, !tbaa !15
  %25 = load i64, ptr %4, align 8, !tbaa !9
  store i64 %25, ptr %11, align 8, !tbaa !9
  store i64 47, ptr %12, align 8, !tbaa !9
  %26 = load i64, ptr %11, align 8, !tbaa !9
  %27 = load i64, ptr %12, align 8, !tbaa !9
  %28 = and i64 %27, 63
  %29 = ashr i64 %26, %28
  store i64 %29, ptr %11, align 8, !tbaa !9
  %30 = load i64, ptr %11, align 8, !tbaa !9
  %31 = trunc i64 %30 to i32
  store i32 %31, ptr %8, align 4, !tbaa !11
  store i32 12, ptr %9, align 4, !tbaa !11
  %32 = load i32, ptr %9, align 4, !tbaa !11
  %33 = load i32, ptr %8, align 4, !tbaa !11
  %34 = add i32 %33, %32
  store i32 %34, ptr %8, align 4, !tbaa !11
  %35 = load i32, ptr %8, align 4, !tbaa !11
  switch i32 %35, label %48 [
    i32 0, label %36
    i32 1, label %37
    i32 2, label %38
    i32 3, label %39
    i32 4, label %40
    i32 5, label %41
    i32 6, label %42
    i32 7, label %43
    i32 8, label %44
    i32 9, label %45
    i32 10, label %46
    i32 11, label %47
  ]

36:                                               ; preds = %2
  br label %149

37:                                               ; preds = %2
  br label %149

38:                                               ; preds = %2
  br label %49

39:                                               ; preds = %2
  br label %57

40:                                               ; preds = %2
  br label %129

41:                                               ; preds = %2
  br label %129

42:                                               ; preds = %2
  br label %111

43:                                               ; preds = %2
  br label %111

44:                                               ; preds = %2
  br label %59

45:                                               ; preds = %2
  br label %59

46:                                               ; preds = %2
  br label %57

47:                                               ; preds = %2
  br label %57

48:                                               ; preds = %2
  br label %129

49:                                               ; preds = %38
  %50 = load i64, ptr %4, align 8, !tbaa !9
  store i64 %50, ptr %11, align 8, !tbaa !9
  %51 = load i64, ptr %11, align 8, !tbaa !9
  %52 = trunc i64 %51 to i32
  store i32 %52, ptr %8, align 4, !tbaa !11
  store i32 1, ptr %9, align 4, !tbaa !11
  %53 = load i32, ptr %9, align 4, !tbaa !11
  %54 = load i32, ptr %8, align 4, !tbaa !11
  %55 = and i32 %54, %53
  store i32 %55, ptr %8, align 4, !tbaa !11
  %56 = load i32, ptr %8, align 4, !tbaa !11
  store i32 %56, ptr %5, align 4, !tbaa !11
  br label %149

57:                                               ; preds = %47, %46, %39
  store i32 1, ptr %8, align 4, !tbaa !11
  %58 = load i32, ptr %8, align 4, !tbaa !11
  store i32 %58, ptr %5, align 4, !tbaa !11
  br label %149

59:                                               ; preds = %45, %44
  %60 = load i32, ptr %6, align 4, !tbaa !11
  store i32 %60, ptr %8, align 4, !tbaa !11
  %61 = load i64, ptr %4, align 8, !tbaa !9
  store i64 %61, ptr %12, align 8, !tbaa !9
  %62 = load i64, ptr %12, align 8, !tbaa !9
  %63 = trunc i64 %62 to i32
  store i32 %63, ptr %9, align 4, !tbaa !11
  %64 = load i32, ptr %9, align 4, !tbaa !11
  store i32 %64, ptr %5, align 4, !tbaa !11
  store i32 8, ptr %10, align 4, !tbaa !11
  %65 = load i32, ptr %10, align 4, !tbaa !11
  %66 = load i32, ptr %9, align 4, !tbaa !11
  %67 = add i32 %66, %65
  store i32 %67, ptr %9, align 4, !tbaa !11
  %68 = load ptr, ptr %3, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.w2c_hermes, ptr %68, i32 0, i32 6
  %70 = load i32, ptr %8, align 4, !tbaa !11
  %71 = zext i32 %70 to i64
  %72 = add i64 %71, 8
  %73 = load i32, ptr %9, align 4, !tbaa !11
  call void @i32_store(ptr noundef %69, i64 noundef %72, i32 noundef %73)
  %74 = load i32, ptr %6, align 4, !tbaa !11
  store i32 %74, ptr %8, align 4, !tbaa !11
  %75 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %75, ptr %9, align 4, !tbaa !11
  %76 = load ptr, ptr %3, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.w2c_hermes, ptr %76, i32 0, i32 6
  %78 = load i32, ptr %9, align 4, !tbaa !11
  %79 = zext i32 %78 to i64
  %80 = add i64 %79, 4
  %81 = call i32 @i32_load(ptr noundef %77, i64 noundef %80)
  store i32 %81, ptr %9, align 4, !tbaa !11
  %82 = load ptr, ptr %3, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.w2c_hermes, ptr %82, i32 0, i32 6
  %84 = load i32, ptr %8, align 4, !tbaa !11
  %85 = zext i32 %84 to i64
  %86 = add i64 %85, 12
  %87 = load i32, ptr %9, align 4, !tbaa !11
  call void @i32_store(ptr noundef %83, i64 noundef %86, i32 noundef %87)
  %88 = load i32, ptr %6, align 4, !tbaa !11
  store i32 %88, ptr %8, align 4, !tbaa !11
  %89 = load i32, ptr %6, align 4, !tbaa !11
  store i32 %89, ptr %9, align 4, !tbaa !11
  %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 !11
  %93 = zext i32 %92 to i64
  %94 = add i64 %93, 8
  %95 = call i64 @i64_load(ptr noundef %91, i64 noundef %94)
  store i64 %95, ptr %12, align 8, !tbaa !9
  %96 = load ptr, ptr %3, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.w2c_hermes, ptr %96, i32 0, i32 6
  %98 = load i32, ptr %8, align 4, !tbaa !11
  %99 = zext i32 %98 to i64
  %100 = load i64, ptr %12, align 8, !tbaa !9
  call void @i64_store(ptr noundef %97, i64 noundef %99, i64 noundef %100)
  %101 = load i32, ptr %6, align 4, !tbaa !11
  store i32 %101, ptr %8, align 4, !tbaa !11
  store i64 0, ptr %12, align 8, !tbaa !9
  %102 = load ptr, ptr %3, align 8, !tbaa !5
  %103 = load i32, ptr %8, align 4, !tbaa !11
  %104 = load i64, ptr %12, align 8, !tbaa !9
  %105 = call i32 @w2c_hermes_hermes0x3A0x3Abigint0x3A0x3Acompare0x28hermes0x3A0x3Abigint0x3A0x3AImmutableBigIntRef0x2C0x20long0x20long0x29(ptr noundef %102, i32 noundef %103, i64 noundef %104)
  store i32 %105, ptr %8, align 4, !tbaa !11
  store i32 0, ptr %9, align 4, !tbaa !11
  %106 = load i32, ptr %8, align 4, !tbaa !11
  %107 = load i32, ptr %9, align 4, !tbaa !11
  %108 = icmp ne i32 %106, %107
  %109 = zext i1 %108 to i32
  store i32 %109, ptr %8, align 4, !tbaa !11
  %110 = load i32, ptr %8, align 4, !tbaa !11
  store i32 %110, ptr %5, align 4, !tbaa !11
  br label %149

111:                                              ; preds = %43, %42
  %112 = load i64, ptr %4, align 8, !tbaa !9
  store i64 %112, ptr %11, align 8, !tbaa !9
  %113 = load i64, ptr %11, align 8, !tbaa !9
  %114 = trunc i64 %113 to i32
  store i32 %114, ptr %8, align 4, !tbaa !11
  %115 = load ptr, ptr %3, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.w2c_hermes, ptr %115, i32 0, i32 6
  %117 = load i32, ptr %8, align 4, !tbaa !11
  %118 = zext i32 %117 to i64
  %119 = add i64 %118, 4
  %120 = call i32 @i32_load(ptr noundef %116, i64 noundef %119)
  store i32 %120, ptr %8, align 4, !tbaa !11
  store i32 2147483647, ptr %9, align 4, !tbaa !11
  %121 = load i32, ptr %9, align 4, !tbaa !11
  %122 = load i32, ptr %8, align 4, !tbaa !11
  %123 = and i32 %122, %121
  store i32 %123, ptr %8, align 4, !tbaa !11
  store i32 0, ptr %9, align 4, !tbaa !11
  %124 = load i32, ptr %8, align 4, !tbaa !11
  %125 = load i32, ptr %9, align 4, !tbaa !11
  %126 = icmp ne i32 %124, %125
  %127 = zext i1 %126 to i32
  store i32 %127, ptr %8, align 4, !tbaa !11
  %128 = load i32, ptr %8, align 4, !tbaa !11
  store i32 %128, ptr %5, align 4, !tbaa !11
  br label %149

129:                                              ; preds = %48, %41, %40
  %130 = load i64, ptr %4, align 8, !tbaa !9
  store i64 %130, ptr %11, align 8, !tbaa !9
  %131 = load i64, ptr %11, align 8, !tbaa !9
  %132 = call double @f64_reinterpret_i64(i64 noundef %131)
  store double %132, ptr %13, align 8, !tbaa !13
  %133 = load double, ptr %13, align 8, !tbaa !13
  store double %133, ptr %7, align 8, !tbaa !13
  store double 0.000000e+00, ptr %14, align 8, !tbaa !13
  %134 = load double, ptr %13, align 8, !tbaa !13
  %135 = load double, ptr %14, align 8, !tbaa !13
  %136 = fcmp oeq double %134, %135
  %137 = zext i1 %136 to i32
  store i32 %137, ptr %8, align 4, !tbaa !11
  %138 = load i32, ptr %8, align 4, !tbaa !11
  %139 = icmp ne i32 %138, 0
  br i1 %139, label %140, label %141

140:                                              ; preds = %129
  br label %149

141:                                              ; preds = %129
  %142 = load double, ptr %7, align 8, !tbaa !13
  store double %142, ptr %13, align 8, !tbaa !13
  %143 = load double, ptr %7, align 8, !tbaa !13
  store double %143, ptr %14, align 8, !tbaa !13
  %144 = load double, ptr %13, align 8, !tbaa !13
  %145 = load double, ptr %14, align 8, !tbaa !13
  %146 = fcmp oeq double %144, %145
  %147 = zext i1 %146 to i32
  store i32 %147, ptr %8, align 4, !tbaa !11
  %148 = load i32, ptr %8, align 4, !tbaa !11
  store i32 %148, ptr %5, align 4, !tbaa !11
  br label %149

149:                                              ; preds = %141, %140, %111, %59, %57, %49, %37, %36
  %150 = load i32, ptr %6, align 4, !tbaa !11
  store i32 %150, ptr %8, align 4, !tbaa !11
  store i32 16, ptr %9, align 4, !tbaa !11
  %151 = load i32, ptr %9, align 4, !tbaa !11
  %152 = load i32, ptr %8, align 4, !tbaa !11
  %153 = add i32 %152, %151
  store i32 %153, ptr %8, align 4, !tbaa !11
  %154 = load i32, ptr %8, align 4, !tbaa !11
  %155 = load ptr, ptr %3, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.w2c_hermes, ptr %155, i32 0, i32 3
  store i32 %154, ptr %156, align 8, !tbaa !15
  %157 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %157, ptr %8, align 4, !tbaa !11
  %158 = load i32, ptr %8, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  ret i32 %158
}

declare i32 @w2c_hermes_hermes0x3A0x3Abigint0x3A0x3Acompare0x28hermes0x3A0x3Abigint0x3A0x3AImmutableBigIntRef0x2C0x20long0x20long0x29(ptr noundef, i32 noundef, i64 noundef) #3

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 = { 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 }

!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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!16, !12, i64 24}
!16 = !{!"w2c_hermes", !6, i64 0, !6, i64 8, !6, i64 16, !12, i64 24, !12, i64 28, !12, i64 32, !17, i64 40, !19, i64 80}
!17 = !{!"", !6, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !18, i64 32}
!18 = !{!"_Bool", !7, i64 0}
!19 = !{!"", !6, i64 0, !12, i64 8, !12, 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"

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

; 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 double @f64_reinterpret_i64(i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtoBoolean0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef %0, i64 noundef %1) local_unnamed_addr #1 {
  %3 = getelementptr inbounds i8, ptr %0, i64 24
  %4 = load i32, ptr %3, align 8, !tbaa !5
  %5 = add i32 %4, -16
  store i32 %5, ptr %3, align 8, !tbaa !5
  %6 = ashr i64 %1, 47
  %7 = trunc nsw i64 %6 to i32
  switch i32 %7, label %34 [
    i32 -12, label %40
    i32 -11, label %40
    i32 -10, label %8
    i32 -9, label %11
    i32 -1, label %11
    i32 -2, label %11
    i32 -6, label %26
    i32 -5, label %26
    i32 -4, label %12
    i32 -3, label %12
  ]

8:                                                ; preds = %2
  %9 = trunc i64 %1 to i32
  %10 = and i32 %9, 1
  br label %40

11:                                               ; preds = %2, %2, %2
  br label %40

12:                                               ; preds = %2, %2
  %13 = trunc i64 %1 to i32
  %14 = add i32 %13, 8
  %15 = getelementptr inbounds i8, ptr %0, i64 40
  %16 = zext i32 %5 to i64
  %17 = add nuw nsw i64 %16, 8
  tail call void @i32_store(ptr noundef nonnull %15, i64 noundef %17, i32 noundef %14)
  %18 = and i64 %1, 4294967295
  %19 = add nuw nsw i64 %18, 4
  %20 = tail call i32 @i32_load(ptr noundef nonnull %15, i64 noundef %19)
  %21 = add nuw nsw i64 %16, 12
  tail call void @i32_store(ptr noundef nonnull %15, i64 noundef %21, i32 noundef %20)
  %22 = tail call i64 @i64_load(ptr noundef nonnull %15, i64 noundef %17)
  tail call void @i64_store(ptr noundef nonnull %15, i64 noundef %16, i64 noundef %22)
  %23 = tail call i32 @w2c_hermes_hermes0x3A0x3Abigint0x3A0x3Acompare0x28hermes0x3A0x3Abigint0x3A0x3AImmutableBigIntRef0x2C0x20long0x20long0x29(ptr noundef nonnull %0, i32 noundef %5, i64 noundef 0) #3
  %24 = icmp ne i32 %23, 0
  %25 = zext i1 %24 to i32
  br label %40

26:                                               ; preds = %2, %2
  %27 = getelementptr inbounds i8, ptr %0, i64 40
  %28 = and i64 %1, 4294967295
  %29 = add nuw nsw i64 %28, 4
  %30 = tail call i32 @i32_load(ptr noundef nonnull %27, i64 noundef %29)
  %31 = and i32 %30, 2147483647
  %32 = icmp ne i32 %31, 0
  %33 = zext i1 %32 to i32
  br label %40

34:                                               ; preds = %2
  %35 = tail call double @f64_reinterpret_i64(i64 noundef %1)
  %36 = fcmp oeq double %35, 0.000000e+00
  br i1 %36, label %40, label %37

37:                                               ; preds = %34
  %38 = fcmp ord double %35, 0.000000e+00
  %39 = zext i1 %38 to i32
  br label %40

40:                                               ; preds = %34, %2, %2, %37, %26, %12, %11, %8
  %.0 = phi i32 [ 0, %34 ], [ %39, %37 ], [ %25, %12 ], [ %33, %26 ], [ 1, %11 ], [ %10, %8 ], [ 0, %2 ], [ 0, %2 ]
  store i32 %4, ptr %3, align 8, !tbaa !5
  ret i32 %.0
}

declare i32 @w2c_hermes_hermes0x3A0x3Abigint0x3A0x3Acompare0x28hermes0x3A0x3Abigint0x3A0x3AImmutableBigIntRef0x2C0x20long0x20long0x29(ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #2

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 = { 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 }

!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