	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function complete_local
_complete_local:                        ## @complete_local
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	%r15, %rdi
	movl	$47, %esi
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	cmpq	%r15, %rax
	je	LBB0_3
## %bb.4:
	movl	%ebx, %edx
	subl	%r15d, %edx
	incl	%edx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_strlcpy
	incq	%rbx
	cmpb	$126, (%r12)
	jne	LBB0_8
## %bb.5:
	movq	%r12, %rdi
	callq	_globulize
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r15
	movq	%r12, %rdi
	movq	%rax, %rsi
	movl	%r14d, %edx
	callq	_strlcpy
	movq	%r15, %rdi
	callq	_free
LBB0_8:
	movq	%rbx, %r15
	jmp	LBB0_9
LBB0_1:
	movw	$46, (%r12)
	jmp	LBB0_9
LBB0_3:
	movw	$47, (%r12)
	incq	%r15
LBB0_9:
	movq	%r12, %rdi
	callq	_opendir
	testq	%rax, %rax
	je	LBB0_6
## %bb.10:
	movq	%rax, %rbx
	movl	%r13d, -60(%rbp)                ## 4-byte Spill
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_ftp_sl_init
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_strlen
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_readdir
	testq	%rax, %rax
	je	LBB0_18
## %bb.11:
	movq	%rax, %r13
	leaq	L_.str(%rip), %r15
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	%rbx, %rdi
	callq	_readdir
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_18
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %r12
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%r12, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpq	8(%r13), %r14
	ja	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	(%r13), %rdi
	callq	_ftp_strdup
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	callq	_ftp_sl_add
	jmp	LBB0_17
LBB0_18:
	movq	%rbx, %rdi
	callq	_closedir
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_complete_ambiguous
	movl	%eax, %r14d
	movq	_CC_REFRESH@GOTPCREL(%rip), %rax
	cmpb	(%rax), %r14b
	jne	LBB0_24
## %bb.19:
	movq	%rsp, %r12
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	%rbx, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_strlcpy
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_strlcat
	movq	(%r13), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_strlcat
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_stat
	testq	%rax, %rax
	js	LBB0_23
## %bb.20:
	movw	$32, -50(%rbp)
	movl	-56(%rbp), %edi
	callq	_S_ISDIR
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	movb	$47, -50(%rbp)
LBB0_22:
	movq	_el@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-50(%rbp), %rsi
	callq	_el_insertstr
	cmpl	$-1, %eax
	movq	_CC_ERROR@GOTPCREL(%rip), %rax
	movzbl	%r14b, %ecx
	movzbl	(%rax), %r14d
	cmovnel	%ecx, %r14d
LBB0_23:
	movq	%r12, %rsp
LBB0_24:
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_sl_free
	jmp	LBB0_25
LBB0_6:
	movq	_CC_ERROR@GOTPCREL(%rip), %rax
	movb	(%rax), %r14b
LBB0_25:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_27
## %bb.26:
	movzbl	%r14b, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPATHLEN,4,2                 ## @MAXPATHLEN
	.comm	_CC_ERROR,1,0                   ## @CC_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"."

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

	.comm	_CC_REFRESH,1,0                 ## @CC_REFRESH
L_.str.2:                               ## @.str.2
	.asciz	"/"

	.comm	_el,4,2                         ## @el
	.no_dead_strip	_complete_local
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function complete_local
_complete_local:                        ; @complete_local
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #32
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MAXPATHLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXPATHLEN@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	x9, x21
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x21, #15
	and	x9, x9, #0x1fffffff0
	sub	x19, x8, x9
	mov	sp, x19
	mov	w1, #47
	bl	_strrchr
	cbz	x0, LBB0_5
; %bb.1:
	mov	x23, x0
	cmp	x0, x22
	b.eq	LBB0_6
; %bb.2:
	sub	w8, w23, w22
	add	w2, w8, #1
	mov	x0, x19
	mov	x1, x22
	bl	_strlcpy
	ldrb	w8, [x19]
	add	x22, x23, #1
	cmp	w8, #126
	b.ne	LBB0_7
; %bb.3:
	mov	x0, x19
	bl	_globulize
	cbz	x0, LBB0_23
