	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ftp_connect_data_connection
_ftp_connect_data_connection:           ## @ftp_connect_data_connection
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_CONTROL_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	$0, -56(%rbp)
	movq	16(%r14), %r13
	cmpl	$0, 16(%r13)
	je	LBB0_4
LBB0_1:
	movq	_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r13)
	xorl	%ebx, %ebx
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.3:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r13, %rdi
	callq	_ftp_passive_mode_epsv
	testq	%rax, %rax
	jns	LBB0_6
## %bb.5:
	movq	%r13, %rdi
	callq	_ftp_passive_mode
	testl	%eax, %eax
	js	LBB0_12
LBB0_6:
	leaq	16(%r13), %rbx
	movl	20(%r13), %r9d
	movl	24(%r13), %r8d
	subq	$8, %rsp
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	%r12d, %esi
	xorl	%ecx, %ecx
	pushq	$0
	callq	_ff_url_join
	addq	$16, %rsp
	movl	(%r13), %edx
	cmpl	$-1, %edx
	je	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	leaq	-56(%rbp), %rdi
	xorl	%ecx, %ecx
	callq	_av_dict_set_int
LBB0_8:
	movl	12(%r14), %edx
	leaq	8(%r14), %rcx
	movl	(%r14), %eax
	movl	4(%r14), %r9d
	leaq	-56(%rbp), %r12
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r12, %r8
	pushq	%r14
	pushq	%rax
	callq	_ffurl_open_whitelist
	addq	$16, %rsp
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_av_dict_free
	testl	%ebx, %ebx
	js	LBB0_2
## %bb.9:
	movq	8(%r13), %rsi
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.10:
	movq	%r13, %rdi
	callq	_ftp_restart
	testl	%eax, %eax
	jns	LBB0_1
LBB0_12:
	movl	%eax, %ebx
	jmp	LBB0_2
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CONTROL_BUFFER_SIZE,4,2        ## @CONTROL_BUFFER_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tcp"

L_.str.1:                               ## @.str.1
	.asciz	"timeout"

	.comm	_READY,4,2                      ## @READY
	.no_dead_strip	_ftp_connect_data_connection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ftp_connect_data_connection
_ftp_connect_data_connection:           ; @ftp_connect_data_connection
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #16
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _CONTROL_BUFFER_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CONTROL_BUFFER_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	mov	x9, x23
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x23, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
	stur	xzr, [x29, #-64]
	ldr	x19, [x0, #16]
	mov	x22, x19
	ldr	w8, [x22, #16]!
	cbz	w8, LBB0_4
LBB0_1:
	mov	w24, #0
Lloh8:
	adrp	x8, _READY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _READY@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19, #4]
LBB0_2:
	ldur	x8, [x29, #-56]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.3:
	mov	x0, x24
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x0, x19
	bl	_ftp_passive_mode_epsv
	tbz	x0, #63, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_ftp_passive_mode
	tbnz	w0, #31, LBB0_11
LBB0_6:
	ldp	w5, w4, [x19, #20]
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	x1, x23
	mov	x3, #0
	mov	x6, #0
	bl	_ff_url_join
	ldr	w2, [x19]
	cmn	w2, #1
	b.eq	LBB0_8
; %bb.7:
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	sub	x0, x29, #64
	mov	w3, #0
	bl	_av_dict_set_int
LBB0_8:
	ldr	w2, [x20, #12]
	add	x3, x20, #8
	ldp	w6, w5, [x20]
	sub	x4, x29, #64
	mov	x0, x22
	mov	x1, x21
	mov	x7, x20
	bl	_ffurl_open_whitelist
	mov	x24, x0
	sub	x0, x29, #64
	bl	_av_dict_free
	tbnz	w24, #31, LBB0_2
; %bb.9:
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_1
; %bb.10:
	mov	x0, x19
	bl	_ftp_restart
	tbz	w0, #31, LBB0_1
LBB0_11:
	mov	x24, x0
	b	LBB0_2
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_CONTROL_BUFFER_SIZE,4,2        ; @CONTROL_BUFFER_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tcp"

l_.str.1:                               ; @.str.1
	.asciz	"timeout"

	.comm	_READY,4,2                      ; @READY
	.no_dead_strip	_ftp_connect_data_connection
.subsections_via_symbols
