	.file	"extr_20731.c_ftp_gethomedir.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"CWD ~\n"
.LC1:
	.string	"PWD\n"
	.text
	.p2align 4
	.globl	ftp_gethomedir
	.type	ftp_gethomedir, @function
ftp_gethomedir:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	lea	rsi, .LC0[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	xor	r13d, r13d
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, edi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	write_sock@PLT
	mov	edi, r12d
	call	read_sock@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	atoi@PLT
	cmp	eax, 250
	je	.L7
.L2:
	mov	rdi, rbp
	call	free@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r13
	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
.L7:
	.cfi_restore_state
	lea	rsi, .LC1[rip]
	mov	edi, r12d
	call	write_sock@PLT
	mov	edi, r12d
	call	read_sock@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	atoi@PLT
	cmp	eax, 257
	jne	.L2
	mov	esi, 34
	mov	rdi, rbp
	call	strchr@PLT
	mov	esi, 34
	lea	r14, 1[rax]
	mov	rdi, r14
	call	strchr@PLT
	sub	rax, r14
	mov	edi, eax
	mov	r12, rax
	call	Malloc@PLT
	mov	edx, r12d
	mov	rsi, r14
	mov	r13, rax
	mov	rdi, rax
	call	strncpy@PLT
	mov	BYTE PTR 0[r13+r12], 0
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	ftp_gethomedir, .-ftp_gethomedir
	.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_20731.c_ftp_gethomedir.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"CWD ~\012\000"
	.align	2
.LC1:
	.ascii	"PWD\012\000"
	.text
	.align	2
	.global	ftp_gethomedir
	.syntax unified
	.arm
	.fpu softvfp
	.type	ftp_gethomedir, %function
ftp_gethomedir:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	ldr	r1, .L8
	bl	write_sock
	mov	r0, r5
	bl	read_sock
	mov	r4, r0
	bl	atoi
	cmp	r0, #250
	beq	.L7
.L4:
	mov	r5, #0
.L2:
	mov	r0, r4
	bl	free
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L7:
	ldr	r1, .L8+4
	mov	r0, r5
	bl	write_sock
	mov	r0, r5
	bl	read_sock
	mov	r4, r0
	bl	atoi
	ldr	r3, .L8+8
	cmp	r0, r3
	bne	.L4
	mov	r1, #34
	mov	r0, r4
	bl	strchr
	add	r5, r0, #1
	mov	r1, #34
	mov	r0, r5
	bl	strchr
	sub	r6, r0, r5
	mov	r0, r6
	bl	Malloc
	mov	r1, r5
	mov	r2, r6
	mov	r5, r0
	bl	strncpy
	mov	r3, #0
	strb	r3, [r5, r6]
	b	.L2
.L9:
	.align	2
.L8:
	.word	.LC0
	.word	.LC1
	.word	257
	.size	ftp_gethomedir, .-ftp_gethomedir
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
