	.file	"extr_nv10.c_nv10_graph_context_fini.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	nv10_graph_context_fini, @function
nv10_graph_context_fini:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, esi
	xor	esi, esi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	r12, QWORD PTR [rdi]
	mov	rbp, rdi
	mov	rdi, r12
	call	spin_lock_irqsave@PLT
	mov	esi, DWORD PTR NV04_PGRAPH_FIFO[rip]
	xor	ecx, ecx
	mov	rdi, r12
	mov	edx, 1
	call	nv_mask@PLT
	mov	rdi, r12
	call	nv10_graph_channel@PLT
	cmp	rbp, rax
	je	.L5
.L2:
	mov	esi, DWORD PTR NV04_PGRAPH_FIFO[rip]
	mov	rdi, r12
	mov	ecx, 1
	mov	edx, 1
	call	nv_mask@PLT
	mov	rdi, r12
	xor	esi, esi
	call	spin_unlock_irqrestore@PLT
	mov	esi, r13d
	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_object_fini@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rdi, rbp
	call	nv10_graph_unload_context@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	nv10_graph_context_fini, .-nv10_graph_context_fini
	.comm	NV04_PGRAPH_FIFO,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_nv10.c_nv10_graph_context_fini.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nv10_graph_context_fini, %function
nv10_graph_context_fini:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r5, [r0]
	ldr	r7, .L6
	mov	r4, r0
	mov	r6, r1
	mov	r0, r5
	mov	r1, #0
	bl	spin_lock_irqsave
	mov	r3, #0
	mov	r2, #1
	ldr	r1, [r7]
	mov	r0, r5
	bl	nv_mask
	mov	r0, r5
	bl	nv10_graph_channel
	cmp	r4, r0
	beq	.L5
.L2:
	mov	r3, #1
	ldr	r1, [r7]
	mov	r2, r3
	mov	r0, r5
	bl	nv_mask
	mov	r0, r5
	mov	r1, #0
	bl	spin_unlock_irqrestore
	mov	r1, r6
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	nouveau_object_fini
.L5:
	bl	nv10_graph_unload_context
	b	.L2
.L7:
	.align	2
.L6:
	.word	NV04_PGRAPH_FIFO
	.size	nv10_graph_context_fini, .-nv10_graph_context_fini
	.comm	NV04_PGRAPH_FIFO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
