	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_pv_entry
_get_pv_entry:                          ## @get_pv_entry
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	_MA_OWNED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_PMAP_LOCK_ASSERT
	movq	_pv_entry_allocs@GOTPCREL(%rip), %rdi
	movl	$1, %esi
	callq	_atomic_add_long
	movl	%eax, %edi
	callq	_PV_STAT
	movq	_VM_ALLOC_WIRED@GOTPCREL(%rip), %r13
                                        ## implicit-def: $eax
                                        ## kill: killed $eax
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	%r14, %rdi
	callq	_TAILQ_FIRST
	testq	%rax, %rax
	je	LBB0_14
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %rbx
	movq	__NPCM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rbx), %rcx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rcx,%r15,4), %edi
	testl	%edi, %edi
	jne	LBB0_6
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=2
	incq	%r15
	cmpq	%r15, %rax
	jne	LBB0_5
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%r15d, %r15d
	cmpl	%eax, %r15d
	jge	LBB0_14
	jmp	LBB0_8
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	callq	_bsfq
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	__NPCM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r15d
	jl	LBB0_8
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_VM_ALLOC_NOOBJ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_VM_ALLOC_NORMAL@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	orl	(%r13), %edx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_vm_page_alloc
	testq	%rax, %rax
	jne	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_1 Depth=1
	testq	%r12, %r12
	je	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_reclaim_pv_chunk
	testq	%rax, %rax
	je	LBB0_1
LBB0_18:
	movq	%rax, %rbx
	movq	_pc_chunk_count@GOTPCREL(%rip), %rdi
	movl	$1, %esi
	callq	_atomic_add_int
	movl	%eax, %edi
	callq	_PV_STAT
	movq	_pc_chunk_allocs@GOTPCREL(%rip), %rdi
	movl	$1, %esi
	callq	_atomic_add_int
	movl	%eax, %edi
	callq	_PV_STAT
	movl	(%rbx), %edi
	callq	_dump_add_page
	movl	(%rbx), %edi
	callq	_PHYS_TO_DMAP
	movq	%rax, %r15
	movq	%r14, 16(%rax)
	movq	_PC_FREE0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	$-2, %eax
	movq	(%r15), %rcx
	movl	%eax, (%rcx)
	movq	_PC_FREE1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rcx)
	movq	_PC_FREE2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rcx)
	movq	_pv_chunks@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movl	(%rbx), %edi
	callq	__vm_phys_domain
	movq	%rax, %rbx
	leaq	(,%rax,8), %r12
	addq	%r13, %r12
	movq	%r12, %rdi
	callq	_mtx_lock
	leaq	4(,%rbx,8), %rdi
	addq	%r13, %rdi
	movq	_pc_lru@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	callq	_TAILQ_INSERT_TAIL
	movq	%r12, %rdi
	callq	_mtx_unlock
	movq	8(%r15), %r12
	movq	_pc_list@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_TAILQ_INSERT_HEAD
	movq	_pv_entry_count@GOTPCREL(%rip), %rdi
	movl	$1, %esi
	callq	_atomic_add_long
	movl	%eax, %edi
	callq	_PV_STAT
	movq	__NPCPV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	decl	%esi
	movq	_pv_entry_spare@GOTPCREL(%rip), %rdi
	callq	_atomic_add_int
LBB0_19:
	movl	%eax, %edi
	jmp	LBB0_20
LBB0_16:
	movq	_pc_chunk_tryfail@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leal	1(%rdi), %ecx
	movl	%ecx, (%rax)
	xorl	%r12d, %r12d
LBB0_20:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_PV_STAT
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	%r15d, %edx
	shll	$6, %r15d
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	addl	%ecx, %r15d
	movslq	%r15d, %r12
	movl	$1, %esi
                                        ## kill: def $cl killed $cl killed $ecx
	shlq	%cl, %rsi
	shlq	$2, %r12
	movq	(%rbx), %rax
	addq	8(%rbx), %r12
	notl	%esi
	andl	%esi, (%rax,%rdx,4)
	cmpl	$0, (%rax)
	jne	LBB0_12
## %bb.9:
	cmpl	$0, 4(%rax)
	jne	LBB0_12
## %bb.10:
	cmpl	$0, 8(%rax)
	jne	LBB0_12
## %bb.11:
	movq	_pc_list@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_TAILQ_REMOVE
	movl	(%r15), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_TAILQ_INSERT_TAIL
