	.file	"extr_ftp.c_FTP_SendRetrieve.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"\n"
	.text
	.p2align 4
	.type	FTP_SendRetrieve, @function
FTP_SendRetrieve:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	lea	rdi, .LC0[rip]
	call	TRACE@PLT
	mov	rdi, rbx
	call	FTP_InitListenSocket@PLT
	test	eax, eax
	jne	.L2
.L5:
	mov	edi, DWORD PTR [rbx]
	cmp	edi, -1
	jne	.L3
.L25:
	xor	r12d, r12d
.L1:
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	call	closesocket@PLT
	mov	DWORD PTR [rbx], -1
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L2:
	mov	esi, ebp
	mov	rdi, rbx
	call	FTP_SendType@PLT
	test	eax, eax
	je	.L5
	mov	rdi, rbx
	call	FTP_SendPortOrPasv@PLT
	test	eax, eax
	je	.L5
	mov	edi, DWORD PTR 8[rbx]
	mov	esi, DWORD PTR FTP_CMD_RETR[rip]
	mov	edx, r12d
	xor	r9d, r9d
	xor	r8d, r8d
	xor	ecx, ecx
	call	FTP_SendCommand@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L5
	mov	esi, DWORD PTR 4[rbx]
	mov	rdi, rbx
	call	FTP_ReceiveResponse@PLT
	cmp	eax, 125
	je	.L1
	cmp	eax, 150
	je	.L1
	mov	edi, eax
	call	FTP_SetResponseError@PLT
	mov	r12d, DWORD PTR FALSE[rip]
	test	r12d, r12d
	jne	.L1
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	FTP_SendRetrieve, .-FTP_SendRetrieve
	.comm	FTP_CMD_RETR,4,4
	.comm	FALSE,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_ftp.c_FTP_SendRetrieve.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	FTP_SendRetrieve, %function
FTP_SendRetrieve:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	sub	sp, sp, #8
	ldr	r0, .L24
	mov	r6, r1
	mov	r5, r2
	bl	TRACE
	mov	r0, r4
	bl	FTP_InitListenSocket
	cmp	r0, #0
	bne	.L2
.L5:
	ldr	r0, [r4]
	cmn	r0, #1
	moveq	r5, #0
	bne	.L23
.L1:
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L23:
	mov	r5, #0
	bl	closesocket
	mvn	r3, #0
	mov	r0, r5
	str	r3, [r4]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L2:
	mov	r1, r5
	mov	r0, r4
	bl	FTP_SendType
	cmp	r0, #0
	beq	.L5
	mov	r0, r4
	bl	FTP_SendPortOrPasv
	cmp	r0, #0
	beq	.L5
	mov	r3, #0
	ldr	r1, .L24+4
	str	r3, [sp, #4]
	str	r3, [sp]
	mov	r2, r6
	ldr	r1, [r1]
	ldr	r0, [r4, #8]
	bl	FTP_SendCommand
	subs	r5, r0, #0
	beq	.L5
	mov	r0, r4
	ldr	r1, [r4, #4]
	bl	FTP_ReceiveResponse
	cmp	r0, #125
	cmpne	r0, #150
	beq	.L1
	bl	FTP_SetResponseError
	ldr	r3, .L24+8
	ldr	r5, [r3]
	cmp	r5, #0
	bne	.L1
	b	.L5
.L25:
	.align	2
.L24:
	.word	.LC0
	.word	FTP_CMD_RETR
	.word	FALSE
	.size	FTP_SendRetrieve, .-FTP_SendRetrieve
	.comm	FTP_CMD_RETR,4,4
	.comm	FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
