	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_btree_empty                 ## -- Begin function dm_btree_empty
	.p2align	4, 0x90
_dm_btree_empty:                        ## @dm_btree_empty
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	leaq	-48(%rbp), %rsi
	callq	_new_block
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	4(%r15), %edi
	callq	_dm_tm_get_bm
	movl	%eax, %edi
	callq	_dm_bm_block_size
	movq	%rax, %r14
	movl	(%r15), %edi
	movq	%rax, %rsi
	callq	_calc_max_entries
	movl	%eax, %r13d
	movq	-48(%rbp), %rdi
	callq	_dm_block_data
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rbx
	xorl	%r12d, %r12d
	movq	%rax, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_memset
	movq	_LEAF_NODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%rax, 24(%rbx)
	xorl	%edi, %edi
	callq	_cpu_to_le32
	movq	%rax, 16(%rbx)
	movl	%r13d, %edi
	callq	_cpu_to_le32
	movq	%rax, 8(%rbx)
	movl	(%r15), %edi
	callq	_cpu_to_le32
	movq	%rax, (%rbx)
	movq	-48(%rbp), %rdi
	callq	_dm_block_location
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_unlock_block
	jmp	LBB0_3
LBB0_1:
	movl	%eax, %r12d
LBB0_3:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LEAF_NODE,4,2                  ## @LEAF_NODE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_btree_empty                 ; -- Begin function dm_btree_empty
	.p2align	2
_dm_btree_empty:                        ; @dm_btree_empty
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	mov	x19, x0
	add	x1, sp, #8
	bl	_new_block
	tbnz	w0, #31, LBB0_2
; %bb.1:
	ldr	w0, [x19, #4]
	bl	_dm_tm_get_bm
	bl	_dm_bm_block_size
	mov	x21, x0
	ldr	w0, [x19]
	mov	x1, x21
	bl	_calc_max_entries
	mov	x22, x0
	ldr	x0, [sp, #8]
	bl	_dm_block_data
	mov	x23, x0
	mov	w1, #0
	mov	x2, x21
	bl	_memset
Lloh0:
	adrp	x8, _LEAF_NODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LEAF_NODE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	x0, [x23, #24]
	mov	w0, #0
	bl	_cpu_to_le32
	str	x0, [x23, #16]
	mov	x0, x22
	bl	_cpu_to_le32
	str	x0, [x23, #8]
	ldr	w0, [x19]
	bl	_cpu_to_le32
	str	x0, [x23]
	ldr	x0, [sp, #8]
	bl	_dm_block_location
	str	w0, [x20]
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_unlock_block
	mov	w0, #0
LBB0_2:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LEAF_NODE,4,2                  ; @LEAF_NODE
.subsections_via_symbols
