	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function libssh_move
_libssh_move:                           ## @libssh_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
	pushq	%rax
	movl	$4136, %eax                     ## imm = 0x1028
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %rax
	movq	%rax, -4160(%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, %r12
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r11
	movl	$22, -4152(%rbp)
	movl	$22, -4148(%rbp)
	movl	(%r15), %eax
	leaq	-4152(%rbp), %r10
	leaq	-3120(%rbp), %r14
	leaq	-1072(%rbp), %r8
	xorl	%edi, %edi
	xorl	%esi, %esi
	movq	%r14, %rdx
	movl	$1024, %ecx                     ## imm = 0x400
	movl	$1024, %r9d                     ## imm = 0x400
	pushq	%rax
	pushq	%rbx
	movq	%r12, -4168(%rbp)               ## 8-byte Spill
	pushq	%r12
	movq	%r11, %r12
	pushq	%r10
	callq	_av_url_split
	addq	$32, %rsp
	movl	(%r13), %eax
	leaq	-4148(%rbp), %r10
	leaq	-4144(%rbp), %r13
	leaq	-2096(%rbp), %r8
	xorl	%edi, %edi
	xorl	%esi, %esi
	movq	%r13, %rdx
	movl	$1024, %ecx                     ## imm = 0x400
	movl	$1024, %r9d                     ## imm = 0x400
	pushq	%rax
	pushq	%rbx
	pushq	%r12
	pushq	%r10
	callq	_av_url_split
	addq	$32, %rsp
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	leaq	-1072(%rbp), %rdi
	leaq	-2096(%rbp), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movl	-4152(%rbp), %eax
	cmpl	-4148(%rbp), %eax
	jne	LBB0_3
## %bb.4:
	movl	(%r15), %esi
	movq	%r15, %rdi
	movq	-4168(%rbp), %r13               ## 8-byte Reload
	movq	%r13, %rdx
	movl	%ebx, %ecx
	callq	_libssh_connect
	testl	%eax, %eax
	js	LBB0_7
## %bb.5:
	movq	-4160(%rbp), %r14               ## 8-byte Reload
	movl	(%r14), %edi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_sftp_rename
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jns	LBB0_8
## %bb.6:
	movl	(%r14), %edi
	callq	_sftp_get_error
	movl	%eax, %edi
	callq	_AVERROR
LBB0_7:
	movl	%eax, %ebx
LBB0_8:
	movq	%r15, %rdi
	callq	_libssh_close
	jmp	LBB0_9
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %ebx
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_URL_SIZE,4,2               ## @MAX_URL_SIZE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_libssh_move
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function libssh_move
_libssh_move:                           ; @libssh_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
	mov	w9, #4112
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #1, lsl #12             ; =4096
	sub	sp, sp, #16
	mov	x19, sp
	mov	x24, x1
	mov	x20, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldr	x25, [x0, #8]
Lloh5:
	adrp	x8, _MAX_URL_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAX_URL_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w22, [x8]
	mov	x9, x22
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	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
Lloh10:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh11:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x23, x8, x12
	mov	sp, x23
	mov	w8, #22
	stp	w8, w8, [x19]
	ldr	w8, [x0]
	stp	w22, w8, [sp, #-16]!
	add	x2, x19, #1032
	add	x4, x19, #3080
	add	x6, x19, #4
	mov	x0, #0
	mov	w1, #0
	mov	w3, #1024
	mov	w5, #1024
	mov	x7, x21
	bl	_av_url_split
	add	sp, sp, #16
	ldr	w8, [x24]
	stp	w22, w8, [sp, #-16]!
	add	x2, x19, #8
	add	x4, x19, #2056
	add	x6, x19, #0
	mov	x0, #0
	mov	w1, #0
	mov	w3, #1024
	mov	w5, #1024
	mov	x7, x23
	bl	_av_url_split
	add	sp, sp, #16
	add	x0, x19, #1032
	add	x1, x19, #8
	bl	_strcmp
	cbnz	x0, LBB0_6
; %bb.1:
	add	x0, x19, #3080
	add	x1, x19, #2056
	bl	_strcmp
	cbnz	x0, LBB0_6
; %bb.2:
	ldp	w9, w8, [x19]
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.3:
	ldr	w1, [x20]
	mov	x0, x20
	mov	x2, x21
	mov	x3, x22
	bl	_libssh_connect
	tbnz	w0, #31, LBB0_10
; %bb.4:
	ldr	w0, [x25]
	mov	x1, x21
	mov	x2, x23
	bl	_sftp_rename
	tbnz	x0, #63, LBB0_9
; %bb.5:
	mov	w22, #0
	b	LBB0_11
LBB0_6:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x22, x0
LBB0_7:
	ldur	x8, [x29, #-72]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.8:
	mov	x0, x22
	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_9:
	ldr	w0, [x25]
	bl	_sftp_get_error
	bl	_AVERROR
LBB0_10:
	mov	x22, x0
LBB0_11:
	mov	x0, x20
	bl	_libssh_close
	b	LBB0_7
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_URL_SIZE,4,2               ; @MAX_URL_SIZE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_libssh_move
.subsections_via_symbols
