	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bch_btree_init_next
_bch_btree_init_next:                   ## @bch_btree_init_next
	.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
	movq	%rdi, %rbx
	cmpq	$0, 24(%rdi)
	je	LBB0_3
## %bb.1:
	cmpq	$0, 16(%rbx)
	je	LBB0_3
## %bb.2:
	leaq	16(%rbx), %rdi
	movq	8(%rbx), %rsi
	addq	$4, %rsi
	callq	_bch_btree_sort
	jmp	LBB0_4
LBB0_3:
	leaq	16(%rbx), %rdi
	movq	8(%rbx), %rsi
	addq	$4, %rsi
	callq	_bch_btree_sort_lazy
LBB0_4:
	movq	(%rbx), %r14
	movq	%rbx, %rdi
	callq	_btree_blocks
	cmpq	%rax, %r14
	jge	LBB0_5
## %bb.6:
	leaq	16(%rbx), %r14
	movq	%rbx, %rdi
	callq	_write_block
	movl	%eax, %r15d
	movq	8(%rbx), %rdi
	callq	_bset_magic
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bch_bset_init_next             ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_bch_btree_init_next
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bch_btree_init_next
_bch_btree_init_next:                   ; @bch_btree_init_next
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x0, x19
	ldr	x8, [x0, #16]!
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x19, #8]
	add	x1, x8, #4
	bl	_bch_btree_sort
	b	LBB0_4
LBB0_3:
	add	x0, x19, #16
	ldr	x8, [x19, #8]
	add	x1, x8, #4
	bl	_bch_btree_sort_lazy
LBB0_4:
	ldr	x20, [x19]
	mov	x0, x19
	bl	_btree_blocks
	cmp	x20, x0
	b.ge	LBB0_6
; %bb.5:
	add	x20, x19, #16
	mov	x0, x19
	bl	_write_block
	mov	x21, x0
	ldr	x0, [x19, #8]
	bl	_bset_magic
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_bch_bset_init_next
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_bch_btree_init_next
.subsections_via_symbols
