	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_gvt_init_device          ## -- Begin function intel_gvt_init_device
	.p2align	4, 0x90
_intel_gvt_init_device:                 ## @intel_gvt_init_device
	.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	%rdi, %r14
	movq	8(%rdi), %rdi
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_EEXIST@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_28
LBB0_3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	leaq	L_.str(%rip), %rdi
	callq	_gvt_dbg_core
	movq	%r15, %rdi
	callq	_idr_init
	leaq	32(%r15), %rdi
	callq	_spin_lock_init
	leaq	28(%r15), %rdi
	callq	_mutex_init
	movq	%r15, %rdi
	addq	$24, %rdi
	callq	_mutex_init
	movq	%r14, 16(%r15)
	movq	%r15, %rdi
	callq	_init_device_info
	movq	%r15, %rdi
	callq	_intel_gvt_setup_mmio_info
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_27
## %bb.6:
	movq	%r15, %rdi
	callq	_intel_gvt_init_engine_mmio_context
	movq	%r15, %rdi
	callq	_intel_gvt_load_firmware
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_26
## %bb.7:
	movq	%r15, %rdi
	callq	_intel_gvt_init_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_25
## %bb.8:
	movq	%r15, %rdi
	callq	_intel_gvt_init_gtt
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_24
## %bb.9:
	movq	%r15, %rdi
	callq	_intel_gvt_init_workload_scheduler
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_23
## %bb.10:
	movq	%r15, %rdi
	callq	_intel_gvt_init_sched_policy
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_22
## %bb.11:
	movq	%r15, %rdi
	callq	_intel_gvt_init_cmd_parser
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_21
## %bb.12:
	movq	%r15, %rdi
	callq	_init_service_thread
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.13:
	movq	%r15, %rdi
	callq	_intel_gvt_init_vgpu_types
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.14:
	movq	%r15, %rdi
	callq	_intel_gvt_init_vgpu_type_groups
	testl	%eax, %eax
	je	LBB0_15
## %bb.16:
	movq	%r15, %rdi
	callq	_intel_gvt_create_idle_vgpu
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_29
## %bb.17:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_gvt_err
	jmp	LBB0_18
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_15:
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	xorl	%eax, %eax
	callq	_gvt_err
LBB0_18:
	movq	%r15, %rdi
	callq	_intel_gvt_clean_vgpu_types
LBB0_19:
	movq	%r15, %rdi
	callq	_clean_service_thread
LBB0_20:
	movq	%r15, %rdi
	callq	_intel_gvt_clean_cmd_parser
LBB0_21:
	movq	%r15, %rdi
	callq	_intel_gvt_clean_sched_policy
LBB0_22:
	movq	%r15, %rdi
	callq	_intel_gvt_clean_workload_scheduler
LBB0_23:
	movq	%r15, %rdi
	callq	_intel_gvt_clean_gtt
LBB0_24:
	movq	%r15, %rdi
	callq	_intel_gvt_clean_irq
LBB0_25:
	movq	%r15, %rdi
	callq	_intel_gvt_free_firmware
LBB0_26:
	movq	%r15, %rdi
	callq	_intel_gvt_clean_mmio_info
LBB0_27:
	movq	%r15, %rdi
	callq	_idr_destroy
	movq	%r15, %rdi
	callq	_kfree
LBB0_28:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	movq	%rbx, 8(%r15)
	movq	%r15, %rdi
	callq	_intel_gvt_debugfs_init
	leaq	L_.str.3(%rip), %rdi
	callq	_gvt_dbg_core
	movq	%r15, 8(%r14)
	movq	(%r14), %rax
	movq	_intel_gvt_host@GOTPCREL(%rip), %rcx
	movq	%rax, 8(%rcx)
	movl	$1, (%rcx)
	xorl	%ebx, %ebx
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_EEXIST,4,2                     ## @EEXIST
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"init gvt device\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to init vgpu type groups: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to create idle vgpu\n"

L_.str.3:                               ## @.str.3
	.asciz	"gvt device initialization is done\n"

	.comm	_intel_gvt_host,16,3            ## @intel_gvt_host
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_gvt_init_device          ; -- Begin function intel_gvt_init_device
	.p2align	2