; %bb.4:
	mov	x23, x0
	mov	x0, x19
	mov	x1, x23
	mov	x2, x21
	bl	_strlcpy
	mov	x0, x23
	bl	_free
	b	LBB0_7
LBB0_5:
	mov	w8, #46
	strh	w8, [x19]
	b	LBB0_7
LBB0_6:
	mov	w8, #47
	strh	w8, [x19]
	add	x22, x22, #1
LBB0_7:
	mov	x0, x19
	bl	_opendir
	cbz	x0, LBB0_23
; %bb.8:
	mov	x23, x0
	bl	_ftp_sl_init
	mov	x21, x0
	mov	x0, x22
	bl	_strlen
	mov	x24, x0
	mov	x0, x23
	bl	_readdir
	cbz	x0, LBB0_16
; %bb.9:
	mov	x27, x0
Lloh8:
	adrp	x25, l_.str@PAGE
Lloh9:
	add	x25, x25, l_.str@PAGEOFF
Lloh10:
	adrp	x26, l_.str.1@PAGE
Lloh11:
	add	x26, x26, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x23
	bl	_readdir
	mov	x27, x0
	cbz	x0, LBB0_16
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x28, [x27]
	mov	x0, x28
	mov	x1, x25
	bl	_strcmp
	cbz	w0, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x28
	mov	x1, x26
	bl	_strcmp
	cbz	w0, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x27, #8]
	cmp	x24, x8
	b.hi	LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x22
	mov	x1, x28
	mov	x2, x24
	bl	_strncmp
	cbnz	x0, LBB0_10
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x0, [x27]
	bl	_ftp_strdup
	mov	x1, x0
	mov	x0, x21
	bl	_ftp_sl_add
	b	LBB0_10
LBB0_16:
	mov	x0, x23
	bl	_closedir
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	bl	_complete_ambiguous
	mov	x20, x0
Lloh12:
	adrp	x8, _CC_REFRESH@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CC_REFRESH@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_22
; %bb.17:
	mov	x24, sp
Lloh14:
	adrp	x8, _MAXPATHLEN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MAXPATHLEN@GOTPAGEOFF]
Lloh16:
	ldr	w22, [x8]
	mov	x9, x22
Lloh17:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh18:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x22, #15
	and	x9, x9, #0x1fffffff0
	sub	x23, x8, x9
	mov	sp, x23
	mov	x0, x23
	mov	x1, x19
	mov	x2, x22
	bl	_strlcpy
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x23
	mov	x2, x22
	bl	_strlcat
	ldr	x8, [x21]
	ldr	x1, [x8]
	mov	x0, x23
	mov	x2, x22
	bl	_strlcat
	sub	x1, x29, #96
	mov	x0, x23
	bl	_stat
	tbnz	x0, #63, LBB0_21
; %bb.18:
	mov	w8, #32
	sturh	w8, [x29, #-98]
	ldur	w0, [x29, #-96]
	bl	_S_ISDIR
	cbz	x0, LBB0_20
; %bb.19:
	mov	w8, #47
	sturb	w8, [x29, #-98]
LBB0_20:
Lloh21:
	adrp	x8, _el@GOTPAGE
Lloh22:
	ldr	x8, [x8, _el@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	sub	x1, x29, #98
	bl	_el_insertstr
Lloh24:
	adrp	x8, _CC_ERROR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _CC_ERROR@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmn	w0, #1
	csel	w20, w8, w20, eq
LBB0_21:
	mov	sp, x24
LBB0_22:
	mov	x0, x21
	mov	w1, #1
	bl	_sl_free
	b	LBB0_24
LBB0_23:
Lloh26:
	adrp	x8, _CC_ERROR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _CC_ERROR@GOTPAGEOFF]
	ldrb	w20, [x8]
LBB0_24:
	ldur	x8, [x29, #-88]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_26
; %bb.25:
	and	w0, w20, #0xff
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_26:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPATHLEN,4,2                 ; @MAXPATHLEN
	.comm	_CC_ERROR,1,0                   ; @CC_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"."

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

	.comm	_CC_REFRESH,1,0                 ; @CC_REFRESH
l_.str.2:                               ; @.str.2
	.asciz	"/"

	.comm	_el,4,2                         ; @el
	.no_dead_strip	_complete_local
.subsections_via_symbols
