	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_datapagemap_next               ## -- Begin function datapagemap_next
	.p2align	4, 0x90
_datapagemap_next:                      ## @datapagemap_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	8(%rdi), %r9
	movl	(%r9), %r8d
	movl	(%rdi), %edx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	leal	7(%rdx), %eax
	testl	%edx, %edx
	cmovnsl	%edx, %eax
	sarl	$3, %eax
	cmpl	%r8d, %eax
	jge	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	1(%rdx), %ecx
	movl	%ecx, (%rdi)
	movq	8(%r9), %r10
	cltq
	movl	(%r10,%rax,4), %eax
	andb	$7, %dl
	movzbl	%dl, %edx
	btl	%edx, %eax
	movl	%ecx, %edx
	jae	LBB0_1
## %bb.4:
	decl	%ecx
	movl	%ecx, (%rsi)
	movl	$1, %eax
	popq	%rbp
	retq
LBB0_2:
	xorl	%eax, %eax
	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	_datapagemap_next               ; -- Begin function datapagemap_next
	.p2align	2
_datapagemap_next:                      ; @datapagemap_next
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #8]
	ldr	w9, [x8]
	ldr	w10, [x0]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	w11, w10, #7
	cmp	w10, #0
	csel	w11, w11, w10, lt
	asr	w12, w11, #3
	cmp	w12, w9
	b.ge	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	w11, w10, #1
	str	w11, [x0]
	ldr	x13, [x8, #8]
	ldr	w12, [x13, w12, sxtw #2]
	and	w10, w10, #0x7
	lsr	w12, w12, w10
	mov	x10, x11
	tbz	w12, #0, LBB0_1
; %bb.3:
	sub	w8, w11, #1
	str	w8, [x1]
	mov	w0, #1
	ret
LBB0_4:
	mov	w0, #0
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
