	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p2m_top_index
_p2m_top_index:                         ## @p2m_top_index
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_MAX_DOMAIN_PAGES@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	%rbx, (%rax)
	setbe	%dil
	callq	_BUG_ON
	movq	_P2M_ENTRIES_PER_PAGE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rbx, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rax
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_3
LBB0_1:
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_3:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_DOMAIN_PAGES,8,3           ## @MAX_DOMAIN_PAGES
	.comm	_P2M_ENTRIES_PER_PAGE,8,3       ## @P2M_ENTRIES_PER_PAGE
	.no_dead_strip	_p2m_top_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p2m_top_index
_p2m_top_index:                         ; @p2m_top_index
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _MAX_DOMAIN_PAGES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_DOMAIN_PAGES@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x0
	cset	w0, ls
	bl	_BUG_ON
Lloh3:
	adrp	x8, _P2M_ENTRIES_PER_PAGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _P2M_ENTRIES_PER_PAGE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	udiv	x0, x19, x8
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_DOMAIN_PAGES,8,3           ; @MAX_DOMAIN_PAGES
	.comm	_P2M_ENTRIES_PER_PAGE,8,3       ; @P2M_ENTRIES_PER_PAGE
	.no_dead_strip	_p2m_top_index
.subsections_via_symbols
