	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gru_vtop
_gru_vtop:                              ## @gru_vtop
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r13d
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	(%rdi), %rdi
	callq	_find_vma
	movq	_VTOP_INVALID@GOTPCREL(%rip), %r15
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %r14
	xorl	%eax, %eax
	callq	_rmb
	leaq	-56(%rbp), %rcx
	leaq	-44(%rbp), %r8
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_atomic_pte_lookup
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	testl	%r13d, %r13d
	je	LBB0_4
## %bb.3:
	movq	_VTOP_RETRY@GOTPCREL(%rip), %r15
	jmp	LBB0_7
LBB0_4:
	leaq	-56(%rbp), %rcx
	leaq	-44(%rbp), %r8
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_non_atomic_pte_lookup
	testq	%rax, %rax
	jne	LBB0_7
LBB0_5:
	movq	-56(%rbp), %rdi
	callq	_is_gru_paddr
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	-56(%rbp), %rdi
	movb	-44(%rbp), %cl
	shrq	%cl, %rdi
	shlq	%cl, %rdi
	movq	%rdi, -56(%rbp)
	callq	_uv_soc_phys_ram_to_gpa
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movl	-44(%rbp), %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	_VTOP_SUCCESS@GOTPCREL(%rip), %r15
LBB0_7:
	movl	(%r15), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VTOP_SUCCESS,4,2               ## @VTOP_SUCCESS
	.comm	_VTOP_INVALID,4,2               ## @VTOP_INVALID
	.comm	_VTOP_RETRY,4,2                 ## @VTOP_RETRY
	.no_dead_strip	_gru_vtop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gru_vtop
_gru_vtop:                              ; @gru_vtop
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x5
	mov	x20, x4
	mov	x23, x3
	mov	x21, x2
	mov	x22, x1
	ldr	x0, [x0]
	bl	_find_vma
	cbz	x0, LBB0_6
; %bb.1:
	mov	x24, x0
	bl	_rmb
	add	x3, sp, #8
	add	x4, sp, #4
	mov	x0, x24
	mov	x1, x22
	mov	x2, x21
	bl	_atomic_pte_lookup
	cbz	w0, LBB0_5
; %bb.2:
	cbz	w23, LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _VTOP_RETRY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VTOP_RETRY@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
	add	x3, sp, #8
	add	x4, sp, #4
	mov	x0, x24
	mov	x1, x22
	mov	x2, x21
	bl	_non_atomic_pte_lookup
	cbnz	x0, LBB0_6
LBB0_5:
	ldr	x0, [sp, #8]
	bl	_is_gru_paddr
	cbz	x0, LBB0_8
LBB0_6:
Lloh2:
	adrp	x8, _VTOP_INVALID@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VTOP_INVALID@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	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
	add	sp, sp, #80
	ret
LBB0_8:
	ldr	x8, [sp, #8]
	ldr	w9, [sp, #4]
	mov	x10, #-1
	lsl	x9, x10, x9
	and	x0, x9, x8
	str	x0, [sp, #8]
	bl	_uv_soc_phys_ram_to_gpa
	str	x0, [x20]
	ldr	w8, [sp, #4]
	str	w8, [x19]
Lloh4:
	adrp	x8, _VTOP_SUCCESS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _VTOP_SUCCESS@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_VTOP_SUCCESS,4,2               ; @VTOP_SUCCESS
	.comm	_VTOP_INVALID,4,2               ; @VTOP_INVALID
	.comm	_VTOP_RETRY,4,2                 ; @VTOP_RETRY
	.no_dead_strip	_gru_vtop
.subsections_via_symbols
