	.file	"extr_kvmgt.c_intel_vgpu_open.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"vfio_register_notifier for iommu failed: %d\n"
	.align 8
.LC1:
	.string	"vfio_register_notifier for group failed: %d\n"
	.text
	.p2align 4
	.type	intel_vgpu_open, @function
intel_vgpu_open:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	r15, rsp
	call	mdev_get_drvdata@PLT
	mov	r12d, DWORD PTR VFIO_IOMMU_NOTIFY[rip]
	mov	rdi, rbp
	mov	r13, rax
	mov	eax, DWORD PTR intel_vgpu_iommu_notifier[rip]
	mov	DWORD PTR 0[r13], eax
	mov	eax, DWORD PTR intel_vgpu_group_notifier[rip]
	mov	DWORD PTR 4[r13], eax
	mov	rax, QWORD PTR VFIO_IOMMU_NOTIFY_DMA_UNMAP[rip]
	mov	QWORD PTR [rsp], rax
	call	mdev_dev@PLT
	mov	rcx, r13
	mov	rdx, r15
	mov	esi, r12d
	mov	edi, eax
	call	vfio_register_notifier@PLT
	test	eax, eax
	jne	.L13
	mov	rax, QWORD PTR VFIO_GROUP_NOTIFY_SET_KVM[rip]
	mov	r12d, DWORD PTR VFIO_GROUP_NOTIFY[rip]
	mov	rdi, rbp
	lea	r14, 4[r13]
	mov	QWORD PTR [rsp], rax
	call	mdev_dev@PLT
	mov	esi, r12d
	mov	rcx, r14
	mov	rdx, r15
	mov	edi, eax
	call	vfio_register_notifier@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L14
	mov	edi, DWORD PTR THIS_MODULE[rip]
	call	try_module_get@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L6
	mov	rdi, rbp
	call	kvmgt_guest_init@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L6
	mov	rax, QWORD PTR intel_gvt_ops[rip]
	mov	rdi, r13
	call	[QWORD PTR [rax]]
	lea	rdi, 8[r13]
	xor	esi, esi
	call	atomic_set@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	esi, eax
	lea	rdi, .LC1[rip]
	call	gvt_vgpu_err@PLT
.L5:
	mov	r14d, DWORD PTR VFIO_IOMMU_NOTIFY[rip]
	mov	rdi, rbp
	call	mdev_dev@PLT
	mov	rdx, r13
	mov	edi, eax
	mov	esi, r14d
	call	vfio_unregister_notifier@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	r15d, DWORD PTR VFIO_GROUP_NOTIFY[rip]
	mov	rdi, rbp
	call	mdev_dev@PLT
	mov	rdx, r14
	mov	edi, eax
	mov	esi, r15d
	call	vfio_unregister_notifier@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L13:
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	r12d, eax
	call	gvt_vgpu_err@PLT
	jmp	.L1
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	intel_vgpu_open, .-intel_vgpu_open
	.comm	intel_vgpu_iommu_notifier,4,4
	.comm	intel_vgpu_group_notifier,4,4
	.comm	intel_gvt_ops,8,8
	.comm	VFIO_IOMMU_NOTIFY_DMA_UNMAP,8,8
	.comm	VFIO_IOMMU_NOTIFY,4,4
	.comm	VFIO_GROUP_NOTIFY_SET_KVM,8,8
	.comm	VFIO_GROUP_NOTIFY,4,4
	.comm	THIS_MODULE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_kvmgt.c_intel_vgpu_open.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"vfio_register_notifier for iommu failed: %d\012\000"
	.align	2
.LC1:
	.ascii	"vfio_register_notifier for group failed: %d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	intel_vgpu_open, %function
intel_vgpu_open:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L16
	sub	sp, sp, #12
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r6, r0
	bl	mdev_get_drvdata
	mov	r5, r0
	ldr	r1, .L16+4
	ldr	r2, .L16+8
	ldr	r3, .L16+12
	ldr	r1, [r1]
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r7, .L16+16
	stm	r0, {r1, r2}
	mov	r0, r6
	str	r3, [sp]
	bl	mdev_dev
	mov	r3, r5
	mov	r2, sp
	ldr	r1, [r7]
	bl	vfio_register_notifier
	subs	r4, r0, #0
	bne	.L13
	ldr	r3, .L16+20
	ldr	r8, .L16+24
	ldr	r3, [r3]
	mov	r0, r6
	add	r9, r5, #4
	str	r3, [sp]
	bl	mdev_dev
	mov	r2, sp
	mov	r3, r9
	ldr	r1, [r8]
	bl	vfio_register_notifier
	subs	r4, r0, #0
	bne	.L14
	ldr	r3, .L16+28
	ldr	r0, [r3]
	bl	try_module_get
	subs	r4, r0, #0
	beq	.L6
	mov	r0, r6
	bl	kvmgt_guest_init
	subs	r4, r0, #0
	bne	.L6
	ldr	r3, .L16+32
	mov	r0, r5
	ldr	r3, [r3]
	ldr	r3, [r3]
	blx	r3
	mov	r1, r4
	add	r0, r5, #8
	bl	atomic_set
	b	.L1
.L14:
	mov	r1, r4
	ldr	r0, .L16+36
	bl	gvt_vgpu_err
.L5:
	mov	r0, r6
	bl	mdev_dev
	mov	r2, r5
	ldr	r1, [r7]
	bl	vfio_unregister_notifier
.L1:
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L6:
	mov	r0, r6
	bl	mdev_dev
	mov	r2, r9
	ldr	r1, [r8]
	bl	vfio_unregister_notifier
	b	.L5
.L13:
	mov	r1, r4
	ldr	r0, .L16+40
	bl	gvt_vgpu_err
	b	.L1
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC2
	.word	intel_vgpu_iommu_notifier
	.word	intel_vgpu_group_notifier
	.word	VFIO_IOMMU_NOTIFY_DMA_UNMAP
	.word	VFIO_IOMMU_NOTIFY
	.word	VFIO_GROUP_NOTIFY_SET_KVM
	.word	VFIO_GROUP_NOTIFY
	.word	THIS_MODULE
	.word	intel_gvt_ops
	.word	.LC1
	.word	.LC0
	.size	intel_vgpu_open, .-intel_vgpu_open
	.comm	intel_vgpu_iommu_notifier,4,4
	.comm	intel_vgpu_group_notifier,4,4
	.comm	intel_gvt_ops,4,4
	.comm	VFIO_IOMMU_NOTIFY_DMA_UNMAP,4,4
	.comm	VFIO_IOMMU_NOTIFY,4,4
	.comm	VFIO_GROUP_NOTIFY_SET_KVM,4,4
	.comm	VFIO_GROUP_NOTIFY,4,4
	.comm	THIS_MODULE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
