	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ftp_current_dir
_ftp_current_dir:                       ## @ftp_current_dir
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	$0, -24(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	_ftp_current_dir.pwd_codes(%rip), %rdx
	leaq	-24(%rbp), %rcx
	callq	_ftp_send_command
	movq	-24(%rbp), %rdi
	cmpl	$257, %eax                      ## imm = 0x101
	jne	LBB0_5
## %bb.1:
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.2:
	leaq	1(%rdi), %rcx
	xorl	%eax, %eax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rcx, %rdx
	testq	%rax, %rax
	jne	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rcx
	movq	%rdx, %rax
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	-1(%rcx), %ebx
	cmpb	$34, %bl
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rdx
	testb	%bl, %bl
	jne	LBB0_7
LBB0_5:
	callq	_av_free
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_11:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	movb	$0, -1(%rcx)
	movq	%rax, %rdi
	callq	_av_strdup
	movl	%eax, (%r14)
	movq	-24(%rbp), %rdi
	callq	_av_free
	xorl	%eax, %eax
	cmpl	$0, (%r14)
	jne	LBB0_11
## %bb.9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PWD\r\n"

	.section	__TEXT,__const
	.p2align	2                               ## @ftp_current_dir.pwd_codes
_ftp_current_dir.pwd_codes:
	.long	257                             ## 0x101
	.long	0                               ## 0x0

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_ftp_current_dir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ftp_current_dir
_ftp_current_dir:                       ; @ftp_current_dir
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	str	xzr, [sp, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
Lloh2:
	adrp	x2, _ftp_current_dir.pwd_codes@PAGE
Lloh3:
	add	x2, x2, _ftp_current_dir.pwd_codes@PAGEOFF
	add	x3, sp, #8
	bl	_ftp_send_command
	mov	x8, x0
	ldr	x0, [sp, #8]
	cmp	w8, #257
	ccmp	x0, #0, #4, eq
	b.eq	LBB0_6
; %bb.1:
	mov	x8, #0
	add	x9, x0, #1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x1, x9
	cbnz	x8, LBB0_9
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #1
	mov	x8, x1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldurb	w10, [x9, #-1]
	cmp	w10, #34
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x1, x8
	cbnz	w10, LBB0_3
LBB0_6:
	bl	_av_free
Lloh4:
	adrp	x8, _EIO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_9:
	sturb	wzr, [x9, #-1]
	mov	x0, x8
	bl	_av_strdup
	str	w0, [x19]
	ldr	x0, [sp, #8]
	bl	_av_free
	mov	w0, #0
	ldr	w8, [x19]
	cbnz	w8, LBB0_8
; %bb.10:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PWD\r\n"

	.section	__TEXT,__const
	.p2align	2                               ; @ftp_current_dir.pwd_codes
_ftp_current_dir.pwd_codes:
	.long	257                             ; 0x101
	.long	0                               ; 0x0

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_ftp_current_dir
.subsections_via_symbols
