	.file	"extr_fbcon.c_fbcon_redraw.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	fbcon_redraw, @function
fbcon_redraw:
.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, 72
	.cfi_def_cfa_offset 128
	mov	eax, DWORD PTR [rdi]
	mov	DWORD PTR 20[rsp], edx
	imul	eax, edx
	mov	QWORD PTR 40[rsp], rdi
	mov	DWORD PTR 60[rsp], r8d
	cdqe
	add	rax, QWORD PTR 8[rdi]
	mov	rdx, rax
	mov	QWORD PTR 48[rsp], rax
	movsx	rax, r8d
	lea	rax, [rdx+rax*2]
	mov	QWORD PTR 32[rsp], rax
	lea	eax, -1[rcx]
	mov	DWORD PTR 56[rsp], eax
	test	ecx, ecx
	je	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rbp, QWORD PTR 32[rsp]
	mov	esi, 1
	mov	r13d, 1
	mov	rdi, rbp
	mov	r14, rbp
	call	advance_row@PLT
	mov	DWORD PTR 16[rsp], 0
	mov	r12, QWORD PTR 48[rsp]
	mov	QWORD PTR [rsp], rax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L19:
	lea	rax, -2[rbp]
	cmp	r14, rax
	jb	.L17
.L4:
	mov	rdi, r12
	call	scr_readw@PLT
	cmp	bx, ax
	je	.L6
.L5:
	mov	rsi, r12
	mov	edi, r15d
	add	r12, 2
	call	scr_writew@PLT
	xor	eax, eax
	call	console_conditional_schedule@PLT
	cmp	rbp, QWORD PTR [rsp]
	jnb	.L18
.L7:
	mov	rdi, rbp
	call	scr_readw@PLT
	mov	r9, rbp
	add	rbp, 2
	movzx	r15d, ax
	mov	eax, r13d
	mov	r13d, r15d
	mov	ebx, r15d
	xor	r13b, r13b
	cmp	ax, r13w
	jne	.L19
	mov	rdi, r12
	mov	QWORD PTR 8[rsp], r9
	call	scr_readw@PLT
	mov	r9, QWORD PTR 8[rsp]
	cmp	ax, r15w
	jne	.L5
	lea	rax, -2[rbp]
	cmp	r14, rax
	jnb	.L6
	sub	r9, r14
	mov	r8d, DWORD PTR 16[rsp]
	mov	ecx, DWORD PTR 20[rsp]
	mov	rsi, r14
	mov	rbx, r9
	mov	rdi, QWORD PTR 40[rsp]
	mov	r14, rbp
	sar	rbx
	mov	edx, ebx
	call	fbcon_putcs@PLT
	mov	eax, DWORD PTR 16[rsp]
	lea	eax, 1[rax+rbx]
	mov	DWORD PTR 16[rsp], eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	add	DWORD PTR 16[rsp], 1
	add	r14, 2
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L17:
	mov	r11, r9
	mov	r8d, DWORD PTR 16[rsp]
	mov	ecx, DWORD PTR 20[rsp]
	mov	rsi, r14
	sub	r11, r14
	mov	rdi, QWORD PTR 40[rsp]
	mov	QWORD PTR 24[rsp], r9
	sar	r11
	mov	edx, r11d
	mov	QWORD PTR 8[rsp], r11
	call	fbcon_putcs@PLT
	mov	r9, QWORD PTR 24[rsp]
	mov	r11, QWORD PTR 8[rsp]
	add	DWORD PTR 16[rsp], r11d
	mov	r14, r9
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rsi, QWORD PTR [rsp]
	mov	rcx, QWORD PTR 32[rsp]
	lea	rax, -1[rsi]
	lea	rdx, 1[rcx]
	sub	rax, rcx
	shr	rax
	cmp	rdx, rsi
	mov	edx, 2
	lea	rax, 2[rax+rax]
	cmova	rax, rdx
	add	QWORD PTR 48[rsp], rax
	add	rcx, rax
	mov	QWORD PTR 32[rsp], rcx
	cmp	r14, rcx
	jb	.L20
.L8:
	xor	eax, eax
	call	console_conditional_schedule@PLT
	mov	eax, DWORD PTR 60[rsp]
	test	eax, eax
	jle	.L9
	add	DWORD PTR 20[rsp], 1
.L10:
	sub	DWORD PTR 56[rsp], 1
	mov	eax, DWORD PTR 56[rsp]
	cmp	eax, -1
	jne	.L2
.L1:
	add	rsp, 72
	.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
