	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fn_filename_completion_function ## -- Begin function fn_filename_completion_function
	.p2align	4, 0x90
_fn_filename_completion_function:       ## @fn_filename_completion_function
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	testl	%esi, %esi
	je	LBB0_16
## %bb.1:
	movq	_fn_filename_completion_function.dir(%rip), %rbx
	testq	%rbx, %rbx
	je	LBB0_16
LBB0_2:
	movq	%rbx, %rdi
	callq	_readdir
	testq	%rax, %rax
	je	LBB0_20
## %bb.3:
	movq	%rax, %r14
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	_fn_filename_completion_function.dir(%rip), %rdi
	callq	_readdir
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_20
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %r15
	movzbl	(%r15), %eax
	cmpb	$46, %al
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movzbl	1(%r15), %ecx
	testb	%cl, %cl
	je	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpb	$46, %cl
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpb	$0, 2(%r15)
	je	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	_fn_filename_completion_function.filename_len(%rip), %rbx
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_fn_filename_completion_function.filename(%rip), %r12
	cmpb	(%r12), %al
	jne	LBB0_4
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	callq	_strlen
	cmpq	%rbx, %rax
	jb	LBB0_4
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_4
## %bb.13:
	movq	(%r14), %r15
LBB0_14:
	movq	%r15, %rdi
	callq	_strlen
	movq	%rax, %rbx
	movq	_fn_filename_completion_function.dirname(%rip), %rdi
	callq	_strlen
	leaq	(%rbx,%rax), %r15
	incq	%r15
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_el_calloc
	testq	%rax, %rax
	je	LBB0_21
## %bb.15:
	movq	%rax, %rbx
	movq	_fn_filename_completion_function.dirname(%rip), %rcx
	movq	(%r14), %r8
	leaq	L_.str.2(%rip), %rdx
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_snprintf
	jmp	LBB0_22
LBB0_16:
	movq	%r14, %rdi
	movl	$47, %esi
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_23
## %bb.17:
	movq	%rax, %rbx
	incq	%rbx
	movq	_fn_filename_completion_function.filename(%rip), %r15
	movq	%rbx, %rdi
	callq	_strlen
	leaq	1(%rax), %rsi
	movq	%r15, %rdi
	callq	_el_realloc
	testq	%rax, %rax
	je	LBB0_25
## %bb.18:
	movq	%rax, _fn_filename_completion_function.filename(%rip)
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_strcpy
	subq	%r14, %rbx
	movq	_fn_filename_completion_function.dirname(%rip), %rdi
	leaq	1(%rbx), %rsi
	callq	_el_realloc
	testq	%rax, %rax
	je	LBB0_26
## %bb.19:
	movq	%rax, _fn_filename_completion_function.dirname(%rip)
	movq	%rax, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_strncpy
	movq	_fn_filename_completion_function.dirname(%rip), %rax
	movb	$0, (%rax,%rbx)
	jmp	LBB0_29
LBB0_20:
	movq	_fn_filename_completion_function.dir(%rip), %rdi
	callq	_closedir
	movq	$0, _fn_filename_completion_function.dir(%rip)
	jmp	LBB0_21
LBB0_23:
	movq	_fn_filename_completion_function.filename(%rip), %rdi
	callq	_el_free
	cmpb	$0, (%r14)
	je	LBB0_27
## %bb.24:
	movq	%r14, %rdi
	callq	_strdup
	movq	%rax, _fn_filename_completion_function.filename(%rip)
	testq	%rax, %rax
	jne	LBB0_28
	jmp	LBB0_21
LBB0_25:
	movq	_fn_filename_completion_function.filename(%rip), %rdi
	callq	_el_free
	movq	$0, _fn_filename_completion_function.filename(%rip)
	jmp	LBB0_21
LBB0_26:
	movq	_fn_filename_completion_function.dirname(%rip), %rdi
	callq	_el_free
	movq	$0, _fn_filename_completion_function.dirname(%rip)
	jmp	LBB0_21
LBB0_27:
	movq	$0, _fn_filename_completion_function.filename(%rip)
LBB0_28:
	movq	_fn_filename_completion_function.dirname(%rip), %rdi
	callq	_el_free
	movq	$0, _fn_filename_completion_function.dirname(%rip)
LBB0_29:
	movq	_fn_filename_completion_function.dir(%rip), %rdi
	testq	%rdi, %rdi
	je	LBB0_31
## %bb.30:
	callq	_closedir
	movq	$0, _fn_filename_completion_function.dir(%rip)
LBB0_31:
	movq	_fn_filename_completion_function.dirpath(%rip), %rdi
	callq	_el_free
	movq	$0, _fn_filename_completion_function.dirpath(%rip)
	movq	_fn_filename_completion_function.dirname(%rip), %rdi
	testq	%rdi, %rdi
	je	LBB0_34
## %bb.32:
	cmpb	$126, (%rdi)
	jne	LBB0_36
## %bb.33:
	callq	_fn_tilde_expand
	jmp	LBB0_37
