	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_FAILING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_TREE_NONEMPTY
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	testl	%ebx, %ebx
	je	LBB0_2
LBB0_4:
	movq	_MTDSWAP_FAILING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_6
LBB0_2:
	movq	_CLEAN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_TREE_EMPTY
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	_DIRTY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_TREE_EMPTY
	testq	%rax, %rax
	jne	LBB0_4
LBB0_5:
	movq	%r14, %rdi
	callq	_mtdswap_choose_wl_tree
	movq	_MTDSWAP_CLEAN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_6
## %bb.7:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	___mtdswap_choose_gc_tree       ## TAILCALL
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FAILING,4,2                    ## @FAILING
	.comm	_CLEAN,4,2                      ## @CLEAN
	.comm	_DIRTY,4,2                      ## @DIRTY
	.comm	_MTDSWAP_FAILING,4,2            ## @MTDSWAP_FAILING
	.comm	_MTDSWAP_CLEAN,4,2              ## @MTDSWAP_CLEAN
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _FAILING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FAILING@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_TREE_NONEMPTY
	cbz	x0, LBB0_5
; %bb.1:
	cbz	w20, LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _MTDSWAP_FAILING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MTDSWAP_FAILING@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_7
LBB0_3:
Lloh6:
	adrp	x8, _CLEAN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CLEAN@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_TREE_EMPTY
	cbz	x0, LBB0_5
; %bb.4:
Lloh9:
	adrp	x8, _DIRTY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DIRTY@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_TREE_EMPTY
	cbnz	x0, LBB0_2
LBB0_5:
	mov	x0, x19
	bl	_mtdswap_choose_wl_tree
Lloh12:
	adrp	x8, _MTDSWAP_CLEAN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MTDSWAP_CLEAN@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ge	LBB0_7
; %bb.6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	___mtdswap_choose_gc_tree
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_FAILING,4,2                    ; @FAILING
	.comm	_CLEAN,4,2                      ; @CLEAN
	.comm	_DIRTY,4,2                      ; @DIRTY
	.comm	_MTDSWAP_FAILING,4,2            ; @MTDSWAP_FAILING
	.comm	_MTDSWAP_CLEAN,4,2              ; @MTDSWAP_CLEAN
	.no_dead_strip	_mtdswap_choose_gc_tree
.subsections_via_symbols
