	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_btree_remove                ## -- Begin function dm_btree_remove
	.p2align	4, 0x90
_dm_btree_remove:                       ## @dm_btree_remove
	.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, %r14
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	movl	(%rdi), %ebx
	movl	$0, -44(%rbp)
	movl	24(%rdi), %edi
	leaq	-104(%rbp), %rsi
	callq	_init_le64_type
	leaq	-48(%rbp), %rdi
	movq	%r15, %rsi
	callq	_init_shadow_spine
	cmpl	$0, (%r15)
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	decl	%ebx
	leaq	8(%r15), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	leaq	-48(%rbp), %r14
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_value64
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movl	(%r15), %eax
	cmpq	%rax, %r13
	leaq	-48(%rbp), %r14
	jae	LBB0_13
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r13, %rbx
	leaq	-104(%rbp), %rdx
	cmoveq	-64(%rbp), %rdx                 ## 8-byte Folded Reload
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r13,4), %r8d
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	leaq	-44(%rbp), %r9
	callq	_remove_raw
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_shadow_current
	movl	%eax, %edi
	callq	_dm_block_data
	movq	%rbx, %rcx
	movq	%rax, %r15
	movl	-44(%rbp), %r14d
	cmpq	%r13, %rbx
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%r14d, %r14d
	js	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %edi
	callq	_le32_to_cpu
	cmpl	%eax, %r14d
	setge	%al
	jmp	LBB0_9
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movb	$1, %al
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movzbl	%al, %edi
	callq	_BUG_ON
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %r14
	testq	%r14, %r14
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	-44(%rbp), %esi
	movq	%r15, %rdi
	callq	_value_ptr
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	*%r14
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %esi
	movq	%r15, %rdi
	callq	_delete_at
	jmp	LBB0_12
LBB0_1:
	xorl	%r12d, %r12d
LBB0_13:
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_shadow_root
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	%rbx, %rdi
	callq	_exit_shadow_spine
	movl	%r12d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_btree_remove                ; -- Begin function dm_btree_remove
	.p2align	2
_dm_btree_remove:                       ; @dm_btree_remove
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x23, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	ldr	w19, [x0]
	str	wzr, [sp, #28]
	ldr	w0, [x0, #24]
	add	x26, sp, #8
	add	x1, sp, #8
	bl	_init_le64_type
	add	x0, sp, #24
	mov	x1, x21
	bl	_init_shadow_spine
	ldr	w8, [x21]
	str	x23, [sp]                       ; 8-byte Folded Spill
	cbz	w8, LBB0_12
; %bb.1:
	mov	x27, #0
	sub	w28, w19, #1
	add	x19, x21, #8
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	mov	x1, x25
	bl	_value64
	mov	x22, x0
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x27, x27, #1
	ldr	w8, [x21]
	cmp	x27, x8
	b.hs	LBB0_13
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x28, x27
	csel	x2, x19, x26, eq
	ldr	w4, [x20, x27, lsl #2]
	add	x0, sp, #24
	add	x5, sp, #28
	mov	x1, x21
	mov	x3, x22
	bl	_remove_raw
	mov	x23, x0
	tbnz	w0, #31, LBB0_13
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #24
	bl	_shadow_current
	bl	_dm_block_data
	mov	x24, x0
	ldr	w25, [sp, #28]
	cmp	x28, x27
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	tbnz	w25, #31, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x24]
	bl	_le32_to_cpu
	cmp	w25, w0
	cset	w0, ge
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #1
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_BUG_ON
	ldr	x26, [x21, #16]
	cbz	x26, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w25, [x19]
	ldr	w1, [sp, #28]
	mov	x0, x24
	bl	_value_ptr
	mov	x1, x0
	mov	x0, x25
	blr	x26
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [sp, #28]
	mov	x0, x24
	bl	_delete_at
	add	x26, sp, #8
	b	LBB0_3
LBB0_12:
	mov	w23, #0
LBB0_13:
	add	x0, sp, #24
	bl	_shadow_root
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	str	w0, [x8]
	add	x0, sp, #24
	bl	_exit_shadow_spine
	mov	x0, x23
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
