	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function non_atomic_pte_lookup
_non_atomic_pte_lookup:                 ## @non_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rcx, %r14
	movq	%rsi, %rdi
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r8)
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	movq	_FOLL_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_2:
	xorl	%ebx, %ebx
	leaq	-24(%rbp), %rcx
	movl	$1, %esi
	xorl	%r8d, %r8d
	callq	_get_user_pages
	testq	%rax, %rax
	jle	LBB0_3
## %bb.4:
	movq	-24(%rbp), %rdi
	callq	_page_to_phys
	movq	%rax, (%r14)
	movq	-24(%rbp), %rdi
	callq	_put_page
	jmp	LBB0_5
LBB0_3:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_FOLL_WRITE,4,2                 ## @FOLL_WRITE
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_HPAGE_SHIFT,4,2                ## @HPAGE_SHIFT
	.no_dead_strip	_non_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 non_atomic_pte_lookup
_non_atomic_pte_lookup:                 ; @non_atomic_pte_lookup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x3
	mov	x0, x1
Lloh0:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x4]
Lloh3:
	adrp	x8, _FOLL_WRITE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FOLL_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w2, #0
	csel	w2, wzr, w8, eq
	add	x3, sp, #8
	mov	w1, #1
	mov	x4, #0
	bl	_get_user_pages
	cmp	x0, #0
	b.le	LBB0_2
; %bb.1:
	ldr	x0, [sp, #8]
	bl	_page_to_phys
	str	x0, [x19]
	ldr	x0, [sp, #8]
	bl	_put_page
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _EFAULT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_FOLL_WRITE,4,2                 ; @FOLL_WRITE
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_HPAGE_SHIFT,4,2                ; @HPAGE_SHIFT
	.no_dead_strip	_non_atomic_pte_lookup
.subsections_via_symbols
