	.file	"extr_Network.c_RecvLine.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	RecvLine
	.type	RecvLine, @function
RecvLine:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	test	rdi, rdi
	je	.L8
	mov	r13, rsi
	test	rsi, rsi
	je	.L8
	mov	rbx, rdi
	lea	r12, 7[rsp]
	call	NewBuf@PLT
	mov	rbp, rax
	.p2align 4,,10
	.p2align 3
.L11:
	mov	ecx, DWORD PTR [rbx]
	mov	edx, 1
	mov	rsi, r12
	mov	rdi, rbx
	call	RecvAll@PLT
	test	eax, eax
	je	.L14
	mov	edx, 1
	mov	rsi, r12
	mov	rdi, rbp
	call	WriteBuf@PLT
	mov	rax, QWORD PTR 0[rbp]
	cmp	rax, r13
	jg	.L14
	test	rax, rax
	jle	.L11
	mov	rdx, QWORD PTR 8[rbp]
	cmp	BYTE PTR -1[rdx+rax], 10
	jne	.L11
	lea	rdi, -1[rax]
	mov	QWORD PTR 0[rbp], rdi
	test	rdi, rdi
	je	.L6
	cmp	BYTE PTR -2[rdx+rax], 13
	jne	.L6
	lea	rdi, -2[rax]
	mov	QWORD PTR 0[rbp], rdi
.L6:
	add	edi, 1
	call	Malloc@PLT
	mov	rsi, QWORD PTR 8[rbp]
	mov	edx, DWORD PTR 0[rbp]
	mov	rdi, rax
	mov	r12, rax
	call	Copy@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, rbp
	mov	BYTE PTR [r12+rax], 0
	call	FreeBuf@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rdi, rbp
	xor	r12d, r12d
	call	FreeBuf@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	xor	r12d, r12d
	jmp	.L1
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	RecvLine, .-RecvLine
	.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_Network.c_RecvLine.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	RecvLine
	.syntax unified
	.arm
	.fpu softvfp
	.type	RecvLine, %function
RecvLine:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #0
	cmpne	r0, #0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L16
	sub	sp, sp, #12
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	moveq	r4, #0
	beq	.L1
	mov	r6, r0
	mov	r7, r1
	bl	NewBuf
	mov	r5, r0
.L10:
	mov	r2, #1
	mov	r0, r6
	ldr	r3, [r6]
	add	r1, sp, #3
	bl	RecvAll
	subs	r4, r0, #0
	beq	.L13
	mov	r2, #1
	mov	r0, r5
	add	r1, sp, #3
	bl	WriteBuf
	ldr	r0, [r5]
	cmp	r0, r7
	bgt	.L14
	cmp	r0, #0
	ble	.L10
	ldr	r2, [r5, #4]
	add	r2, r2, r0
	ldrb	r1, [r2, #-1]	@ zero_extendqisi2
	cmp	r1, #10
	bne	.L10
	sub	r1, r0, #1
	cmp	r1, #0
	moveq	r0, #1
	str	r1, [r5]
	beq	.L6
	ldrb	r2, [r2, #-2]	@ zero_extendqisi2
	cmp	r2, #13
	subeq	r3, r0, #2
	moveq	r0, r1
	streq	r3, [r5]
.L6:
	bl	Malloc
	ldr	r2, [r5]
	ldr	r1, [r5, #4]
	mov	r4, r0
	bl	Copy
	mov	r2, #0
	ldr	r3, [r5]
	mov	r0, r5
	strb	r2, [r4, r3]
	bl	FreeBuf
.L1:
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L13:
	mov	r0, r5
	bl	FreeBuf
	b	.L1
.L14:
	mov	r0, r5
	bl	FreeBuf
	mov	r4, #0
	b	.L1
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC0
	.size	RecvLine, .-RecvLine
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
