	.file	"extr_nouveau_bo.c_nvc0_bo_move_m2mf.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	nvc0_bo_move_m2mf, @function
nvc0_bo_move_m2mf:
.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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR 8[rdx]
	mov	ebp, DWORD PTR [rcx]
	mov	rax, QWORD PTR [rax]
	mov	r13d, DWORD PTR [rax]
	mov	r14d, DWORD PTR 4[rax]
	test	ebp, ebp
	je	.L2
	mov	rbx, rdi
	mov	r15d, 2047
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L11:
	mov	esi, DWORD PTR NvSubCopy[rip]
	mov	ecx, 2
	mov	edx, 568
	mov	rdi, rbx
	call	BEGIN_NVC0@PLT
	mov	edi, r14d
	call	upper_32_bits@PLT
	mov	rdi, rbx
	mov	esi, eax
	call	OUT_RING@PLT
	mov	edi, r14d
	call	lower_32_bits@PLT
	mov	rdi, rbx
	mov	esi, eax
	call	OUT_RING@PLT
	mov	esi, DWORD PTR NvSubCopy[rip]
	mov	ecx, 6
	mov	rdi, rbx
	mov	edx, 780
	call	BEGIN_NVC0@PLT
	mov	edi, r13d
	call	upper_32_bits@PLT
	mov	rdi, rbx
	mov	esi, eax
	call	OUT_RING@PLT
	mov	edi, r13d
	call	lower_32_bits@PLT
	mov	rdi, rbx
	mov	esi, eax
	call	OUT_RING@PLT
	mov	esi, DWORD PTR PAGE_SIZE[rip]
	mov	rdi, rbx
	call	OUT_RING@PLT
	mov	esi, DWORD PTR PAGE_SIZE[rip]
	mov	rdi, rbx
	call	OUT_RING@PLT
	mov	esi, DWORD PTR PAGE_SIZE[rip]
	mov	rdi, rbx
	call	OUT_RING@PLT
	mov	esi, r12d
	mov	rdi, rbx
	call	OUT_RING@PLT
	mov	esi, DWORD PTR NvSubCopy[rip]
	mov	ecx, 1
	mov	rdi, rbx
	mov	edx, 768
	call	BEGIN_NVC0@PLT
	mov	esi, 1048848
	mov	rdi, rbx
	call	OUT_RING@PLT
	mov	eax, DWORD PTR PAGE_SIZE[rip]
	imul	eax, r12d
	add	r13d, eax
	add	r14d, eax
	sub	ebp, r12d
	je	.L2
.L4:
	cmp	ebp, 2047
	mov	r12d, r15d
	mov	esi, 12
	mov	rdi, rbx
	cmovle	r12d, ebp
	call	RING_SPACE@PLT
	test	eax, eax
	je	.L11
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	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
.L2:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	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
	.cfi_endproc
.LFE0:
	.size	nvc0_bo_move_m2mf, .-nvc0_bo_move_m2mf
	.comm	PAGE_SIZE,4,4
	.comm	NvSubCopy,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_nouveau_bo.c_nvc0_bo_move_m2mf.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nvc0_bo_move_m2mf, %function
nvc0_bo_move_m2mf:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, [r2, #4]
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r6, [r3]
	ldr	r3, [r2]
	cmp	r6, #0
	ldm	r3, {r7, r8}
	beq	.L2
	mov	r4, r0
	ldr	fp, .L11
	ldr	r10, .L11+4
	ldr	r9, .L11+8
.L4:
	cmp	r6, fp
	mov	r1, #12
	mov	r0, r4
	movlt	r5, r6
	movge	r5, fp
	bl	RING_SPACE
	cmp	r0, #0
	popne	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	mov	r3, #2
	mov	r2, #568
	ldr	r1, [r10]
	mov	r0, r4
	bl	BEGIN_NVC0
	mov	r0, r8
	bl	upper_32_bits
	mov	r1, r0
	mov	r0, r4
	bl	OUT_RING
	mov	r0, r8
	bl	lower_32_bits
	mov	r1, r0
	mov	r0, r4
	bl	OUT_RING
	mov	r3, #6
	mov	r2, #780
	ldr	r1, [r10]
	mov	r0, r4
	bl	BEGIN_NVC0
	mov	r0, r7
	bl	upper_32_bits
	mov	r1, r0
	mov	r0, r4
	bl	OUT_RING
	mov	r0, r7
	bl	lower_32_bits
	mov	r1, r0
	mov	r0, r4
	bl	OUT_RING
	ldr	r1, [r9]
	mov	r0, r4
	bl	OUT_RING
	ldr	r1, [r9]
	mov	r0, r4
	bl	OUT_RING
	ldr	r1, [r9]
	mov	r0, r4
	bl	OUT_RING
	mov	r1, r5
	mov	r0, r4
	bl	OUT_RING
	mov	r3, #1
	mov	r2, #768
	ldr	r1, [r10]
	mov	r0, r4
	bl	BEGIN_NVC0
	mov	r0, r4
	ldr	r1, .L11+12
	bl	OUT_RING
	ldr	r3, [r9]
	subs	r6, r6, r5
	mul	r5, r3, r5
	add	r7, r7, r5
	add	r8, r8, r5
	bne	.L4
.L2:
	mov	r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L12:
	.align	2
.L11:
	.word	2047
	.word	NvSubCopy
	.word	PAGE_SIZE
	.word	1048848
	.size	nvc0_bo_move_m2mf, .-nvc0_bo_move_m2mf
	.comm	PAGE_SIZE,4,4
	.comm	NvSubCopy,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
