	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_gvt_register_hypervisor  ## -- Begin function intel_gvt_register_hypervisor
	.p2align	4, 0x90
_intel_gvt_register_hypervisor:         ## @intel_gvt_register_hypervisor
	.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	_intel_gvt_host@GOTPCREL(%rip), %r14
	cmpl	$0, 24(%r14)
	je	LBB0_1
## %bb.3:
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_INTEL_GVT_HYPERVISOR_KVM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.4:
	movq	_INTEL_GVT_HYPERVISOR_XEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_6:
	movq	_THIS_MODULE@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_try_module_get
	testl	%eax, %eax
	je	LBB0_1
## %bb.7:
	movq	%rbx, 16(%r14)
	movq	(%rbx), %rax
	movq	%rax, (%r14)
	movl	8(%r14), %edi
	callq	_kdev_to_i915
	movq	(%rax), %rsi
	movl	8(%r14), %edi
	movq	_intel_gvt_ops@GOTPCREL(%rip), %rdx
	callq	_intel_gvt_hypervisor_host_init
	movq	_supported_hypervisors@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%r14), %rdx
	movl	(%rcx,%rdx,4), %esi
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	leaq	L_.str.1(%rip), %rdi
	callq	_gvt_dbg_core
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str(%rip), %rdi
	callq	_gvt_err
	movl	(%r15), %edi
	callq	_module_put
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_intel_gvt_host,32,3            ## @intel_gvt_host
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_INTEL_GVT_HYPERVISOR_KVM,8,3   ## @INTEL_GVT_HYPERVISOR_KVM
	.comm	_INTEL_GVT_HYPERVISOR_XEN,8,3   ## @INTEL_GVT_HYPERVISOR_XEN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_intel_gvt_ops,4,2              ## @intel_gvt_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to init %s hypervisor module\n"

	.comm	_supported_hypervisors,8,3      ## @supported_hypervisors
L_.str.1:                               ## @.str.1
	.asciz	"Running with hypervisor %s in host mode\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_gvt_register_hypervisor  ; -- Begin function intel_gvt_register_hypervisor
	.p2align	2
_intel_gvt_register_hypervisor:         ; @intel_gvt_register_hypervisor
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x20, _intel_gvt_host@GOTPAGE
Lloh1:
	ldr	x20, [x20, _intel_gvt_host@GOTPAGEOFF]
	ldr	w8, [x20, #24]
	cbz	w8, LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
Lloh2:
	adrp	x9, _INTEL_GVT_HYPERVISOR_KVM@GOTPAGE
Lloh3:
	ldr	x9, [x9, _INTEL_GVT_HYPERVISOR_KVM@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x10, _INTEL_GVT_HYPERVISOR_XEN@GOTPAGE
Lloh6:
	ldr	x10, [x10, _INTEL_GVT_HYPERVISOR_XEN@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_5
; %bb.2:
Lloh8:
	adrp	x21, _THIS_MODULE@GOTPAGE
Lloh9:
	ldr	x21, [x21, _THIS_MODULE@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_try_module_get
	cbz	w0, LBB0_7
; %bb.3:
	str	x19, [x20, #16]
	ldr	x8, [x19]
	str	x8, [x20]
	ldr	w0, [x20, #8]
	bl	_kdev_to_i915
	ldr	x1, [x0]
	ldr	w0, [x20, #8]
Lloh10:
	adrp	x2, _intel_gvt_ops@GOTPAGE
Lloh11:
	ldr	x2, [x2, _intel_gvt_ops@GOTPAGEOFF]
	bl	_intel_gvt_hypervisor_host_init
Lloh12:
	adrp	x8, _supported_hypervisors@GOTPAGE
Lloh13:
	ldr	x8, [x8, _supported_hypervisors@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	x9, [x20]
	ldr	w1, [x8, x9, lsl #2]
	tbnz	w0, #31, LBB0_6
; %bb.4:
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_gvt_dbg_core
	mov	w0, #0
	b	LBB0_9
LBB0_5:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh19:
	adrp	x0, l_.str@PAGE
Lloh20:
	add	x0, x0, l_.str@PAGEOFF
	bl	_gvt_err
	ldr	w0, [x21]
	bl	_module_put
LBB0_7:
Lloh21:
	adrp	x8, _ENODEV@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_intel_gvt_host,32,3            ; @intel_gvt_host
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_INTEL_GVT_HYPERVISOR_KVM,8,3   ; @INTEL_GVT_HYPERVISOR_KVM
	.comm	_INTEL_GVT_HYPERVISOR_XEN,8,3   ; @INTEL_GVT_HYPERVISOR_XEN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_intel_gvt_ops,4,2              ; @intel_gvt_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to init %s hypervisor module\n"

	.comm	_supported_hypervisors,8,3      ; @supported_hypervisors
l_.str.1:                               ; @.str.1
	.asciz	"Running with hypervisor %s in host mode\n"

.subsections_via_symbols
