	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tdp_page_fault
_tdp_page_fault:                        ## @tdp_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
	movl	%edx, %r12d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	callq	_ASSERT
	movl	8(%rbx), %edi
	callq	_VALID_PAGE
	movq	%rax, %rdi
	callq	_ASSERT
	movq	%rbx, %rdi
	callq	_mmu_topup_memory_caches
	testl	%eax, %eax
	je	LBB0_1
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movl	%r15d, %r13d
	movl	%r14d, %ecx
	sarl	%cl, %r13d
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_smp_rmb
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_mapping_level
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_KVM_PAGES_PER_HPAGE
	movl	%eax, %r14d
	negl	%r14d
	andl	%r13d, %r14d
	movq	(%rbx), %rdi
	movl	%r14d, %esi
	callq	_gfn_to_pfn
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_is_error_pfn
	movq	(%rbx), %rdi
	testq	%rax, %rax
	je	LBB0_2
## %bb.6:
	movl	%r14d, %esi
	movl	%r13d, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kvm_handle_bad_page            ## TAILCALL
LBB0_2:
	addq	$8, %rdi
	callq	_spin_lock
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_mmu_notifier_retry
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	(%rbx), %rdi
	addq	$8, %rdi
	callq	_spin_unlock
	movl	%r13d, %edi
	callq	_kvm_release_pfn_clean
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_3:
	movq	%rbx, %rdi
	callq	_kvm_mmu_free_some_pages
	movq	_PFERR_WRITE_MASK@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	andl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r12d, %ecx
	movl	%r14d, %r8d
	movl	%r13d, %r9d
	callq	___direct_map
	movl	%eax, %r14d
	movq	(%rbx), %rdi
	addq	$8, %rdi
	callq	_spin_unlock
	movl	%r14d, %eax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_PFERR_WRITE_MASK,4,2           ## @PFERR_WRITE_MASK
	.no_dead_strip	_tdp_page_fault
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tdp_page_fault
_tdp_page_fault:                        ; @tdp_page_fault
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	bl	_ASSERT
	ldr	w0, [x19, #8]
	bl	_VALID_PAGE
	bl	_ASSERT
	mov	x0, x19
	bl	_mmu_topup_memory_caches
	cbz	w0, LBB0_2
LBB0_1:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_2:
	asr	w23, w20, w22
	ldr	x8, [x19]
	ldr	x25, [x8]
	bl	_smp_rmb
	mov	x0, x19
	mov	x1, x23
	bl	_mapping_level
	mov	x22, x0
	bl	_KVM_PAGES_PER_HPAGE
	neg	w8, w0
	and	w24, w23, w8
	ldr	x0, [x19]
	mov	x1, x24
	bl	_gfn_to_pfn
	mov	x23, x0
	bl	_is_error_pfn
	mov	x8, x0
	ldr	x0, [x19]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x1, x24
	mov	x2, x23
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_kvm_handle_bad_page
LBB0_4:
	add	x0, x0, #8
	bl	_spin_lock
	mov	x0, x19
	mov	x1, x25
	bl	_mmu_notifier_retry
	cbz	x0, LBB0_6
; %bb.5:
	ldr	x8, [x19]
	add	x0, x8, #8
	bl	_spin_unlock
	mov	x0, x23
	bl	_kvm_release_pfn_clean
	mov	w0, #0
	b	LBB0_1
LBB0_6:
	mov	x0, x19
	bl	_kvm_mmu_free_some_pages
Lloh3:
	adrp	x8, _PFERR_WRITE_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PFERR_WRITE_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w2, w8, w21
	mov	x0, x19
	mov	x1, x20
	mov	x3, x22
	mov	x4, x24
	mov	x5, x23
	bl	___direct_map
	mov	x20, x0
	ldr	x8, [x19]
	add	x0, x8, #8
	bl	_spin_unlock
	mov	x0, x20
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_PFERR_WRITE_MASK,4,2           ; @PFERR_WRITE_MASK
	.no_dead_strip	_tdp_page_fault
.subsections_via_symbols
