	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Sys_ListFiles                  ## -- Begin function Sys_ListFiles
	.p2align	4, 0x90
_Sys_ListFiles:                         ## @Sys_ListFiles
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_OSPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	_MAX_FOUND_FILES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	testq	%r15, %r15
	je	LBB0_7
## %bb.1:
	movl	$0, -52(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-52(%rbp), %r8
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rdx
	movq	%rbx, %rcx
	callq	_Sys_ListFilteredFiles
	movslq	-52(%rbp), %rax
	movq	$0, (%rbx,%rax,8)
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	leal	8(,%rax,8), %edi
	callq	_Z_Malloc
	movl	-52(%rbp), %r8d
	testl	%r8d, %r8d
	jle	LBB0_25
## %bb.3:
	xorl	%edx, %edx
	cmpl	$4, %r8d
	jb	LBB0_41
## %bb.4:
	movq	%rax, %rcx
	subq	%rbx, %rcx
	cmpq	$32, %rcx
	jb	LBB0_41
## %bb.5:
	movl	%r8d, %edx
	andl	$-4, %edx
	leaq	-4(%rdx), %rcx
	movq	%rcx, %rdi
	shrq	$2, %rdi
	incq	%rdi
	movl	%edi, %r9d
	andl	$3, %r9d
	cmpq	$12, %rcx
	jae	LBB0_35
## %bb.6:
	xorl	%ecx, %ecx
	jmp	LBB0_37
LBB0_7:
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, -120(%rbp)                ## 8-byte Spill
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	leaq	L_.str(%rip), %rax
	testq	%r13, %r13
	cmoveq	%rax, %r13
	cmpb	$47, (%r13)
	movq	%r13, %r15
	jne	LBB0_11
## %bb.8:
	cmpb	$0, 1(%r15)
	movq	%rsi, %r13
	jne	LBB0_12
## %bb.9:
	movq	_qtrue@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r14
	movq	%rax, %r15
	jmp	LBB0_12
LBB0_11:
	movq	%rsi, %r13
LBB0_12:
	movq	%r15, %rdi
	callq	_strlen
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_opendir
	testq	%rax, %rax
	je	LBB0_26
## %bb.13:
	movq	%rax, %r13
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_readdir
	testq	%rax, %rax
	je	LBB0_27
## %bb.14:
	movq	%rax, %r15
	movslq	-56(%rbp), %rax                 ## 4-byte Folded Reload
	negq	%rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	xorl	%r14d, %r14d
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_17 Depth=1
	testl	%eax, %eax
	movq	_MAX_FOUND_FILES@GOTPCREL(%rip), %rcx
	je	LBB0_20
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	%r13, %rdi
	callq	_readdir
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_28
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %r8
	movq	%r12, %rdi
	movq	-120(%rbp), %rsi                ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	leaq	L_.str.1(%rip), %rdx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	callq	_Com_sprintf
	movq	%r12, %rdi
	leaq	-88(%rbp), %rsi
	callq	_stat
	cmpl	$-1, %eax
	je	LBB0_16
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	_S_IFDIR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-88(%rbp), %eax
	cmpq	$0, -72(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_15
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=1
	testl	%eax, %eax
	movq	_MAX_FOUND_FILES@GOTPCREL(%rip), %rcx
	je	LBB0_16
LBB0_20:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	cmpb	$0, (%rax)
	je	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	(%r15), %rdi
	callq	_strlen
	cmpl	-56(%rbp), %eax                 ## 4-byte Folded Reload
	jl	LBB0_16
## %bb.22:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%r14, -112(%rbp)                ## 8-byte Spill
	movq	(%r15), %r14
	movq	%r14, %rdi
	callq	_strlen
	cltq
	addq	-104(%rbp), %r14                ## 8-byte Folded Reload
	addq	%rax, %r14
	movq	%r14, %rdi
	movq	-112(%rbp), %r14                ## 8-byte Reload
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	callq	_Q_stricmp
	testq	%rax, %rax
	movq	_MAX_FOUND_FILES@GOTPCREL(%rip), %rcx
	jne	LBB0_16
LBB0_23:                                ##   in Loop: Header=BB0_17 Depth=1
	movl	(%rcx), %eax
	decl	%eax
	cmpl	%eax, %r14d
	je	LBB0_28
## %bb.24:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	(%r15), %rdi
	callq	_CopyString
	movslq	%r14d, %rcx
	movq	%rax, (%rbx,%rcx,8)
	incl	%r14d
	movl	%r14d, -52(%rbp)
	jmp	LBB0_16
LBB0_25:
	xorl	%r8d, %r8d
	movq	$0, (%rax,%r8,8)
	jmp	LBB0_58
LBB0_26:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_58
LBB0_27:
	xorl	%r14d, %r14d
LBB0_28:
	movslq	%r14d, %r15
	movq	$0, (%rbx,%r15,8)
	movq	%r13, %rdi
	callq	_closedir
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%r15d, (%rax)
	movq	%r14, %r12
	xorl	%r14d, %r14d
	testl	%r15d, %r15d
	je	LBB0_10
## %bb.29:
	leal	8(,%r12,8), %edi
	callq	_Z_Malloc
	testl	%r12d, %r12d
	jle	LBB0_57
## %bb.30:
	movl	%r12d, %r8d
	xorl	%edx, %edx
	cmpl	$4, %r12d
	movq	%r12, %r14
	jb	LBB0_52
## %bb.31:
	movq	%rax, %rcx
	subq	%rbx, %rcx
	cmpq	$32, %rcx
	jb	LBB0_52
## %bb.32:
	movl	%r8d, %edx
	andl	$-4, %edx
	leaq	-4(%rdx), %rcx
	movq	%rcx, %rdi
	shrq	$2, %rdi
	incq	%rdi
	movl	%edi, %r9d
	andl	$3, %r9d
	cmpq	$12, %rcx
	jae	LBB0_46
## %bb.33:
	xorl	%ecx, %ecx
	jmp	LBB0_48
LBB0_10:
	xorl	%eax, %eax
	jmp	LBB0_58
LBB0_35:
	andq	$-4, %rdi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_36:                                ## =>This Inner Loop Header: Depth=1
	movaps	(%rbx,%rcx,8), %xmm0
	movaps	16(%rbx,%rcx,8), %xmm1
	movups	%xmm0, (%rax,%rcx,8)
	movups	%xmm1, 16(%rax,%rcx,8)
	movaps	32(%rbx,%rcx,8), %xmm0
	movaps	48(%rbx,%rcx,8), %xmm1
	movups	%xmm0, 32(%rax,%rcx,8)
	movups	%xmm1, 48(%rax,%rcx,8)
	movaps	64(%rbx,%rcx,8), %xmm0
	movaps	80(%rbx,%rcx,8), %xmm1
	movups	%xmm0, 64(%rax,%rcx,8)
	movups	%xmm1, 80(%rax,%rcx,8)
	movaps	96(%rbx,%rcx,8), %xmm0
	movaps	112(%rbx,%rcx,8), %xmm1
	movups	%xmm0, 96(%rax,%rcx,8)
	movups	%xmm1, 112(%rax,%rcx,8)
	addq	$16, %rcx
	addq	$-4, %rdi
	jne	LBB0_36
LBB0_37:
	testq	%r9, %r9
	je	LBB0_40
## %bb.38:
	leaq	(%rax,%rcx,8), %rdi
	addq	$16, %rdi
	leaq	(%rbx,%rcx,8), %rcx
	addq	$16, %rcx
	shlq	$5, %r9
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_39:                                ## =>This Inner Loop Header: Depth=1
	movaps	-16(%rcx,%rsi), %xmm0
	movaps	(%rcx,%rsi), %xmm1
	movups	%xmm0, -16(%rdi,%rsi)
	movups	%xmm1, (%rdi,%rsi)
	addq	$32, %rsi
	cmpq	%rsi, %r9
	jne	LBB0_39
LBB0_40:
	cmpq	%r8, %rdx
	je	LBB0_45
LBB0_41:
	movq	%rdx, %rcx
	notq	%rcx
	addq	%r8, %rcx
	movq	%r8, %rsi
	andq	$3, %rsi
	je	LBB0_43
	.p2align	4, 0x90
LBB0_42:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx,%rdx,8), %rdi
	movq	%rdi, (%rax,%rdx,8)
	incq	%rdx
	decq	%rsi
	jne	LBB0_42
LBB0_43:
	cmpq	$3, %rcx
	jb	LBB0_45
	.p2align	4, 0x90
LBB0_44:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx,%rdx,8), %rcx
	movq	%rcx, (%rax,%rdx,8)
	movq	8(%rbx,%rdx,8), %rcx
	movq	%rcx, 8(%rax,%rdx,8)
	movq	16(%rbx,%rdx,8), %rcx
	movq	%rcx, 16(%rax,%rdx,8)
	movq	24(%rbx,%rdx,8), %rcx
	movq	%rcx, 24(%rax,%rdx,8)
	addq	$4, %rdx
	cmpq	%rdx, %r8
	jne	LBB0_44
