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

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

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

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

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

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

48:                                               ; preds = %4
  %49 = load i64, ptr %7, align 8, !tbaa !11
  store i64 %49, ptr %18, align 8, !tbaa !11
  %50 = load i64, ptr %18, align 8, !tbaa !11
  store i64 %50, ptr %10, align 8, !tbaa !11
  %51 = load i64, ptr %11, align 8, !tbaa !11
  store i64 %51, ptr %19, align 8, !tbaa !11
  %52 = load i64, ptr %19, align 8, !tbaa !11
  %53 = trunc i64 %52 to i32
  store i32 %53, ptr %14, align 4, !tbaa !9
  %54 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %54, ptr %15, align 4, !tbaa !9
  store i32 3, ptr %16, align 4, !tbaa !9
  %55 = load i32, ptr %16, align 4, !tbaa !9
  %56 = and i32 %55, 31
  %57 = load i32, ptr %15, align 4, !tbaa !9
  %58 = shl i32 %57, %56
  store i32 %58, ptr %15, align 4, !tbaa !9
  %59 = load i32, ptr %15, align 4, !tbaa !9
  %60 = load i32, ptr %14, align 4, !tbaa !9
  %61 = add i32 %60, %59
  store i32 %61, ptr %14, align 4, !tbaa !9
  store i32 8, ptr %15, align 4, !tbaa !9
  %62 = load i32, ptr %15, align 4, !tbaa !9
  %63 = load i32, ptr %14, align 4, !tbaa !9
  %64 = sub i32 %63, %62
  store i32 %64, ptr %14, align 4, !tbaa !9
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.w2c_hermes, ptr %65, i32 0, i32 6
  %67 = load i32, ptr %14, align 4, !tbaa !9
  %68 = zext i32 %67 to i64
  %69 = call i64 @i64_load(ptr noundef %66, i64 noundef %68)
  store i64 %69, ptr %19, align 8, !tbaa !11
  store i64 0, ptr %20, align 8, !tbaa !11
  %70 = load i64, ptr %19, align 8, !tbaa !11
  %71 = load i64, ptr %20, align 8, !tbaa !11
  %72 = icmp slt i64 %70, %71
  %73 = zext i1 %72 to i32
  %74 = sext i32 %73 to i64
  %75 = trunc i64 %74 to i32
  store i32 %75, ptr %14, align 4, !tbaa !9
  %76 = load i32, ptr %14, align 4, !tbaa !9
  %77 = icmp ne i32 %76, 0
  br i1 %77, label %78, label %79

78:                                               ; preds = %48
  br label %105

79:                                               ; preds = %48
  br label %80

80:                                               ; preds = %79, %4
  %81 = load i64, ptr %11, align 8, !tbaa !11
  store i64 %81, ptr %18, align 8, !tbaa !11
  store i64 26, ptr %19, align 8, !tbaa !11
  %82 = load i64, ptr %19, align 8, !tbaa !11
  %83 = and i64 %82, 63
  %84 = load i64, ptr %18, align 8, !tbaa !11
  %85 = lshr i64 %84, %83
  store i64 %85, ptr %18, align 8, !tbaa !11
  store i64 4294967232, ptr %19, align 8, !tbaa !11
  %86 = load i64, ptr %19, align 8, !tbaa !11
  %87 = load i64, ptr %18, align 8, !tbaa !11
  %88 = and i64 %87, %86
  store i64 %88, ptr %18, align 8, !tbaa !11
  %89 = load i64, ptr %18, align 8, !tbaa !11
  store i64 %89, ptr %10, align 8, !tbaa !11
  %90 = load i64, ptr %7, align 8, !tbaa !11
  store i64 %90, ptr %19, align 8, !tbaa !11
  %91 = load i64, ptr %7, align 8, !tbaa !11
  store i64 %91, ptr %20, align 8, !tbaa !11
  %92 = load i64, ptr %10, align 8, !tbaa !11
  store i64 %92, ptr %21, align 8, !tbaa !11
  %93 = load i64, ptr %20, align 8, !tbaa !11
  %94 = load i64, ptr %21, align 8, !tbaa !11
  %95 = icmp ugt i64 %93, %94
  %96 = zext i1 %95 to i32
  store i32 %96, ptr %15, align 4, !tbaa !9
  %97 = load i32, ptr %15, align 4, !tbaa !9
  %98 = icmp ne i32 %97, 0
  br i1 %98, label %99, label %101

99:                                               ; preds = %80
  %100 = load i64, ptr %18, align 8, !tbaa !11
  br label %103

