	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_enter_failsafe_mode            ## -- Begin function enter_failsafe_mode
	.p2align	4, 0x90
_enter_failsafe_mode:                   ## @enter_failsafe_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	addl	$-128, %esi
	cmpl	$2, %esi
	ja	LBB0_2
## %bb.1:
	movslq	%esi, %rax
	leaq	l_reltable.enter_failsafe_mode(%rip), %rcx
	movslq	(%rcx,%rax,4), %rdi
	addq	%rcx, %rdi
	xorl	%eax, %eax
	callq	_pr_err
LBB0_2:
	movl	4(%rbx), %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	movl	$1, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Detected your guest driver doesn't support GVT-g.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Graphics resource is not enough for the guest\n"

L_.str.2:                               ## @.str.2
	.asciz	"GVT Internal error  for the guest\n"

L_.str.3:                               ## @.str.3
	.asciz	"Now vgpu %d will enter failsafe mode.\n"

	.section	__TEXT,__const
	.p2align	2                               ## @reltable.enter_failsafe_mode
l_reltable.enter_failsafe_mode:
	.long	L_.str-l_reltable.enter_failsafe_mode
	.long	L_.str.1-l_reltable.enter_failsafe_mode
	.long	L_.str.2-l_reltable.enter_failsafe_mode

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_enter_failsafe_mode            ; -- Begin function enter_failsafe_mode
	.p2align	2
_enter_failsafe_mode:                   ; @enter_failsafe_mode
	.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, x0
	sub	w8, w1, #128
	cmp	w8, #2
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, l_switch.table.enter_failsafe_mode@PAGE
Lloh1:
	add	x9, x9, l_switch.table.enter_failsafe_mode@PAGEOFF
	ldr	x0, [x9, w8, sxtw #3]
	bl	_pr_err
LBB0_2:
	ldr	w8, [x19, #4]
	str	x8, [sp]
Lloh2:
	adrp	x0, l_.str.3@PAGE
Lloh3:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_err
	mov	w8, #1
	str	w8, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Detected your guest driver doesn't support GVT-g.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Graphics resource is not enough for the guest\n"

l_.str.2:                               ; @.str.2
	.asciz	"GVT Internal error  for the guest\n"

l_.str.3:                               ; @.str.3
	.asciz	"Now vgpu %d will enter failsafe mode.\n"

	.section	__DATA,__const
	.p2align	3                               ; @switch.table.enter_failsafe_mode
l_switch.table.enter_failsafe_mode:
	.quad	l_.str
	.quad	l_.str.1
	.quad	l_.str.2

.subsections_via_symbols