LBB0_45:
	movq	$0, (%rax,%r8,8)
	jmp	LBB0_58
LBB0_46:
	andq	$-4, %rdi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_47:                                ## =>This Inner Loop Header: Depth=1
	movaps	(%rbx,%rcx,8), %xmm0
	movaps	16(%rbx,%rcx,8), %xmm1
	movups	%xmm0, (%rax,%rcx,8)
	movups	%xmm1, 16(%rax,%rcx,8)
	movaps	32(%rbx,%rcx,8), %xmm0
	movaps	48(%rbx,%rcx,8), %xmm1
	movups	%xmm0, 32(%rax,%rcx,8)
	movups	%xmm1, 48(%rax,%rcx,8)
	movaps	64(%rbx,%rcx,8), %xmm0
	movaps	80(%rbx,%rcx,8), %xmm1
	movups	%xmm0, 64(%rax,%rcx,8)
	movups	%xmm1, 80(%rax,%rcx,8)
	movaps	96(%rbx,%rcx,8), %xmm0
	movaps	112(%rbx,%rcx,8), %xmm1
	movups	%xmm0, 96(%rax,%rcx,8)
	movups	%xmm1, 112(%rax,%rcx,8)
	addq	$16, %rcx
	addq	$-4, %rdi
	jne	LBB0_47
