	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function need_to_gc
_need_to_gc:                            ## @need_to_gc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_gc_auto_threshold@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_too_many_packs
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movq	_STRING_LIST_INIT_NODUP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_big_pack_threshold@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	leaq	-24(%rbp), %rdi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.4:
	callq	_find_base_packs
	movq	-24(%rbp), %rax
	movq	_gc_auto_pack_limit@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_9
## %bb.5:
	movq	$0, (%rbx)
	leaq	-24(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_string_list_clear
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_find_base_packs
	jmp	LBB0_9
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_10:
	xorl	%eax, %eax
	callq	_too_many_loose_objects
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	xorl	%eax, %eax
	callq	_add_repack_incremental_option
	jmp	LBB0_12
LBB0_6:
	xorl	%esi, %esi
	callq	_find_base_packs
	movq	%rax, %r14
	xorl	%eax, %eax
	callq	_total_ram
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_estimate_repack_memory
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.7:
	movl	%ebx, %ecx
	shrl	$31, %ecx
	addl	%ebx, %ecx
	sarl	%ecx
	cmpl	%ecx, %eax
	jge	LBB0_9
LBB0_8:
	leaq	-24(%rbp), %rdi
	xorl	%esi, %esi
	callq	_string_list_clear
LBB0_9:
	leaq	-24(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_add_repack_all_option
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_string_list_clear
LBB0_12:
	leaq	L_.str(%rip), %rsi
	xorl	%edi, %edi
	xorl	%edx, %edx
	callq	_run_hook_le
	xorl	%ebx, %ebx
	testq	%rax, %rax
	sete	%bl
LBB0_13:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_gc_auto_threshold,8,3          ## @gc_auto_threshold
	.comm	_STRING_LIST_INIT_NODUP,8,3     ## @STRING_LIST_INIT_NODUP
	.comm	_big_pack_threshold,8,3         ## @big_pack_threshold
	.comm	_gc_auto_pack_limit,8,3         ## @gc_auto_pack_limit
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pre-auto-gc"

	.no_dead_strip	_need_to_gc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function need_to_gc
_need_to_gc:                            ; @need_to_gc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _gc_auto_threshold@GOTPAGE
Lloh1:
	ldr	x8, [x8, _gc_auto_threshold@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_5
; %bb.1:
	bl	_too_many_packs
	cbz	x0, LBB0_6
; %bb.2:
Lloh3:
	adrp	x8, _STRING_LIST_INIT_NODUP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STRING_LIST_INIT_NODUP@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [sp, #8]
Lloh6:
	adrp	x19, _big_pack_threshold@GOTPAGE
Lloh7:
	ldr	x19, [x19, _big_pack_threshold@GOTPAGEOFF]
	ldr	x1, [x19]
	cbz	x1, LBB0_8
; %bb.3:
	add	x0, sp, #8
	bl	_find_base_packs
	ldr	x8, [sp, #8]
Lloh8:
	adrp	x9, _gc_auto_pack_limit@GOTPAGE
Lloh9:
	ldr	x9, [x9, _gc_auto_pack_limit@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_11
; %bb.4:
	str	xzr, [x19]
	add	x0, sp, #8
	mov	w1, #0
	bl	_string_list_clear
	add	x0, sp, #8
	mov	x1, #0
	bl	_find_base_packs
	b	LBB0_11
LBB0_5:
	mov	w0, #0
	b	LBB0_13
LBB0_6:
	bl	_too_many_loose_objects
	cbz	x0, LBB0_13
; %bb.7:
	bl	_add_repack_incremental_option
	b	LBB0_12
LBB0_8:
	add	x0, sp, #8
	bl	_find_base_packs
	mov	x19, x0
	bl	_total_ram
	mov	x20, x0
	mov	x0, x19
	bl	_estimate_repack_memory
	cmp	w20, #0
	cinc	w8, w20, lt
	cbz	w20, LBB0_10
; %bb.9:
	asr	w8, w8, #1
	cmp	w0, w8
	b.ge	LBB0_11
LBB0_10:
	add	x0, sp, #8
	mov	w1, #0
	bl	_string_list_clear
LBB0_11:
	add	x0, sp, #8
	bl	_add_repack_all_option
	add	x0, sp, #8
	mov	w1, #0
	bl	_string_list_clear
LBB0_12:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, #0
	mov	x2, #0
	bl	_run_hook_le
	cmp	x0, #0
	cset	w0, eq
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_gc_auto_threshold,8,3          ; @gc_auto_threshold
	.comm	_STRING_LIST_INIT_NODUP,8,3     ; @STRING_LIST_INIT_NODUP
	.comm	_big_pack_threshold,8,3         ; @big_pack_threshold
	.comm	_gc_auto_pack_limit,8,3         ; @gc_auto_pack_limit
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pre-auto-gc"

	.no_dead_strip	_need_to_gc
.subsections_via_symbols
