	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function remove_one
_remove_one:                            ## @remove_one
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, %ebx
	movq	%rdi, %r13
	movl	(%rdi), %r14d
	movl	$0, -44(%rbp)
	movl	24(%rdi), %edi
	leaq	-72(%rbp), %rsi
	callq	_init_le64_type
	leaq	-48(%rbp), %rdi
	movq	%r13, %rsi
	callq	_init_shadow_spine
	decl	%r14d
	je	LBB0_1
## %bb.2:
	movl	%r14d, %r15d
	xorl	%r12d, %r12d
	leaq	-48(%rbp), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r12,8), %r8
	movq	%r14, %rdi
	movq	%r13, %rsi
	leaq	-72(%rbp), %rdx
	movl	%ebx, %ecx
	leaq	-44(%rbp), %r9
	callq	_remove_raw
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_shadow_current
	movl	%eax, %edi
	callq	_dm_block_data
	movl	-44(%rbp), %esi
	movq	%rax, %rdi
	callq	_value64
	movl	%eax, %ebx
	incq	%r12
	cmpq	%r12, %r15
	jne	LBB0_3
	jmp	LBB0_6
LBB0_1:
	xorl	%r15d, %r15d
LBB0_6:
	leaq	8(%r13), %r12
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	(%rax,%r15,8), %r8
	leaq	-48(%rbp), %rdi
	leaq	-44(%rbp), %r9
	movq	%r13, %rsi
	movq	%r12, %rdx
	movl	%ebx, %ecx
	callq	_remove_nearest
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_16
## %bb.7:
	leaq	-48(%rbp), %rdi
	callq	_shadow_current
	movl	%eax, %edi
	callq	_dm_block_data
	movq	%rax, %r14
	movl	-44(%rbp), %r15d
	testl	%r15d, %r15d
	jns	LBB0_9
## %bb.8:
	movl	$0, -44(%rbp)
	xorl	%r15d, %r15d
LBB0_9:
	movl	8(%r14), %edi
	callq	_le32_to_cpu
	cmpl	%eax, %r15d
	jge	LBB0_15
## %bb.10:
	movq	(%r14), %rax
	movslq	-44(%rbp), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_le64_to_cpu
	cmpq	-88(%rbp), %rax                 ## 8-byte Folded Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	jge	LBB0_15
## %bb.11:
	movq	%rax, %r15
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	(%rax,%rcx,8), %r15
	jl	LBB0_15
## %bb.12:
	movq	16(%r13), %r13
	testq	%r13, %r13
	je	LBB0_14
## %bb.13:
	movl	(%r12), %r12d
	movl	-44(%rbp), %esi
	movq	%r14, %rdi
	callq	_value_ptr
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	*%r13
LBB0_14:
	movl	-44(%rbp), %esi
	movq	%r14, %rdi
	callq	_delete_at
	incq	%r15
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%r15, (%rax,%rcx,8)
	jmp	LBB0_16
LBB0_4:
	movl	%eax, %ebx
	jmp	LBB0_16
LBB0_15:
	movq	_ENODATA@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_16:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	callq	_shadow_root
	movl	%eax, (%r15)
	movq	%r14, %rdi
	callq	_exit_shadow_spine
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODATA,4,2                    ## @ENODATA
	.no_dead_strip	_remove_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function remove_one
_remove_one:                            ; @remove_one
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x4
	mov	x22, x3
	mov	x20, x2
	mov	x23, x1
	mov	x21, x0
	ldr	w8, [x0]
	sub	w27, w8, #1
	str	wzr, [sp, #12]
	ldr	w0, [x0, #24]
	mov	x1, sp
	bl	_init_le64_type
	add	x0, sp, #8
	mov	x1, x21
	bl	_init_shadow_spine
	cbz	w27, LBB0_4
; %bb.1:
	mov	x24, x27
	mov	x25, x20
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x4, [x25]
	add	x0, sp, #8
	mov	x2, sp
	add	x5, sp, #12
	mov	x1, x21
	mov	x3, x23
	bl	_remove_raw
	tbnz	w0, #31, LBB0_11
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x0, sp, #8
	bl	_shadow_current
	bl	_dm_block_data
	ldr	w1, [sp, #12]
	bl	_value64
	mov	x23, x0
	add	x25, x25, #8
	subs	x24, x24, #1
	b.ne	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	x27, #0
LBB0_5:
	add	x24, x21, #8
	ldr	x4, [x20, x27, lsl #3]
	add	x0, sp, #8
	add	x5, sp, #12
	mov	x1, x21
	mov	x2, x24
	mov	x3, x23
	bl	_remove_nearest
	mov	x23, x0
	tbnz	w0, #31, LBB0_15
; %bb.6:
	add	x0, sp, #8
	bl	_shadow_current
	bl	_dm_block_data
	mov	x25, x0
	ldr	w26, [sp, #12]
	tbz	w26, #31, LBB0_8
; %bb.7:
	mov	w26, #0
	str	wzr, [sp, #12]
LBB0_8:
	ldr	w0, [x25, #8]
	bl	_le32_to_cpu
	cmp	w26, w0
	b.ge	LBB0_10
; %bb.9:
	ldr	x8, [x25]
	ldrsw	x9, [sp, #12]
	ldr	w0, [x8, x9, lsl #2]
	bl	_le64_to_cpu
	ldr	x8, [x20, x27, lsl #3]
	cmp	x0, x22
	ccmp	x0, x8, #8, lt
	b.ge	LBB0_12
LBB0_10:
Lloh0:
	adrp	x8, _ENODATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_15
LBB0_11:
	mov	x23, x0
	b	LBB0_15
LBB0_12:
	mov	x26, x0
	ldr	x22, [x21, #16]
	cbz	x22, LBB0_14
; %bb.13:
	ldr	w21, [x24]
	ldr	w1, [sp, #12]
	mov	x0, x25
	bl	_value_ptr
	mov	x1, x0
	mov	x0, x21
	blr	x22
LBB0_14:
	ldr	w1, [sp, #12]
	mov	x0, x25
	bl	_delete_at
	add	x8, x26, #1
	str	x8, [x20, x27, lsl #3]
LBB0_15:
	add	x0, sp, #8
	bl	_shadow_root
	str	w0, [x19]
	add	x0, sp, #8
	bl	_exit_shadow_spine
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODATA,4,2                    ; @ENODATA
	.no_dead_strip	_remove_one
.subsections_via_symbols
