	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function complete
_complete:                              ## @complete
	.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	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_opendir
	movq	%rax, -4168(%rbp)               ## 8-byte Spill
	movq	%rbx, -4152(%rbp)               ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_el_wline
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	%rax, %rcx
	negq	%rcx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %r13
	movq	%rcx, %r14
	movl	-4(%rax), %edi
	callq	_iswspace
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	-4(%r13), %rax
	leaq	4(%r14), %rcx
	cmpq	8(%rbx), %rax
	ja	LBB0_1
LBB0_3:
	movq	(%rbx), %r15
	movq	%r15, -4160(%rbp)               ## 8-byte Spill
	subq	%r13, %r15
	shrq	$2, %r15
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_wctomb
	movq	_MB_LEN_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	imull	%r15d, %edi
	incl	%edi
	callq	_malloc
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_5:
	movq	%rbx, %r12
	testl	%r15d, %r15d
	movq	%rbx, %r15
	jle	LBB0_8
## %bb.6:
	movq	-4160(%rbp), %rax               ## 8-byte Reload
	addq	%r14, %rax
	shrq	$2, %rax
	movl	%eax, %r14d
	xorl	%ebx, %ebx
	movq	%r15, %r12
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13,%rbx,4), %esi
	movq	%r12, %rdi
	callq	_wctomb
	cltq
	addq	%rax, %r12
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_7
LBB0_8:
	movb	$0, (%r12)
	movq	-4168(%rbp), %rbx               ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_readdir
	testq	%rax, %rax
	je	LBB0_16
## %bb.9:
	movq	%rax, %r13
	subq	%r15, %r12
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %rdi
	callq	_readdir
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_16
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	callq	_strlen
	cmpl	%r12d, %eax
	jl	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	(%r13), %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_15
## %bb.12:
	movslq	%r12d, %rsi
	shlq	$2, %rsi
	addq	(%r13), %rsi
	leaq	-4144(%rbp), %r14
	movq	%r14, %rdi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_mbstowcs
	movq	-4152(%rbp), %rdi               ## 8-byte Reload
	movq	%r14, %rsi
	callq	_el_winsertstr
	cmpl	$-1, %eax
	je	LBB0_13
## %bb.14:
	movq	_CC_REFRESH@GOTPCREL(%rip), %rax
	movb	(%rax), %r14b
	jmp	LBB0_17
LBB0_16:
	xorl	%r14d, %r14d
LBB0_17:
	movq	%rbx, %rdi
	callq	_closedir
	movq	%r15, %rdi
	callq	_free
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.18:
	movzbl	%r14b, %eax
	addq	$4136, %rsp                     ## imm = 0x1028
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_CC_ERROR@GOTPCREL(%rip), %rax
	movb	(%rax), %r14b
	jmp	LBB0_17
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"."

	.comm	_MB_LEN_MAX,4,2                 ## @MB_LEN_MAX
L_.str.1:                               ## @.str.1
	.asciz	"malloc"

	.comm	_CC_ERROR,1,0                   ## @CC_ERROR
	.comm	_CC_REFRESH,1,0                 ## @CC_REFRESH
	.no_dead_strip	_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function complete
_complete:                              ; @complete
	.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	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]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_opendir
	mov	x19, x0
	mov	x0, x20
	bl	_el_wline
	mov	x21, x0
	ldr	x8, [x0]
	mov	x22, x8
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x23, x22
	mov	x24, x8
	ldr	w0, [x22, #-4]!
	bl	_iswspace
	cbnz	w0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x9, [x21, #8]
	sub	x8, x24, #4
	cmp	x22, x9
	b.hi	LBB0_1
LBB0_3:
	ldr	x8, [x21]
	sub	x24, x8, x24
	lsr	x25, x24, #2
	mov	x0, #0
	mov	w1, #0
	bl	_wctomb
Lloh7:
	adrp	x8, _MB_LEN_MAX@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MB_LEN_MAX@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	orr	w9, wzr, #0x1
	madd	w0, w8, w25, w9
	bl	_malloc
	mov	x21, x0
	cbnz	x0, LBB0_5
; %bb.4:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_5:
	mov	x22, x21
	cmp	w25, #1
	b.lt	LBB0_8
; %bb.6:
	mov	x25, #0
	ubfx	x8, x24, #2, #32
	lsl	x24, x8, #2
	mov	x22, x21
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23, x25]
	mov	x0, x22
	bl	_wctomb
	add	x22, x22, w0, sxtw
	add	x25, x25, #4
	cmp	x24, x25
	b.ne	LBB0_7
LBB0_8:
	strb	wzr, [x22]
	mov	x0, x19
	bl	_readdir
	cbz	x0, LBB0_15
; %bb.9:
	mov	x23, x0
	sub	x22, x22, x21
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x19
	bl	_readdir
	mov	x23, x0
	cbz	x0, LBB0_15
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x23]
	bl	_strlen
	cmp	w0, w22
	b.lt	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x0, [x23]
	mov	x1, x21
	mov	x2, x22
	bl	_strncmp
	cbnz	x0, LBB0_10
; %bb.13:
	ldr	x8, [x23]
	lsl	x9, x22, #32
	add	x1, x8, x9, asr #30
	add	x0, sp, #8
	mov	w2, #1024
	bl	_mbstowcs
	add	x1, sp, #8
	mov	x0, x20
	bl	_el_winsertstr
	cmn	w0, #1
	b.eq	LBB0_18
; %bb.14:
Lloh12:
	adrp	x8, _CC_REFRESH@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CC_REFRESH@GOTPAGEOFF]
	ldrb	w20, [x8]
	b	LBB0_16
LBB0_15:
	mov	w20, #0
LBB0_16:
	mov	x0, x19
	bl	_closedir
	mov	x0, x21
	bl	_free
	ldur	x8, [x29, #-72]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.17:
	mov	x0, x20
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #16
	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_18:
Lloh17:
	adrp	x8, _CC_ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CC_ERROR@GOTPAGEOFF]
	ldrb	w20, [x8]
	b	LBB0_16
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"."

	.comm	_MB_LEN_MAX,4,2                 ; @MB_LEN_MAX
l_.str.1:                               ; @.str.1
	.asciz	"malloc"

	.comm	_CC_ERROR,1,0                   ; @CC_ERROR
	.comm	_CC_REFRESH,1,0                 ; @CC_REFRESH
	.no_dead_strip	_complete
.subsections_via_symbols
