	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmap_modify_pv
_pmap_modify_pv:                        ## @pmap_modify_pv
	.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
	movl	%r8d, %r12d
	movl	%ecx, %ebx
	movl	%edx, %r13d
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_PMAP_ASSERT_LOCKED
	movq	_RA_WLOCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_pvh_global_lock@GOTPCREL(%rip), %rdi
	callq	_rw_assert
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_pmap_find_pv
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_PVF_REF@GOTPCREL(%rip), %rdx
	movq	_PVF_MOD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	testl	%ebx, %ecx
	je	LBB0_4
## %bb.3:
	andl	%r12d, %ecx
	orl	%ecx, (%r14)
LBB0_4:
	movl	(%rax), %r13d
	notl	%ebx
	andl	%r13d, %ebx
	orl	%r12d, %ebx
	movl	%ebx, (%rax)
	movl	%ebx, %eax
	xorl	%r13d, %eax
	movq	_PVF_WIRED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, %eax
	je	LBB0_6
## %bb.5:
	andl	%ecx, %ebx
	xorl	%ecx, %ecx
	cmpl	$1, %ebx
	sbbl	%ecx, %ecx
	orl	$1, %ecx
	addl	%ecx, (%r15)
LBB0_6:
	movq	_PVF_WRITE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_pmap_fix_cache
	jmp	LBB0_8
LBB0_1:
	xorl	%r13d, %r13d
LBB0_8:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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	_PVF_REF,4,2                    ## @PVF_REF
	.comm	_PVF_MOD,4,2                    ## @PVF_MOD
	.comm	_PVF_WIRED,4,2                  ## @PVF_WIRED
	.comm	_PVF_WRITE,4,2                  ## @PVF_WRITE
	.no_dead_strip	_pmap_modify_pv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmap_modify_pv
_pmap_modify_pv:                        ; @pmap_modify_pv
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_PMAP_ASSERT_LOCKED
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
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	bl	_pmap_find_pv
	cbz	x0, LBB0_7
; %bb.1:
Lloh5:
	adrp	x8, _PVF_REF@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PVF_REF@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _PVF_MOD@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PVF_MOD@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w22
	b.eq	LBB0_3
; %bb.2:
	and	w8, w8, w21
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
LBB0_3:
	ldr	w23, [x0]
	bic	w8, w23, w22
	orr	w9, w8, w21
	str	w9, [x0]
	eor	w8, w9, w23
Lloh11:
	adrp	x10, _PVF_WIRED@GOTPAGE
Lloh12:
	ldr	x10, [x10, _PVF_WIRED@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	tst	w8, w10
	b.eq	LBB0_5
; %bb.4:
	ldr	w11, [x19]
	sub	w12, w11, #1
	tst	w9, w10
	csinc	w9, w12, w11, eq
	str	w9, [x19]
LBB0_5:
Lloh14:
	adrp	x9, _PVF_WRITE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PVF_WRITE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.6:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_pmap_fix_cache
	b	LBB0_8
LBB0_7:
	mov	w23, #0
LBB0_8:
	mov	x0, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.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	_PVF_REF,4,2                    ; @PVF_REF
	.comm	_PVF_MOD,4,2                    ; @PVF_MOD
	.comm	_PVF_WIRED,4,2                  ; @PVF_WIRED
	.comm	_PVF_WRITE,4,2                  ; @PVF_WRITE
	.no_dead_strip	_pmap_modify_pv
.subsections_via_symbols
