	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atomic_pte_lookup
_atomic_pte_lookup:                     ## @atomic_pte_lookup
	.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
	movq	%r8, %r15
	movq	%rcx, %r12
	movl	%edx, %r13d
	movq	%rsi, %rbx
	movl	(%rdi), %edi
	callq	_pgd_offset
	movq	%rax, %r14
	movl	(%rax), %edi
	callq	_pgd_none
	movl	%eax, %edi
	callq	_unlikely
	movl	$1, %ecx
	testq	%rax, %rax
	jne	LBB0_13
## %bb.1:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_p4d_offset
	movq	%rax, %r14
	movl	(%rax), %edi
	callq	_p4d_none
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_pud_offset
	movq	%rax, %r14
	movl	(%rax), %edi
	callq	_pud_none
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
LBB0_2:
	movl	$1, %ecx
LBB0_13:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_pmd_offset
	movq	%rax, %r14
	movl	(%rax), %edi
	callq	_pmd_none
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	movl	$1, %ecx
	jne	LBB0_13
## %bb.6:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_pte_offset_kernel
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_pte_present
	movl	$1, %edi
	testl	%eax, %eax
	je	LBB0_11
## %bb.7:
	testl	%r13d, %r13d
	je	LBB0_10
## %bb.8:
	movl	%ebx, %edi
	callq	_pte_write
	movl	$1, %edi
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:
	movl	%ebx, %edi
	callq	_pte_dirty
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	jmp	LBB0_11
LBB0_10:
	xorl	%edi, %edi
LBB0_11:
	callq	_unlikely
	testq	%rax, %rax
	movl	$1, %ecx
	jne	LBB0_13
## %bb.12:
	movl	%ebx, %edi
	callq	_pte_pfn
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shll	%cl, %eax
	cltq
	movq	%rax, (%r12)
	movl	%ecx, (%r15)
	xorl	%ecx, %ecx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_HPAGE_SHIFT,4,2                ## @HPAGE_SHIFT
	.no_dead_strip	_atomic_pte_lookup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atomic_pte_lookup
_atomic_pte_lookup:                     ; @atomic_pte_lookup
	.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	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	ldr	w0, [x0]
	bl	_pgd_offset
	mov	x23, x0
	ldr	w0, [x0]
	bl	_pgd_none
	bl	_unlikely
	cbnz	x0, LBB0_11
; %bb.1:
	mov	x0, x23
	mov	x1, x22
	bl	_p4d_offset
	mov	x23, x0
	ldr	w0, [x0]
	bl	_p4d_none
	bl	_unlikely
	cbnz	x0, LBB0_11
; %bb.2:
	mov	x0, x23
	mov	x1, x22
	bl	_pud_offset
	mov	x23, x0
	ldr	w0, [x0]
	bl	_pud_none
	bl	_unlikely
	cbnz	x0, LBB0_11
; %bb.3:
	mov	x0, x23
	mov	x1, x22
	bl	_pmd_offset
	mov	x23, x0
	ldr	w0, [x0]
	bl	_pmd_none
	bl	_unlikely
	cbnz	x0, LBB0_11
; %bb.4:
	mov	x0, x23
	mov	x1, x22
	bl	_pte_offset_kernel
	ldr	w22, [x0]
	mov	x0, x22
	bl	_pte_present
	cbz	w0, LBB0_8
; %bb.5:
	cbz	w21, LBB0_9
; %bb.6:
	mov	x0, x22
	bl	_pte_write
	cbz	w0, LBB0_8
; %bb.7:
	mov	x0, x22
	bl	_pte_dirty
	cmp	w0, #0
	cset	w0, eq
	b	LBB0_10
LBB0_8:
	mov	w0, #1
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	bl	_unlikely
	cbz	x0, LBB0_13
LBB0_11:
	mov	w0, #1
LBB0_12:
	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
LBB0_13:
	mov	x0, x22
	bl	_pte_pfn
	mov	x8, x0
	mov	w0, #0
Lloh0:
	adrp	x9, _PAGE_SHIFT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PAGE_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	sxtw	x8, w8
	str	x8, [x20]
	str	w9, [x19]
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_HPAGE_SHIFT,4,2                ; @HPAGE_SHIFT
	.no_dead_strip	_atomic_pte_lookup
.subsections_via_symbols
