	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gtt_get_entry64
_gtt_get_entry64:                       ## @gtt_get_entry64
	.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
	movq	%r9, %rbx
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	(%r9), %r12
	xorl	%edi, %edi
	cmpl	$8, 8(%r12)
	setne	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_2:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_4
## %bb.3:
	movb	16(%r12), %cl
	shlq	%cl, %r15
	addq	%rax, %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	movl	$8, %ecx
	callq	_intel_gvt_hypervisor_read_gpa
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_9
	jmp	LBB0_8
LBB0_4:
	testq	%r14, %r14
	je	LBB0_5
## %bb.6:
	movl	(%r14,%r15,4), %eax
	jmp	LBB0_7
LBB0_5:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_read_pte64
LBB0_7:
	movl	%eax, (%r13)
LBB0_8:
	xorl	%ebx, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_gtt_get_entry64
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gtt_get_entry64
_gtt_get_entry64:                       ; @gtt_get_entry64
	.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	x20, x5
	mov	x22, x4
	mov	x24, x3
	mov	x21, x2
	mov	x19, x1
	mov	x23, x0
	ldr	x25, [x5]
	ldr	w8, [x25, #8]
	cmp	w8, #8
	cset	w0, ne
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_9
LBB0_2:
	cbz	w24, LBB0_4
; %bb.3:
	ldr	x8, [x25, #16]
	lsl	x8, x21, x8
	add	x1, x8, x22
	mov	x0, x20
	mov	x2, x19
	mov	w3, #8
	bl	_intel_gvt_hypervisor_read_gpa
	mov	x19, x0
	bl	_WARN_ON
	cbnz	x0, LBB0_9
	b	LBB0_8
LBB0_4:
	cbz	x23, LBB0_6
; %bb.5:
	ldr	w0, [x23, x21, lsl #2]
	b	LBB0_7
LBB0_6:
	ldr	x8, [x20]
	ldr	w0, [x8]
	mov	x1, x21
	bl	_read_pte64
LBB0_7:
	str	w0, [x19]
LBB0_8:
	mov	w19, #0
LBB0_9:
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_gtt_get_entry64
.subsections_via_symbols
