	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function expand
_expand:                                ## @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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movl	$92, %edi
	callq	__T
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	__tcsrchr
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	subq	%r13, %r12
	leal	8(%r12), %edi
	callq	_cmd_alloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	sarq	$2, %r12
	leaq	1(%r12), %rdx
	movq	%rax, %rdi
	movq	%r13, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	xorl	%edi, %edi
	callq	__T
	movl	%eax, 4(%r15,%r12,4)
	jmp	LBB0_5
LBB0_1:
	xorl	%r15d, %r15d
LBB0_5:
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdi
	callq	_FindFirstFile
	movq	%rax, %r12
	movq	_INVALID_HANDLE_VALUE@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	jne	LBB0_6
## %bb.14:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_add_entry
	movq	%rax, %r13
	testq	%r15, %r15
	jne	LBB0_16
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	testq	%r15, %r15
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	callq	__tcslen
	movl	%eax, %ebx
	movq	-56(%rbp), %rdi
	callq	__tcslen
                                        ## kill: def $eax killed $eax def $rax
	addl	%ebx, %eax
	leal	4(,%rax,4), %edi
	callq	_cmd_alloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	__tcscpy
	movq	-56(%rbp), %rsi
	movl	%eax, %edi
	callq	__tcscat
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_add_entry
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_cmd_free
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rdx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_add_entry
	movq	%rax, %r13
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	leaq	L_.str.1(%rip), %rdi
	callq	_WARN
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rdi
	leaq	-56(%rbp), %rsi
	callq	_FindNextFile
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	testq	%r13, %r13
	jne	LBB0_6
LBB0_13:
	movq	%r12, %rdi
	callq	_FindClose
	testq	%r15, %r15
	je	LBB0_17
LBB0_16:
	movq	%r15, %rdi
	callq	_cmd_free
	jmp	LBB0_17
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_WARN
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
LBB0_17:
	movq	%r13, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot allocate memory for dirpart!\n"

	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_INVALID_HANDLE_VALUE,8,3       ## @INVALID_HANDLE_VALUE
L_.str.1:                               ## @.str.1
	.asciz	"Cannot allocate memory for fullname!\n"

	.no_dead_strip	_expand
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function expand
_expand:                                ; @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	x23, x2
	mov	x19, x1
	mov	x20, x0
	mov	w0, #92
	bl	__T
	mov	x1, x0
	mov	x0, x23
	bl	__tcsrchr
	cbz	x0, LBB0_3
; %bb.1:
	sub	x22, x0, x23
	add	w0, w22, #8
	bl	_cmd_alloc
	cbz	x0, LBB0_16
; %bb.2:
	mov	x21, x0
	asr	x8, x22, #2
	add	x22, x8, #1
	mov	x1, x23
	mov	x2, x22
	bl	_memcpy
	mov	w0, #0
	bl	__T
	str	w0, [x21, x22, lsl #2]
	b	LBB0_4
LBB0_3:
	mov	x21, #0
LBB0_4:
	add	x1, sp, #8
	mov	x0, x23
	bl	_FindFirstFile
Lloh0:
	adrp	x8, _INVALID_HANDLE_VALUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INVALID_HANDLE_VALUE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	bl	_add_entry
	mov	x24, x0
	cbnz	x21, LBB0_15
	b	LBB0_17
LBB0_6:
	mov	x22, x0
Lloh3:
	adrp	x23, l_.str.1@PAGE
Lloh4:
	add	x23, x23, l_.str.1@PAGEOFF
Lloh5:
	adrp	x26, _FALSE@GOTPAGE
Lloh6:
	ldr	x26, [x26, _FALSE@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x21, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	bl	__tcslen
	mov	x24, x0
	ldr	x0, [sp, #8]
	bl	__tcslen
	add	w8, w0, w24
	lsl	w8, w8, #2
	add	w0, w8, #4
	bl	_cmd_alloc
	cbz	x0, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x25, x0
	mov	x1, x21
	bl	__tcscpy
	ldr	x1, [sp, #8]
	bl	__tcscat
	mov	x0, x20
	mov	x1, x19
	mov	x2, x25
	bl	_add_entry
	mov	x24, x0
	mov	x0, x25
	bl	_cmd_free
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x2, [sp, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_add_entry
	mov	x24, x0
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x23
	bl	_WARN
	ldr	x24, [x26]
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x1, sp, #8
	mov	x0, x22
	bl	_FindNextFile
	cbz	x0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	cbnz	x24, LBB0_7
LBB0_14:
	mov	x0, x22
	bl	_FindClose
	cbz	x21, LBB0_17
LBB0_15:
	mov	x0, x21
	bl	_cmd_free
	b	LBB0_17
LBB0_16:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_WARN
Lloh9:
	adrp	x8, _FALSE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh11:
	ldr	x24, [x8]
LBB0_17:
	mov	x0, x24
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot allocate memory for dirpart!\n"

	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_INVALID_HANDLE_VALUE,8,3       ; @INVALID_HANDLE_VALUE
l_.str.1:                               ; @.str.1
	.asciz	"Cannot allocate memory for fullname!\n"

	.no_dead_strip	_expand
.subsections_via_symbols
