	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_fault_fixup               ## -- Begin function pmap_fault_fixup
	.p2align	4, 0x90
_pmap_fault_fixup:                      ## @pmap_fault_fixup
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %r12d
	movq	%rdi, %r13
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_L1_IDX
	movq	%rax, %r15
	movq	_pvh_global_lock@GOTPCREL(%rip), %rdi
	callq	_rw_wlock
	movq	%r13, %rdi
	callq	_PMAP_LOCK
	movq	16(%r13), %rbx
	movq	%r15, %rdi
	callq	_L2_IDX
	movq	(%rbx,%rax,8), %rax
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_23
## %bb.1:
	movl	%r12d, -64(%rbp)                ## 4-byte Spill
	movq	(%rax), %rbx
	movq	%r15, %rdi
	callq	_L2_BUCKET
	movq	%rax, %r12
	shlq	$4, %r12
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	(%rbx,%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.2:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_l2pte_index
	movl	(%rbx,%rax,4), %edi
	testl	%edi, %edi
	je	LBB0_7
## %bb.3:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.4:
	movq	_L2_S_PROT_U@GOTPCREL(%rip), %rcx
	testl	%edi, (%rcx)
	movl	$0, %ebx
	je	LBB0_23
## %bb.5:
	movq	_vector_page@GOTPCREL(%rip), %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, (%rdx)
	jne	LBB0_9
	jmp	LBB0_23
LBB0_7:
	xorl	%ebx, %ebx
LBB0_23:
	movq	_pvh_global_lock@GOTPCREL(%rip), %rdi
	callq	_rw_wunlock
	movq	%r13, %rdi
	callq	_PMAP_UNLOCK
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_vector_page@GOTPCREL(%rip), %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, (%rdx)
	movl	$0, %ebx
	je	LBB0_23
LBB0_9:
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	callq	_l2pte_pa
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	_VM_PROT_WRITE@GOTPCREL(%rip), %rcx
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	testl	%esi, (%rcx)
	je	LBB0_11
## %bb.10:
	movq	_L2_S_PROT_W@GOTPCREL(%rip), %r14
	testl	%edx, (%r14)
	je	LBB0_15
LBB0_11:
	movq	_L2_TYPE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%edx, %ecx
	movq	_L2_TYPE_INV@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_20
## %bb.12:
	movl	%eax, %edi
	callq	_PHYS_TO_VM_PAGE
	testq	%rax, %rax
	je	LBB0_23
## %bb.13:
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%r13, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_pmap_find_pv
	testq	%rax, %rax
	je	LBB0_23
## %bb.14:
	movq	_PVF_REF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	%edx, (%r14)
	movl	(%rcx), %ecx
	orl	%ecx, (%rax)
	movq	_L2_TYPE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	andl	%eax, %ecx
	movq	_L2_S_PROTO@GOTPCREL(%rip), %r14
	jmp	LBB0_19
LBB0_15:
	movl	%eax, %edi
	callq	_PHYS_TO_VM_PAGE
	testq	%rax, %rax
	je	LBB0_23
## %bb.16:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movq	%r13, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_pmap_find_pv
	testq	%rax, %rax
	je	LBB0_23
## %bb.17:
	movq	_PVF_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_23
## %bb.18:
	movq	_PVF_REF@GOTPCREL(%rip), %rdx
	movq	_PVF_MOD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	orl	%ecx, (%rdi)
	movq	%rax, %rbx
	callq	_vm_page_dirty
	movq	_PVF_MOD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_PVF_REF@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	orl	%eax, (%rbx)
	movq	_L2_TYPE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	andl	%eax, %ecx
	movq	_L2_S_PROTO@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
LBB0_19:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rax,%rdx,4), %rdi
	orl	(%r14), %ecx
	movl	%ecx, (%rdi)
	callq	_PTE_SYNC
LBB0_20:
	movq	(%r13), %rax
	movq	(%rax), %r14
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax,%r12), %ebx
	movl	8(%r13), %edi
	callq	_L1_C_DOM
	orl	%ebx, %eax
	movq	_L1_C_PROTO@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	cmpl	%eax, (%r14,%r15,4)
	je	LBB0_22
## %bb.21:
	leaq	(%r14,%r15,4), %rdi
	movl	%eax, (%rdi)
	callq	_PTE_SYNC
