	.file	"extr_danetest.c_read_to_eol.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"input too long"
.LC1:
	.string	"EOF before newline"
	.text
	.p2align 4
	.type	read_to_eol, @function
read_to_eol:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	edx, 1024
	lea	rsi, buf.1932[rip]
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	BIO_gets@PLT
	test	eax, eax
	je	.L1
	lea	rdi, buf.1932[rip]
	lea	rbx, buf.1932[rip]
	call	strlen@PLT
	lea	edx, -1[rax]
	movsx	rcx, edx
	movsx	edi, BYTE PTR [rbx+rcx]
	cmp	dil, 10
	jne	.L3
	test	eax, eax
	jle	.L4
	cdqe
	mov	edx, edx
	add	rbx, rax
	mov	rbp, rbx
	sub	rbp, rdx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L7:
	mov	BYTE PTR -1[rbx], 0
	cmp	rbx, rbp
	je	.L4
	movsx	edi, BYTE PTR -2[rbx]
	sub	rbx, 1
.L5:
	call	_UC@PLT
	mov	edi, eax
	call	isspace@PLT
	test	rax, rax
	jne	.L7
.L4:
	lea	r12, buf.1932[rip]
.L1:
	mov	rax, r12
	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
.L3:
	.cfi_restore_state
	cmp	eax, 1023
	je	.L12
	lea	rdi, .LC1[rip]
	call	TEST_error@PLT
	mov	rax, r12
	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
.L12:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	TEST_error@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	read_to_eol, .-read_to_eol
	.local	buf.1932
	.comm	buf.1932,1024,32
	.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_danetest.c_read_to_eol.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"input too long\000"
	.align	2
.LC1:
	.ascii	"EOF before newline\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_to_eol, %function
read_to_eol:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, .L14
	mov	r2, #1024
	mov	r1, r5
	bl	BIO_gets
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
	mov	r0, r5
	bl	strlen
	add	r3, r5, r0
	mov	r4, r0
	ldrb	r0, [r3, #-1]	@ zero_extendqisi2
	cmp	r0, #10
	bne	.L3
	cmp	r4, #0
	beq	.L4
	sub	r4, r4, #1
	mov	r6, #0
	add	r4, r5, r4
	b	.L5
.L7:
	cmp	r4, r5
	strb	r6, [r4]
	beq	.L4
	ldrb	r0, [r4, #-1]!	@ zero_extendqisi2
.L5:
	bl	_UC
	bl	isspace
	cmp	r0, #0
	bne	.L7
.L4:
	ldr	r0, .L14
	pop	{r4, r5, r6, pc}
.L3:
	ldr	r3, .L14+4
	cmp	r4, r3
	ldreq	r0, .L14+8
	ldrne	r0, .L14+12
	bl	TEST_error
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L15:
	.align	2
.L14:
	.word	.LANCHOR0
	.word	1023
	.word	.LC0
	.word	.LC1
	.size	read_to_eol, .-read_to_eol
	.bss
	.align	2
	.set	.LANCHOR0,. + 0
	.type	buf.4216, %object
	.size	buf.4216, 1024
buf.4216:
	.space	1024
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
