	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_handle_page_fault              ## -- Begin function handle_page_fault
	.p2align	4, 0x90
_handle_page_fault:                     ## @handle_page_fault
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
	movl	%ecx, %r14d
	movl	%edx, %ebx
	movq	%rdi, %r15
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EFAULT@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	subl	(%rcx), %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	8(%rax), %r12
	movq	_SEGV_MAPERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r8)
	xorl	%eax, %eax
	callq	_in_atomic
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_28
LBB0_2:
	movq	%r12, %rdi
	callq	_down_read
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_find_vma
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rsi
	cmpq	%r15, (%rax)
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jbe	LBB0_9
## %bb.5:
	movq	_VM_GROWSDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rsi)
	je	LBB0_3
## %bb.6:
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	callq	_ARCH_IS_STACKGROW
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	testl	%eax, %eax
	je	LBB0_3
LBB0_8:
	movq	%rsi, %rdi
	movq	%r15, %rsi
	callq	_expand_stack
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_9
LBB0_3:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	-44(%rbp), %r12d                ## 4-byte Reload
LBB0_26:
	movq	%r14, %rdi
	callq	_up_read
LBB0_28:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_SEGV_ACCERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13)
	movl	8(%rsi), %eax
	testl	%ebx, %ebx
	je	LBB0_11
## %bb.10:
	movq	_VM_WRITE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jmp	LBB0_12
LBB0_11:
	movq	_VM_READ@GOTPCREL(%rip), %rcx
	movq	_VM_EXEC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%eax, %edx
LBB0_12:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	je	LBB0_26
## %bb.13:
	movq	_VM_FAULT_ERROR@GOTPCREL(%rip), %r13
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_14 Depth=1
	incl	4(%rax)
LBB0_24:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	%r12d, %ebx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_pgd_offset
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_pud_offset
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_pmd_offset
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_pte_offset_kernel
	movl	(%rax), %edi
	callq	_pte_present
	testl	%eax, %eax
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	jne	LBB0_25
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %ecx
	movl	%ebx, %r12d
	testl	%ebx, %ebx
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	_FAULT_FLAG_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_handle_mm_fault
	movl	%eax, %ebx
	movl	%eax, %edi
	andl	(%r13), %edi
	callq	_unlikely
	testq	%rax, %rax
	movq	_current@GOTPCREL(%rip), %rax
	je	LBB0_21
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	_VM_FAULT_OOM@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_27
## %bb.18:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	_VM_FAULT_SIGBUS@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_14 Depth=1
	xorl	%eax, %eax
	callq	_BUG
	movq	_current@GOTPCREL(%rip), %rax
LBB0_21:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	(%rax), %rax
	movq	_VM_FAULT_MAJOR@GOTPCREL(%rip), %rcx
	testl	%ebx, (%rcx)
	jne	LBB0_22
## %bb.23:                              ##   in Loop: Header=BB0_14 Depth=1
	incl	(%rax)
	jmp	LBB0_24
LBB0_25:
	movq	%rsi, %rdi
	movq	%r15, %rsi
	callq	_flush_tlb_page
	xorl	%r12d, %r12d
	jmp	LBB0_26
LBB0_27:
	movq	%r14, %rdi
	callq	_up_read
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_pagefault_out_of_memory
	jmp	LBB0_28
LBB0_19:
	movq	_EACCES@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_current,8,3                    ## @current
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_SEGV_MAPERR,4,2                ## @SEGV_MAPERR
	.comm	_VM_GROWSDOWN,4,2               ## @VM_GROWSDOWN
	.comm	_SEGV_ACCERR,4,2                ## @SEGV_ACCERR
	.comm	_VM_WRITE,4,2                   ## @VM_WRITE
	.comm	_VM_READ,4,2                    ## @VM_READ
	.comm	_VM_EXEC,4,2                    ## @VM_EXEC
	.comm	_FAULT_FLAG_WRITE,4,2           ## @FAULT_FLAG_WRITE
	.comm	_VM_FAULT_ERROR,4,2             ## @VM_FAULT_ERROR
	.comm	_VM_FAULT_OOM,4,2               ## @VM_FAULT_OOM
	.comm	_VM_FAULT_SIGBUS,4,2            ## @VM_FAULT_SIGBUS
	.comm	_EACCES,4,2                     ## @EACCES
	.comm	_VM_FAULT_MAJOR,4,2             ## @VM_FAULT_MAJOR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_handle_page_fault              ; -- Begin function handle_page_fault
	.p2align	2
_handle_page_fault:                     ; @handle_page_fault
	.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	x24, x4
	mov	x25, x3
	mov	x21, x2
	mov	x20, x0
Lloh0:
	adrp	x26, _current@GOTPAGE
Lloh1:
	ldr	x26, [x26, _current@GOTPAGEOFF]
	ldr	x8, [x26]
	ldr	x19, [x8, #8]
Lloh2:
	adrp	x8, _EFAULT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w23, w8
Lloh5:
	adrp	x8, _SEGV_MAPERR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SEGV_MAPERR@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x4]
	bl	_in_atomic
	cbnz	x0, LBB0_23
