	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function GetDirectory
_GetDirectory:                          ## @GetDirectory
	.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	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_FILENAMES_INITIAL_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	shlq	$3, %rdi
	callq	_Util_malloc
	movq	_filenames@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_n_filenames@GOTPCREL(%rip), %r13
	movl	$0, (%r13)
	movq	%rbx, %rdi
	callq	_BasicUIOpenDir
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	_FILENAME_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	leaq	-52(%rbp), %rsi
	movq	%r15, %rdi
	callq	_BasicUIReadDir
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:
	leaq	-52(%rbp), %r14
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	callq	_Util_strdup
	movq	%rax, %rbx
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_FilenamesAdd
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_BasicUIReadDir
	testq	%rax, %rax
	je	LBB0_11
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r15), %eax
	testb	%al, %al
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$46, %al
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$0, 1(%r15)
	je	LBB0_10
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, -52(%rbp)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	callq	_strlen
	movq	%rax, %r12
	leaq	3(%rax), %rdi
	callq	_Util_malloc
	movq	%rax, %rbx
	leaq	1(%rax), %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_memcpy
	movb	$91, (%rbx)
	movw	$93, 1(%r12,%rbx)
	jmp	LBB0_9
LBB0_11:
	movq	_filenames@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movslq	(%r13), %rax
	leaq	(%rdi,%rax,8), %rsi
	callq	_FilenamesSort
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.12:
	movq	-64(%rbp), %rsp                 ## 8-byte Reload
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Log_print                      ## TAILCALL
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_FILENAMES_INITIAL_SIZE,4,2     ## @FILENAMES_INITIAL_SIZE
	.comm	_filenames,8,3                  ## @filenames
	.comm	_n_filenames,4,2                ## @n_filenames
	.comm	_FILENAME_MAX,4,2               ## @FILENAME_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error opening '%s' directory"

	.comm	_S_IXUSR,4,2                    ## @S_IXUSR
	.comm	__STAT_DIRSIZE,2,1              ## @_STAT_DIRSIZE
	.comm	__STAT_EXEC_EXT,2,1             ## @_STAT_EXEC_EXT
	.comm	__STAT_EXEC_MAGIC,2,1           ## @_STAT_EXEC_MAGIC
	.comm	__STAT_INODE,2,1                ## @_STAT_INODE
	.comm	__STAT_ROOT_TIME,2,1            ## @_STAT_ROOT_TIME
	.comm	__STAT_WRITEBIT,2,1             ## @_STAT_WRITEBIT
	.comm	__djstat_flags,2,1              ## @_djstat_flags
	.no_dead_strip	_GetDirectory
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function GetDirectory
_GetDirectory:                          ; @GetDirectory
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _FILENAMES_INITIAL_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FILENAMES_INITIAL_SIZE@GOTPAGEOFF]
Lloh5:
	ldrsw	x8, [x8]
	lsl	x0, x8, #3
	bl	_Util_malloc
Lloh6:
	adrp	x23, _filenames@GOTPAGE
Lloh7:
	ldr	x23, [x23, _filenames@GOTPAGEOFF]
	str	x0, [x23]
Lloh8:
	adrp	x24, _n_filenames@GOTPAGE
Lloh9:
	ldr	x24, [x24, _n_filenames@GOTPAGEOFF]
	str	wzr, [x24]
	mov	x0, x19
	bl	_BasicUIOpenDir
	cbz	x0, LBB0_13
; %bb.1:
	mov	x22, sp
Lloh10:
	adrp	x8, _FILENAME_MAX@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FILENAME_MAX@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	mov	x9, x8
Lloh13:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh14:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x19, x9, x8
	mov	sp, x19
	sub	x1, x29, #76
	mov	x0, x19
	bl	_BasicUIReadDir
	cbz	x0, LBB0_11
; %bb.2:
	mov	w25, #91
	mov	w26, #93
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_Util_strdup
	mov	x20, x0
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	bl	_FilenamesAdd
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	sub	x1, x29, #76
	mov	x0, x19
	bl	_BasicUIReadDir
	cbz	x0, LBB0_11
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x19]
	cbz	w8, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w8, #46
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w8, [x19, #1]
	cbz	w8, LBB0_5
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldur	w8, [x29, #-76]
	cbz	w8, LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_strlen
	mov	x21, x0
	add	x0, x0, #3
	bl	_Util_malloc
	mov	x20, x0
	add	x0, x0, #1
	mov	x1, x19
	mov	x2, x21
	bl	_memcpy
	strb	w25, [x20]
	add	x8, x21, x20
	sturh	w26, [x8, #1]
	b	LBB0_4
LBB0_11:
	ldr	x0, [x23]
	ldrsw	x8, [x24]
	add	x1, x0, x8, lsl #3
	bl	_FilenamesSort
	ldur	x8, [x29, #-72]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.12:
	mov	sp, x22
	sub	sp, x29, #64
	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_13:
	ldur	x8, [x29, #-72]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	sub	sp, x29, #64
	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
	b	_Log_print
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_FILENAMES_INITIAL_SIZE,4,2     ; @FILENAMES_INITIAL_SIZE
	.comm	_filenames,8,3                  ; @filenames
	.comm	_n_filenames,4,2                ; @n_filenames
	.comm	_FILENAME_MAX,4,2               ; @FILENAME_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error opening '%s' directory"

	.comm	_S_IXUSR,4,2                    ; @S_IXUSR
	.comm	__STAT_DIRSIZE,2,1              ; @_STAT_DIRSIZE
	.comm	__STAT_EXEC_EXT,2,1             ; @_STAT_EXEC_EXT
	.comm	__STAT_EXEC_MAGIC,2,1           ; @_STAT_EXEC_MAGIC
	.comm	__STAT_INODE,2,1                ; @_STAT_INODE
	.comm	__STAT_ROOT_TIME,2,1            ; @_STAT_ROOT_TIME
	.comm	__STAT_WRITEBIT,2,1             ; @_STAT_WRITEBIT
	.comm	__djstat_flags,2,1              ; @_djstat_flags
	.no_dead_strip	_GetDirectory
.subsections_via_symbols
