	.file	"extr_phttpget.c_readln.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"\r\n"
	.text
	.p2align 4
	.type	readln, @function
readln:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	lea	r14, .LC0[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, edi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	edx, DWORD PTR [rdx]
	mov	rbx, rcx
	.p2align 4,,10
	.p2align 3
.L8:
	movsx	rdi, DWORD PTR [rbx]
	mov	rsi, r14
	sub	edx, edi
	add	rdi, rbp
	call	strnstr@PLT
	test	rax, rax
	jne	.L18
	movsx	rsi, DWORD PTR [rbx]
	movsx	rdx, DWORD PTR [r12]
	test	esi, esi
	jne	.L19
	mov	eax, DWORD PTR BUFSIZ[rip]
	cmp	eax, edx
	je	.L6
.L4:
	sub	eax, edx
	lea	rsi, 0[rbp+rdx]
	xor	ecx, ecx
	mov	edi, r13d
	mov	edx, eax
	call	recv@PLT
	test	eax, eax
	je	.L6
	cmp	eax, -1
	je	.L20
	add	eax, DWORD PTR [r12]
	mov	DWORD PTR [r12], eax
	mov	edx, eax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L19:
	sub	edx, esi
	mov	rdi, rbp
	add	rsi, rbp
	call	memmove@PLT
	mov	eax, DWORD PTR [rbx]
	sub	DWORD PTR [r12], eax
	mov	DWORD PTR [rbx], 0
	movsx	rdx, DWORD PTR [r12]
	mov	eax, DWORD PTR BUFSIZ[rip]
	cmp	eax, edx
	jne	.L4
.L6:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, -1
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	rax, QWORD PTR EINTR[rip]
	cmp	QWORD PTR errno[rip], rax
	jne	.L6
	mov	edx, DWORD PTR [r12]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L18:
	pop	rbx
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	readln, .-readln
	.comm	errno,8,8
	.comm	EINTR,8,8
	.comm	BUFSIZ,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_phttpget.c_readln.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\015\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	readln, %function
readln:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r7, r0
	mov	r5, r1
	mov	r4, r3
	mov	r6, r2
	ldr	r8, .L21
	ldr	r2, [r2]
	ldr	r9, .L21+4
	ldr	fp, .L21+8
	ldr	r10, .L21+12
	sub	sp, sp, #12
.L8:
	ldr	r0, [r4]
	mov	r1, r8
	sub	r2, r2, r0
	add	r0, r5, r0
	bl	strnstr
	subs	r3, r0, #0
	bne	.L18
	ldr	r1, [r4]
	ldr	r0, [r6]
	cmp	r1, #0
	bne	.L19
.L3:
	ldr	r3, [r9]
	add	r1, r5, r0
	cmp	r3, r0
	sub	r2, r3, r0
	beq	.L6
	mov	r3, #0
	mov	r0, r7
	bl	recv
	cmp	r0, #0
	beq	.L6
	cmn	r0, #1
	beq	.L20
	ldr	r2, [r6]
	add	r2, r0, r2
	str	r2, [r6]
	b	.L8
.L19:
	sub	r2, r0, r1
	add	r1, r5, r1
	mov	r0, r5
	str	r3, [sp, #4]
	bl	memmove
	ldr	r2, [r6]
	ldr	r1, [r4]
	ldr	r3, [sp, #4]
	sub	r2, r2, r1
	str	r2, [r6]
	str	r3, [r4]
	ldr	r0, [r6]
	b	.L3
.L20:
	ldr	r2, [fp]
	ldr	r3, [r10]
	cmp	r2, r3
	ldreq	r2, [r6]
	beq	.L8
.L6:
	mvn	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	mov	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC0
	.word	BUFSIZ
	.word	errno
	.word	EINTR
	.size	readln, .-readln
	.comm	errno,4,4
	.comm	EINTR,4,4
	.comm	BUFSIZ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
