	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ftp_move
_ftp_move:                              ## @ftp_move
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_MAX_URL_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movl	(%r12), %esi
	movq	%r12, %rdi
	callq	_ftp_connect
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	(%r15), %rcx
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_snprintf
	leaq	_ftp_move.rnfr_codes(%rip), %rdx
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	callq	_ftp_send_command
	cmpl	$350, %eax                      ## imm = 0x15E
	jne	LBB0_3
## %bb.2:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	%rbx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	pushq	%r15
	pushq	$0
	callq	_av_url_split
	addq	$32, %rsp
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r15, %rcx
	callq	_snprintf
	leaq	_ftp_move.rnto_codes(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	callq	_ftp_send_command
	cmpl	$250, %eax
	je	LBB0_5
LBB0_3:
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_4:
	movl	%eax, %r13d
LBB0_5:
	movq	%r12, %rdi
	callq	_ftp_close
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	movl	%r13d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_URL_SIZE,4,2               ## @MAX_URL_SIZE
	.section	__TEXT,__const
	.p2align	4                               ## @ftp_move.rnfr_codes
_ftp_move.rnfr_codes:
	.long	350                             ## 0x15e
	.long	421                             ## 0x1a5
	.long	450                             ## 0x1c2
	.long	500                             ## 0x1f4
	.long	501                             ## 0x1f5
	.long	502                             ## 0x1f6
	.long	503                             ## 0x1f7
	.long	530                             ## 0x212
	.long	0                               ## 0x0

	.p2align	4                               ## @ftp_move.rnto_codes
_ftp_move.rnto_codes:
	.long	250                             ## 0xfa
	.long	421                             ## 0x1a5
	.long	500                             ## 0x1f4
	.long	501                             ## 0x1f5
	.long	502                             ## 0x1f6
	.long	503                             ## 0x1f7
	.long	530                             ## 0x212
	.long	532                             ## 0x214
	.long	553                             ## 0x229
	.long	0                               ## 0x0

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RNFR %s\r\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.1:                               ## @.str.1
	.asciz	"RNTO %s\r\n"

	.no_dead_strip	_ftp_move
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ftp_move
_ftp_move:                              ; @ftp_move
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldr	x20, [x0, #8]
Lloh3:
	adrp	x8, _MAX_URL_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_URL_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	mov	x9, x22
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x22, #15
	and	x12, x9, #0x1fffffff0
	sub	x21, x8, x12
	mov	sp, x21
	mov	x9, x22
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x24, x8, x12
	mov	sp, x24
	ldr	w1, [x0]
	bl	_ftp_connect
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	x3, [x20]
Lloh10:
	adrp	x2, l_.str@PAGE
Lloh11:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	x1, x22
	bl	_snprintf
Lloh12:
	adrp	x2, _ftp_move.rnfr_codes@PAGE
Lloh13:
	add	x2, x2, _ftp_move.rnfr_codes@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	mov	x3, #0
	bl	_ftp_send_command
	cmp	w0, #350
	b.ne	LBB0_3
; %bb.2:
	ldr	w8, [x23]
	stp	w22, w8, [sp, #-16]!
	mov	w0, #0
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	mov	w6, #0
	mov	x7, x24
	bl	_av_url_split
	add	sp, sp, #16
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x1, x22
	mov	x3, x24
	bl	_snprintf
Lloh16:
	adrp	x2, _ftp_move.rnto_codes@PAGE
Lloh17:
	add	x2, x2, _ftp_move.rnto_codes@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	mov	x3, #0
	bl	_ftp_send_command
	mov	w25, #0
	cmp	w0, #250
	b.eq	LBB0_5
LBB0_3:
Lloh18:
	adrp	x8, _EIO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_4:
	mov	x25, x0
LBB0_5:
	mov	x0, x19
	bl	_ftp_close
	ldur	x8, [x29, #-72]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x25
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_URL_SIZE,4,2               ; @MAX_URL_SIZE
	.section	__TEXT,__const
	.p2align	2                               ; @ftp_move.rnfr_codes
_ftp_move.rnfr_codes:
	.long	350                             ; 0x15e
	.long	421                             ; 0x1a5
	.long	450                             ; 0x1c2
	.long	500                             ; 0x1f4
	.long	501                             ; 0x1f5
	.long	502                             ; 0x1f6
	.long	503                             ; 0x1f7
	.long	530                             ; 0x212
	.long	0                               ; 0x0

	.p2align	2                               ; @ftp_move.rnto_codes
_ftp_move.rnto_codes:
	.long	250                             ; 0xfa
	.long	421                             ; 0x1a5
	.long	500                             ; 0x1f4
	.long	501                             ; 0x1f5
	.long	502                             ; 0x1f6
	.long	503                             ; 0x1f7
	.long	530                             ; 0x212
	.long	532                             ; 0x214
	.long	553                             ; 0x229
	.long	0                               ; 0x0

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RNFR %s\r\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.1:                               ; @.str.1
	.asciz	"RNTO %s\r\n"

	.no_dead_strip	_ftp_move
.subsections_via_symbols
