	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rmap_desc_remove_entry
_rmap_desc_remove_entry:                ## @rmap_desc_remove_entry
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_RMAP_EXT@GOTPCREL(%rip), %rax
	movslq	(%rax), %r9
	movq	8(%rsi), %r8
	movslq	%edx, %r10
	movq	%r9, %rax
	decq	%rax
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r8,%rax,8), %r11
	decl	%r9d
	leaq	-1(%rax), %rdx
	testq	%r11, %r11
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%r10, %rax
	movq	%rdx, %rax
	jg	LBB0_1
LBB0_3:
	movq	%r11, (%r8,%r10,8)
	movq	8(%rsi), %rax
	movq	$0, 8(%rax,%rdx,8)
	testl	%r9d, %r9d
	je	LBB0_4
## %bb.11:
	popq	%rbp
	retq
LBB0_4:
	movq	(%rsi), %rax
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.7:
	movq	%rax, (%rcx)
	jmp	LBB0_10
LBB0_5:
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	orq	$1, %rax
	jmp	LBB0_9
LBB0_6:
	movq	8(%rsi), %rax
	movq	(%rax), %rax
LBB0_9:
	movq	%rax, (%rdi)
LBB0_10:
	movq	%rsi, %rdi
	popq	%rbp
	jmp	_mmu_free_rmap_desc             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RMAP_EXT,4,2                   ## @RMAP_EXT
	.no_dead_strip	_rmap_desc_remove_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rmap_desc_remove_entry
_rmap_desc_remove_entry:                ; @rmap_desc_remove_entry
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w2 killed $w2 def $x2
Lloh0:
	adrp	x8, _RMAP_EXT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RMAP_EXT@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	ldr	x9, [x1, #8]
	sxtw	x10, w2
	sub	x11, x9, #8
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x11, x8, lsl #3]
	sub	x8, x8, #1
	cmp	x12, #0
	ccmp	x8, x10, #4, eq
	b.gt	LBB0_1
; %bb.2:
	str	x12, [x9, x10, lsl #3]
	ldr	x9, [x1, #8]
	str	xzr, [x9, x8, lsl #3]
	cbz	w8, LBB0_4
; %bb.3:
	ret
LBB0_4:
	ldr	x8, [x1]
	cbz	x3, LBB0_6
; %bb.5:
	str	x8, [x3]
	mov	x0, x1
	b	_mmu_free_rmap_desc
LBB0_6:
	cbz	x8, LBB0_8
; %bb.7:
	orr	x8, x8, #0x1
	b	LBB0_9
LBB0_8:
	ldr	x8, [x1, #8]
	ldr	x8, [x8]
LBB0_9:
	str	x8, [x0]
	mov	x0, x1
	b	_mmu_free_rmap_desc
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RMAP_EXT,4,2                   ; @RMAP_EXT
	.no_dead_strip	_rmap_desc_remove_entry
.subsections_via_symbols