LBB0_22:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_cpu_tlb_flushID_SE
	xorl	%eax, %eax
	callq	_cpu_cpwait
	movl	$1, %ebx
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_pvh_global_lock,4,2            ## @pvh_global_lock
	.comm	_L2_S_PROT_U,4,2                ## @L2_S_PROT_U
	.comm	_vector_page,8,3                ## @vector_page
	.comm	_VM_PROT_WRITE,4,2              ## @VM_PROT_WRITE
	.comm	_L2_S_PROT_W,4,2                ## @L2_S_PROT_W
	.comm	_PVF_WRITE,4,2                  ## @PVF_WRITE
	.comm	_PVF_REF,4,2                    ## @PVF_REF
	.comm	_PVF_MOD,4,2                    ## @PVF_MOD
	.comm	_L2_TYPE_MASK,4,2               ## @L2_TYPE_MASK
	.comm	_L2_S_PROTO,4,2                 ## @L2_S_PROTO
	.comm	_L2_TYPE_INV,4,2                ## @L2_TYPE_INV
	.comm	_L1_C_PROTO,4,2                 ## @L1_C_PROTO
	.comm	_last_fault_code,4,2            ## @last_fault_code
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_fault_fixup               ; -- Begin function pmap_fault_fixup
	.p2align	2
_pmap_fault_fixup:                      ; @pmap_fault_fixup
	.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	x26, x3
	mov	x25, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_L1_IDX
	mov	x21, x0
