	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btree_gc_recurse
_btree_gc_recurse:                      ## @btree_gc_recurse
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	%rsp, -96(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_GC_MERGE_NODES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$4, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	movslq	%eax, %r12
	shlq	$4, %r12
	leaq	32(%r13), %rdi
	movq	8(%r13), %rdx
	addq	$4, %rdx
	leaq	-80(%rbp), %rsi
	movq	%rdi, -112(%rbp)                ## 8-byte Spill
	callq	_bch_btree_iter_init
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_3
## %bb.1:
	movq	_EINTR@GOTPCREL(%rip), %r14
	movq	%r15, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	subl	(%r14), %edi
	callq	_ERR_PTR
	movq	%rax, (%rbx)
	addq	$16, %rbx
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	cltq
	shlq	$4, %rax
	addq	%r15, %rax
	cmpq	%rax, %rbx
	jb	LBB0_2
LBB0_3:
	movq	%r12, %rbx
	addq	%r15, %rbx
	leaq	16(%r15), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	xorl	%eax, %eax
	callq	_need_resched
	testq	%rax, %rax
	jne	LBB0_21
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	_bch_ptr_bad@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-80(%rbp), %rdi
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	callq	_bch_btree_iter_next_filter
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r13), %rdi
	movq	24(%r13), %rcx
	decq	%rcx
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%rax, %rdx
	movl	$1, %r8d
	movq	%r13, %r9
	callq	_bch_btree_node_get
	movq	%rax, (%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	(%r15), %rdi
	testq	%rax, %rax
	jne	LBB0_23
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	callq	_btree_gc_count_keys
	movl	%eax, 8(%r15)
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movq	%r15, %rcx
	callq	_btree_gc_coalesce
	testl	%eax, %eax
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_26
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_18
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-16(%rbx), %rdi
	movq	%r12, %rsi
	callq	_btree_gc_mark_node
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-16(%rbx), %rdx
	movq	%r13, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_btree_gc_rewrite_node
	testl	%eax, %eax
	jne	LBB0_26
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-16(%rbx), %rsi
	cmpq	$0, 24(%rsi)
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rsi, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%r12, %rcx
	callq	_btree_gc_recurse
	testl	%eax, %eax
	jne	LBB0_26
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-16(%rbx), %rsi
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r13), %rdi
	addq	$4, %rdi
	addq	$16, %rsi
	callq	_bkey_copy_key
	movq	-16(%rbx), %rdi
	callq	_mutex_lock
	movq	-16(%rbx), %rdi
	callq	_btree_node_dirty
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-16(%rbx), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_bch_btree_node_write
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-16(%rbx), %rdi
	callq	_mutex_unlock
	movq	-16(%rbx), %rsi
	movl	$1, %edi
	callq	_rw_unlock
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_GC_MERGE_NODES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$4, %edx
	addl	$-16, %edx
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movq	%r15, %rsi
	callq	_memmove
	movq	$0, (%r15)
	movq	8(%r13), %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_4
## %bb.19:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r12), %r14
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rbx
	movq	8(%r13), %rdi
	callq	_btree_gc_min_nodes
	addq	%rbx, %rax
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	cmpq	%rax, %r14
	jl	LBB0_4
## %bb.20:
	movq	(%r12), %rax
	movq	%rax, 8(%r12)
LBB0_21:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_27
LBB0_22:
	xorl	%r14d, %r14d
	jmp	LBB0_27
LBB0_23:
	callq	_PTR_ERR
LBB0_26:
	movl	%eax, %r14d
LBB0_27:
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jle	LBB0_34
## %bb.28:
	movq	%r15, %rbx
	jmp	LBB0_31
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_31 Depth=1
	movq	(%rbx), %rdi
	callq	_mutex_unlock
	movq	(%rbx), %rsi
	movl	$1, %edi
	callq	_rw_unlock
LBB0_30:                                ##   in Loop: Header=BB0_31 Depth=1
	addq	$16, %rbx
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	cltq
	shlq	$4, %rax
	addq	%r15, %rax
	cmpq	%rax, %rbx
	jae	LBB0_34
LBB0_31:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	callq	_IS_ERR_OR_NULL
	testl	%eax, %eax
	jne	LBB0_30
## %bb.32:                              ##   in Loop: Header=BB0_31 Depth=1
	movq	(%rbx), %rdi
	callq	_mutex_lock
	movq	(%rbx), %rdi
	callq	_btree_node_dirty
	testq	%rax, %rax
	je	LBB0_29
## %bb.33:                              ##   in Loop: Header=BB0_31 Depth=1
	movq	(%rbx), %rdi
	movq	%r12, %rsi
	callq	_bch_btree_node_write
	jmp	LBB0_29
