	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmap_pv_insert_pte1
_pmap_pv_insert_pte1:                   ## @pmap_pv_insert_pte1
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movl	%edx, %r14d
	movl	%esi, %r15d
	movl	%edi, %r12d
	movq	_RA_WLOCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_pvh_global_lock@GOTPCREL(%rip), %rdi
	callq	_rw_assert
	movq	_PMAP_ENTER_NORECLAIM@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	testl	%ebx, (%rax)
	setne	%cl
	je	LBB0_2
## %bb.1:
	movq	_pv_entry_count@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_pv_entry_high_water@GOTPCREL(%rip), %rdi
	xorl	%eax, %eax
	cmpq	(%rdi), %rdx
	jge	LBB0_5
LBB0_2:
	movb	%cl, %sil
	movl	%r12d, %edi
	callq	_get_pv_entry
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movl	%r15d, (%rax)
	movl	%r14d, %edi
	callq	_pte1_pa
	movl	%eax, %edi
	callq	_pa_to_pvh
	movq	_pv_next@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_TAILQ_INSERT_TAIL
	movl	$1, %eax
	jmp	LBB0_5
LBB0_3:
	xorl	%eax, %eax
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pvh_global_lock,4,2            ## @pvh_global_lock
	.comm	_RA_WLOCKED,4,2                 ## @RA_WLOCKED
	.comm	_PMAP_ENTER_NORECLAIM,4,2       ## @PMAP_ENTER_NORECLAIM
	.comm	_pv_entry_count,8,3             ## @pv_entry_count
	.comm	_pv_entry_high_water,8,3        ## @pv_entry_high_water
	.comm	_pv_next,4,2                    ## @pv_next
	.no_dead_strip	_pmap_pv_insert_pte1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmap_pv_insert_pte1
_pmap_pv_insert_pte1:                   ; @pmap_pv_insert_pte1
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _RA_WLOCKED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RA_WLOCKED@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x0, _pvh_global_lock@GOTPAGE
Lloh4:
	ldr	x0, [x0, _pvh_global_lock@GOTPAGEOFF]
	bl	_rw_assert
Lloh5:
	adrp	x8, _PMAP_ENTER_NORECLAIM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PMAP_ENTER_NORECLAIM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ands	w8, w8, w22
	cset	w1, ne
	cbz	w8, LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _pv_entry_count@GOTPAGE
Lloh9:
	ldr	x8, [x8, _pv_entry_count@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
Lloh11:
	adrp	x9, _pv_entry_high_water@GOTPAGE
Lloh12:
	ldr	x9, [x9, _pv_entry_high_water@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_4
LBB0_2:
	mov	x0, x21
	bl	_get_pv_entry
	cbz	x0, LBB0_5
; %bb.3:
	mov	x21, x0
	str	w20, [x0]
	mov	x0, x19
	bl	_pte1_pa
	bl	_pa_to_pvh
Lloh14:
	adrp	x8, _pv_next@GOTPAGE
Lloh15:
	ldr	x8, [x8, _pv_next@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_TAILQ_INSERT_TAIL
	mov	w0, #1
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_pvh_global_lock,4,2            ; @pvh_global_lock
	.comm	_RA_WLOCKED,4,2                 ; @RA_WLOCKED
	.comm	_PMAP_ENTER_NORECLAIM,4,2       ; @PMAP_ENTER_NORECLAIM
	.comm	_pv_entry_count,8,3             ; @pv_entry_count
	.comm	_pv_entry_high_water,8,3        ; @pv_entry_high_water
	.comm	_pv_next,4,2                    ; @pv_next
	.no_dead_strip	_pmap_pv_insert_pte1
.subsections_via_symbols
