	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_enter_object              ## -- Begin function pmap_enter_object
	.p2align	4, 0x90
_pmap_enter_object:                     ## @pmap_enter_object
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r13
	movq	%rdx, %r14
	movq	%rsi, %r15
	movl	%edi, %ebx
	movl	12(%rcx), %edi
	callq	_VM_OBJECT_ASSERT_LOCKED
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	subq	%r15, %r14
	movq	%r14, %rdi
	callq	_atop
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	$0, -56(%rbp)
	movl	%ebx, %edi
	callq	_PMAP_LOCK
	xorl	%r14d, %r14d
	movq	%r13, %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	subq	(%r13), %rdi
	cmpq	-80(%rbp), %rdi                 ## 8-byte Folded Reload
	jge	LBB0_14
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	callq	_ptoa
	movq	%rax, %r12
	addq	-72(%rbp), %r12                 ## 8-byte Folded Reload
	movq	_PDRMASK@GOTPCREL(%rip), %rax
	testq	%r12, (%rax)
	jne	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_NBPDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	%r12, %rax
	cmpq	-64(%rbp), %rax                 ## 8-byte Folded Reload
	jg	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$1, 8(%r15)
	jne	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %edi
	callq	_pmap_ps_enabled
	testq	%rax, %rax
	je	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%esi, %esi
	movq	_VM_PROT_EXECUTE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	setne	%sil
	movl	%ebx, %edi
	callq	_pmap_allow_2m_x_page
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %edi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	leaq	-56(%rbp), %r8
	callq	_pmap_enter_2mpage
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_NBPDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	cqto
	idivq	%rcx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %edi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	%r14, %r8
	leaq	-56(%rbp), %r9
	callq	_pmap_enter_quick_locked
	movq	%rax, %r14
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_listq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_TAILQ_NEXT
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_1
	jmp	LBB0_14
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	shlq	$4, %rax
	addq	%rax, %r15
	addq	$-16, %r15
	jmp	LBB0_13
LBB0_14:
	movq	-56(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.15:
	callq	_rw_wunlock
LBB0_16:
	movl	%ebx, %edi
	callq	_PMAP_UNLOCK
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PDRMASK,8,3                    ## @PDRMASK
	.comm	_NBPDR,8,3                      ## @NBPDR
	.comm	_VM_PROT_EXECUTE,4,2            ## @VM_PROT_EXECUTE
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_listq,4,2                      ## @listq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_enter_object              ; -- Begin function pmap_enter_object
	.p2align	2
_pmap_enter_object:                     ; @pmap_enter_object
	.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	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	ldr	w0, [x3, #12]
	bl	_VM_OBJECT_ASSERT_LOCKED
	str	x22, [sp]                       ; 8-byte Folded Spill
	sub	x0, x22, x23
	bl	_atop
	mov	x24, x0
	str	xzr, [sp, #8]
	mov	x0, x19
	bl	_PMAP_LOCK
	mov	x25, #0
Lloh0:
	adrp	x28, _PDRMASK@GOTPAGE
Lloh1:
	ldr	x28, [x28, _PDRMASK@GOTPAGEOFF]
	mov	x26, x21
Lloh2:
	adrp	x22, _listq@GOTPAGE
Lloh3:
	ldr	x22, [x22, _listq@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26]
	ldr	x9, [x21]
	sub	x0, x8, x9
	cmp	x0, x24
	b.ge	LBB0_11
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_ptoa
	add	x27, x0, x23
	ldr	x8, [x28]
	tst	x27, x8
	b.ne	LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh4:
	adrp	x8, _NBPDR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NBPDR@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	add	x8, x8, x27
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	cmp	x8, x9
	b.gt	LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x26, #8]
	cmp	w8, #1
	b.ne	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	bl	_pmap_ps_enabled
	cbz	x0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh7:
	adrp	x8, _VM_PROT_EXECUTE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _VM_PROT_EXECUTE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w20
	cset	w1, ne
	mov	x0, x19
	bl	_pmap_allow_2m_x_page
	cbz	x0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x4, sp, #8
	mov	x0, x19
	mov	x1, x27
	mov	x2, x26
	mov	x3, x20
	bl	_pmap_enter_2mpage
	cbz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh10:
	adrp	x8, _NBPDR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NBPDR@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
Lloh13:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	sdiv	x8, x8, x9
	add	x8, x26, x8, lsl #4
	sub	x26, x8, #16
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_1 Depth=1
	add	x5, sp, #8
	mov	x0, x19
	mov	x1, x27
	mov	x2, x26
	mov	x3, x20
	mov	x4, x25
	bl	_pmap_enter_quick_locked
	mov	x25, x0
LBB0_10:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w1, [x22]
	mov	x0, x26
	bl	_TAILQ_NEXT
	mov	x26, x0
	cbnz	x0, LBB0_1
LBB0_11:
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_13
; %bb.12:
	bl	_rw_wunlock
LBB0_13:
	mov	x0, x19
	bl	_PMAP_UNLOCK
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_PDRMASK,8,3                    ; @PDRMASK
	.comm	_NBPDR,8,3                      ; @NBPDR
	.comm	_VM_PROT_EXECUTE,4,2            ; @VM_PROT_EXECUTE
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_listq,4,2                      ; @listq
.subsections_via_symbols
