	.file	"extr_nvc0_fbcon.c_nvc0_fbcon_imageblit.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	nvc0_fbcon_imageblit
	.type	nvc0_fbcon_imageblit, @function
nvc0_fbcon_imageblit:
.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
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR 24[rdi]
	mov	edi, DWORD PTR [rax]
	call	nouveau_drm@PLT
	cmp	DWORD PTR [r12], 1
	je	.L2
	mov	r14d, DWORD PTR ENODEV[rip]
	neg	r14d
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	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
	mov	rbp, QWORD PTR [rax]
	mov	rax, QWORD PTR 40[r12]
	mov	esi, 11
	mov	r15, QWORD PTR 0[r13]
	mov	QWORD PTR [rsp], rax
	mov	eax, DWORD PTR 16[r13]
	mov	rdi, rbp
	mov	DWORD PTR 12[rsp], eax
	call	RING_SPACE@PLT
	mov	r14d, eax
	test	eax, eax
	jne	.L1
	mov	edi, DWORD PTR 4[r12]
	mov	esi, 32
	call	ALIGN@PLT
	imul	eax, DWORD PTR 8[r12]
	mov	esi, DWORD PTR NvSub2D[rip]
	mov	rdi, rbp
	mov	ecx, 2
	mov	edx, 2068
	mov	ebx, eax
	call	BEGIN_NVC0@PLT
	sar	ebx, 5
	mov	rax, QWORD PTR 8[r13]
	cmp	rax, QWORD PTR FB_VISUAL_TRUECOLOR[rip]
	mov	rsi, QWORD PTR 16[r12]
	je	.L5
	cmp	rax, QWORD PTR FB_VISUAL_DIRECTCOLOR[rip]
	je	.L5
	mov	rdi, rbp
	call	OUT_RING@PLT
	mov	esi, DWORD PTR 24[r12]
	mov	rdi, rbp
	call	OUT_RING@PLT
.L7:
	mov	esi, DWORD PTR NvSub2D[rip]
	mov	ecx, 2
	mov	edx, 2104
	mov	rdi, rbp
	mov	r15d, 2047
	call	BEGIN_NVC0@PLT
	mov	esi, DWORD PTR 4[r12]
	mov	rdi, rbp
	call	OUT_RING@PLT
	mov	esi, DWORD PTR 8[r12]
	mov	rdi, rbp
	call	OUT_RING@PLT
	mov	esi, DWORD PTR NvSub2D[rip]
	mov	ecx, 4
	mov	rdi, rbp
	mov	edx, 2128
	call	BEGIN_NVC0@PLT
	xor	esi, esi
	mov	rdi, rbp
	call	OUT_RING@PLT
	mov	esi, DWORD PTR 32[r12]
	mov	rdi, rbp
	call	OUT_RING@PLT
	xor	esi, esi
	mov	rdi, rbp
	call	OUT_RING@PLT
	mov	esi, DWORD PTR 36[r12]
	mov	rdi, rbp
	call	OUT_RING@PLT
	mov	r13, QWORD PTR [rsp]
	test	ebx, ebx
	jne	.L9
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L16:
	mov	esi, DWORD PTR NvSub2D[rip]
	mov	ecx, r12d
	mov	rdi, rbp
	sub	ebx, r12d
	mov	edx, 2144
	call	BEGIN_NIC0@PLT
	mov	edx, r12d
	mov	rsi, r13
	mov	rdi, rbp
	call	OUT_RINGp@PLT
	movsx	r12, r12d
	lea	r13, 0[r13+r12*4]
	test	ebx, ebx
	je	.L10
.L9:
	cmp	ebx, 2047
	mov	r12d, r15d
	mov	rdi, rbp
	cmovle	r12d, ebx
	lea	esi, 1[r12]
	call	RING_SPACE@PLT
	test	eax, eax
	je	.L16
	mov	r14d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	ecx, 32
	mov	edx, -1
	sub	ecx, DWORD PTR 12[rsp]
	mov	rdi, rbp
	sar	edx, cl
	not	edx
	mov	eax, edx
	or	eax, DWORD PTR [r15+rsi*4]
	mov	DWORD PTR 12[rsp], edx
	mov	esi, eax
	call	OUT_RING@PLT
	mov	rax, QWORD PTR 24[r12]
	mov	edx, DWORD PTR 12[rsp]
	mov	rdi, rbp
	or	edx, DWORD PTR [r15+rax*4]
	mov	esi, edx
	call	OUT_RING@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, rbp
	call	FIRE_RING@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	nvc0_fbcon_imageblit, .-nvc0_fbcon_imageblit
	.comm	NvSub2D,4,4
	.comm	FB_VISUAL_TRUECOLOR,8,8
	.comm	FB_VISUAL_DIRECTCOLOR,8,8
	.comm	ENODEV,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_nvc0_fbcon.c_nvc0_fbcon_imageblit.c"
	.text
	.align	2
	.global	nvc0_fbcon_imageblit
	.syntax unified
	.arm
	.fpu softvfp
	.type	nvc0_fbcon_imageblit, %function