.L9:
	.cfi_restore_state
	mov	rax, QWORD PTR 40[rsp]
	sub	DWORD PTR 20[rsp], 1
	movsx	rax, DWORD PTR [rax]
	add	rax, rax
	sub	QWORD PTR 32[rsp], rax
	sub	QWORD PTR 48[rsp], rax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rdx, rcx
	mov	r8d, DWORD PTR 16[rsp]
	mov	ecx, DWORD PTR 20[rsp]
	mov	rsi, r14
	sub	rdx, r14
	mov	rdi, QWORD PTR 40[rsp]
	sar	rdx
	call	fbcon_putcs@PLT
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	fbcon_redraw, .-fbcon_redraw
	.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_fbcon.c_fbcon_redraw.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fbcon_redraw, %function
fbcon_redraw:
	@ args = 4, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, r2
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #36
	str	r2, [sp, #12]
	ldm	r0, {r1, r2}
	mla	ip, r1, ip, r2
	cmp	r3, #0
	sub	r3, r3, #1
	str	r3, [sp, #28]
	ldr	r3, [sp, #72]
	str	r0, [sp, #24]
	add	r3, ip, r3, lsl #1
	str	ip, [sp, #20]
	str	r3, [sp, #16]
	beq	.L1
.L2:
	ldr	r4, [sp, #16]
	mov	r1, #1
	mov	r0, r4
	bl	advance_row
	mov	r8, r4
	mov	fp, r0
	mov	r7, #1
	mov	r10, #0
	ldr	r6, [sp, #20]
	b	.L7
.L19:
	cmp	r8, r3
	bcc	.L17
.L4:
	mov	r0, r6
	bl	scr_readw
	cmp	r5, r0
	beq	.L6
.L5:
	mov	r1, r6
	mov	r0, r5
	bl	scr_writew
	bl	console_conditional_schedule
	cmp	r4, fp
	add	r6, r6, #2
	bcs	.L18
.L7:
	mov	r0, r4
	bl	scr_readw
	mov	r3, r7
	and	r7, r0, #65280
	mov	r9, r4
	cmp	r3, r7
	add	r4, r4, #2
	mov	r5, r0
	sub	r3, r4, #2
	bne	.L19
	mov	r0, r6
	bl	scr_readw
	cmp	r0, r5
	bne	.L5
	sub	r3, r4, #2
	sub	r9, r9, r8
	cmp	r8, r3
	asr	r9, r9, #1
	bcs	.L6
	mov	r1, r8
	mov	r2, r9
	str	r10, [sp]
	ldr	r3, [sp, #12]
	ldr	r0, [sp, #24]
	add	r9, r9, #1
	bl	fbcon_putcs
	mov	r8, r4
	add	r10, r10, r9
	b	.L5
.L6:
	add	r10, r10, #1
	add	r8, r8, #2
	b	.L5
.L17:
	sub	r2, r9, r8
	mov	r1, r8
	asr	r2, r2, #1
	str	r10, [sp]
	ldr	r3, [sp, #12]
	ldr	r0, [sp, #24]
	mov	r8, r9
	add	r10, r10, r2
	bl	fbcon_putcs
	b	.L4
.L18:
	ldr	r1, [sp, #16]
	sub	r3, fp, #1
	add	r2, r1, #1
	sub	r3, r3, r1
	cmp	fp, r2
	bic	r3, r3, #1
	add	r3, r3, #2
	movcc	r3, #2
	add	r2, r1, r3
	str	r2, [sp, #16]
	cmp	r8, r2
	ldr	r2, [sp, #20]
	add	r3, r2, r3
	str	r3, [sp, #20]
	bcc	.L20
.L8:
	bl	console_conditional_schedule
	ldr	r3, [sp, #72]
	cmp	r3, #0
	ble	.L9
	ldr	r3, [sp, #12]
	add	r3, r3, #1
	str	r3, [sp, #12]
.L10:
	ldr	r3, [sp, #28]
	sub	r3, r3, #1
	cmn	r3, #1
	str	r3, [sp, #28]
	bne	.L2
.L1:
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	ldr	r2, [sp, #12]
	ldr	r3, [sp, #24]
	sub	r2, r2, #1
	ldr	r3, [r3]
	str	r2, [sp, #12]
	ldr	r2, [sp, #16]
	sub	r2, r2, r3, lsl #1
	str	r2, [sp, #16]
	ldr	r2, [sp, #20]
	sub	r3, r2, r3, lsl #1
	str	r3, [sp, #20]
	b	.L10
.L20:
	ldr	r3, [sp, #16]
	mov	r1, r8
	sub	r2, r3, r8
	ldr	r0, [sp, #24]
	ldr	r3, [sp, #12]
	str	r10, [sp]
	asr	r2, r2, #1
	bl	fbcon_putcs
	b	.L8
	.size	fbcon_redraw, .-fbcon_redraw
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
