	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vpif_uservirt_to_phys
_vpif_uservirt_to_phys:                 ## @vpif_uservirt_to_phys
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_current@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	(%rax), %rdi
	movq	%rbx, %rsi
	callq	_find_vma
	movq	_PAGE_OFFSET@GOTPCREL(%rip), %rcx
	cmpq	%rbx, (%rcx)
	jbe	LBB0_9
## %bb.1:
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	_VM_IO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_5
## %bb.3:
	movq	8(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.4:
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, %rdx
	subq	16(%rax), %rbx
	addq	%rdx, %rbx
	jmp	LBB0_8
LBB0_9:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_virt_to_phys                   ## TAILCALL
LBB0_5:
	movq	(%r15), %rax
	movq	(%rax), %rdi
	callq	_down_read
	movq	(%r15), %rdi
	movq	(%rdi), %rsi
	leaq	-32(%rbp), %rax
	movq	%rbx, %rdx
	movl	$1, %ecx
	movl	$1, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	%rax
	callq	_get_user_pages
	addq	$16, %rsp
	movl	%eax, %r14d
	movq	(%r15), %rax
	movq	(%rax), %rdi
	callq	_up_read
	cmpl	$1, %r14d
	jne	LBB0_7
## %bb.6:
	movq	-32(%rbp), %rdi
	callq	_page_address
	movq	_PAGE_MASK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	notq	%rdi
	andq	%rbx, %rdi
	addq	%rax, %rdi
	callq	___pa
	movq	%rax, %rbx
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str(%rip), %rdi
	callq	_vpif_err
	xorl	%ebx, %ebx
LBB0_8:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_current,8,3                    ## @current
	.comm	_PAGE_OFFSET,8,3                ## @PAGE_OFFSET
	.comm	_VM_IO,4,2                      ## @VM_IO
	.comm	_PAGE_SHIFT,8,3                 ## @PAGE_SHIFT
	.comm	_PAGE_MASK,8,3                  ## @PAGE_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"get_user_pages failed\n"

	.no_dead_strip	_vpif_uservirt_to_phys
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vpif_uservirt_to_phys
_vpif_uservirt_to_phys:                 ; @vpif_uservirt_to_phys
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _current@GOTPAGE
Lloh1:
	ldr	x21, [x21, _current@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x0, [x8]
	mov	x1, x19
	bl	_find_vma
Lloh2:
	adrp	x8, _PAGE_OFFSET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PAGE_OFFSET@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x8, x19
	b.ls	LBB0_5
; %bb.1:
	cbz	x0, LBB0_6
; %bb.2:
	ldr	w8, [x0]
Lloh5:
	adrp	x9, _VM_IO@GOTPAGE
Lloh6:
	ldr	x9, [x9, _VM_IO@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.3:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_6
; %bb.4:
Lloh8:
	adrp	x9, _PAGE_SHIFT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PAGE_SHIFT@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	lsl	x8, x8, x9
	ldr	x9, [x0, #16]
	sub	x9, x19, x9
	add	x0, x9, x8
	b	LBB0_9
LBB0_5:
	mov	x0, x19
	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
	add	sp, sp, #64
	b	_virt_to_phys
LBB0_6:
	ldr	x8, [x21]
	ldr	x0, [x8]
	bl	_down_read
	ldr	x0, [x21]
	ldr	x1, [x0]
	add	x6, sp, #8
	mov	x2, x19
	mov	w3, #1
	mov	w4, #1
	mov	w5, #0
	mov	x7, #0
	bl	_get_user_pages
	mov	x20, x0
	ldr	x8, [x21]
	ldr	x0, [x8]
	bl	_up_read
	cmp	w20, #1
	b.ne	LBB0_8
; %bb.7:
	ldr	x0, [sp, #8]
	bl	_page_address
Lloh11:
	adrp	x8, _PAGE_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PAGE_MASK@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	bic	x8, x19, x8
	add	x0, x8, x0
	bl	___pa
	b	LBB0_9
LBB0_8:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_vpif_err
	mov	x0, #0
LBB0_9:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_current,8,3                    ; @current
	.comm	_PAGE_OFFSET,8,3                ; @PAGE_OFFSET
	.comm	_VM_IO,4,2                      ; @VM_IO
	.comm	_PAGE_SHIFT,8,3                 ; @PAGE_SHIFT
	.comm	_PAGE_MASK,8,3                  ; @PAGE_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"get_user_pages failed\n"

	.no_dead_strip	_vpif_uservirt_to_phys
.subsections_via_symbols