101:                                              ; preds = %80
  %102 = load i64, ptr %19, align 8, !tbaa !11
  br label %103

103:                                              ; preds = %101, %99
  %104 = phi i64 [ %100, %99 ], [ %102, %101 ]
  store i64 %104, ptr %18, align 8, !tbaa !11
  br label %105

105:                                              ; preds = %103, %78
  %106 = load i64, ptr %18, align 8, !tbaa !11
  store i64 %106, ptr %10, align 8, !tbaa !11
  store i32 2, ptr %13, align 4, !tbaa !9
  %107 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %107, ptr %8, align 4, !tbaa !9
  %108 = load i64, ptr %10, align 8, !tbaa !11
  store i64 %108, ptr %18, align 8, !tbaa !11
  store i64 1, ptr %19, align 8, !tbaa !11
  %109 = load i64, ptr %19, align 8, !tbaa !11
  %110 = load i64, ptr %18, align 8, !tbaa !11
  %111 = add i64 %110, %109
  store i64 %111, ptr %18, align 8, !tbaa !11
  %112 = load i64, ptr %18, align 8, !tbaa !11
  store i64 %112, ptr %10, align 8, !tbaa !11
  store i64 65536, ptr %19, align 8, !tbaa !11
  %113 = load i64, ptr %18, align 8, !tbaa !11
  %114 = load i64, ptr %19, align 8, !tbaa !11
  %115 = icmp ule i64 %113, %114
  %116 = zext i1 %115 to i32
  store i32 %116, ptr %13, align 4, !tbaa !9
  %117 = load i32, ptr %13, align 4, !tbaa !9
  %118 = icmp ne i32 %117, 0
  br i1 %118, label %119, label %182