LBB0_48:
	testq	%r9, %r9
	je	LBB0_51
## %bb.49:
	leaq	(%rax,%rcx,8), %rdi
	addq	$16, %rdi
	leaq	(%rbx,%rcx,8), %rcx
	addq	$16, %rcx
	shlq	$5, %r9
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_50:                                ## =>This Inner Loop Header: Depth=1
	movaps	-16(%rcx,%rsi), %xmm0
	movaps	(%rcx,%rsi), %xmm1
	movups	%xmm0, -16(%rdi,%rsi)
	movups	%xmm1, (%rdi,%rsi)
	addq	$32, %rsi
	cmpq	%rsi, %r9
	jne	LBB0_50
LBB0_51:
	cmpq	%r8, %rdx
	je	LBB0_56
LBB0_52:
	movq	%rdx, %rcx
	notq	%rcx
	addq	%r8, %rcx
	movq	%r8, %rsi
	andq	$3, %rsi
	je	LBB0_54
	.p2align	4, 0x90
LBB0_53:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx,%rdx,8), %rdi
	movq	%rdi, (%rax,%rdx,8)
	incq	%rdx
	decq	%rsi
	jne	LBB0_53
LBB0_54:
	cmpq	$3, %rcx
	jb	LBB0_56
	.p2align	4, 0x90
LBB0_55:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx,%rdx,8), %rcx
	movq	%rcx, (%rax,%rdx,8)
	movq	8(%rbx,%rdx,8), %rcx
	movq	%rcx, 8(%rax,%rdx,8)
	movq	16(%rbx,%rdx,8), %rcx
	movq	%rcx, 16(%rax,%rdx,8)
	movq	24(%rbx,%rdx,8), %rcx
	movq	%rcx, 24(%rax,%rdx,8)
	addq	$4, %rdx
	cmpq	%rdx, %r8
	jne	LBB0_55
LBB0_56:
                                        ## kill: def $r14d killed $r14d killed $r14 def $r14
LBB0_57:
	movl	%r14d, %ecx
	movq	$0, (%rax,%rcx,8)
LBB0_58:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_60
## %bb.59:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_60:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_OSPATH,4,2                 ## @MAX_OSPATH
	.comm	_MAX_FOUND_FILES,4,2            ## @MAX_FOUND_FILES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_qtrue,8,3                      ## @qtrue
L_.str.1:                               ## @.str.1
	.asciz	"%s/%s"

	.comm	_S_IFDIR,4,2                    ## @S_IFDIR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Sys_ListFiles                  ; -- Begin function Sys_ListFiles
	.p2align	2
