	.file	"extr_nv04.c_nv04_vmmgr_dtor.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	nv04_vmmgr_dtor
	.type	nv04_vmmgr_dtor, @function
nv04_vmmgr_dtor:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rax, QWORD PTR 16[rdi]
	mov	rbp, rdi
	test	rax, rax
	je	.L2
	mov	rax, QWORD PTR [rax]
	xor	edi, edi
	mov	rsi, QWORD PTR [rax]
	call	nouveau_gpuobj_ref@PLT
	lea	rsi, 16[rbp]
	xor	edx, edx
	xor	edi, edi
	call	nouveau_vm_ref@PLT
.L2:
	mov	r12, QWORD PTR 8[rbp]
	test	r12, r12
	jne	.L12
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	nouveau_vmmgr_destroy@PLT
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rdi, rbp
	mov	r13d, DWORD PTR 4[rbp]
	call	nv_device@PLT
	mov	rdx, r12
	mov	esi, 16384
	mov	edi, DWORD PTR [rax]
	mov	ecx, r13d
	call	pci_free_consistent@PLT
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	nouveau_vmmgr_destroy@PLT
	.cfi_endproc
.LFE0:
	.size	nv04_vmmgr_dtor, .-nv04_vmmgr_dtor
	.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_nv04.c_nv04_vmmgr_dtor.c"
	.text
	.align	2
	.global	nv04_vmmgr_dtor
	.syntax unified
	.arm
	.fpu softvfp
	.type	nv04_vmmgr_dtor, %function
nv04_vmmgr_dtor:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #12]
	push	{r4, lr}
	cmp	r3, #0
	mov	r4, r0
	beq	.L2
	ldr	r3, [r3]
	mov	r0, #0
	ldr	r1, [r3]
	bl	nouveau_gpuobj_ref
	mov	r2, #0
	add	r1, r4, #12
	mov	r0, r2
	bl	nouveau_vm_ref
.L2:
	ldr	r3, [r4, #8]
	cmp	r3, #0
	bne	.L12
	mov	r0, r4
	pop	{r4, lr}
	b	nouveau_vmmgr_destroy
.L12:
	mov	r0, r4
	bl	nv_device
	ldr	r3, [r4, #4]
	ldr	r2, [r4, #8]
	mov	r1, #16384
	ldr	r0, [r0]
	bl	pci_free_consistent
	mov	r0, r4
	pop	{r4, lr}
	b	nouveau_vmmgr_destroy
	.size	nv04_vmmgr_dtor, .-nv04_vmmgr_dtor
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
