	.file	"extr_proxy.c_recv_line.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"recv_line: TCP port read timeout expired"
	.align 8
.LC1:
	.string	"recv_line: TCP port read failed on select()"
	.align 8
.LC2:
	.string	"recv_line: TCP port read failed on recv()"
	.align 8
.LC3:
	.string	"recv_line: Non-ASCII character (%d) read on recv()"
	.text
	.p2align 4
	.type	recv_line, @function
recv_line:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, edx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r9
	sub	rsp, 120
	.cfi_def_cfa_offset 176
	mov	QWORD PTR 16[rsp], rsi
	mov	edi, DWORD PTR 72[rsp]
	mov	DWORD PTR 48[rsp], ecx
	mov	r15, QWORD PTR 176[rsp]
	mov	DWORD PTR 52[rsp], r8d
	mov	QWORD PTR 56[rsp], r9
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 104[rsp], rax
	xor	eax, eax
	call	CLEAR@PLT
	test	rbx, rbx
	je	.L2
	mov	eax, DWORD PTR [rbx]
	mov	DWORD PTR 72[rsp], eax
.L2:
	lea	rax, 1[r13]
	mov	DWORD PTR 12[rsp], 0
	lea	r12, 72[rsp]
	mov	QWORD PTR 24[rsp], rax
	lea	rax, 80[rsp]
	lea	rbp, 76[rsp]
	mov	QWORD PTR 32[rsp], rax
	lea	rax, 71[rsp]
	mov	QWORD PTR 40[rsp], rax
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, rbp
	call	FD_ZERO@PLT
	mov	rsi, rbp
	mov	rdi, r13
	call	openvpn_fd_set@PLT
	mov	eax, DWORD PTR 48[rsp]
	mov	r8, QWORD PTR 32[rsp]
	xor	ecx, ecx
	mov	rdi, QWORD PTR 24[rsp]
	xor	edx, edx
	mov	rsi, rbp
	mov	QWORD PTR 88[rsp], 0
	mov	DWORD PTR 80[rsp], eax
	call	select@PLT
	mov	rdi, r15
	mov	ebx, eax
	call	get_signal@PLT
	mov	eax, DWORD PTR [r15]
	test	eax, eax
	jne	.L6
	test	ebx, ebx
	je	.L40
	js	.L41
	mov	ecx, DWORD PTR MSG_NOSIGNAL[rip]
	mov	rsi, QWORD PTR 40[rsp]
	mov	edx, 1
	mov	rdi, r13
	call	recv@PLT
	mov	ebx, eax
	cmp	eax, 1
	jne	.L42
	cmp	r14d, 1
	jle	.L9
	mov	rcx, QWORD PTR 16[rsp]
	movzx	eax, BYTE PTR 71[rsp]
	sub	r14d, 1
	mov	BYTE PTR [rcx], al
	lea	rax, 1[rcx]
	mov	QWORD PTR 16[rsp], rax
.L9:
	mov	rdi, r12
	call	buf_defined@PLT
	test	rax, rax
	jne	.L43
.L10:
	cmp	DWORD PTR 12[rsp], 13
	je	.L44
.L13:
	movsx	eax, BYTE PTR 71[rsp]
	mov	DWORD PTR 12[rsp], eax
.L15:
	mov	rdi, r12
	call	buf_defined@PLT
	test	rax, rax
	je	.L3
	mov	rdi, r12
	xor	esi, esi
	call	buf_init@PLT
	mov	edi, eax
	call	ASSERT@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L44:
	cmp	BYTE PTR 71[rsp], 10
	jne	.L13
	test	r14d, r14d
	jle	.L1
	mov	rax, QWORD PTR 16[rsp]
	mov	BYTE PTR [rax], 0
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L43:
	movsx	esi, BYTE PTR 71[rsp]
	mov	rdi, r12
	call	buf_write_u8@PLT
	movsx	edi, BYTE PTR 71[rsp]
	call	isprint@PLT
	test	rax, rax
	jne	.L10
	movsx	edi, BYTE PTR 71[rsp]
	call	isspace@PLT
	test	eax, eax
	jne	.L10
	mov	edx, DWORD PTR 52[rsp]
	test	edx, edx
	jne	.L45
.L11:
	mov	eax, DWORD PTR 72[rsp]
	mov	rdx, QWORD PTR 56[rsp]
	xor	ebx, ebx
	mov	DWORD PTR [rdx], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L40:
	mov	edi, DWORD PTR 52[rsp]
	test	edi, edi
	je	.L6
	mov	edi, DWORD PTR D_LINK_ERRORS[rip]
	lea	rsi, .LC0[rip]
	or	edi, DWORD PTR M_ERRNO[rip]
	call	msg@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	xor	ebx, ebx