LBB0_34:
	leaq	L_.str(%rip), %rdi
	callq	_strdup
	movq	%rax, _fn_filename_completion_function.dirname(%rip)
	testq	%rax, %rax
	je	LBB0_21
## %bb.35:
	leaq	L_.str.1(%rip), %rdi
LBB0_36:
	callq	_strdup
LBB0_37:
	movq	%rax, _fn_filename_completion_function.dirpath(%rip)
	testq	%rax, %rax
	je	LBB0_21
## %bb.38:
	movq	%rax, %rdi
	callq	_opendir
	movq	%rax, _fn_filename_completion_function.dir(%rip)
	testq	%rax, %rax
	je	LBB0_21
## %bb.39:
	movq	%rax, %rbx
	movq	_fn_filename_completion_function.filename(%rip), %rdi
	testq	%rdi, %rdi
	je	LBB0_41
## %bb.40:
	callq	_strlen
	jmp	LBB0_42
LBB0_21:
	xorl	%ebx, %ebx
LBB0_22:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_41:
	xorl	%eax, %eax
LBB0_42:
	movq	%rax, _fn_filename_completion_function.filename_len(%rip)
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_fn_filename_completion_function.dir,8,3 ## @fn_filename_completion_function.dir
.zerofill __DATA,__bss,_fn_filename_completion_function.filename,8,3 ## @fn_filename_completion_function.filename
.zerofill __DATA,__bss,_fn_filename_completion_function.dirname,8,3 ## @fn_filename_completion_function.dirname
.zerofill __DATA,__bss,_fn_filename_completion_function.dirpath,8,3 ## @fn_filename_completion_function.dirpath
.zerofill __DATA,__bss,_fn_filename_completion_function.filename_len,8,3 ## @fn_filename_completion_function.filename_len
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

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

L_.str.2:                               ## @.str.2
	.asciz	"%s%s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fn_filename_completion_function ; -- Begin function fn_filename_completion_function
	.p2align	2
_fn_filename_completion_function:       ; @fn_filename_completion_function
	.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	x19, x0
	adrp	x23, _fn_filename_completion_function.dir@PAGE
	cbz	w1, LBB0_16
; %bb.1:
	ldr	x20, [x23, _fn_filename_completion_function.dir@PAGEOFF]
	cbz	x20, LBB0_16
LBB0_2:
	mov	x0, x20
	bl	_readdir
	cbz	x0, LBB0_20