Lloh0:
	adrp	x0, _pvh_global_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _pvh_global_lock@GOTPAGEOFF]
	bl	_rw_wlock
	mov	x0, x19
	bl	_PMAP_LOCK
	ldr	x22, [x19, #16]
	mov	x0, x21
	bl	_L2_IDX
	ldr	x8, [x22, x0, lsl #3]
	cbz	x8, LBB0_20
; %bb.1:
	ldr	x27, [x8]
	mov	x0, x21
	bl	_L2_BUCKET
	lsl	x8, x0, #4
	ldr	x23, [x27, x8]
	cbz	x23, LBB0_20
; %bb.2:
	mov	x22, x0
	mov	x0, x20
	bl	_l2pte_index
	add	x23, x23, x0, lsl #2
	ldr	w24, [x23]
	cbz	w24, LBB0_20
; %bb.3:
	cbz	w26, LBB0_5
; %bb.4:
Lloh2:
	adrp	x8, _L2_S_PROT_U@GOTPAGE
Lloh3:
	ldr	x8, [x8, _L2_S_PROT_U@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	and	w8, w8, w24
Lloh5:
	adrp	x9, _vector_page@GOTPAGE
Lloh6:
	ldr	x9, [x9, _vector_page@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	w8, #0
	ccmp	x9, x20, #4, ne
	b.ne	LBB0_6
	b	LBB0_20
LBB0_5:
Lloh8:
	adrp	x8, _vector_page@GOTPAGE
Lloh9:
	ldr	x8, [x8, _vector_page@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x8, x20
	b.eq	LBB0_20
LBB0_6:
	mov	x0, x24
	bl	_l2pte_pa
Lloh11:
	adrp	x8, _VM_PROT_WRITE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VM_PROT_WRITE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w25
	b.eq	LBB0_8
; %bb.7:
Lloh14:
	adrp	x8, _L2_S_PROT_W@GOTPAGE
Lloh15:
	ldr	x8, [x8, _L2_S_PROT_W@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w24
	b.eq	LBB0_12
LBB0_8:
Lloh17:
	adrp	x26, _L2_TYPE_MASK@GOTPAGE
Lloh18:
	ldr	x26, [x26, _L2_TYPE_MASK@GOTPAGEOFF]
	ldr	w8, [x26]
	and	w8, w8, w24
Lloh19:
	adrp	x9, _L2_TYPE_INV@GOTPAGE
Lloh20:
	ldr	x9, [x9, _L2_TYPE_INV@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_17
; %bb.9:
	bl	_PHYS_TO_VM_PAGE
	cbz	x0, LBB0_20
; %bb.10:
	mov	x25, x0
	mov	x1, x19
	mov	x2, x20
	bl	_pmap_find_pv
	cbz	x0, LBB0_20
; %bb.11:
Lloh22:
	adrp	x8, _PVF_REF@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PVF_REF@GOTPAGEOFF]
	ldr	w9, [x8]
	ldr	w10, [x25]
	orr	w9, w10, w9
	str	w9, [x25]
	ldr	w8, [x8]
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
	ldr	w8, [x26]
	bic	w8, w24, w8
Lloh24:
	adrp	x9, _L2_S_PROTO@GOTPAGE
Lloh25:
	ldr	x9, [x9, _L2_S_PROTO@GOTPAGEOFF]
	b	LBB0_16
LBB0_12:
	bl	_PHYS_TO_VM_PAGE
	cbz	x0, LBB0_20
; %bb.13:
	mov	x25, x0
	mov	x1, x19
	mov	x2, x20
	bl	_pmap_find_pv
	cbz	x0, LBB0_20
; %bb.14:
	mov	x26, x0
	ldr	w8, [x0]
Lloh26:
	adrp	x9, _PVF_WRITE@GOTPAGE
Lloh27:
	ldr	x9, [x9, _PVF_WRITE@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_20
; %bb.15:
Lloh29:
	adrp	x8, _PVF_REF@GOTPAGE
Lloh30:
	ldr	x8, [x8, _PVF_REF@GOTPAGEOFF]
Lloh31:
	adrp	x28, _PVF_MOD@GOTPAGE
Lloh32:
	ldr	x28, [x28, _PVF_MOD@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	ldr	w9, [x28]
	orr	w8, w9, w8
	ldr	w9, [x25]
	orr	w8, w8, w9
	str	w8, [x25]
	mov	x0, x25
	bl	_vm_page_dirty
Lloh34:
	adrp	x8, _PVF_REF@GOTPAGE
Lloh35:
	ldr	x8, [x8, _PVF_REF@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	ldr	w9, [x28]
	orr	w8, w9, w8
	ldr	w9, [x26]
	orr	w8, w8, w9
	str	w8, [x26]
Lloh37:
	adrp	x8, _L2_TYPE_MASK@GOTPAGE
Lloh38:
	ldr	x8, [x8, _L2_TYPE_MASK@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	bic	w8, w24, w8
Lloh40:
	adrp	x9, _L2_S_PROTO@GOTPAGE
Lloh41:
	ldr	x9, [x9, _L2_S_PROTO@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh43:
	adrp	x9, _L2_S_PROT_W@GOTPAGE
Lloh44:
	ldr	x9, [x9, _L2_S_PROT_W@GOTPAGEOFF]
LBB0_16:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x23]
	mov	x0, x23
	bl	_PTE_SYNC
LBB0_17:
	ldr	x8, [x19]
	ldr	x8, [x8]
	add	x21, x8, x21, lsl #2
	add	x8, x27, x22, lsl #4
	ldr	w22, [x8, #8]
	ldr	w0, [x19, #8]
	bl	_L1_C_DOM
	orr	w8, w0, w22
Lloh45:
	adrp	x9, _L1_C_PROTO@GOTPAGE
Lloh46:
	ldr	x9, [x9, _L1_C_PROTO@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x21]
	cmp	w9, w8
	b.eq	LBB0_19
; %bb.18:
	str	w8, [x21]
	mov	x0, x21
	bl	_PTE_SYNC
LBB0_19:
	mov	x0, x20
	bl	_cpu_tlb_flushID_SE
	bl	_cpu_cpwait
	mov	w20, #1
	b	LBB0_21
LBB0_20:
	mov	w20, #0
LBB0_21:
Lloh48:
	adrp	x0, _pvh_global_lock@GOTPAGE
Lloh49:
	ldr	x0, [x0, _pvh_global_lock@GOTPAGEOFF]
	bl	_rw_wunlock
	mov	x0, x19
	bl	_PMAP_UNLOCK
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh33
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_pvh_global_lock,4,2            ; @pvh_global_lock
	.comm	_L2_S_PROT_U,4,2                ; @L2_S_PROT_U
	.comm	_vector_page,8,3                ; @vector_page
	.comm	_VM_PROT_WRITE,4,2              ; @VM_PROT_WRITE
	.comm	_L2_S_PROT_W,4,2                ; @L2_S_PROT_W
	.comm	_PVF_WRITE,4,2                  ; @PVF_WRITE
	.comm	_PVF_REF,4,2                    ; @PVF_REF
	.comm	_PVF_MOD,4,2                    ; @PVF_MOD
	.comm	_L2_TYPE_MASK,4,2               ; @L2_TYPE_MASK
	.comm	_L2_S_PROTO,4,2                 ; @L2_S_PROTO
	.comm	_L2_TYPE_INV,4,2                ; @L2_TYPE_INV
	.comm	_L1_C_PROTO,4,2                 ; @L1_C_PROTO
	.comm	_last_fault_code,4,2            ; @last_fault_code
.subsections_via_symbols
