	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ftp_setup
_ftp_setup:                             ## @ftp_setup
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	movq	%rsi, %r15
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.2:
	movl	%edx, %r14d
	movq	%rdi, %rbx
	movl	$40, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rax, %r12
	movq	%rbx, 32(%rax)
	movq	%r15, 24(%rax)
	movl	%r14d, (%rax)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	movq	_ftp_readfn@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ftp_writefn@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ftp_seekfn@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ftp_closefn@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, %rdi
	callq	_funopen
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:
	movq	%r12, %rdi
	callq	_free
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ftp_readfn,4,2                 ## @ftp_readfn
	.comm	_ftp_writefn,4,2                ## @ftp_writefn
	.comm	_ftp_seekfn,4,2                 ## @ftp_seekfn
	.comm	_ftp_closefn,4,2                ## @ftp_closefn
	.no_dead_strip	_ftp_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ftp_setup
_ftp_setup:                             ; @ftp_setup
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x22, x0
	mov	x0, #0
	cbz	x22, LBB0_5
; %bb.1:
	mov	x21, x1
	cbz	x1, LBB0_5
; %bb.2:
	mov	x20, x2
	mov	w0, #40
	bl	_malloc
	cbz	x0, LBB0_5
; %bb.3:
	mov	x19, x0
	stp	x21, x22, [x0, #24]
	str	w20, [x0]
	stp	xzr, xzr, [x0, #8]
Lloh0:
	adrp	x8, _ftp_readfn@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ftp_readfn@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _ftp_writefn@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ftp_writefn@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _ftp_seekfn@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ftp_seekfn@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
Lloh9:
	adrp	x8, _ftp_closefn@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ftp_closefn@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x8]
	bl	_funopen
	cbnz	x0, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_free
	mov	x0, #0
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ftp_readfn,4,2                 ; @ftp_readfn
	.comm	_ftp_writefn,4,2                ; @ftp_writefn
	.comm	_ftp_seekfn,4,2                 ; @ftp_seekfn
	.comm	_ftp_closefn,4,2                ; @ftp_closefn
	.no_dead_strip	_ftp_setup
.subsections_via_symbols
