	.file	"extr_ftpd.c_eprt.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Bad syntax in EPRT"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Network protocol %d not supported, use (1)"
	.section	.rodata.str1.1
.LC2:
	.string	"Bad address syntax in EPRT"
.LC3:
	.string	"Bad port syntax in EPRT"
	.section	.rodata.str1.8
	.align 8
.LC4:
	.string	"Bad port in invalid range in EPRT"
	.section	.rodata.str1.1
.LC5:
	.string	"Bad address in EPRT"
.LC6:
	.string	"EPRT command successful."
	.text
	.p2align 4
	.globl	eprt
	.type	eprt, @function
eprt:
.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
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR pdata[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	QWORD PTR usedefault[rip], 0
	test	edi, edi
	js	.L2
	call	close@PLT
	mov	DWORD PTR pdata[rip], -1
.L2:
	movzx	ebp, BYTE PTR [rbx]
	test	bpl, bpl
	je	.L5
	mov	r13, rsp
	xor	edx, edx
	lea	rdi, 1[rbx]
	mov	rsi, r13
	call	strtol@PLT
	mov	edx, eax
	test	eax, eax
	je	.L5
	mov	rax, QWORD PTR [rsp]
	cmp	BYTE PTR [rax], bpl
	je	.L31
.L5:
	lea	rsi, .LC0[rip]
	mov	edi, 500
	xor	eax, eax
	call	reply@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L32
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L31:
	.cfi_restore_state
	cmp	edx, 1
	je	.L33
	lea	rsi, .LC1[rip]
	mov	edi, 522
	xor	eax, eax
	call	reply@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L33:
	mov	rdx, QWORD PTR AF_INET[rip]
	lea	r12, 1[rax]
	movsx	esi, bpl
	mov	rax, QWORD PTR data_dest[rip]
	mov	rdi, r12
	mov	QWORD PTR [rax], rdx
	call	strchr@PLT
	mov	QWORD PTR [rsp], rax
	test	rax, rax
	je	.L5
	mov	BYTE PTR [rax], 0
	mov	rdi, QWORD PTR data_dest[rip]
	call	socket_get_address@PLT
	mov	rsi, r12
	mov	edx, eax
	mov	rax, QWORD PTR data_dest[rip]
	mov	rdi, QWORD PTR [rax]
	call	inet_pton@PLT
	cmp	eax, 1
	jne	.L34
	mov	rax, QWORD PTR [rsp]
	xor	edx, edx
	mov	rsi, r13
	lea	rdi, 1[rax]
	call	strtol@PLT
	test	eax, eax
	je	.L9
	mov	rdx, QWORD PTR [rsp]
	cmp	BYTE PTR [rdx], bpl
	jne	.L9
	cmp	DWORD PTR IPPORT_RESERVED[rip], eax
	jg	.L35
	mov	edi, eax
	call	htons@PLT
	mov	rdi, QWORD PTR data_dest[rip]
	mov	esi, eax
	call	socket_set_port@PLT
	cmp	QWORD PTR paranoid[rip], 0
	je	.L13
	mov	rax, QWORD PTR his_addr[rip]
	mov	rdi, QWORD PTR data_dest[rip]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR [rdi], rax
	je	.L14
.L15:
	lea	rsi, .LC5[rip]
	mov	edi, 500
	xor	eax, eax
	call	reply@PLT
.L13:
	lea	rsi, .LC6[rip]
	mov	edi, 200
	xor	eax, eax
	call	reply@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L34:
	lea	rsi, .LC2[rip]
	mov	edi, 500
	xor	eax, eax
	call	reply@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	lea	rsi, .LC3[rip]
	mov	edi, 500
	xor	eax, eax
	call	reply@PLT
	jmp	.L1
.L35:
	lea	rsi, .LC4[rip]
	mov	edi, 500
	xor	eax, eax
	call	reply@PLT
	jmp	.L1
.L14:
	call	socket_sockaddr_size@PLT
	mov	rdi, QWORD PTR his_addr[rip]
	mov	r12d, eax
	call	socket_get_address@PLT
	mov	rdi, QWORD PTR data_dest[rip]
	mov	ebp, eax
	call	socket_get_address@PLT
	mov	edx, r12d
	mov	esi, ebp
	mov	edi, eax
	call	memcmp@PLT
	test	rax, rax
	jne	.L15
	jmp	.L13
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	eprt, .-eprt
	.comm	usedefault,8,8
	.comm	pdata,4,4
	.comm	paranoid,8,8
	.comm	his_addr,8,8
	.comm	data_dest,8,8
	.comm	IPPORT_RESERVED,4,4
	.comm	AF_INET6,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_ftpd.c_eprt.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Bad syntax in EPRT\000"
	.align	2
.LC1:
	.ascii	"Network protocol %d not supported, use (1)\000"
	.align	2
.LC2:
	.ascii	"Bad address syntax in EPRT\000"
	.align	2
.LC3:
	.ascii	"Bad port syntax in EPRT\000"
	.align	2
.LC4:
	.ascii	"Bad port in invalid range in EPRT\000"
	.align	2
.LC5:
	.ascii	"Bad address in EPRT\000"
	.align	2
.LC6:
	.ascii	"EPRT command successful.\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	eprt
	.syntax unified
	.arm
	.fpu softvfp
	.type	eprt, %function
eprt:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r1, #0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r5, .L36
	mov	r4, r0
	ldr	r3, [r5]
	ldr	r2, .L36+4
	ldr	r0, .L36+8
	sub	sp, sp, #8
	cmp	r3, r1
	ldr	r0, [r0]
	str	r0, [sp, #4]
	mov	r0,#0
	str	r1, [r2]
	blt	.L2
	mov	r0, r3
	bl	close
	mvn	r3, #0
	str	r3, [r5]
.L2:
	ldrb	r5, [r4]	@ zero_extendqisi2
	cmp	r5, #0
	beq	.L5
	mov	r2, #0
	mov	r1, sp
	add	r0, r4, #1
	bl	strtol
	subs	r2, r0, #0
	beq	.L5
	ldr	r1, [sp]
	ldrb	r6, [r1]	@ zero_extendqisi2
	cmp	r6, r5
	beq	.L31
.L5:
	mov	r0, #500
	ldr	r1, .L36+12
	bl	reply
.L1:
	ldr	r3, .L36+8
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L32
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L31:
	cmp	r2, #1
	beq	.L33
	ldr	r1, .L36+16
	ldr	r0, .L36+20
	bl	reply
	b	.L1
.L33:
	ldr	r3, .L36+24
	ldr	r5, .L36+28
	ldr	r2, [r3]
	ldr	r3, [r5]
	add	r4, r1, #1
	mov	r0, r4
	mov	r1, r6
	str	r2, [r3]
	bl	strchr
	cmp	r0, #0
	str	r0, [sp]
	beq	.L5
	mov	r7, #0
	strb	r7, [r0]
	ldr	r0, [r5]
	ldr	r8, [r0]
	bl	socket_get_address
	mov	r1, r4
	mov	r2, r0
	mov	r0, r8
	bl	inet_pton
	cmp	r0, #1
	bne	.L34
	ldr	r0, [sp]
	mov	r2, r7
	mov	r1, sp
	add	r0, r0, #1
	bl	strtol
	subs	r3, r0, #0
	beq	.L9
	ldr	r2, [sp]
	ldrb	r2, [r2]	@ zero_extendqisi2
	cmp	r2, r6
	bne	.L9
	ldr	r2, .L36+32
	ldr	r2, [r2]
	cmp	r2, r3
	bgt	.L35
	ldr	r4, [r5]
	bl	htons
	mov	r1, r0
	mov	r0, r4
	bl	socket_set_port
	ldr	r3, .L36+36
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L13
	ldr	r4, .L36+40
	ldr	r0, [r5]
	ldr	r3, [r4]
	ldr	r2, [r0]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L14
.L15:
	mov	r0, #500
	ldr	r1, .L36+44
	bl	reply
.L13:
	ldr	r1, .L36+48
	mov	r0, #200
	bl	reply
	b	.L1
.L34:
	ldr	r1, .L36+52
	mov	r0, #500
	bl	reply
	b	.L1
.L9:
	ldr	r1, .L36+56
	mov	r0, #500
	bl	reply
	b	.L1
.L35:
	ldr	r1, .L36+60
	mov	r0, #500
	bl	reply
	b	.L1
.L14:
	bl	socket_get_address
	mov	r3, r0
	ldr	r0, [r4]
	mov	r4, r3
	bl	socket_get_address
	mov	r3, r0
	ldr	r0, [r5]
	mov	r5, r3
	bl	socket_sockaddr_size
	mov	r1, r5
	mov	r2, r0
	mov	r0, r4
	bl	memcmp
	cmp	r0, #0
	bne	.L15
	b	.L13
.L32:
	bl	__stack_chk_fail
.L37:
	.align	2
.L36:
	.word	pdata
	.word	usedefault
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	522
	.word	AF_INET
	.word	data_dest
	.word	IPPORT_RESERVED
	.word	paranoid
	.word	his_addr
	.word	.LC5
	.word	.LC6
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	eprt, .-eprt
	.comm	usedefault,4,4
	.comm	pdata,4,4
	.comm	paranoid,4,4
	.comm	his_addr,4,4
	.comm	data_dest,4,4
	.comm	IPPORT_RESERVED,4,4
	.comm	AF_INET6,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
