	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Dir_Expand                     ## -- Begin function Dir_Expand
	.p2align	4, 0x90
_Dir_Expand:                            ## @Dir_Expand
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	_DIR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DEBUG
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_debug_file@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_2:
	movq	%r12, %rdi
	movl	$123, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	movq	%rax, %rsi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	callq	_DirExpandCurly
	jmp	LBB0_26
LBB0_4:
	movq	%r12, %rdi
	movl	$47, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_24
## %bb.5:
	leaq	-1(%r12), %rax
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	decq	%rcx
	incq	%rdx
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r12,%rdx), %ebx
	cmpb	$62, %bl
	jle	LBB0_7
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpb	$63, %bl
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpb	$123, %bl
	je	LBB0_29
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpb	$91, %bl
	jne	LBB0_9
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_6 Depth=1
	testb	%bl, %bl
	je	LBB0_25
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpb	$42, %bl
	jne	LBB0_9
LBB0_13:
	movq	%r12, %r13
	subq	%rcx, %r13
	cmpq	%r12, %r13
	jbe	LBB0_19
## %bb.14:
	cmpb	$47, %bl
	je	LBB0_19
## %bb.15:
	subq	%rcx, %rax
	addq	%rcx, %r13
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%r12, %rax
	jbe	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	leaq	-1(%rax), %rcx
	cmpb	$47, (%rax)
	movq	%rcx, %rax
	jne	LBB0_16
## %bb.18:
	incq	%rcx
	movq	%rcx, %r13
LBB0_19:
	cmpq	%r12, %r13
	je	LBB0_25
## %bb.20:
	movb	1(%r13), %bl
	movq	%r13, %rdi
	callq	_UNCONST
	movb	$0, 1(%rax)
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_Dir_FindFile
	movq	%rax, %r12
	movq	%r13, %rdi
	callq	_UNCONST
	movb	%bl, 1(%rax)
	testq	%r12, %r12
	movq	_DIR@GOTPCREL(%rip), %rbx
	je	LBB0_27
## %bb.21:
	incq	%r13
	movq	%r12, %rdi
	callq	_strlen
	cltq
	cmpb	$47, -1(%rax,%r12)
	jne	LBB0_23
## %bb.22:
	movb	$0, -1(%r12,%rax)
LBB0_23:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_Lst_Init
	movl	%eax, %r15d
	movl	%eax, %edi
	movq	%r12, %rsi
	callq	_Dir_AddDir
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_DirExpandInt
	movl	%r15d, %edi
	xorl	%esi, %esi
	callq	_Lst_Destroy
	jmp	LBB0_27
LBB0_24:
	movq	_dot@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_DirMatchFiles
LBB0_25:
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_DirExpandInt
LBB0_26:
	movq	_DIR@GOTPCREL(%rip), %rbx
LBB0_27:
	movl	(%rbx), %edi
	callq	_DEBUG
	testq	%rax, %rax
	je	LBB0_28
## %bb.30:
	movq	_DirPrintWord@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	xorl	%edx, %edx
	callq	_Lst_ForEach
	movq	_debug_file@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fprintf                        ## TAILCALL
LBB0_28:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	movq	%r12, %rsi
	subq	%rcx, %rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DirExpandCurly                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DIR,4,2                        ## @DIR
	.comm	_debug_file,4,2                 ## @debug_file
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Expanding \"%s\"... "

	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_dot,4,2                        ## @dot
	.comm	_DirPrintWord,4,2               ## @DirPrintWord
L_.str.1:                               ## @.str.1
	.asciz	"\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Dir_Expand                     ; -- Begin function Dir_Expand
	.p2align	2
_Dir_Expand:                            ; @Dir_Expand
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x25, _DIR@GOTPAGE
Lloh1:
	ldr	x25, [x25, _DIR@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_DEBUG
Lloh2:
	adrp	x24, _debug_file@GOTPAGE
Lloh3:
	ldr	x24, [x24, _debug_file@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x24]
	str	x21, [sp]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
LBB0_2:
	mov	x0, x21
	mov	w1, #123
	bl	_strchr
	cbz	x0, LBB0_4
; %bb.3:
	mov	x1, x0
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	bl	_DirExpandCurly
	b	LBB0_26
LBB0_4:
	mov	x0, x21
	mov	w1, #47
	bl	_strchr
	cbz	x0, LBB0_24
; %bb.5:
	mov	x8, #0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x8, x8, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x21, x8]
	cmp	w9, #62
	b.le	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w9, #63
	b.eq	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w9, #123
	b.eq	LBB0_29
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	w9, #91
	b.ne	LBB0_6
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	cbz	w9, LBB0_25
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	w9, #42
	b.ne	LBB0_6
LBB0_13:
	add	x22, x21, x8
	cmp	x22, x21
	b.ls	LBB0_19
; %bb.14:
	cmp	w9, #47
	b.eq	LBB0_19
; %bb.15:
	sub	x9, x22, #1
	sub	x22, x22, x8
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	cmp	x9, x21
	b.ls	LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldrb	w8, [x9], #-1
	cmp	w8, #47
	b.ne	LBB0_16
; %bb.18:
	add	x22, x9, #1
LBB0_19:
	cmp	x22, x21
	b.eq	LBB0_25
; %bb.20:
	mov	x23, x22
	ldrb	w26, [x23, #1]!
	mov	x0, x22
	bl	_UNCONST
	strb	wzr, [x0, #1]
	mov	x0, x21
	mov	x1, x20
	bl	_Dir_FindFile
	mov	x20, x0
	mov	x0, x22
	bl	_UNCONST
	strb	w26, [x0, #1]
	cbz	x20, LBB0_26
; %bb.21:
	mov	x0, x20
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	sub	x8, x8, #1
	ldrb	w9, [x20, x8]
	cmp	w9, #47
	b.ne	LBB0_23
; %bb.22:
	strb	wzr, [x20, x8]
LBB0_23:
Lloh6:
	adrp	x8, _FALSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_Lst_Init
	mov	x21, x0
	mov	x1, x20
	bl	_Dir_AddDir
	mov	x0, x23
	mov	x1, x21
	mov	x2, x19
	bl	_DirExpandInt
	mov	x0, x21
	mov	x1, #0
	bl	_Lst_Destroy
	b	LBB0_26
LBB0_24:
Lloh9:
	adrp	x8, _dot@GOTPAGE
Lloh10:
	ldr	x8, [x8, _dot@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x19
	bl	_DirMatchFiles
LBB0_25:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_DirExpandInt
LBB0_26:
	ldr	w0, [x25]
	bl	_DEBUG
	cbz	x0, LBB0_28
; %bb.27:
Lloh12:
	adrp	x8, _DirPrintWord@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DirPrintWord@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_Lst_ForEach
	ldr	w0, [x24]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	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
	add	sp, sp, #96
	b	_fprintf
LBB0_28:
	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
	add	sp, sp, #96
	ret
LBB0_29:
	add	x1, x21, x8
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	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
	add	sp, sp, #96
	b	_DirExpandCurly
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_DIR,4,2                        ; @DIR
	.comm	_debug_file,4,2                 ; @debug_file
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Expanding \"%s\"... "

	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_dot,4,2                        ; @dot
	.comm	_DirPrintWord,4,2               ; @DirPrintWord
l_.str.1:                               ; @.str.1
	.asciz	"\n"

.subsections_via_symbols
