	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rmap_next
_rmap_next:                             ## @rmap_next
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rsi), %r9
	testq	%r9, %r9
	je	LBB0_3
## %bb.1:
	testb	$1, %r9b
	jne	LBB0_4
## %bb.2:
	xorl	%eax, %eax
	testq	%rdx, %rdx
	cmoveq	%r9, %rax
	popq	%rbp
	retq
LBB0_4:
	andq	$-2, %r9
	je	LBB0_3
## %bb.5:
	movq	_RMAP_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%eax, %eax
	xorl	%esi, %esi
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	testl	%r8d, %r8d
	jle	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r9), %r10
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r10,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	cmpq	%rdx, %rsi
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=2
	incq	%rcx
	movq	%rdi, %rsi
	cmpq	%rcx, %r8
	jne	LBB0_8
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%rsi, %rdi
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r9), %r9
	movq	%rdi, %rsi
	testq	%r9, %r9
	jne	LBB0_6
	jmp	LBB0_14
LBB0_3:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_13:
	movq	%rdi, %rax
LBB0_14:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RMAP_EXT,4,2                   ## @RMAP_EXT
	.no_dead_strip	_rmap_next
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rmap_next
_rmap_next:                             ; @rmap_next
	.cfi_startproc
; %bb.0:
	ldr	x8, [x1]
	cbz	x8, LBB0_13
; %bb.1:
	tbnz	w8, #0, LBB0_3
; %bb.2:
	cmp	x2, #0
	csel	x0, x8, xzr, eq
	ret
LBB0_3:
	ands	x8, x8, #0xfffffffffffffffe
	b.eq	LBB0_13
; %bb.4:
	mov	x10, #0
Lloh0:
	adrp	x9, _RMAP_EXT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RMAP_EXT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	cmp	w9, #1
	b.lt	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x11, [x8, #8]
	mov	x12, x9
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x11]
	cbz	x0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	cmp	x10, x2
	b.eq	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	add	x11, x11, #8
	mov	x10, x0
	subs	x12, x12, #1
	b.ne	LBB0_7
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x10
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x8]
	mov	x10, x0
	mov	x0, #0
	cbnz	x8, LBB0_5
LBB0_12:
	ret
LBB0_13:
	mov	x0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RMAP_EXT,4,2                   ; @RMAP_EXT
	.no_dead_strip	_rmap_next
.subsections_via_symbols