119:                                              ; preds = %105
  %120 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %120, ptr %13, align 4, !tbaa !9
  %121 = load ptr, ptr %5, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.w2c_hermes, ptr %121, i32 0, i32 6
  %123 = load i32, ptr %13, align 4, !tbaa !9
  %124 = zext i32 %123 to i64
  %125 = call i64 @i64_load(ptr noundef %122, i64 noundef %124)
  store i64 %125, ptr %18, align 8, !tbaa !11
  %126 = load i64, ptr %18, align 8, !tbaa !11
  store i64 %126, ptr %12, align 8, !tbaa !11
  %127 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %127, ptr %13, align 4, !tbaa !9
  %128 = load i64, ptr %11, align 8, !tbaa !11
  store i64 %128, ptr %19, align 8, !tbaa !11
  %129 = load ptr, ptr %5, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.w2c_hermes, ptr %129, i32 0, i32 6
  %131 = load i32, ptr %13, align 4, !tbaa !9
  %132 = zext i32 %131 to i64
  %133 = add i64 %132, 16
  %134 = load i64, ptr %19, align 8, !tbaa !11
  call void @i64_store(ptr noundef %130, i64 noundef %133, i64 noundef %134)
  %135 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %135, ptr %13, align 4, !tbaa !9
  %136 = load i64, ptr %12, align 8, !tbaa !11
  store i64 %136, ptr %19, align 8, !tbaa !11
  %137 = load ptr, ptr %5, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.w2c_hermes, ptr %137, i32 0, i32 6
  %139 = load i32, ptr %13, align 4, !tbaa !9
  %140 = zext i32 %139 to i64
  %141 = add i64 %140, 24
  %142 = load i64, ptr %19, align 8, !tbaa !11
  call void @i64_store(ptr noundef %138, i64 noundef %141, i64 noundef %142)
  %143 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %143, ptr %13, align 4, !tbaa !9
  %144 = load i64, ptr %12, align 8, !tbaa !11
  store i64 %144, ptr %19, align 8, !tbaa !11
  %145 = load ptr, ptr %5, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.w2c_hermes, ptr %145, i32 0, i32 6
  %147 = load i32, ptr %13, align 4, !tbaa !9
  %148 = zext i32 %147 to i64
  %149 = add i64 %148, 8
  %150 = load i64, ptr %19, align 8, !tbaa !11
  call void @i64_store(ptr noundef %146, i64 noundef %149, i64 noundef %150)
  %151 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %151, ptr %13, align 4, !tbaa !9
  %152 = load i64, ptr %11, align 8, !tbaa !11
  store i64 %152, ptr %19, align 8, !tbaa !11
  %153 = load ptr, ptr %5, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.w2c_hermes, ptr %153, i32 0, i32 6
  %155 = load i32, ptr %13, align 4, !tbaa !9
  %156 = zext i32 %155 to i64
  %157 = load i64, ptr %19, align 8, !tbaa !11
  call void @i64_store(ptr noundef %154, i64 noundef %156, i64 noundef %157)
  %158 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %158, ptr %13, align 4, !tbaa !9
  store i32 8, ptr %14, align 4, !tbaa !9
  %159 = load i32, ptr %14, align 4, !tbaa !9
  %160 = load i32, ptr %13, align 4, !tbaa !9
  %161 = add i32 %160, %159
  store i32 %161, ptr %13, align 4, !tbaa !9
  %162 = load i64, ptr %10, align 8, !tbaa !11
  store i64 %162, ptr %19, align 8, !tbaa !11
  %163 = load i64, ptr %19, align 8, !tbaa !11
  %164 = trunc i64 %163 to i32
  store i32 %164, ptr %14, align 4, !tbaa !9
  store i32 63, ptr %15, align 4, !tbaa !9
  %165 = load i32, ptr %15, align 4, !tbaa !9
  %166 = load i32, ptr %14, align 4, !tbaa !9
  %167 = add i32 %166, %165
  store i32 %167, ptr %14, align 4, !tbaa !9
  store i32 6, ptr %15, align 4, !tbaa !9
  %168 = load i32, ptr %15, align 4, !tbaa !9
  %169 = and i32 %168, 31
  %170 = load i32, ptr %14, align 4, !tbaa !9
  %171 = lshr i32 %170, %169
  store i32 %171, ptr %14, align 4, !tbaa !9
  %172 = load i64, ptr %7, align 8, !tbaa !11
  store i64 %172, ptr %20, align 8, !tbaa !11
  %173 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %173, ptr %16, align 4, !tbaa !9
  store i32 1, ptr %17, align 4, !tbaa !9
  %174 = load ptr, ptr %5, align 8, !tbaa !5
  %175 = load i32, ptr %13, align 4, !tbaa !9
  %176 = load i32, ptr %14, align 4, !tbaa !9
  %177 = load i64, ptr %20, align 8, !tbaa !11
  %178 = load i32, ptr %16, align 4, !tbaa !9
  %179 = load i32, ptr %17, align 4, !tbaa !9
  %180 = call i32 @w2c_hermes_hermes0x3A0x3Abigint0x3A0x3A0x28anonymous0x20namespace0x290x3A0x3AbigintAsImpl0x28hermes0x3A0x3Abigint0x3A0x3AMutableBigIntRef0x2C0x20unsigned0x20int0x2C0x20unsigned0x20long0x20long0x2C0x20hermes0x3A0x3Abigint0x3A0x3AImmutableBigIntRef0x2C0x20hermes0x3A0x3Abigint0x3A0x3A0x28anonymous0x20namespace0x290x3A0x3ABigIntAs0x29(ptr noundef %174, i32 noundef %175, i32 noundef %176, i64 noundef %177, i32 noundef %178, i32 noundef %179)
  store i32 %180, ptr %13, align 4, !tbaa !9
  %181 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %181, ptr %8, align 4, !tbaa !9
  br label %182

182:                                              ; preds = %119, %105
  %183 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %183, ptr %13, align 4, !tbaa !9
  store i32 32, ptr %14, align 4, !tbaa !9
  %184 = load i32, ptr %14, align 4, !tbaa !9
  %185 = load i32, ptr %13, align 4, !tbaa !9
  %186 = add i32 %185, %184
  store i32 %186, ptr %13, align 4, !tbaa !9
  %187 = load i32, ptr %13, align 4, !tbaa !9
  %188 = load ptr, ptr %5, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.w2c_hermes, ptr %188, i32 0, i32 3
  store i32 %187, ptr %189, align 8, !tbaa !13
  %190 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %190, ptr %13, align 4, !tbaa !9
  %191 = load i32, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  ret i32 %191
}

