	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ftp_passive_mode
_ftp_passive_mode:                      ## @ftp_passive_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	$0, -24(%rbp)
	movq	$0, -16(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	_ftp_passive_mode.pasv_codes(%rip), %rdx
	leaq	-24(%rbp), %rcx
	callq	_ftp_send_command
	cmpl	$227, %eax
	jne	LBB0_16
## %bb.1:
	movq	-24(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.2:
	xorl	%edi, %edi
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	leaq	1(%rax), %rdi
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%rax
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rax), %ecx
	cmpb	$40, %cl
	je	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testb	%cl, %cl
	je	LBB0_16
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$41, %cl
	jne	LBB0_15
## %bb.6:
	movq	%rax, -16(%rbp)
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.7:
	movb	$0, (%rax)
	leaq	L_.str.1(%rip), %rsi
	leaq	-16(%rbp), %rdx
	callq	_av_strtok
	testq	%rax, %rax
	je	LBB0_16
## %bb.8:
	movq	-16(%rbp), %rdi
	leaq	L_.str.1(%rip), %rsi
	leaq	-16(%rbp), %rdx
	callq	_av_strtok
	testq	%rax, %rax
	je	LBB0_16
## %bb.9:
	movq	-16(%rbp), %rdi
	leaq	L_.str.1(%rip), %rsi
	leaq	-16(%rbp), %rdx
	callq	_av_strtok
	testq	%rax, %rax
	je	LBB0_16
## %bb.10:
	movq	-16(%rbp), %rdi
	leaq	L_.str.1(%rip), %rsi
	leaq	-16(%rbp), %rdx
	callq	_av_strtok
	testq	%rax, %rax
	je	LBB0_16
## %bb.11:
	movq	-16(%rbp), %rdi
	leaq	L_.str.1(%rip), %rsi
	leaq	-16(%rbp), %rdx
	callq	_av_strtok
	testq	%rax, %rax
	je	LBB0_16
## %bb.12:
	movq	%rax, %rdi
	callq	_atoi
	shll	$8, %eax
	movl	%eax, (%rbx)
	movq	-16(%rbp), %rdi
	leaq	L_.str.1(%rip), %rsi
	leaq	-16(%rbp), %rdx
	callq	_av_strtok
	testq	%rax, %rax
	je	LBB0_16
## %bb.13:
	movq	%rax, %rdi
	callq	_atoi
	addl	(%rbx), %eax
	movl	%eax, (%rbx)
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_ff_dlog
	movq	-24(%rbp), %rdi
	callq	_av_free
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_16:
	movq	-24(%rbp), %rdi
	callq	_av_free
	movl	$-1, (%rbx)
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_17:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PASV\r\n"

	.section	__TEXT,__const
	.p2align	2                               ## @ftp_passive_mode.pasv_codes
_ftp_passive_mode.pasv_codes:
	.long	227                             ## 0xe3
	.long	0                               ## 0x0

	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	","

L_.str.2:                               ## @.str.2
	.asciz	"Server data port: %d\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_ftp_passive_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ftp_passive_mode
_ftp_passive_mode:                      ; @ftp_passive_mode
	.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
	stp	xzr, xzr, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
Lloh2:
	adrp	x2, _ftp_passive_mode.pasv_codes@PAGE
Lloh3:
	add	x2, x2, _ftp_passive_mode.pasv_codes@PAGEOFF
	add	x3, sp, #8
	bl	_ftp_send_command
	ldr	x8, [sp, #8]
	cmp	w0, #227
	ccmp	x8, #0, #4, eq
	b.ne	LBB0_3
LBB0_1:
	ldr	x0, [sp, #8]
	bl	_av_free
	mov	w8, #-1
	str	w8, [x19]
Lloh4:
	adrp	x8, _EIO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_3:
	mov	x0, #0
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x0, x8, #1
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x8, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x8]
	cmp	w9, #40
	b.eq	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	w9, LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w9, #41
	b.ne	LBB0_5
; %bb.9:
	str	x8, [sp]
	cbz	x0, LBB0_1
; %bb.10:
	strb	wzr, [x8]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, sp
	bl	_av_strtok
	cbz	x0, LBB0_1
; %bb.11:
	ldr	x0, [sp]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, sp
	bl	_av_strtok
	cbz	x0, LBB0_1
; %bb.12:
	ldr	x0, [sp]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, sp
	bl	_av_strtok
	cbz	x0, LBB0_1
; %bb.13:
	ldr	x0, [sp]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, sp
	bl	_av_strtok
	cbz	x0, LBB0_1
; %bb.14:
	ldr	x0, [sp]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, sp
	bl	_av_strtok
	cbz	x0, LBB0_1
; %bb.15:
	bl	_atoi
	lsl	w8, w0, #8
	str	w8, [x19]
	ldr	x0, [sp]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, sp
	bl	_av_strtok
	cbz	x0, LBB0_1
; %bb.16:
	bl	_atoi
	ldr	w8, [x19]
	add	w2, w8, w0
	str	w2, [x19]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_ff_dlog
	ldr	x0, [sp, #8]
	bl	_av_free
	mov	w0, #0
	b	LBB0_2
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PASV\r\n"

	.section	__TEXT,__const
	.p2align	2                               ; @ftp_passive_mode.pasv_codes
_ftp_passive_mode.pasv_codes:
	.long	227                             ; 0xe3
	.long	0                               ; 0x0

	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	","

l_.str.2:                               ; @.str.2
	.asciz	"Server data port: %d\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_ftp_passive_mode
.subsections_via_symbols