_Sys_ListFiles:                         ; @Sys_ListFiles
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #48
	mov	x22, x4
	mov	x19, x3
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MAX_OSPATH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_OSPATH@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	mov	x9, x23
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x23, #15
	and	x9, x9, #0x1fffffff0
	sub	x24, x8, x9
	mov	sp, x24
Lloh8:
	adrp	x28, _MAX_FOUND_FILES@GOTPAGE
Lloh9:
	ldr	x28, [x28, _MAX_FOUND_FILES@GOTPAGEOFF]
	ldr	w8, [x28]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh10:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh11:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x27, x9, x8
	mov	sp, x27
	cbz	x2, LBB0_11
; %bb.1:
	stur	wzr, [x29, #-92]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	sub	x4, x29, #92
	mov	x0, x21
	mov	x3, x27
	bl	_Sys_ListFilteredFiles
	ldursw	x8, [x29, #-92]
	str	xzr, [x27, x8, lsl #3]
	str	w8, [x19]
	cbz	w8, LBB0_39
; %bb.2:
	lsl	w8, w8, #3
	add	w0, w8, #8
	bl	_Z_Malloc
	ldur	w8, [x29, #-92]
	cmp	w8, #1
	b.lt	LBB0_27
; %bb.3:
	mov	x9, #0
	cmp	w8, #8
	b.lo	LBB0_8
; %bb.4:
	sub	x10, x0, x27
	cmp	x10, #64
	b.lo	LBB0_8
; %bb.5:
	and	x9, x8, #0xfffffff8
	add	x10, x0, #32
	add	x11, x27, #32
	mov	x12, x9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x11, #-32]
	ldp	q2, q3, [x11], #64
	stp	q0, q1, [x10, #-32]
	stp	q2, q3, [x10], #64
	subs	x12, x12, #8
	b.ne	LBB0_6
; %bb.7:
	cmp	x9, x8
	b.eq	LBB0_10
LBB0_8:
	lsl	x11, x9, #3
	add	x10, x0, x11
	add	x11, x27, x11
	sub	x9, x8, x9
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x11], #8
	str	x12, [x10], #8
	subs	x9, x9, #1
	b.ne	LBB0_9
LBB0_10:
	str	xzr, [x0, x8, lsl #3]
	b	LBB0_42
LBB0_11:
Lloh14:
	adrp	x8, l_.str@PAGE
Lloh15:
	add	x8, x8, l_.str@PAGEOFF
	cmp	x1, #0
	csel	x25, x8, x1, eq
	ldrb	w8, [x25]
	cmp	w8, #47
	b.ne	LBB0_14
; %bb.12:
	ldrb	w8, [x25, #1]
	cbnz	w8, LBB0_14
; %bb.13:
Lloh16:
	adrp	x8, _qtrue@GOTPAGE
Lloh17:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh18:
	ldr	x22, [x8]
Lloh19:
	adrp	x25, l_.str@PAGE
Lloh20:
	add	x25, x25, l_.str@PAGEOFF
LBB0_14:
	mov	x0, x25
	bl	_strlen
	stur	w0, [x29, #-100]                ; 4-byte Folded Spill
	mov	x0, x21
	bl	_opendir
	cbz	x0, LBB0_28
; %bb.15:
	mov	x26, x0
	stur	x19, [x29, #-120]               ; 8-byte Folded Spill
	bl	_readdir
	cbz	x0, LBB0_29
; %bb.16:
	mov	x20, x0
	mov	x8, #0
	mov	w19, #0
	ldur	w9, [x29, #-100]                ; 4-byte Folded Reload
	sub	x8, x8, w9, sxtw
	stur	x8, [x29, #-112]                ; 8-byte Folded Spill
	b	LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_19 Depth=1
	cbz	w8, LBB0_22
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	mov	x0, x26
	bl	_readdir
	mov	x20, x0
	cbz	x0, LBB0_30
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x4, [x20]
	mov	x0, x24
	mov	x1, x23
Lloh21:
	adrp	x2, l_.str.1@PAGE
Lloh22:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x3, x21
	bl	_Com_sprintf
	sub	x1, x29, #96
	mov	x0, x24
	bl	_stat
	cmn	w0, #1
	b.eq	LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	ldur	w8, [x29, #-96]
Lloh23:
	adrp	x9, _S_IFDIR@GOTPAGE
Lloh24:
	ldr	x9, [x9, _S_IFDIR@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	and	w8, w9, w8
	cbz	x22, LBB0_17
; %bb.21:                               ;   in Loop: Header=BB0_19 Depth=1
	cbz	w8, LBB0_18
LBB0_22:                                ;   in Loop: Header=BB0_19 Depth=1
	ldrb	w8, [x25]
	cbz	w8, LBB0_25
; %bb.23:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x0, [x20]
	bl	_strlen
	ldur	w8, [x29, #-100]                ; 4-byte Folded Reload
	cmp	w0, w8
	b.lt	LBB0_18
; %bb.24:                               ;   in Loop: Header=BB0_19 Depth=1
	stur	w19, [x29, #-104]               ; 4-byte Folded Spill
	mov	x19, x25
	mov	x25, x22
	mov	x22, x28
	mov	x28, x27
	ldr	x27, [x20]
	mov	x0, x27
	bl	_strlen
	ldur	x8, [x29, #-112]                ; 8-byte Folded Reload
	add	x8, x27, x8
	mov	x27, x28
	mov	x28, x22
	mov	x22, x25
	mov	x25, x19
	ldur	w19, [x29, #-104]               ; 4-byte Folded Reload
	add	x0, x8, w0, sxtw
	mov	x1, x25
	bl	_Q_stricmp
	cbnz	x0, LBB0_18
LBB0_25:                                ;   in Loop: Header=BB0_19 Depth=1
	ldr	w8, [x28]
	sub	w8, w8, #1
	cmp	w19, w8
	b.eq	LBB0_30
; %bb.26:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x0, [x20]
	bl	_CopyString
	str	x0, [x27, w19, sxtw #3]
	add	w19, w19, #1
	stur	w19, [x29, #-92]
	b	LBB0_18
LBB0_27:
	mov	x8, #0
	str	xzr, [x0, xzr, lsl #3]
	b	LBB0_42
LBB0_28:
	str	wzr, [x19]
	b	LBB0_42
LBB0_29:
	mov	w19, #0
LBB0_30:
	str	xzr, [x27, w19, sxtw #3]
	mov	x0, x26
	bl	_closedir
	ldur	x8, [x29, #-120]                ; 8-byte Folded Reload
	str	w19, [x8]
	cbz	w19, LBB0_39
; %bb.31:
	lsl	w8, w19, #3
	add	w0, w8, #8
	bl	_Z_Malloc
	cmp	w19, #1
	b.lt	LBB0_40
; %bb.32:
	mov	x9, #0
	mov	w8, w19
	cmp	w19, #8
	b.lo	LBB0_37
; %bb.33:
	sub	x10, x0, x27
	cmp	x10, #64
	b.lo	LBB0_37
; %bb.34:
	and	x9, x8, #0xfffffff8
	add	x10, x27, #32
	add	x11, x0, #32
	mov	x12, x9
LBB0_35:                                ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x10, #-32]
	ldp	q2, q3, [x10], #64
	stp	q0, q1, [x11, #-32]
	stp	q2, q3, [x11], #64
	subs	x12, x12, #8
	b.ne	LBB0_35
; %bb.36:
	cmp	x9, x8
	b.eq	LBB0_41
LBB0_37:
	lsl	x11, x9, #3
	add	x10, x0, x11
	add	x11, x27, x11
	sub	x8, x8, x9
LBB0_38:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x11], #8
	str	x9, [x10], #8
	subs	x8, x8, #1
	b.ne	LBB0_38
	b	LBB0_41
LBB0_39:
	mov	x0, #0
	b	LBB0_42
LBB0_40:
	mov	w19, #0
LBB0_41:
	str	xzr, [x0, w19, uxtw #3]
LBB0_42:
	ldur	x8, [x29, #-88]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_44
; %bb.43:
	sub	sp, x29, #80
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_44:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_OSPATH,4,2                 ; @MAX_OSPATH
	.comm	_MAX_FOUND_FILES,4,2            ; @MAX_FOUND_FILES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_qtrue,8,3                      ; @qtrue
l_.str.1:                               ; @.str.1
	.asciz	"%s/%s"

	.comm	_S_IFDIR,4,2                    ; @S_IFDIR
.subsections_via_symbols
