	.file	"extr_ed.refresh.c_PutPlusOne.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	PutPlusOne, @function
PutPlusOne:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, edi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movsx	rbx, esi
	mov	rbp, rbx
	cmp	ebx, 1
	jg	.L5
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	mov	esi, 1
	mov	edi, 32
	call	PutPlusOne
.L5:
	mov	rax, QWORD PTR CursorH[rip]
	add	rax, rbx
	cmp	rax, QWORD PTR TermH[rip]
	jg	.L6
.L7:
	mov	eax, DWORD PTR LITERAL[rip]
	test	eax, r12d
	je	.L27
	not	eax
	mov	rdx, QWORD PTR litptr[rip]
	and	eax, r12d
	imul	eax, DWORD PTR LIT_FACTOR[rip]
	cdqe
	lea	rbx, [rdx+rax*4]
	mov	edi, DWORD PTR [rbx]
	test	edi, edi
	je	.L9
	.p2align 4,,10
	.p2align 3
.L8:
	call	putwraw@PLT
	mov	edi, DWORD PTR 4[rbx]
	add	rbx, 4
	test	edi, edi
	jne	.L8
.L9:
	mov	rax, QWORD PTR Display[rip]
	mov	rdi, QWORD PTR CursorV[rip]
	mov	rsi, QWORD PTR CursorH[rip]
	mov	rdx, QWORD PTR [rax+rdi*8]
	lea	rax, 1[rsi]
	lea	rcx, 0[0+rsi*4]
	mov	QWORD PTR CursorH[rip], rax
	mov	DWORD PTR [rdx+rsi*4], r12d
	cmp	ebp, 1
	jle	.L11
	lea	rax, 4[rdx+rcx]
	lea	ecx, -2[rbp]
	mov	rbp, rcx
	add	rcx, rsi
	lea	rcx, 8[rdx+rcx*4]
	.p2align 4,,10
	.p2align 3
.L12:
	mov	edx, DWORD PTR CHAR_DBWIDTH[rip]
	add	rax, 4
	mov	DWORD PTR -4[rax], edx
	cmp	rcx, rax
	jne	.L12
	mov	ebp, ebp
	lea	rax, 2[rsi+rbp]
	mov	QWORD PTR CursorH[rip], rax
.L11:
	cmp	QWORD PTR TermH[rip], rax
	jg	.L1
	add	rdi, 1
	add	DWORD PTR OldvcV[rip], 1
	mov	eax, DWORD PTR T_Margin[rip]
	mov	QWORD PTR CursorH[rip], 0
	mov	QWORD PTR CursorV[rip], rdi
	test	DWORD PTR MARGIN_AUTO[rip], eax
	je	.L15
	test	DWORD PTR MARGIN_MAGIC[rip], eax
	jne	.L28
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L27:
	.cfi_restore_state
	mov	edi, r12d
	call	putwraw@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L15:
	mov	edi, 13
	call	putraw@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	edi, 10
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	putraw@PLT
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore_state
	mov	edi, 32
	call	putraw@PLT
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	edi, 8
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	putraw@PLT
	.cfi_endproc
.LFE0:
	.size	PutPlusOne, .-PutPlusOne
	.comm	litptr,8,8
	.comm	TermH,8,8
	.comm	T_Margin,4,4
	.comm	OldvcV,4,4
	.comm	MARGIN_MAGIC,4,4
	.comm	MARGIN_AUTO,4,4
	.comm	LIT_FACTOR,4,4
	.comm	LITERAL,4,4
	.comm	Display,8,8
	.comm	CursorV,8,8
	.comm	CursorH,8,8
	.comm	CHAR_DBWIDTH,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_ed.refresh.c_PutPlusOne.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	PutPlusOne, %function
PutPlusOne:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #1
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	mov	r8, r0
	ldr	r5, .L27
	ldr	r6, .L27+4
	bgt	.L2
	b	.L6
.L5:
	mov	r1, #1
	mov	r0, #32
	bl	PutPlusOne
.L2:
	ldr	r3, [r5]
	ldr	r2, [r6]
	add	r3, r4, r3
	cmp	r3, r2
	bgt	.L5
.L6:
	ldr	r3, .L27+8
	ldr	r7, [r3]
	tst	r7, r8
	beq	.L26
	ldr	r3, .L27+12
	bic	r7, r8, r7
	ldr	r3, [r3]
	ldr	r2, .L27+16
	mul	r3, r7, r3
	ldr	r7, [r2]
	ldr	r0, [r7, r3, lsl #2]
	add	r7, r7, r3, lsl #2
	cmp	r0, #0
	beq	.L8
.L7:
	bl	putwraw
	ldr	r0, [r7, #4]!
	cmp	r0, #0
	bne	.L7
.L8:
	ldr	r7, .L27+20
	ldr	r3, .L27+24
	ldr	lr, [r7]
	ldr	r3, [r3]
	ldr	ip, [r5]
	ldr	r2, [r3, lr, lsl #2]
	add	r1, ip, #1
	cmp	r4, #1
	str	r1, [r5]
	lsl	r3, ip, #2
	str	r8, [r2, ip, lsl #2]
	ble	.L10
	add	r3, r3, #4
	add	r1, r4, ip
	ldr	r0, .L27+28
	add	r3, r2, r3
	add	r1, r2, r1, lsl #2
.L11:
	ldr	r2, [r0]
	str	r2, [r3], #4
	cmp	r1, r3
	bne	.L11
	add	r1, ip, r4
	str	r1, [r5]
.L10:
	ldr	r3, [r6]
	cmp	r3, r1
	popgt	{r4, r5, r6, r7, r8, pc}
	mov	r0, #0
	ldr	r1, .L27+32
	ldr	r3, .L27+36
	ldr	r2, .L27+40
	ldr	r3, [r3]
	ldr	r1, [r1]
	add	lr, lr, #1
	tst	r1, r3
	ldr	r3, [r2]
	str	lr, [r7]
	add	r3, r3, #1
	str	r3, [r2]
	str	r0, [r5]
	beq	.L14
	ldr	r3, .L27+44
	ldr	r3, [r3]
	tst	r1, r3
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r0, #32
	bl	putraw
	pop	{r4, r5, r6, r7, r8, lr}
	mov	r0, #8
	b	putraw
.L26:
	mov	r0, r8
	bl	putwraw
	b	.L8
.L14:
	mov	r0, #13
	bl	putraw
	pop	{r4, r5, r6, r7, r8, lr}
	mov	r0, #10
	b	putraw
.L28:
	.align	2
.L27:
	.word	CursorH
	.word	TermH
	.word	LITERAL
	.word	LIT_FACTOR
	.word	litptr
	.word	CursorV
	.word	Display
	.word	CHAR_DBWIDTH
	.word	T_Margin
	.word	MARGIN_AUTO
	.word	OldvcV
	.word	MARGIN_MAGIC
	.size	PutPlusOne, .-PutPlusOne
	.comm	litptr,4,4
	.comm	TermH,4,4
	.comm	T_Margin,4,4
	.comm	OldvcV,4,4
	.comm	MARGIN_MAGIC,4,4
	.comm	MARGIN_AUTO,4,4
	.comm	LIT_FACTOR,4,4
	.comm	LITERAL,4,4
	.comm	Display,4,4
	.comm	CursorV,4,4
	.comm	CursorH,4,4
	.comm	CHAR_DBWIDTH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