LBB0_34:
	movq	-96(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_36
## %bb.35:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_36:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GC_MERGE_NODES,4,2             ## @GC_MERGE_NODES
	.comm	_EINTR,4,2                      ## @EINTR
	.comm	_bch_ptr_bad,4,2                ## @bch_ptr_bad
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.no_dead_strip	_btree_gc_recurse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function btree_gc_recurse
_btree_gc_recurse:                      ; @btree_gc_recurse
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #32
	mov	x21, x3
	mov	x19, x2
	mov	x22, x1
	mov	x23, x0
	mov	x8, sp
	stur	x8, [x29, #-104]                ; 8-byte Folded Spill
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _GC_MERGE_NODES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GC_MERGE_NODES@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #4
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x20, x9, x8
	mov	sp, x20
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x25, x0
	add	x24, x23, #32
	ldr	x8, [x23, #8]
	add	x2, x8, #4
	sub	x1, x29, #96
	mov	x0, x24
	bl	_bch_btree_iter_init
	mov	x0, x20
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.1:
Lloh8:
	adrp	x26, _EINTR@GOTPAGE
Lloh9:
	ldr	x26, [x26, _EINTR@GOTPAGEOFF]
	mov	x27, x20
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x26]
	neg	w0, w8
	bl	_ERR_PTR
	str	x0, [x27], #16
	mov	x0, x20
	bl	_ARRAY_SIZE
	add	x8, x20, w0, sxtw #4
	cmp	x27, x8
	b.lo	LBB0_2
LBB0_3:
	add	x27, x20, w25, sxtw #4
	add	x25, x20, #16
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_need_resched
	cbnz	x0, LBB0_21
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
Lloh10:
	adrp	x8, _bch_ptr_bad@GOTPAGE
Lloh11:
	ldr	x8, [x8, _bch_ptr_bad@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	sub	x0, x29, #96
	mov	x1, x24
	bl	_bch_btree_iter_next_filter
	cbz	x0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x2, x0
	ldr	x0, [x23, #8]
	ldr	x8, [x23, #24]
	sub	x3, x8, #1
	mov	x1, x22
	mov	w4, #1
	mov	x5, x23
	bl	_bch_btree_node_get
	str	x0, [x20]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x20]
	cbnz	x8, LBB0_23
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_btree_gc_count_keys
	str	w0, [x20, #8]
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	bl	_btree_gc_coalesce
	cbnz	w0, LBB0_24
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldur	x0, [x27, #-16]
	cbz	x0, LBB0_22
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_IS_ERR
	cbnz	x0, LBB0_18
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldur	x0, [x27, #-16]
	mov	x1, x21
	bl	_btree_gc_mark_node
	cbz	w0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	ldur	x2, [x27, #-16]
	mov	x0, x23
	mov	x1, x22
	bl	_btree_gc_rewrite_node
	cbnz	w0, LBB0_24
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	ldur	x0, [x27, #-16]
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x1, x22
	mov	x2, x19
	mov	x3, x21
	bl	_btree_gc_recurse
	cbnz	w0, LBB0_24
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	ldur	x0, [x27, #-16]
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x23, #8]
	add	x8, x8, #4
	add	x1, x0, #16
	mov	x0, x8
	bl	_bkey_copy_key
	ldur	x0, [x27, #-16]
	bl	_mutex_lock
	ldur	x0, [x27, #-16]
	bl	_btree_node_dirty
	cbz	x0, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	ldur	x0, [x27, #-16]
	mov	x1, x19
	bl	_bch_btree_node_write
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	ldur	x0, [x27, #-16]
	bl	_mutex_unlock
	ldur	x1, [x27, #-16]
	mov	w0, #1
	bl	_rw_unlock
LBB0_18:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh13:
	adrp	x8, _GC_MERGE_NODES@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GC_MERGE_NODES@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	lsl	w8, w8, #4
	sub	w2, w8, #16
	mov	x0, x25
	mov	x1, x20
	bl	_memmove
	str	xzr, [x20]
	ldr	x0, [x23, #8]
	bl	_atomic_read
	cbz	x0, LBB0_4
; %bb.19:                               ;   in Loop: Header=BB0_5 Depth=1
	ldp	x26, x28, [x21]
	ldr	x0, [x23, #8]
	bl	_btree_gc_min_nodes
	add	x8, x0, x28
	cmp	x26, x8
	b.lt	LBB0_4
; %bb.20:
	ldr	x8, [x21]
	str	x8, [x21, #8]
LBB0_21:
Lloh16:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w26, w8
	b	LBB0_25
LBB0_22:
	mov	w26, #0
	b	LBB0_25
LBB0_23:
	bl	_PTR_ERR
LBB0_24:
	mov	x26, x0
LBB0_25:
	mov	x0, x20
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_32
; %bb.26:
	mov	x21, x20
	b	LBB0_29
LBB0_27:                                ;   in Loop: Header=BB0_29 Depth=1
	ldr	x0, [x21]
	bl	_mutex_unlock
	ldr	x1, [x21]
	mov	w0, #1
	bl	_rw_unlock
LBB0_28:                                ;   in Loop: Header=BB0_29 Depth=1
	add	x21, x21, #16
	mov	x0, x20
	bl	_ARRAY_SIZE
	add	x8, x20, w0, sxtw #4
	cmp	x21, x8
	b.hs	LBB0_32
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21]
	bl	_IS_ERR_OR_NULL
	cbnz	w0, LBB0_28
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=1
	ldr	x0, [x21]
	bl	_mutex_lock
	ldr	x0, [x21]
	bl	_btree_node_dirty
	cbz	x0, LBB0_27
; %bb.31:                               ;   in Loop: Header=BB0_29 Depth=1
	ldr	x0, [x21]
	mov	x1, x19
	bl	_bch_btree_node_write
	b	LBB0_27
LBB0_32:
	ldur	x8, [x29, #-104]                ; 8-byte Folded Reload
	mov	sp, x8
	ldur	x8, [x29, #-88]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_34
; %bb.33:
	mov	x0, x26
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_34:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_GC_MERGE_NODES,4,2             ; @GC_MERGE_NODES
	.comm	_EINTR,4,2                      ; @EINTR
	.comm	_bch_ptr_bad,4,2                ; @bch_ptr_bad
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.no_dead_strip	_btree_gc_recurse
.subsections_via_symbols
