	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function complete_ambiguous
_complete_ambiguous:                    ## @complete_ambiguous
	.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
	movq	%rdx, %r12
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rax, %r13
	movslq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	cmpl	$1, %eax
	jne	LBB0_6
## %bb.2:
	movq	8(%r12), %rax
	movq	(%rax), %rbx
	cmpb	$0, (%rbx,%r13)
	je	LBB0_14
## %bb.3:
	addq	%r13, %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%rbx, %rdx
	movq	%rax, %rcx
	callq	_ftpvis
	movq	_el@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_el_insertstr
	cmpl	$-1, %eax
	je	LBB0_5
LBB0_14:
	movq	_CC_REFRESH@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_6:
	testl	%r14d, %r14d
	jne	LBB0_18
## %bb.7:
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	8(%r12), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rax, %r14
	movl	$1, %r12d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=1
	cmpq	%r14, %rcx
	cmovbq	%rcx, %r14
	incq	%r12
	cmpq	-88(%rbp), %r12                 ## 8-byte Folded Reload
	je	LBB0_15
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r12,8), %r15
	movq	%r15, %rdi
	callq	_strlen
	movq	%r13, %rcx
	cmpq	%rax, %r13
	jae	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r13, %rcx
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%rbx,%rcx), %edx
	cmpb	(%r15,%rcx), %dl
	jne	LBB0_8
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rax, %rcx
	jmp	LBB0_8
LBB0_15:
	subq	%r13, %r14
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jbe	LBB0_18
## %bb.16:
	addq	%r13, %rbx
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	callq	_ftpvis
	movq	_el@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_el_insertstr
	cmpl	$-1, %eax
	jne	LBB0_20
LBB0_5:
	movq	_CC_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_18:
	movq	_ttyout@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$10, %edi
	callq	_putc
	movq	8(%r12), %rdi
	movslq	(%r12), %rsi
	movq	_comparstr@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$8, %edx
	callq	_qsort
	movq	%r12, %rdi
	callq	_list_vertical
	movq	_CC_REDISPLAY@GOTPCREL(%rip), %rax
LBB0_21:
	movzbl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_23
## %bb.22:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	_CC_REFRESH_BEEP@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPATHLEN,4,2                 ## @MAXPATHLEN
	.comm	_CC_ERROR,1,0                   ## @CC_ERROR
	.comm	_CC_REFRESH,1,0                 ## @CC_REFRESH
	.comm	_el,4,2                         ## @el
	.comm	_CC_REFRESH_BEEP,1,0            ## @CC_REFRESH_BEEP
	.comm	_ttyout,4,2                     ## @ttyout
	.comm	_comparstr,4,2                  ## @comparstr
	.comm	_CC_REDISPLAY,1,0               ## @CC_REDISPLAY
	.no_dead_strip	_complete_ambiguous
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function complete_ambiguous
_complete_ambiguous:                    ; @complete_ambiguous
	.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, #16
	mov	x20, x2
	mov	x23, x1
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	x24, x8, x9
	mov	sp, x24
	bl	_strlen
	ldr	w8, [x20]
Lloh8:
	adrp	x26, _CC_ERROR@GOTPAGE
Lloh9:
	ldr	x26, [x26, _CC_ERROR@GOTPAGEOFF]
	cbz	w8, LBB0_16
; %bb.1:
	mov	x22, x0
	cmp	w8, #1
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	add	x20, x8, x22
	ldrb	w8, [x20]
Lloh10:
	adrp	x19, _CC_REFRESH@GOTPAGE
Lloh11:
	ldr	x19, [x19, _CC_REFRESH@GOTPAGEOFF]
	cbz	w8, LBB0_12
; %bb.3:
	mov	x0, x20
	bl	_strlen
	mov	x3, x0
	mov	x0, x24
	mov	x1, x21
	mov	x2, x20
	bl	_ftpvis
Lloh12:
	adrp	x8, _el@GOTPAGE
Lloh13:
	ldr	x8, [x8, _el@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, x24
	bl	_el_insertstr
	cmn	w0, #1
	csel	x26, x26, x19, eq
	b	LBB0_16
LBB0_4:
	cbnz	w23, LBB0_15
; %bb.5:
	stur	x24, [x29, #-96]                ; 8-byte Folded Spill
	sxtw	x27, w8
	ldr	x28, [x20, #8]
	ldr	x23, [x28]
	mov	x0, x23
	bl	_strlen
	mov	x24, x0
	mov	w19, #1
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	cmp	x8, x24
	csel	x24, x8, x24, lo
	add	x19, x19, #1
	cmp	x19, x27
	b.eq	LBB0_13
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldr	x25, [x28, x19, lsl #3]
	mov	x0, x25
	bl	_strlen
	mov	x8, x22
	cmp	x22, x0
	b.hs	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x8, x22
LBB0_9:                                 ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w9, [x23, x8]
	ldrb	w10, [x25, x8]
	cmp	w9, w10
	b.ne	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	add	x8, x8, #1
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x8, x0
	b	LBB0_6
LBB0_12:
	mov	x26, x19
	b	LBB0_16
LBB0_13:
	subs	x3, x24, x22
	ldur	x19, [x29, #-96]                ; 8-byte Folded Reload
	b.ls	LBB0_15
; %bb.14:
	add	x2, x23, x22
	mov	x0, x19
	mov	x1, x21
	bl	_ftpvis
Lloh15:
	adrp	x8, _el@GOTPAGE
Lloh16:
	ldr	x8, [x8, _el@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_el_insertstr
Lloh18:
	adrp	x8, _CC_REFRESH_BEEP@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CC_REFRESH_BEEP@GOTPAGEOFF]
	cmn	w0, #1
	csel	x26, x26, x8, eq
	b	LBB0_16
LBB0_15:
Lloh20:
	adrp	x8, _ttyout@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ttyout@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	w0, #10
	bl	_putc
	ldr	x0, [x20, #8]
	ldrsw	x1, [x20]
Lloh23:
	adrp	x8, _comparstr@GOTPAGE
Lloh24:
	ldr	x8, [x8, _comparstr@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
	mov	w2, #8
	bl	_qsort
	mov	x0, x20
	bl	_list_vertical
Lloh26:
	adrp	x26, _CC_REDISPLAY@GOTPAGE
Lloh27:
	ldr	x26, [x26, _CC_REDISPLAY@GOTPAGEOFF]
LBB0_16:
	ldrb	w0, [x26]
	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_18
; %bb.17:
	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_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPATHLEN,4,2                 ; @MAXPATHLEN
	.comm	_CC_ERROR,1,0                   ; @CC_ERROR
	.comm	_CC_REFRESH,1,0                 ; @CC_REFRESH
	.comm	_el,4,2                         ; @el
	.comm	_CC_REFRESH_BEEP,1,0            ; @CC_REFRESH_BEEP
	.comm	_ttyout,4,2                     ; @ttyout
	.comm	_comparstr,4,2                  ; @comparstr
	.comm	_CC_REDISPLAY,1,0               ; @CC_REDISPLAY
	.no_dead_strip	_complete_ambiguous
.subsections_via_symbols
