	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_gvt_switch_mmio          ## -- Begin function intel_gvt_switch_mmio
	.p2align	4, 0x90
_intel_gvt_switch_mmio:                 ## @intel_gvt_switch_mmio
	.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
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r13
	xorl	%edi, %edi
	movq	%r13, %rax
	orq	%rsi, %rax
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	testq	%r15, %r15
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.3(%rip), %rcx
	cmovneq	%rax, %rcx
	testq	%r13, %r13
	leaq	L_.str.2(%rip), %rdx
	cmovneq	%rax, %rdx
	leaq	L_.str(%rip), %rdi
	movq	%r13, %rbx
	cmoveq	%r15, %rbx
	movl	%r14d, %esi
	callq	_gvt_dbg_render
	movq	(%rbx), %rax
	movq	(%rax), %r12
	movq	_FORCEWAKE_ALL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_intel_uncore_forcewake_get
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_switch_mmio
	movl	(%rbx), %esi
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_intel_uncore_forcewake_put     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"switch ring %d from %s to %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"vGPU"

L_.str.2:                               ## @.str.2
	.asciz	"host"

L_.str.3:                               ## @.str.3
	.asciz	"HOST"

	.comm	_FORCEWAKE_ALL,4,2              ## @FORCEWAKE_ALL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_gvt_switch_mmio          ; -- Begin function intel_gvt_switch_mmio
	.p2align	2
_intel_gvt_switch_mmio:                 ; @intel_gvt_switch_mmio
	.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, x2
	mov	x20, x1
	mov	x21, x0
	orr	x8, x0, x1
	cmp	x8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
	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_2:
Lloh0:
	adrp	x8, l_.str.2@PAGE
Lloh1:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh2:
	adrp	x9, l_.str.1@PAGE
Lloh3:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh4:
	adrp	x10, l_.str.3@PAGE
Lloh5:
	add	x10, x10, l_.str.3@PAGEOFF
	cmp	x20, #0
	csel	x3, x10, x9, eq
	cmp	x21, #0
	csel	x2, x8, x9, eq
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	csel	x22, x20, x21, eq
	mov	x1, x19
	bl	_gvt_dbg_render
	ldr	x8, [x22]
	ldr	x22, [x8]
Lloh8:
	adrp	x23, _FORCEWAKE_ALL@GOTPAGE
Lloh9:
	ldr	x23, [x23, _FORCEWAKE_ALL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x22
	bl	_intel_uncore_forcewake_get
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_switch_mmio
	ldr	w1, [x23]
	mov	x0, x22
	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
	b	_intel_uncore_forcewake_put
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"switch ring %d from %s to %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"vGPU"

l_.str.2:                               ; @.str.2
	.asciz	"host"

l_.str.3:                               ; @.str.3
	.asciz	"HOST"

	.comm	_FORCEWAKE_ALL,4,2              ; @FORCEWAKE_ALL
.subsections_via_symbols