nvc0_fbcon_imageblit:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r1
	ldr	r3, [r0, #12]
	mov	r7, r0
	sub	sp, sp, #12
	ldr	r0, [r3]
	bl	nouveau_drm
	ldr	r3, [r6]
	cmp	r3, #1
	beq	.L2
	ldr	r3, .L16
	ldr	r9, [r3]
	rsb	r9, r9, #0
.L1:
	mov	r0, r9
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r5, [r0]
	ldr	r3, [r7, #8]
	mov	r1, #11
	mov	r0, r5
	ldr	r8, [r6, #28]
	ldr	fp, [r7]
	str	r3, [sp, #4]
	bl	RING_SPACE
	subs	r9, r0, #0
	bne	.L1
	mov	r1, #32
	ldr	r0, [r6, #4]
	bl	ALIGN
	ldr	r10, .L16+4
	ldr	r4, [r6, #8]
	mov	r3, #2
	mul	r4, r0, r4
	ldr	r1, [r10]
	ldr	r2, .L16+8
	mov	r0, r5
	bl	BEGIN_NVC0
	ldr	r2, .L16+12
	ldr	r3, [r7, #4]
	ldr	r2, [r2]
	asr	r4, r4, #5
	cmp	r3, r2
	ldreq	r1, [r6, #12]
	beq	.L5
	ldr	r2, .L16+16
	ldr	r1, [r6, #12]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L5
	mov	r0, r5
	bl	OUT_RING
	mov	r0, r5
	ldr	r1, [r6, #16]
	bl	OUT_RING
.L7:
	mov	r3, #2
	ldr	r2, .L16+20
	ldr	r1, [r10]
	mov	r0, r5
	bl	BEGIN_NVC0
	ldr	r1, [r6, #4]
	mov	r0, r5
	bl	OUT_RING
	ldr	r1, [r6, #8]
	mov	r0, r5
	bl	OUT_RING
	mov	r3, #4
	mov	r2, #2128
	ldr	r1, [r10]
	mov	r0, r5
	bl	BEGIN_NVC0
	mov	r1, #0
	mov	r0, r5
	bl	OUT_RING
	ldr	r1, [r6, #20]
	mov	r0, r5
	bl	OUT_RING
	mov	r1, #0
	mov	r0, r5
	bl	OUT_RING
	mov	r0, r5
	ldr	r1, [r6, #24]
	bl	OUT_RING
	cmp	r4, #0
	ldrne	r7, .L16+24
	bne	.L9
	b	.L10
.L15:
	mov	r3, r6
	mov	r2, #2144
	ldr	r1, [r10]
	mov	r0, r5
	bl	BEGIN_NIC0
	mov	r1, r8
	mov	r2, r6
	mov	r0, r5
	bl	OUT_RINGp
	cmp	r4, #0
	add	r8, r8, r6, lsl #2
	beq	.L10
.L9:
	cmp	r4, r7
	movlt	r6, r4
	movge	r6, r7
	mov	r0, r5
	add	r1, r6, #1
	bl	RING_SPACE
	cmp	r0, #0
	sub	r4, r4, r6
	beq	.L15
	mov	r9, r0
	b	.L1
.L5:
	mvn	r7, #0
	ldr	r3, [sp, #4]
	ldr	r1, [fp, r1, lsl #2]
	rsb	r3, r3, #32
	mvn	r7, r7, asr r3
	mov	r0, r5
	orr	r1, r7, r1
	bl	OUT_RING
	ldr	r3, [r6, #16]
	mov	r0, r5
	ldr	r1, [fp, r3, lsl #2]
	orr	r1, r7, r1
	bl	OUT_RING
	b	.L7
.L10:
	mov	r0, r5
	bl	FIRE_RING
	b	.L1
.L17:
	.align	2
.L16:
	.word	ENODEV
	.word	NvSub2D
	.word	2068
	.word	FB_VISUAL_TRUECOLOR
	.word	FB_VISUAL_DIRECTCOLOR
	.word	2104
	.word	2047
	.size	nvc0_fbcon_imageblit, .-nvc0_fbcon_imageblit
	.comm	NvSub2D,4,4
	.comm	FB_VISUAL_TRUECOLOR,4,4
	.comm	FB_VISUAL_DIRECTCOLOR,4,4
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
