	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mca_reap
_mca_reap:                              ## @mca_reap
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	leaq	-32(%rbp), %rdi
	callq	_closure_init_stack
	movq	32(%r14), %rdi
	callq	_lockdep_assert_held
	leaq	24(%r14), %rdi
	callq	_down_write_trylock
	testl	%eax, %eax
	je	LBB0_16
## %bb.1:
	movq	%r14, %rdi
	callq	_btree_node_dirty
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	16(%r14), %rax
	xorl	%edi, %edi
	cmpl	$0, (%rax)
	sete	%dil
	jmp	LBB0_4
LBB0_2:
	xorl	%edi, %edi
LBB0_4:
	callq	_BUG_ON
	cmpl	%ebx, 8(%r14)
	jae	LBB0_5
LBB0_15:
	movl	$1, %edi
	movq	%r14, %rsi
	callq	_rw_unlock
LBB0_16:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_17
LBB0_5:
	testl	%r15d, %r15d
	je	LBB0_6
LBB0_9:
	leaq	4(%r14), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	%r14, %rdi
	callq	_btree_node_journal_flush
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	leaq	L_.str(%rip), %r15
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_pr_debug
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	$1, %edi
	callq	_udelay
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	%r14, %rdi
	callq	_btree_node_journal_flush
	testq	%rax, %rax
	jne	LBB0_11
LBB0_12:
	movq	%r14, %rdi
	callq	_btree_node_dirty
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	leaq	-32(%rbp), %rsi
	movq	%r14, %rdi
	callq	___bch_btree_node_write
LBB0_14:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	leaq	-32(%rbp), %rdi
	callq	_closure_sync
	movq	%r14, %rdi
	callq	_down
	movq	%r14, %rdi
	callq	_up
	xorl	%eax, %eax
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r14, %rdi
	callq	_btree_node_dirty
	testq	%rax, %rax
	jne	LBB0_15
## %bb.7:
	movq	%r14, %rdi
	callq	_down_trylock
	testq	%rax, %rax
	jne	LBB0_15
## %bb.8:
	movq	%r14, %rdi
	callq	_up
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bnode %p is flushing by journal, retry"

	.no_dead_strip	_mca_reap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mca_reap
_mca_reap:                              ; @mca_reap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	add	x0, sp, #8
	bl	_closure_init_stack
	ldr	x0, [x19, #32]
	bl	_lockdep_assert_held
	add	x0, x19, #24
	bl	_down_write_trylock
	cbz	w0, LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_btree_node_dirty
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w0, eq
LBB0_3:
	bl	_BUG_ON
	ldr	w8, [x19, #8]
	cmp	w8, w21
	b.hs	LBB0_6
LBB0_4:
	mov	w0, #1
	mov	x1, x19
	bl	_rw_unlock
LBB0_5:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_6:
	cbz	w20, LBB0_14
LBB0_7:
	add	x20, x19, #4
	mov	x0, x20
	bl	_mutex_lock
	mov	x0, x19
	bl	_btree_node_journal_flush
	cbz	x0, LBB0_10
; %bb.8:
Lloh3:
	adrp	x21, l_.str@PAGE
Lloh4:
	add	x21, x21, l_.str@PAGEOFF
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x19
	bl	_pr_debug
	mov	x0, x20
	bl	_mutex_unlock
	mov	w0, #1
	bl	_udelay
	mov	x0, x20
	bl	_mutex_lock
	mov	x0, x19
	bl	_btree_node_journal_flush
	cbnz	x0, LBB0_9
LBB0_10:
	mov	x0, x19
	bl	_btree_node_dirty
	cbz	x0, LBB0_12
; %bb.11:
	add	x1, sp, #8
	mov	x0, x19
	bl	___bch_btree_node_write
LBB0_12:
	mov	x0, x20
	bl	_mutex_unlock
	add	x0, sp, #8
	bl	_closure_sync
	mov	x0, x19
	bl	_down
	mov	x0, x19
	bl	_up
	mov	w0, #0
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_14:
	mov	x0, x19
	bl	_btree_node_dirty
	cbnz	x0, LBB0_4
; %bb.15:
	mov	x0, x19
	bl	_down_trylock
	cbnz	x0, LBB0_4
; %bb.16:
	mov	x0, x19
	bl	_up
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bnode %p is flushing by journal, retry"

	.no_dead_strip	_mca_reap
.subsections_via_symbols
