	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ftp_abort
_ftp_abort:                             ## @ftp_abort
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %rbx
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ftp_send_command
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_ftp_close_data_connection
	leaq	_ftp_abort.abor_codes(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ftp_status
	cmpl	$224, %eax
	jg	LBB0_6
## %bb.3:
	movq	%rbx, %rdi
	callq	_ffurl_closep
	jmp	LBB0_4
LBB0_1:
	movq	%rbx, %rdi
	callq	_ftp_close_both_connections
LBB0_4:
	movq	%r15, %rdi
	callq	_ftp_connect_control_connection
	testl	%eax, %eax
	jns	LBB0_6
## %bb.5:
	movl	%eax, %r14d
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	callq	_av_log
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ABOR\r\n"

	.section	__TEXT,__const
	.p2align	2                               ## @ftp_abort.abor_codes
_ftp_abort.abor_codes:
	.long	225                             ## 0xe1
	.long	226                             ## 0xe2
	.long	0                               ## 0x0

	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"Reconnect failed.\n"

	.no_dead_strip	_ftp_abort
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ftp_abort
_ftp_abort:                             ; @ftp_abort
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x20, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, #0
	mov	x3, #0
	bl	_ftp_send_command
	tbnz	x0, #63, LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_ftp_close_data_connection
Lloh2:
	adrp	x2, _ftp_abort.abor_codes@PAGE
Lloh3:
	add	x2, x2, _ftp_abort.abor_codes@PAGEOFF
	mov	x0, x20
	mov	x1, #0
	bl	_ftp_status
	cmp	w0, #224
	b.gt	LBB0_5
; %bb.2:
	mov	x0, x20
	bl	_ffurl_closep
	b	LBB0_4
LBB0_3:
	mov	x0, x20
	bl	_ftp_close_both_connections
LBB0_4:
	mov	x0, x19
	bl	_ftp_connect_control_connection
	tbnz	w0, #31, LBB0_6
LBB0_5:
	mov	w20, #0
	b	LBB0_7
LBB0_6:
	mov	x20, x0
Lloh4:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_av_log
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ABOR\r\n"

	.section	__TEXT,__const
	.p2align	2                               ; @ftp_abort.abor_codes
_ftp_abort.abor_codes:
	.long	225                             ; 0xe1
	.long	226                             ; 0xe2
	.long	0                               ; 0x0

	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"Reconnect failed.\n"

	.no_dead_strip	_ftp_abort
.subsections_via_symbols