; Function Attrs: nounwind uwtable
declare dso_local i32 @w2c_hermes_hermes0x3A0x3Abigint0x3A0x3A0x28anonymous0x20namespace0x290x3A0x3AbigintAsImpl0x28hermes0x3A0x3Abigint0x3A0x3AMutableBigIntRef0x2C0x20unsigned0x20int0x2C0x20unsigned0x20long0x20long0x2C0x20hermes0x3A0x3Abigint0x3A0x3AImmutableBigIntRef0x2C0x20hermes0x3A0x3Abigint0x3A0x3A0x28anonymous0x20namespace0x290x3A0x3ABigIntAs0x29(ptr noundef, i32 noundef, i32 noundef, i64 noundef, i32 noundef, i32 noundef) #2

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 = { 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 = !{!"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"

; 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: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3Abigint0x3A0x3AasUintN0x28hermes0x3A0x3Abigint0x3A0x3AMutableBigIntRef0x2C0x20unsigned0x20long0x20long0x2C0x20hermes0x3A0x3Abigint0x3A0x3AImmutableBigIntRef0x29(ptr noundef %0, i32 noundef %1, i64 noundef %2, i32 noundef %3) local_unnamed_addr #1 {
  %5 = getelementptr inbounds i8, ptr %0, i64 24
  %6 = load i32, ptr %5, align 8, !tbaa !5
  %7 = add i32 %6, -32
  store i32 %7, ptr %5, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 40
  %9 = zext i32 %3 to i64
  %10 = tail call i64 @i64_load(ptr noundef nonnull %8, i64 noundef %9)
  %.not = icmp ult i64 %10, 4294967296
  br i1 %.not, label %18, label %11

11:                                               ; preds = %4
  %sh.diff = lshr i64 %10, 29
  %12 = and i64 %sh.diff, 4294967288
  %13 = add i64 %10, 4294967288
  %14 = add i64 %13, %12
  %15 = and i64 %14, 4294967295
  %16 = tail call i64 @i64_load(ptr noundef nonnull %8, i64 noundef %15)
  %17 = icmp slt i64 %16, 0
  br i1 %17, label %22, label %18

18:                                               ; preds = %11, %4
  %19 = lshr i64 %10, 26
  %20 = and i64 %19, 4294967232
  %21 = tail call i64 @llvm.umin.i64(i64 %20, i64 %2)
  br label %22

22:                                               ; preds = %11, %18
  %.0102 = phi i64 [ %2, %11 ], [ %21, %18 ]
  %23 = add i64 %.0102, 1
  %24 = icmp ult i64 %23, 65537
  br i1 %24, label %25, label %37

25:                                               ; preds = %22
  %26 = zext i32 %1 to i64
  %27 = tail call i64 @i64_load(ptr noundef nonnull %8, i64 noundef %26)
  %28 = zext i32 %7 to i64
  %29 = add nuw nsw i64 %28, 16
  tail call void @i64_store(ptr noundef nonnull %8, i64 noundef %29, i64 noundef %10)
  %30 = add nuw nsw i64 %28, 24
  tail call void @i64_store(ptr noundef nonnull %8, i64 noundef %30, i64 noundef %27)
  %31 = add nuw nsw i64 %28, 8
  tail call void @i64_store(ptr noundef nonnull %8, i64 noundef %31, i64 noundef %27)
  tail call void @i64_store(ptr noundef nonnull %8, i64 noundef %28, i64 noundef %10)
  %32 = add i32 %6, -24
  %33 = trunc nuw nsw i64 %23 to i32
  %34 = add nuw nsw i32 %33, 63
  %35 = lshr i32 %34, 6
  %36 = tail call i32 @w2c_hermes_hermes0x3A0x3Abigint0x3A0x3A0x28anonymous0x20namespace0x290x3A0x3AbigintAsImpl0x28hermes0x3A0x3Abigint0x3A0x3AMutableBigIntRef0x2C0x20unsigned0x20int0x2C0x20unsigned0x20long0x20long0x2C0x20hermes0x3A0x3Abigint0x3A0x3AImmutableBigIntRef0x2C0x20hermes0x3A0x3Abigint0x3A0x3A0x28anonymous0x20namespace0x290x3A0x3ABigIntAs0x29(ptr noundef nonnull %0, i32 noundef %32, i32 noundef %35, i64 noundef %2, i32 noundef %7, i32 noundef 1)
  br label %37

37:                                               ; preds = %25, %22
  %.0 = phi i32 [ %36, %25 ], [ 2, %22 ]
  store i32 %6, ptr %5, align 8, !tbaa !5
  ret i32 %.0
}

; Function Attrs: nounwind uwtable
declare dso_local i32 @w2c_hermes_hermes0x3A0x3Abigint0x3A0x3A0x28anonymous0x20namespace0x290x3A0x3AbigintAsImpl0x28hermes0x3A0x3Abigint0x3A0x3AMutableBigIntRef0x2C0x20unsigned0x20int0x2C0x20unsigned0x20long0x20long0x2C0x20hermes0x3A0x3Abigint0x3A0x3AImmutableBigIntRef0x2C0x20hermes0x3A0x3Abigint0x3A0x3A0x28anonymous0x20namespace0x290x3A0x3ABigIntAs0x29(ptr noundef, i32 noundef, i32 noundef, i64 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umin.i64(i64, i64) #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

!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,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass