	.file	"extr_ftp.c_dataconn.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Poll timeout waiting before accept"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Can't accept data connection"
	.section	.rodata.str1.8
	.align 8
.LC2:
	.string	"Can't poll waiting before accept"
	.text
	.p2align 4
	.globl	dataconn
	.type	dataconn, @function
dataconn:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	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
	sub	rsp, 120
	.cfi_def_cfa_offset 176
	mov	QWORD PTR 8[rsp], rdi
	mov	edi, DWORD PTR data[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 104[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR passivemode[rip], 0
	jne	.L35
	mov	esi, DWORD PTR F_GETFL[rip]
	xor	edx, edx
	call	fcntl@PLT
	mov	r15d, eax
	cmp	eax, -1
	je	.L9
	mov	edx, DWORD PTR O_NONBLOCK[rip]
	mov	esi, DWORD PTR F_SETFL[rip]
	mov	edi, DWORD PTR data[rip]
	or	edx, eax
	call	fcntl@PLT
	cmp	eax, -1
	je	.L9
	mov	eax, DWORD PTR data[rip]
	lea	rbp, 48[rsp]
	xor	esi, esi
	lea	rbx, 64[rsp]
	mov	rdi, rbp
	lea	r14, 80[rsp]
	lea	r13, 96[rsp]
	mov	DWORD PTR 96[rsp], eax
	mov	eax, DWORD PTR POLLIN[rip]
	mov	DWORD PTR 100[rsp], eax
	call	gettimeofday@PLT
	mov	rax, QWORD PTR quit_time[rip]
	mov	edx, 60
	test	rax, rax
	cmovle	rax, rdx
	xor	r12d, r12d
	add	QWORD PTR 48[rsp], rax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L37:
	mov	rax, QWORD PTR EINTR[rip]
	cmp	QWORD PTR errno[rip], rax
	jne	.L36
.L7:
	xor	esi, esi
	mov	rdi, rbx
	call	gettimeofday@PLT
	mov	rdx, r14
	mov	rsi, rbx
	mov	rdi, rbp
	call	timersub@PLT
	movsx	rdx, DWORD PTR 88[rsp]
	mov	esi, 1
	mov	rdi, r13
	imul	eax, DWORD PTR 80[rsp], 1000
	mov	rcx, rdx
	imul	rdx, rdx, 274877907
	sar	ecx, 31
	sar	rdx, 38
	sub	edx, ecx
	add	edx, eax
	cmovs	edx, r12d
	call	ftp_poll@PLT
	cmp	eax, -1
	je	.L37
	test	eax, eax
	je	.L38
	mov	eax, DWORD PTR myctladdr[rip]
	lea	r12, 28[rsp]
	lea	rbx, 40[rsp]
	mov	DWORD PTR 28[rsp], eax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L40:
	mov	rax, QWORD PTR EINTR[rip]
	cmp	QWORD PTR errno[rip], rax
	jne	.L39
.L11:
	mov	edi, DWORD PTR data[rip]
	mov	rdx, r12
	mov	rsi, rbx
	call	accept@PLT
	mov	ebp, eax
	cmp	eax, -1
	je	.L40
	mov	edi, DWORD PTR data[rip]
	call	close@PLT
	mov	esi, DWORD PTR F_SETFL[rip]
	mov	edx, r15d
	mov	edi, ebp
	mov	DWORD PTR data[rip], ebp
	call	fcntl@PLT
	cmp	eax, -1
	je	.L9
	mov	rsi, QWORD PTR 8[rsp]
	mov	edi, DWORD PTR data[rip]
	call	fdopen@PLT
.L1:
	mov	rbx, QWORD PTR 104[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L41
	add	rsp, 120
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L39:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	call	warn@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	mov	edi, DWORD PTR data[rip]
	call	close@PLT
	xor	eax, eax
	mov	DWORD PTR data[rip], -1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L35:
	mov	rsi, QWORD PTR 8[rsp]
	call	fdopen@PLT
	jmp	.L1
.L38:
	lea	rdi, .LC0[rip]
	call	warnx@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L36:
	lea	rdi, .LC2[rip]
	call	warn@PLT
	jmp	.L9
.L41:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	dataconn, .-dataconn
	.comm	quit_time,8,8
	.comm	passivemode,8,8
	.comm	myctladdr,4,4
	.comm	errno,8,8
	.comm	data,4,4
	.comm	POLLIN,4,4
	.comm	O_NONBLOCK,4,4
	.comm	IP_TOS,4,4
	.comm	IPTOS_THROUGHPUT,4,4
	.comm	IPPROTO_IP,4,4
	.comm	F_SETFL,4,4
	.comm	F_GETFL,4,4
	.comm	EINTR,8,8
	.comm	AF_INET,8,8
	.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_ftp.c_dataconn.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Poll timeout waiting before accept\000"
	.align	2
.LC1:
	.ascii	"Can't accept data connection\000"
	.align	2
.LC2:
	.ascii	"Can't poll waiting before accept\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	dataconn
	.syntax unified
	.arm
	.fpu softvfp
	.type	dataconn, %function
dataconn:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L42
	ldr	r4, .L42+4
	ldr	r5, [r3]
	ldr	r3, .L42+8
	sub	sp, sp, #48
	cmp	r5, #0
	mov	r8, r0
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	ldr	r0, [r4]
	bne	.L35
	ldr	r3, .L42+12
	mov	r2, r5
	ldr	r1, [r3]
	bl	fcntl
	cmn	r0, #1
	mov	r9, r0
	beq	.L9
	ldr	r3, .L42+16
	ldr	r10, .L42+20
	ldr	r2, [r3]
	ldr	r1, [r10]
	orr	r2, r0, r2
	ldr	r0, [r4]
	bl	fcntl
	cmn	r0, #1
	beq	.L9
	ldr	r2, .L42+24
	ldr	r3, [r4]
	ldr	r2, [r2]
	mov	r1, r5
	add	r0, sp, #12
	str	r2, [sp, #40]
	str	r3, [sp, #36]
	bl	gettimeofday
	ldr	r3, .L42+28
	ldr	r2, [sp, #12]
	ldr	r3, [r3]
	ldr	r5, .L42+32
	cmp	r3, #0
	movle	r3, #60
	add	r3, r2, r3
	ldr	r7, .L42+36
	ldr	r6, .L42+40
	str	r3, [sp, #12]
	b	.L7
.L37:
	ldr	r2, [r7]
	ldr	r3, [r6]
	cmp	r2, r3
	bne	.L36
.L7:
	mov	r1, #0
	add	r0, sp, #20
	bl	gettimeofday
	add	r2, sp, #28
	add	r1, sp, #20
	add	r0, sp, #12
	bl	timersub
	ldr	r3, [sp, #32]
	ldr	r1, [sp, #28]
	smull	r2, ip, r5, r3
	rsb	r0, r1, r1, lsl #5
	asr	r2, r3, #31
	add	r1, r1, r0, lsl #2
	rsb	r2, r2, ip, asr #6
	add	r2, r2, r1, lsl #3
	bic	r2, r2, r2, asr #31
	mov	r1, #1
	add	r0, sp, #36
	bl	ftp_poll
	cmn	r0, #1
	beq	.L37
	cmp	r0, #0
	beq	.L38
	ldr	r3, .L42+44
	ldr	r7, .L42+36
	ldr	r3, [r3]
	ldr	r6, .L42+40
	str	r3, [sp]
	b	.L11
.L40:
	ldr	r2, [r7]
	ldr	r3, [r6]
	cmp	r2, r3
	bne	.L39
.L11:
	mov	r2, sp
	ldr	r0, [r4]
	add	r1, sp, #8
	bl	accept
	cmn	r0, #1
	mov	r5, r0
	beq	.L40
	ldr	r0, [r4]
	bl	close
	mov	r2, r9
	mov	r0, r5
	ldr	r1, [r10]
	str	r5, [r4]
	bl	fcntl
	cmn	r0, #1
	beq	.L9
	mov	r1, r8
	ldr	r0, [r4]
	bl	fdopen
.L1:
	ldr	r3, .L42+8
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L41
	add	sp, sp, #48
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L39:
	ldr	r0, .L42+48
	bl	warn
.L9:
	ldr	r0, [r4]
	bl	close
	mvn	r3, #0
	mov	r0, #0
	str	r3, [r4]
	b	.L1
.L35:
	mov	r1, r8
	bl	fdopen
	b	.L1
.L38:
	ldr	r0, .L42+52
	bl	warnx
	b	.L9
.L36:
	ldr	r0, .L42+56
	bl	warn
	b	.L9
.L41:
	bl	__stack_chk_fail
.L43:
	.align	2
.L42:
	.word	passivemode
	.word	data
	.word	.LC3
	.word	F_GETFL
	.word	O_NONBLOCK
	.word	F_SETFL
	.word	POLLIN
	.word	quit_time
	.word	274877907
	.word	errno
	.word	EINTR
	.word	myctladdr
	.word	.LC1
	.word	.LC0
	.word	.LC2
	.size	dataconn, .-dataconn
	.comm	quit_time,4,4
	.comm	passivemode,4,4
	.comm	myctladdr,4,4
	.comm	errno,4,4
	.comm	data,4,4
	.comm	POLLIN,4,4
	.comm	O_NONBLOCK,4,4
	.comm	IP_TOS,4,4
	.comm	IPTOS_THROUGHPUT,4,4
	.comm	IPPROTO_IP,4,4
	.comm	F_SETFL,4,4
	.comm	F_GETFL,4,4
	.comm	EINTR,4,4
	.comm	AF_INET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
