	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function trap_pfault
_trap_pfault:                           ## @trap_pfault
	.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
	movq	%rcx, %r15
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_curthread@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rdi), %rcx
	movq	_EXC_ISI@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	jne	LBB0_3
## %bb.1:
	movl	24(%rbx), %edi
	movl	%edi, -44(%rbp)
	movq	_VM_PROT_EXECUTE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	movq	_SRR1_ISI_PFAULT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 8(%rbx)
	je	LBB0_7
## %bb.2:
	movq	_VM_PROT_READ@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r13d
	jmp	LBB0_7
LBB0_3:
	movl	20(%rbx), %edi
	movl	%edi, -44(%rbp)
	movq	_DSISR_STORE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 12(%rbx)
	je	LBB0_5
## %bb.4:
	movq	_VM_PROT_WRITE@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_5:
	movq	_VM_PROT_READ@GOTPCREL(%rip), %rcx
LBB0_6:
	movl	(%rcx), %r13d
LBB0_7:
	movq	(%rax), %r12
	testl	%r14d, %r14d
	je	LBB0_13
## %bb.8:
	xorl	%edi, %edi
	cmpq	$0, (%r12)
	setne	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
LBB0_9:
	movq	(%r12), %rdi
LBB0_10:
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movl	-44(%rbp), %esi
	movq	_VM_FAULT_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r13d, %edx
	movq	%r15, %r9
	callq	_vm_fault_trap
	movq	_KERN_SUCCESS@GOTPCREL(%rip), %rcx
	movl	$1, %r15d
	cmpl	(%rcx), %eax
	je	LBB0_17
## %bb.11:
	testl	%r14d, %r14d
	je	LBB0_16
LBB0_12:
	xorl	%r15d, %r15d
	jmp	LBB0_17
LBB0_13:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	leaq	-60(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	callq	_pmap_decode_kernel_ptr
	xorl	%r15d, %r15d
	testl	%eax, %eax
	jne	LBB0_17
## %bb.14:
	cmpl	$0, -60(%rbp)
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_9
## %bb.18:
	movq	_kernel_map@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	jmp	LBB0_10
LBB0_16:
	movq	%rbx, %rdi
	callq	_handle_onfault
	testq	%rax, %rax
	je	LBB0_12
LBB0_17:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_curthread,8,3                  ## @curthread
	.comm	_EXC_ISI,8,3                    ## @EXC_ISI
	.comm	_VM_PROT_EXECUTE,4,2            ## @VM_PROT_EXECUTE
	.comm	_SRR1_ISI_PFAULT,4,2            ## @SRR1_ISI_PFAULT
	.comm	_VM_PROT_READ,4,2               ## @VM_PROT_READ
	.comm	_DSISR_STORE,4,2                ## @DSISR_STORE
	.comm	_VM_PROT_WRITE,4,2              ## @VM_PROT_WRITE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"trap_pfault: vmspace  NULL"

	.comm	_kernel_map,8,3                 ## @kernel_map
	.comm	_VM_FAULT_NORMAL,4,2            ## @VM_FAULT_NORMAL
	.comm	_KERN_SUCCESS,4,2               ## @KERN_SUCCESS
	.comm	_ESR_ST,4,2                     ## @ESR_ST
	.no_dead_strip	_trap_pfault
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function trap_pfault
_trap_pfault:                           ; @trap_pfault
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _curthread@GOTPAGE
Lloh1:
	ldr	x8, [x8, _curthread@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x24, [x8]
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _EXC_ISI@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EXC_ISI@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.1:
	ldr	w0, [x19, #24]
	str	w0, [sp, #12]
Lloh6:
	adrp	x8, _VM_PROT_EXECUTE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VM_PROT_EXECUTE@GOTPAGEOFF]
Lloh8:
	ldr	w23, [x8]
	ldr	w8, [x19, #8]
Lloh9:
	adrp	x9, _SRR1_ISI_PFAULT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SRR1_ISI_PFAULT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
Lloh12:
	adrp	x8, _VM_PROT_READ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VM_PROT_READ@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	orr	w23, w8, w23
LBB0_3:
	cbz	w20, LBB0_13
LBB0_4:
	ldr	x8, [x24]
	cmp	x8, #0
	cset	w0, ne
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
LBB0_5:
	ldr	x0, [x24]
LBB0_6:
	ldr	w1, [sp, #12]
Lloh17:
	adrp	x8, _VM_FAULT_NORMAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _VM_FAULT_NORMAL@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
	mov	x2, x23
	mov	x4, x22
	mov	x5, x21
	bl	_vm_fault_trap
Lloh20:
	adrp	x8, _KERN_SUCCESS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _KERN_SUCCESS@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_10
LBB0_7:
	mov	w0, #1
	b	LBB0_15
LBB0_8:
	ldr	w0, [x19, #20]
	str	w0, [sp, #12]
	ldr	w8, [x19, #12]
Lloh23:
	adrp	x9, _DSISR_STORE@GOTPAGE
Lloh24:
	ldr	x9, [x9, _DSISR_STORE@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.9:
Lloh26:
	adrp	x8, _VM_PROT_WRITE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _VM_PROT_WRITE@GOTPAGEOFF]
Lloh28:
	ldr	w23, [x8]
	cbnz	w20, LBB0_4
	b	LBB0_13
LBB0_10:
	cbnz	w20, LBB0_14
; %bb.11:
	mov	x0, x19
	bl	_handle_onfault
	cbnz	x0, LBB0_7
	b	LBB0_14
LBB0_12:
Lloh29:
	adrp	x8, _VM_PROT_READ@GOTPAGE
Lloh30:
	ldr	x8, [x8, _VM_PROT_READ@GOTPAGEOFF]
Lloh31:
	ldr	w23, [x8]
	cbnz	w20, LBB0_4
LBB0_13:
	add	x1, sp, #8
	add	x2, sp, #12
	bl	_pmap_decode_kernel_ptr
	cbz	w0, LBB0_16
LBB0_14:
	mov	w0, #0
LBB0_15:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_16:
	ldr	w8, [sp, #8]
	cbnz	w8, LBB0_5
; %bb.17:
Lloh32:
	adrp	x8, _kernel_map@GOTPAGE
Lloh33:
	ldr	x8, [x8, _kernel_map@GOTPAGEOFF]
Lloh34:
	ldr	x0, [x8]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_curthread,8,3                  ; @curthread
	.comm	_EXC_ISI,8,3                    ; @EXC_ISI
	.comm	_VM_PROT_EXECUTE,4,2            ; @VM_PROT_EXECUTE
	.comm	_SRR1_ISI_PFAULT,4,2            ; @SRR1_ISI_PFAULT
	.comm	_VM_PROT_READ,4,2               ; @VM_PROT_READ
	.comm	_DSISR_STORE,4,2                ; @DSISR_STORE
	.comm	_VM_PROT_WRITE,4,2              ; @VM_PROT_WRITE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"trap_pfault: vmspace  NULL"

	.comm	_kernel_map,8,3                 ; @kernel_map
	.comm	_VM_FAULT_NORMAL,4,2            ; @VM_FAULT_NORMAL
	.comm	_KERN_SUCCESS,4,2               ; @KERN_SUCCESS
	.comm	_ESR_ST,4,2                     ; @ESR_ST
	.no_dead_strip	_trap_pfault
.subsections_via_symbols
