	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bch_bset_build_unwritten_tree
_bch_bset_build_unwritten_tree:         ## @bch_bset_build_unwritten_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_bset_tree_last
	movq	%rax, %r14
	movl	(%rbx), %edi
	callq	_BUG_ON
	movl	$1, (%rbx)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_bset_alloc_tree
	movq	(%r14), %r15
	movq	8(%rbx), %rax
	movq	(%rax), %r12
	movq	%rbx, %rdi
	callq	_btree_keys_cachelines
	addq	%r12, %rax
	cmpq	%rax, %r15
	je	LBB0_2
## %bb.1:
	movq	16(%r14), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_bkey_to_cacheline_offset
	movq	24(%r14), %rcx
	movl	%eax, (%rcx)
	movl	$1, 8(%r14)
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_bch_bset_build_unwritten_tree
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bch_bset_build_unwritten_tree
_bch_bset_build_unwritten_tree:         ; @bch_bset_build_unwritten_tree
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	bl	_bset_tree_last
	mov	x19, x0
	ldr	w0, [x20]
	bl	_BUG_ON
	mov	w21, #1
	str	w21, [x20]
	mov	x0, x20
	mov	x1, x19
	bl	_bset_alloc_tree
	ldr	x22, [x19]
	ldr	x8, [x20, #8]
	ldr	x23, [x8]
	mov	x0, x20
	bl	_btree_keys_cachelines
	add	x8, x0, x23
	cmp	x22, x8
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x19, #16]
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_bkey_to_cacheline_offset
	ldr	x8, [x19, #24]
	str	w0, [x8]
	str	w21, [x19, #8]
LBB0_2:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_bch_bset_build_unwritten_tree
.subsections_via_symbols