LBB0_12:
	movq	_pv_entry_count@GOTPCREL(%rip), %rdi
	movl	$1, %esi
	callq	_atomic_add_long
	movl	%eax, %edi
	callq	_PV_STAT
	movq	_pv_entry_spare@GOTPCREL(%rip), %rdi
	movl	$1, %esi
	callq	_atomic_subtract_int
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_MA_OWNED,4,2                   ## @MA_OWNED
	.comm	_pv_entry_allocs,4,2            ## @pv_entry_allocs
	.comm	__NPCM,4,2                      ## @_NPCM
	.comm	_pc_list,4,2                    ## @pc_list
	.comm	_pv_entry_count,4,2             ## @pv_entry_count
	.comm	_pv_entry_spare,4,2             ## @pv_entry_spare
	.comm	_VM_ALLOC_NORMAL,4,2            ## @VM_ALLOC_NORMAL
	.comm	_VM_ALLOC_NOOBJ,4,2             ## @VM_ALLOC_NOOBJ
	.comm	_VM_ALLOC_WIRED,4,2             ## @VM_ALLOC_WIRED
	.comm	_pc_chunk_tryfail,4,2           ## @pc_chunk_tryfail
	.comm	_pc_chunk_count,4,2             ## @pc_chunk_count
	.comm	_pc_chunk_allocs,4,2            ## @pc_chunk_allocs
	.comm	_PC_FREE0,8,3                   ## @PC_FREE0
	.comm	_PC_FREE1,8,3                   ## @PC_FREE1
	.comm	_PC_FREE2,8,3                   ## @PC_FREE2
	.comm	_pv_chunks,8,3                  ## @pv_chunks
	.comm	_pc_lru,4,2                     ## @pc_lru
	.comm	__NPCPV,4,2                     ## @_NPCPV
	.no_dead_strip	_get_pv_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_pv_entry
_get_pv_entry:                          ; @get_pv_entry
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _MA_OWNED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MA_OWNED@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_PMAP_LOCK_ASSERT
Lloh3:
	adrp	x0, _pv_entry_allocs@GOTPAGE
Lloh4:
	ldr	x0, [x0, _pv_entry_allocs@GOTPAGEOFF]
	mov	w1, #1
	bl	_atomic_add_long
	bl	_PV_STAT
Lloh5:
	adrp	x23, _VM_ALLOC_NORMAL@GOTPAGE
Lloh6:
	ldr	x23, [x23, _VM_ALLOC_NORMAL@GOTPAGEOFF]
Lloh7:
	adrp	x24, _VM_ALLOC_NOOBJ@GOTPAGE
Lloh8:
	ldr	x24, [x24, _VM_ALLOC_NOOBJ@GOTPAGEOFF]
Lloh9:
	adrp	x25, _VM_ALLOC_WIRED@GOTPAGE
Lloh10:
	ldr	x25, [x25, _VM_ALLOC_WIRED@GOTPAGEOFF]
                                        ; implicit-def: $w21
Lloh11:
	adrp	x26, __NPCM@GOTPAGE
Lloh12:
	ldr	x26, [x26, __NPCM@GOTPAGEOFF]
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	mov	x0, x19
	bl	_TAILQ_FIRST
	cbz	x0, LBB0_8
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x22, x0
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x27, #0
	ldr	x9, [x22]
LBB0_4:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x9, x27, lsl #2]
	cbnz	w0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	add	x27, x27, #1
	cmp	x8, x27
	b.ne	LBB0_4
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	w27, #0
	cmp	w27, w8
	b.ge	LBB0_8
	b	LBB0_13
LBB0_7:                                 ;   in Loop: Header=BB0_1 Depth=1
	bl	_bsfq
	mov	x21, x0
	ldr	w8, [x26]
	cmp	w27, w8
	b.lt	LBB0_13
LBB0_8:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w8, w9, w8
	ldr	w9, [x25]
	orr	w2, w8, w9
	mov	x0, #0
	mov	w1, #0
	bl	_vm_page_alloc
	cbnz	x0, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_1 Depth=1
	cbz	x20, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_reclaim_pv_chunk
	cbz	x0, LBB0_1
LBB0_11:
	mov	x22, x0
Lloh13:
	adrp	x0, _pc_chunk_count@GOTPAGE
Lloh14:
	ldr	x0, [x0, _pc_chunk_count@GOTPAGEOFF]
	mov	w1, #1
	bl	_atomic_add_int
	bl	_PV_STAT
Lloh15:
	adrp	x0, _pc_chunk_allocs@GOTPAGE
