	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function expand_path
_expand_path:                           ## @expand_path
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_GLOB_NOCHECK@GOTPCREL(%rip), %rax
	movq	_GLOB_TILDE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	leaq	_expand_path.globbuf(%rip), %rcx
	xorl	%edx, %edx
	callq	_glob
	testq	%rax, %rax
	js	LBB0_4
## %bb.1:
	cmpq	$0, _expand_path.globbuf(%rip)
	jle	LBB0_3
## %bb.2:
	movq	_expand_path.globbuf+8(%rip), %rax
	movq	(%rax), %rbx
LBB0_3:
	movq	%rbx, %rdi
	callq	_sstrdup
	movq	%rax, %rbx
	leaq	_expand_path.globbuf(%rip), %rdi
	callq	_globfree
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str(%rip), %rdi
	callq	_ELOG
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_expand_path.globbuf,16,3 ## @expand_path.globbuf
	.comm	_GLOB_NOCHECK,4,2               ## @GLOB_NOCHECK
	.comm	_GLOB_TILDE,4,2                 ## @GLOB_TILDE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"glob() failed\n"

	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.no_dead_strip	_expand_path
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function expand_path
_expand_path:                           ; @expand_path
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _GLOB_NOCHECK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GLOB_NOCHECK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _GLOB_TILDE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GLOB_TILDE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh6:
	adrp	x3, _expand_path.globbuf@PAGE
Lloh7:
	add	x3, x3, _expand_path.globbuf@PAGEOFF
	mov	x2, #0
	bl	_glob
	tbnz	x0, #63, LBB0_4
; %bb.1:
Lloh8:
	adrp	x8, _expand_path.globbuf@PAGE
Lloh9:
	ldr	x8, [x8, _expand_path.globbuf@PAGEOFF]
	cmp	x8, #1
	b.lt	LBB0_3
; %bb.2:
Lloh10:
	adrp	x8, _expand_path.globbuf@PAGE+8
Lloh11:
	ldr	x8, [x8, _expand_path.globbuf@PAGEOFF+8]
	ldr	x19, [x8]
LBB0_3:
	mov	x0, x19
	bl	_sstrdup
	mov	x19, x0
Lloh12:
	adrp	x0, _expand_path.globbuf@PAGE
Lloh13:
	add	x0, x0, _expand_path.globbuf@PAGEOFF
	bl	_globfree
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ELOG
Lloh16:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_exit
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpLdr	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_expand_path.globbuf,16,3 ; @expand_path.globbuf
	.comm	_GLOB_NOCHECK,4,2               ; @GLOB_NOCHECK
	.comm	_GLOB_TILDE,4,2                 ; @GLOB_TILDE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"glob() failed\n"

	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.no_dead_strip	_expand_path
.subsections_via_symbols
