	.file	"extr_ee.c_prevline.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	prevline
	.type	prevline, @function
prevline:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	mov	rax, QWORD PTR curr_line[rip]
	sub	DWORD PTR absolute_lin[rip], 1
	mov	DWORD PTR position[rip], 1
	mov	rax, QWORD PTR 8[rax]
	mov	edx, DWORD PTR 4[rax]
	mov	QWORD PTR curr_line[rip], rax
	mov	DWORD PTR point[rip], edx
	mov	rdx, QWORD PTR scr_vert[rip]
	test	rdx, rdx
	je	.L7
	sub	rdx, 1
	mov	QWORD PTR scr_vert[rip], rdx
	mov	edx, 1
.L3:
	mov	eax, DWORD PTR [rax]
	cmp	eax, edx
	jle	.L1
	mov	ecx, eax
	mov	DWORD PTR position[rip], eax
	sub	ecx, edx
	add	DWORD PTR point[rip], ecx
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	edi, DWORD PTR text_win[rip]
	call	winsertln@PLT
	mov	rax, QWORD PTR curr_line[rip]
	xor	esi, esi
	xor	edi, edi
	mov	edx, DWORD PTR point[rip]
	mov	ecx, 1
	mov	r8d, DWORD PTR [rax]
	call	draw_line@PLT
	mov	rax, QWORD PTR curr_line[rip]
	mov	edx, DWORD PTR position[rip]
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	prevline, .-prevline
	.comm	text_win,4,4
	.comm	scr_vert,8,8
	.comm	position,4,4
	.comm	point,4,4
	.comm	curr_line,8,8
	.comm	absolute_lin,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_ee.c_prevline.c"
	.text
	.align	2
	.global	prevline
	.syntax unified
	.arm
	.fpu softvfp
	.type	prevline, %function
prevline:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, #1
	ldr	r8, .L8
	ldr	r0, .L8+4
	ldr	r3, [r8]
	ldr	r1, .L8+8
	ldr	r5, [r0]
	ldr	r3, [r3, #8]
	ldr	r2, [r1]
	cmp	r5, #0
	ldr	ip, [r3, #4]
	ldr	r6, .L8+12
	ldr	r7, .L8+16
	sub	r2, r2, #1
	subne	r5, r5, #1
	sub	sp, sp, #8
	str	r3, [r8]
	str	ip, [r6]
	str	r2, [r1]
	str	r4, [r7]
	strne	r5, [r0]
	beq	.L7
.L3:
	ldr	r3, [r3]
	cmp	r3, r4
	ldrgt	r2, [r6]
	subgt	r4, r3, r4
	addgt	r4, r4, r2
	strgt	r3, [r7]
	strgt	r4, [r6]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	ldr	r3, .L8+20
	ldr	r0, [r3]
	bl	winsertln
	ldr	r2, [r8]
	mov	r3, r4
	ldr	r1, [r2]
	mov	r0, r5
	str	r1, [sp]
	ldr	r2, [r6]
	mov	r1, r5
	bl	draw_line
	ldr	r3, [r8]
	ldr	r4, [r7]
	b	.L3
.L9:
	.align	2
.L8:
	.word	curr_line
	.word	scr_vert
	.word	absolute_lin
	.word	point
	.word	position
	.word	text_win
	.size	prevline, .-prevline
	.comm	text_win,4,4
	.comm	scr_vert,4,4
	.comm	position,4,4
	.comm	point,4,4
	.comm	curr_line,4,4
	.comm	absolute_lin,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
