	.file	"extr_term.c_endline.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	endline, @function
endline:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR TERMP_ENDMC[rip]
	mov	edx, DWORD PTR TERMP_NEWMC[rip]
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	mov	ecx, DWORD PTR [rdi]
	or	edx, eax
	and	edx, ecx
	cmp	eax, edx
	je	.L13
	mov	rsi, QWORD PTR 40[rdi]
	test	rsi, rsi
	je	.L3
	mov	rax, QWORD PTR 8[rdi]
	test	rax, rax
	jne	.L14
.L4:
	mov	eax, DWORD PTR TERMP_NOBUF[rip]
	or	eax, DWORD PTR TERMP_NOSPACE[rip]
	mov	rdi, rbp
	or	eax, ecx
	mov	DWORD PTR 0[rbp], eax
	call	term_word@PLT
	mov	eax, DWORD PTR TERMP_NOBUF[rip]
	or	eax, DWORD PTR TERMP_NEWMC[rip]
	not	eax
	and	DWORD PTR 0[rbp], eax
.L3:
	mov	QWORD PTR 8[rbp], 0
	mov	rax, QWORD PTR 24[rbp]
	mov	rdi, rbp
	mov	QWORD PTR 32[rbp], 0
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	rax
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rdx, QWORD PTR 16[rdi]
	cmp	rax, rdx
	jg	.L4
	sub	rdx, rax
	lea	rsi, 1[rdx]
	call	[QWORD PTR 48[rdi]]
	mov	ecx, DWORD PTR 0[rbp]
	mov	rsi, QWORD PTR 40[rbp]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L13:
	not	eax
	mov	QWORD PTR 40[rdi], 0
	and	eax, ecx
	mov	DWORD PTR [rdi], eax
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	endline, .-endline
	.comm	TERMP_NOSPACE,4,4
	.comm	TERMP_NOBUF,4,4
	.comm	TERMP_NEWMC,4,4
	.comm	TERMP_ENDMC,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_term.c_endline.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	endline, %function
endline:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L15
	ldr	r5, .L15+4
	ldr	r2, [r3]
	ldr	r3, [r5]
	ldr	ip, [r0]
	orr	r3, r2, r3
	and	r3, r3, ip
	cmp	r2, r3
	mov	r4, r0
	beq	.L13
	ldr	r1, [r0, #20]
	cmp	r1, #0
	beq	.L3
	ldr	r3, [r0, #4]
	cmp	r3, #0
	bne	.L14
.L4:
	ldr	r6, .L15+8
	ldr	r2, .L15+12
	ldr	r3, [r6]
	ldr	r2, [r2]
	mov	r0, r4
	orr	r3, r3, r2
	orr	r3, r3, ip
	str	r3, [r4]
	bl	term_word
	ldr	r2, [r6]
	ldr	r1, [r5]
	ldr	r3, [r4]
	orr	r2, r2, r1
	bic	r3, r3, r2
	str	r3, [r4]
.L3:
	mov	r3, #0
	mov	r0, r4
	ldr	r2, [r4, #12]
	str	r3, [r4, #4]
	str	r3, [r4, #16]
	pop	{r4, r5, r6, lr}
	bx	r2
.L14:
	ldr	r2, [r0, #8]
	cmp	r3, r2
	bgt	.L4
	sub	r1, r2, r3
	add	r1, r1, #1
	ldr	r3, [r0, #24]
	blx	r3
	ldr	ip, [r4]
	ldr	r1, [r4, #20]
	b	.L4
.L13:
	mov	r3, #0
	bic	r2, ip, r2
	str	r2, [r0]
	str	r3, [r0, #20]
	b	.L3
.L16:
	.align	2
.L15:
	.word	TERMP_ENDMC
	.word	TERMP_NEWMC
	.word	TERMP_NOBUF
	.word	TERMP_NOSPACE
	.size	endline, .-endline
	.comm	TERMP_NOSPACE,4,4
	.comm	TERMP_NOBUF,4,4
	.comm	TERMP_NEWMC,4,4
	.comm	TERMP_ENDMC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
