	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __mtdswap_choose_gc_tree
___mtdswap_choose_gc_tree:              ## @__mtdswap_choose_gc_tree
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_CLEAN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_TREE_COUNT
	movq	_LOW_FRAG_GC_THRESHOLD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_1
## %bb.2:
	movq	_MTDSWAP_LOWFRAG@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_MTDSWAP_HIFRAG@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edi
	movq	_MTDSWAP_BITFLIP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$-1, %eax
	cmpl	%edi, %ecx
	jl	LBB0_8
## %bb.4:
	movslq	%ecx, %rdx
	movq	(%rbx), %rsi
	movslq	%edi, %rdi
	incq	%rdx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, -8(%rsi,%rdx,8)
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	decl	%ecx
	decq	%rdx
	cmpq	%rdi, %rdx
	jg	LBB0_5
	jmp	LBB0_8
LBB0_6:
	movl	%ecx, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CLEAN,4,2                      ## @CLEAN
	.comm	_LOW_FRAG_GC_THRESHOLD,8,3      ## @LOW_FRAG_GC_THRESHOLD
	.comm	_MTDSWAP_LOWFRAG,4,2            ## @MTDSWAP_LOWFRAG
	.comm	_MTDSWAP_HIFRAG,4,2             ## @MTDSWAP_HIFRAG
	.comm	_MTDSWAP_BITFLIP,4,2            ## @MTDSWAP_BITFLIP
	.no_dead_strip	___mtdswap_choose_gc_tree
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __mtdswap_choose_gc_tree
___mtdswap_choose_gc_tree:              ; @__mtdswap_choose_gc_tree
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _CLEAN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CLEAN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_TREE_COUNT
Lloh3:
	adrp	x8, _LOW_FRAG_GC_THRESHOLD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LOW_FRAG_GC_THRESHOLD@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _MTDSWAP_LOWFRAG@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MTDSWAP_LOWFRAG@GOTPAGEOFF]
Lloh8:
	adrp	x10, _MTDSWAP_HIFRAG@GOTPAGE
Lloh9:
	ldr	x10, [x10, _MTDSWAP_HIFRAG@GOTPAGEOFF]
	cmp	x0, x8
	csel	x8, x9, x10, lt
	ldr	w9, [x8]
Lloh10:
	adrp	x8, _MTDSWAP_BITFLIP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MTDSWAP_BITFLIP@GOTPAGEOFF]
Lloh12:
	ldrsw	x0, [x8]
	cmp	w0, w9
	b.lt	LBB0_4
; %bb.1:
	ldr	x8, [x19]
	sxtw	x9, w9
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x8, x0, lsl #3]
	cbnz	x10, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	x10, x0, #1
	cmp	x0, x9
	mov	x0, x10
	b.gt	LBB0_2
LBB0_4:
	mov	w0, #-1
LBB0_5:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CLEAN,4,2                      ; @CLEAN
	.comm	_LOW_FRAG_GC_THRESHOLD,8,3      ; @LOW_FRAG_GC_THRESHOLD
	.comm	_MTDSWAP_LOWFRAG,4,2            ; @MTDSWAP_LOWFRAG
	.comm	_MTDSWAP_HIFRAG,4,2             ; @MTDSWAP_HIFRAG
	.comm	_MTDSWAP_BITFLIP,4,2            ; @MTDSWAP_BITFLIP
	.no_dead_strip	___mtdswap_choose_gc_tree
.subsections_via_symbols