Lloh16:
	ldr	x0, [x0, _pc_chunk_allocs@GOTPAGEOFF]
	mov	w1, #1
	bl	_atomic_add_int
	bl	_PV_STAT
	ldr	w0, [x22]
	bl	_dump_add_page
	ldr	w0, [x22]
	bl	_PHYS_TO_DMAP
	mov	x21, x0
	str	x19, [x0, #16]
Lloh17:
	adrp	x8, _PC_FREE0@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PC_FREE0@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	and	w8, w8, #0xfffffffe
Lloh20:
	adrp	x9, _PC_FREE1@GOTPAGE
Lloh21:
	ldr	x9, [x9, _PC_FREE1@GOTPAGEOFF]
	ldr	x10, [x0]
Lloh22:
	ldr	x9, [x9]
	stp	w8, w9, [x10]
Lloh23:
	adrp	x8, _PC_FREE2@GOTPAGE
Lloh24:
	ldr	x8, [x8, _PC_FREE2@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	str	w8, [x10, #8]
Lloh26:
	adrp	x8, _pv_chunks@GOTPAGE
Lloh27:
	ldr	x8, [x8, _pv_chunks@GOTPAGEOFF]
Lloh28:
	ldr	x20, [x8]
	ldr	w0, [x22]
	bl	__vm_phys_domain
	add	x20, x20, x0, lsl #3
	mov	x0, x20
	bl	_mtx_lock
	add	x0, x20, #4
Lloh29:
	adrp	x8, _pc_lru@GOTPAGE
Lloh30:
	ldr	x8, [x8, _pc_lru@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_TAILQ_INSERT_TAIL
	mov	x0, x20
	bl	_mtx_unlock
	ldr	x20, [x21, #8]
Lloh32:
	adrp	x8, _pc_list@GOTPAGE
Lloh33:
	ldr	x8, [x8, _pc_list@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_TAILQ_INSERT_HEAD
Lloh35:
	adrp	x0, _pv_entry_count@GOTPAGE
Lloh36:
	ldr	x0, [x0, _pv_entry_count@GOTPAGEOFF]
	mov	w1, #1
	bl	_atomic_add_long
	bl	_PV_STAT
Lloh37:
	adrp	x8, __NPCPV@GOTPAGE
Lloh38:
	ldr	x8, [x8, __NPCPV@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	sub	w1, w8, #1
Lloh40:
	adrp	x0, _pv_entry_spare@GOTPAGE
Lloh41:
	ldr	x0, [x0, _pv_entry_spare@GOTPAGEOFF]
	bl	_atomic_add_int
	b	LBB0_18
LBB0_12:
Lloh42:
	adrp	x8, _pc_chunk_tryfail@GOTPAGE
Lloh43:
	ldr	x8, [x8, _pc_chunk_tryfail@GOTPAGEOFF]
	ldr	w0, [x8]
	add	w9, w0, #1
	str	w9, [x8]
	b	LBB0_18
LBB0_13:
	add	w9, w21, w27, lsl #6
	ldp	x8, x10, [x22]
	add	x20, x10, w9, sxtw #2
	mov	w9, #1
	lsl	x9, x9, x21
	mov	w10, w27
	lsl	x10, x10, #2
	ldr	w11, [x8, x10]
	bic	w9, w11, w9
	str	w9, [x8, x10]
	ldr	w9, [x8]
	cbnz	w9, LBB0_17
; %bb.14:
	ldr	w9, [x8, #4]
	cbnz	w9, LBB0_17
; %bb.15:
	ldr	w8, [x8, #8]
	cbnz	w8, LBB0_17
; %bb.16:
Lloh44:
	adrp	x21, _pc_list@GOTPAGE
Lloh45:
	ldr	x21, [x21, _pc_list@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x22
	bl	_TAILQ_REMOVE
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x22
	bl	_TAILQ_INSERT_TAIL
LBB0_17:
Lloh46:
	adrp	x0, _pv_entry_count@GOTPAGE
Lloh47:
	ldr	x0, [x0, _pv_entry_count@GOTPAGEOFF]
	mov	w1, #1
	bl	_atomic_add_long
	bl	_PV_STAT
Lloh48:
	adrp	x0, _pv_entry_spare@GOTPAGE
Lloh49:
	ldr	x0, [x0, _pv_entry_spare@GOTPAGEOFF]
	mov	w1, #1
	bl	_atomic_subtract_int
LBB0_18:
	bl	_PV_STAT
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_MA_OWNED,4,2                   ; @MA_OWNED
	.comm	_pv_entry_allocs,4,2            ; @pv_entry_allocs
	.comm	__NPCM,4,2                      ; @_NPCM
	.comm	_pc_list,4,2                    ; @pc_list
	.comm	_pv_entry_count,4,2             ; @pv_entry_count
	.comm	_pv_entry_spare,4,2             ; @pv_entry_spare
	.comm	_VM_ALLOC_NORMAL,4,2            ; @VM_ALLOC_NORMAL
	.comm	_VM_ALLOC_NOOBJ,4,2             ; @VM_ALLOC_NOOBJ
	.comm	_VM_ALLOC_WIRED,4,2             ; @VM_ALLOC_WIRED
	.comm	_pc_chunk_tryfail,4,2           ; @pc_chunk_tryfail
	.comm	_pc_chunk_count,4,2             ; @pc_chunk_count
	.comm	_pc_chunk_allocs,4,2            ; @pc_chunk_allocs
	.comm	_PC_FREE0,8,3                   ; @PC_FREE0
	.comm	_PC_FREE1,8,3                   ; @PC_FREE1
	.comm	_PC_FREE2,8,3                   ; @PC_FREE2
	.comm	_pv_chunks,8,3                  ; @pv_chunks
	.comm	_pc_lru,4,2                     ; @pc_lru
	.comm	__NPCPV,4,2                     ; @_NPCPV
	.no_dead_strip	_get_pv_entry
.subsections_via_symbols