_intel_gvt_init_device:                 ; @intel_gvt_init_device
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x0
	ldr	x0, [x0, #8]
	bl	_WARN_ON
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _EEXIST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_28
LBB0_3:
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_16
; %bb.4:
	mov	x19, x0
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_gvt_dbg_core
	mov	x0, x19
	bl	_idr_init
	add	x0, x19, #32
	bl	_spin_lock_init
	add	x0, x19, #28
	bl	_mutex_init
	add	x0, x19, #24
	bl	_mutex_init
	str	x20, [x19, #16]
	mov	x0, x19
	bl	_init_device_info
	mov	x0, x19
	bl	_intel_gvt_setup_mmio_info
	mov	x21, x0
	cbnz	w0, LBB0_27
; %bb.5:
	mov	x0, x19
	bl	_intel_gvt_init_engine_mmio_context
	mov	x0, x19
	bl	_intel_gvt_load_firmware
	mov	x21, x0
	cbnz	w0, LBB0_26
; %bb.6:
	mov	x0, x19
	bl	_intel_gvt_init_irq
	mov	x21, x0
	cbnz	w0, LBB0_25
; %bb.7:
	mov	x0, x19
	bl	_intel_gvt_init_gtt
	mov	x21, x0
	cbnz	w0, LBB0_24
; %bb.8:
	mov	x0, x19
	bl	_intel_gvt_init_workload_scheduler
	mov	x21, x0
	cbnz	w0, LBB0_23
; %bb.9:
	mov	x0, x19
	bl	_intel_gvt_init_sched_policy
	mov	x21, x0
	cbnz	w0, LBB0_22
; %bb.10:
	mov	x0, x19
	bl	_intel_gvt_init_cmd_parser
	mov	x21, x0
	cbnz	w0, LBB0_21
; %bb.11:
	mov	x0, x19
	bl	_init_service_thread
	mov	x21, x0
	cbnz	w0, LBB0_20
; %bb.12:
	mov	x0, x19
	bl	_intel_gvt_init_vgpu_types
	mov	x21, x0
	cbnz	w0, LBB0_19
; %bb.13:
	mov	x0, x19
	bl	_intel_gvt_init_vgpu_type_groups
	cbz	w0, LBB0_17
; %bb.14:
	mov	x0, x19
	bl	_intel_gvt_create_idle_vgpu
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_29
; %bb.15:
	mov	x0, x21
	bl	_PTR_ERR
	mov	x21, x0
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_gvt_err
	b	LBB0_18
LBB0_16:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
LBB0_17:
	str	xzr, [sp]
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_gvt_err
	mov	w21, #0
LBB0_18:
	mov	x0, x19
	bl	_intel_gvt_clean_vgpu_types
LBB0_19:
	mov	x0, x19
	bl	_clean_service_thread
LBB0_20:
	mov	x0, x19
	bl	_intel_gvt_clean_cmd_parser
LBB0_21:
	mov	x0, x19
	bl	_intel_gvt_clean_sched_policy
LBB0_22:
	mov	x0, x19
	bl	_intel_gvt_clean_workload_scheduler
LBB0_23:
	mov	x0, x19
	bl	_intel_gvt_clean_gtt
LBB0_24:
	mov	x0, x19
	bl	_intel_gvt_clean_irq
LBB0_25:
	mov	x0, x19
	bl	_intel_gvt_free_firmware
LBB0_26:
	mov	x0, x19
	bl	_intel_gvt_clean_mmio_info
LBB0_27:
	mov	x0, x19
	bl	_idr_destroy
	mov	x0, x19
	bl	_kfree
LBB0_28:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
LBB0_29:
	str	x21, [x19, #8]
	mov	x0, x19
	bl	_intel_gvt_debugfs_init
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_gvt_dbg_core
	mov	w21, #0
	str	x19, [x20, #8]
	ldr	x8, [x20]
Lloh15:
	adrp	x9, _intel_gvt_host@GOTPAGE
Lloh16:
	ldr	x9, [x9, _intel_gvt_host@GOTPAGEOFF]
	str	x8, [x9, #8]
	mov	w8, #1
	str	w8, [x9]
	b	LBB0_28
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EEXIST,4,2                     ; @EEXIST
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"init gvt device\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to init vgpu type groups: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to create idle vgpu\n"

l_.str.3:                               ; @.str.3
	.asciz	"gvt device initialization is done\n"

	.comm	_intel_gvt_host,16,3            ; @intel_gvt_host
.subsections_via_symbols