.L1:
	mov	rax, QWORD PTR 104[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L46
	add	rsp, 120
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, ebx
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L41:
	.cfi_restore_state
	mov	esi, DWORD PTR 52[rsp]
	test	esi, esi
	je	.L6
	mov	edi, DWORD PTR D_LINK_ERRORS[rip]
	lea	rsi, .LC1[rip]
	xor	eax, eax
	or	edi, DWORD PTR M_ERRNO[rip]
	call	msg@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L42:
	mov	ecx, DWORD PTR 52[rsp]
	test	ecx, ecx
	je	.L6
	mov	edi, DWORD PTR D_LINK_ERRORS[rip]
	lea	rsi, .LC2[rip]
	xor	eax, eax
	or	edi, DWORD PTR M_ERRNO[rip]
	call	msg@PLT
	jmp	.L6
.L45:
	movsx	edx, BYTE PTR 71[rsp]
	mov	edi, DWORD PTR D_LINK_ERRORS[rip]
	lea	rsi, .LC3[rip]
	or	edi, DWORD PTR M_ERRNO[rip]
	call	msg@PLT
	jmp	.L11
.L46:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	recv_line, .-recv_line
	.comm	M_INFO,4,4
	.comm	M_ERRNO,4,4
	.comm	MSG_NOSIGNAL,4,4
	.comm	D_LINK_ERRORS,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_proxy.c_recv_line.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"recv_line: TCP port read timeout expired\000"
	.align	2
.LC1:
	.ascii	"recv_line: TCP port read failed on select()\000"
	.align	2
.LC2:
	.ascii	"recv_line: TCP port read failed on recv()\000"
	.align	2
.LC3:
	.ascii	"recv_line: Non-ASCII character (%d) read on recv()\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	recv_line, %function
recv_line:
	@ args = 12, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #44
	ldr	r4, [sp, #84]
	mov	r10, r3
	ldr	r3, .L49
	str	r4, [sp, #12]
	mov	r7, r0
	ldr	r0, [sp, #20]
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	mov	r6, r1
	mov	r8, r2
	ldr	r9, [sp, #88]
	bl	CLEAR
	cmp	r4, #0
	ldrne	r3, [r4]
	mov	r4, #0
	strne	r3, [sp, #20]
	add	fp, r7, #1
.L15:
	add	r0, sp, #20
	bl	buf_defined
	cmp	r0, #0
	bne	.L42
.L3:
	add	r0, sp, #24
	bl	FD_ZERO
	add	r1, sp, #24
	mov	r0, r7
	bl	openvpn_fd_set
	mov	r3, #0
	add	r2, sp, #28
	str	r2, [sp]
	add	r1, sp, #24
	mov	r2, r3
	mov	r0, fp
	str	r3, [sp, #32]
	str	r10, [sp, #28]
	bl	select
	mov	r5, r0
	mov	r0, r9
	bl	get_signal
	ldr	r3, [r9]
	cmp	r3, #0
	bne	.L6
	cmp	r5, #0
	beq	.L43
	blt	.L44
	ldr	r3, .L49+4
	mov	r2, #1
	mov	r0, r7
	ldr	r3, [r3]
	add	r1, sp, #19
	bl	recv
	cmp	r0, #1
	mov	r5, r0
	bne	.L45
	cmp	r8, #1
	ldrbgt	r3, [sp, #19]	@ zero_extendqisi2
	add	r0, sp, #20
	strbgt	r3, [r6], #1
	subgt	r8, r8, #1
	bl	buf_defined
	cmp	r0, #0
	bne	.L46
.L10:
	cmp	r4, #13
	ldrb	r4, [sp, #19]	@ zero_extendqisi2
	bne	.L15
	cmp	r4, #10
	bne	.L15
	cmp	r8, #0
	movgt	r3, #0
	strbgt	r3, [r6]
	b	.L1
.L42:
	mov	r1, #0
	add	r0, sp, #20
	bl	buf_init
	bl	ASSERT
	b	.L3
.L46:
	ldrb	r1, [sp, #19]	@ zero_extendqisi2
	add	r0, sp, #20
	bl	buf_write_u8
	ldrb	r0, [sp, #19]	@ zero_extendqisi2
	bl	isprint
	cmp	r0, #0
	bne	.L10
	ldrb	r0, [sp, #19]	@ zero_extendqisi2
	bl	isspace
	cmp	r0, #0
	bne	.L10
	ldr	r3, [sp, #80]
	cmp	r3, #0
	bne	.L47
.L11:
	ldr	r3, [sp, #20]
	ldr	r2, [sp, #12]
	mov	r5, #0
	str	r3, [r2]
	b	.L1
.L43:
	ldr	r3, [sp, #80]
	cmp	r3, #0
	beq	.L6
	ldr	r2, .L49+8
	ldr	r3, .L49+12
	ldr	r0, [r2]
	ldr	r3, [r3]
	ldr	r1, .L49+16
	orr	r0, r0, r3
	bl	msg
.L6:
	mov	r5, #0
.L1:
	ldr	r3, .L49
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L48
	mov	r0, r5
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L44:
	ldr	r3, [sp, #80]
	cmp	r3, #0
	beq	.L6
	ldr	r2, .L49+8
	ldr	r3, .L49+12
	ldr	r0, [r2]
	ldr	r3, [r3]
	ldr	r1, .L49+20
	orr	r0, r0, r3
	bl	msg
	b	.L6
.L45:
	ldr	r3, [sp, #80]
	cmp	r3, #0
	beq	.L6
	ldr	r2, .L49+8
	ldr	r3, .L49+12
	ldr	r0, [r2]
	ldr	r3, [r3]
	ldr	r1, .L49+24
	orr	r0, r0, r3
	bl	msg
	b	.L6
.L47:
	ldr	r2, .L49+8
	ldr	r3, .L49+12
	ldr	r0, [r2]
	ldr	r3, [r3]
	ldrb	r2, [sp, #19]	@ zero_extendqisi2
	ldr	r1, .L49+28
	orr	r0, r0, r3
	bl	msg
	b	.L11
.L48:
	bl	__stack_chk_fail
.L50:
	.align	2
.L49:
	.word	.LC4
	.word	MSG_NOSIGNAL
	.word	D_LINK_ERRORS
	.word	M_ERRNO
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	recv_line, .-recv_line
	.comm	M_INFO,4,4
	.comm	M_ERRNO,4,4
	.comm	MSG_NOSIGNAL,4,4
	.comm	D_LINK_ERRORS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