; %bb.3:
	mov	x19, x0
	adrp	x24, _fn_filename_completion_function.filename_len@PAGE
	adrp	x25, _fn_filename_completion_function.filename@PAGE
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x23, _fn_filename_completion_function.dir@PAGEOFF]
	bl	_readdir
	mov	x19, x0
	cbz	x0, LBB0_20
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x20, [x19]
	ldrb	w8, [x20]
	cmp	w8, #46
	b.ne	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w9, [x20, #1]
	cbz	w9, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w9, #46
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w9, [x20, #2]
	cbz	w9, LBB0_4
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x21, [x24, _fn_filename_completion_function.filename_len@PAGEOFF]
	cbz	x21, LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x22, [x25, _fn_filename_completion_function.filename@PAGEOFF]
	ldrb	w9, [x22]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_strlen
	cmp	x0, x21
	b.lo	LBB0_4
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_strncmp
	cbnz	x0, LBB0_4
; %bb.13:
	ldr	x20, [x19]
LBB0_14:
	mov	x0, x20
	bl	_strlen
	mov	x20, x0
	adrp	x22, _fn_filename_completion_function.dirname@PAGE
	ldr	x0, [x22, _fn_filename_completion_function.dirname@PAGEOFF]
	bl	_strlen
	add	x8, x20, x0
	add	x21, x8, #1
	mov	x0, x21
	mov	w1, #1
	bl	_el_calloc
	mov	x20, x0
	cbz	x0, LBB0_39
; %bb.15:
	ldr	x3, [x22, _fn_filename_completion_function.dirname@PAGEOFF]
	ldr	x4, [x19]
Lloh0:
	adrp	x2, l_.str.2@PAGE
Lloh1:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	bl	_snprintf
	b	LBB0_39
LBB0_16:
	mov	x0, x19
	mov	w1, #47
	bl	_strrchr
	cbz	x0, LBB0_21
; %bb.17:
	add	x20, x0, #1
	adrp	x22, _fn_filename_completion_function.filename@PAGE
	ldr	x21, [x22, _fn_filename_completion_function.filename@PAGEOFF]
	mov	x0, x20
	bl	_strlen
	add	x1, x0, #1
	mov	x0, x21
	bl	_el_realloc
	cbz	x0, LBB0_23
; %bb.18:
	str	x0, [x22, _fn_filename_completion_function.filename@PAGEOFF]
	mov	x1, x20
	bl	_strcpy
	sub	x20, x20, x19
	adrp	x21, _fn_filename_completion_function.dirname@PAGE
	ldr	x0, [x21, _fn_filename_completion_function.dirname@PAGEOFF]
	add	x1, x20, #1
	bl	_el_realloc
	cbz	x0, LBB0_24
; %bb.19:
	str	x0, [x21, _fn_filename_completion_function.dirname@PAGEOFF]
	mov	x1, x19
	mov	x2, x20
	bl	_strncpy
	ldr	x8, [x21, _fn_filename_completion_function.dirname@PAGEOFF]
	strb	wzr, [x8, x20]
	ldr	x0, [x23, _fn_filename_completion_function.dir@PAGEOFF]
	cbnz	x0, LBB0_27
	b	LBB0_28
LBB0_20:
	ldr	x0, [x23, _fn_filename_completion_function.dir@PAGEOFF]
	bl	_closedir
	mov	x20, #0
	str	xzr, [x23, _fn_filename_completion_function.dir@PAGEOFF]
	b	LBB0_39
LBB0_21:
	adrp	x20, _fn_filename_completion_function.filename@PAGE
	ldr	x0, [x20, _fn_filename_completion_function.filename@PAGEOFF]
	bl	_el_free
	ldrb	w8, [x19]
	cbz	w8, LBB0_25
; %bb.22:
	mov	x0, x19
	bl	_strdup
	str	x0, [x20, _fn_filename_completion_function.filename@PAGEOFF]
	cbnz	x0, LBB0_26
	b	LBB0_38
LBB0_23:
	ldr	x0, [x22, _fn_filename_completion_function.filename@PAGEOFF]
	bl	_el_free
	mov	x20, #0
	str	xzr, [x22, _fn_filename_completion_function.filename@PAGEOFF]
	b	LBB0_39
LBB0_24:
	ldr	x0, [x21, _fn_filename_completion_function.dirname@PAGEOFF]
	bl	_el_free
	mov	x20, #0
	str	xzr, [x21, _fn_filename_completion_function.dirname@PAGEOFF]
	b	LBB0_39
LBB0_25:
	str	xzr, [x20, _fn_filename_completion_function.filename@PAGEOFF]
LBB0_26:
	adrp	x19, _fn_filename_completion_function.dirname@PAGE
	ldr	x0, [x19, _fn_filename_completion_function.dirname@PAGEOFF]
	bl	_el_free
	str	xzr, [x19, _fn_filename_completion_function.dirname@PAGEOFF]
	ldr	x0, [x23, _fn_filename_completion_function.dir@PAGEOFF]
	cbz	x0, LBB0_28
LBB0_27:
	bl	_closedir
	str	xzr, [x23, _fn_filename_completion_function.dir@PAGEOFF]
LBB0_28:
	adrp	x19, _fn_filename_completion_function.dirpath@PAGE
	ldr	x0, [x19, _fn_filename_completion_function.dirpath@PAGEOFF]
	bl	_el_free
	str	xzr, [x19, _fn_filename_completion_function.dirpath@PAGEOFF]
	adrp	x20, _fn_filename_completion_function.dirname@PAGE
	ldr	x0, [x20, _fn_filename_completion_function.dirname@PAGEOFF]
	cbz	x0, LBB0_31
; %bb.29:
	ldrb	w8, [x0]
	cmp	w8, #126
	b.ne	LBB0_33
; %bb.30:
	bl	_fn_tilde_expand
	str	x0, [x19, _fn_filename_completion_function.dirpath@PAGEOFF]
	cbnz	x0, LBB0_34
	b	LBB0_38
LBB0_31:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_strdup
	str	x0, [x20, _fn_filename_completion_function.dirname@PAGEOFF]
	cbz	x0, LBB0_38
; %bb.32:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_33:
	bl	_strdup
	str	x0, [x19, _fn_filename_completion_function.dirpath@PAGEOFF]
	cbz	x0, LBB0_38
LBB0_34:
	bl	_opendir
	mov	x20, x0
	str	x0, [x23, _fn_filename_completion_function.dir@PAGEOFF]
	cbz	x0, LBB0_39
; %bb.35:
Lloh6:
	adrp	x8, _fn_filename_completion_function.filename@PAGE
Lloh7:
	ldr	x0, [x8, _fn_filename_completion_function.filename@PAGEOFF]
	cbz	x0, LBB0_37
; %bb.36:
	bl	_strlen
LBB0_37:
	adrp	x8, _fn_filename_completion_function.filename_len@PAGE
	str	x0, [x8, _fn_filename_completion_function.filename_len@PAGEOFF]
	b	LBB0_2
LBB0_38:
	mov	x20, #0
LBB0_39:
	mov	x0, x20
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdr	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_fn_filename_completion_function.dir,8,3 ; @fn_filename_completion_function.dir
.zerofill __DATA,__bss,_fn_filename_completion_function.filename,8,3 ; @fn_filename_completion_function.filename
.zerofill __DATA,__bss,_fn_filename_completion_function.dirname,8,3 ; @fn_filename_completion_function.dirname
.zerofill __DATA,__bss,_fn_filename_completion_function.dirpath,8,3 ; @fn_filename_completion_function.dirpath
.zerofill __DATA,__bss,_fn_filename_completion_function.filename_len,8,3 ; @fn_filename_completion_function.filename_len
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

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

l_.str.2:                               ; @.str.2
	.asciz	"%s%s"

.subsections_via_symbols