; %bb.1:
	mov	x0, x19
	bl	_down_read
	mov	x0, x19
	mov	x1, x20
	bl	_find_vma
	cbz	x0, LBB0_22
; %bb.2:
	mov	x22, x0
	ldr	x8, [x0]
	cmp	x8, x20
	b.ls	LBB0_7
; %bb.3:
	ldr	w8, [x22, #8]
Lloh8:
	adrp	x9, _VM_GROWSDOWN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _VM_GROWSDOWN@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_22
; %bb.4:
	cbz	w25, LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_ARCH_IS_STACKGROW
	cbz	w0, LBB0_22
LBB0_6:
	mov	x0, x22
	mov	x1, x20
	bl	_expand_stack
	cbnz	x0, LBB0_22
LBB0_7:
Lloh11:
	adrp	x8, _SEGV_ACCERR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SEGV_ACCERR@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x24]
	ldr	w8, [x22, #8]
	cbz	w21, LBB0_9
; %bb.8:
Lloh14:
	adrp	x9, _VM_WRITE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _VM_WRITE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_10
	b	LBB0_22
LBB0_9:
Lloh17:
	adrp	x9, _VM_READ@GOTPAGE
Lloh18:
	ldr	x9, [x9, _VM_READ@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
Lloh20:
	adrp	x10, _VM_EXEC@GOTPAGE
Lloh21:
	ldr	x10, [x10, _VM_EXEC@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_22
LBB0_10:
Lloh23:
	adrp	x24, _FAULT_FLAG_WRITE@GOTPAGE
Lloh24:
	ldr	x24, [x24, _FAULT_FLAG_WRITE@GOTPAGEOFF]
Lloh25:
	adrp	x25, _VM_FAULT_ERROR@GOTPAGE
Lloh26:
	ldr	x25, [x25, _VM_FAULT_ERROR@GOTPAGEOFF]
Lloh27:
	adrp	x27, _VM_FAULT_MAJOR@GOTPAGE
Lloh28:
	ldr	x27, [x27, _VM_FAULT_MAJOR@GOTPAGEOFF]
Lloh29:
	adrp	x28, _VM_FAULT_OOM@GOTPAGE
Lloh30:
	ldr	x28, [x28, _VM_FAULT_OOM@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w9, [x8, #4]
	add	w9, w9, #1
	str	w9, [x8, #4]
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_pgd_offset
	mov	x1, x20
	bl	_pud_offset
	mov	x1, x20
	bl	_pmd_offset
	mov	x1, x20
	bl	_pte_offset_kernel
	ldr	w0, [x0]
	bl	_pte_present
	cbnz	w0, LBB0_19
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24]
	cmp	w21, #0
	csel	w3, wzr, w8, eq
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_handle_mm_fault
	mov	x23, x0
	ldr	w8, [x25]
	and	w0, w8, w0
	bl	_unlikely
	cbz	x0, LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [x28]
	tst	w8, w23
	b.ne	LBB0_20
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
Lloh31:
	adrp	x8, _VM_FAULT_SIGBUS@GOTPAGE
Lloh32:
	ldr	x8, [x8, _VM_FAULT_SIGBUS@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	tst	w8, w23
	b.ne	LBB0_21
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	bl	_BUG
LBB0_17:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w9, [x27]
	ldr	x8, [x26]
	tst	w9, w23
	b.ne	LBB0_11
; %bb.18:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	b	LBB0_12
LBB0_19:
	mov	x0, x22
	mov	x1, x20
	bl	_flush_tlb_page
	mov	w23, #0
	b	LBB0_22
LBB0_20:
	mov	x0, x19
	bl	_up_read
	bl	_pagefault_out_of_memory
	mov	w23, #0
	b	LBB0_23
LBB0_21:
Lloh34:
	adrp	x8, _EACCES@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_22:
	mov	x0, x19
	bl	_up_read
LBB0_23:
	mov	x0, x23
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_current,8,3                    ; @current
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_SEGV_MAPERR,4,2                ; @SEGV_MAPERR
	.comm	_VM_GROWSDOWN,4,2               ; @VM_GROWSDOWN
	.comm	_SEGV_ACCERR,4,2                ; @SEGV_ACCERR
	.comm	_VM_WRITE,4,2                   ; @VM_WRITE
	.comm	_VM_READ,4,2                    ; @VM_READ
	.comm	_VM_EXEC,4,2                    ; @VM_EXEC
	.comm	_FAULT_FLAG_WRITE,4,2           ; @FAULT_FLAG_WRITE
	.comm	_VM_FAULT_ERROR,4,2             ; @VM_FAULT_ERROR
	.comm	_VM_FAULT_OOM,4,2               ; @VM_FAULT_OOM
	.comm	_VM_FAULT_SIGBUS,4,2            ; @VM_FAULT_SIGBUS
	.comm	_EACCES,4,2                     ; @EACCES
	.comm	_VM_FAULT_MAJOR,4,2             ; @VM_FAULT_MAJOR
.subsections_via_symbols
