// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/classes/system/dynamicloader.cpp
// Function: smooth::System::DynamicLoader::ParseDirectoryList(smooth::String const&, smooth::Array<smooth::String, smooth::String>&)
S::Void S::System::DynamicLoader::ParseDirectoryList(const String &pattern, Array<String> &directories)
{
#ifndef __WIN32__
	Directory		 directory(File(pattern).GetFilePath());
	const Array<File>	&files = directory.GetFilesByPattern(File(pattern).GetFileName());

	foreach (const File &file, files)
	{
		IO::InStream	 in(IO::STREAM_FILE, file);

		while (in.GetPos() < in.Size())
		{
			String	 line = in.InputLine();

			if	(line == NIL)			continue;
			else if (line.StartsWith("#"))		continue;
			else if (line.StartsWith("include "))	ParseDirectoryList(line.Tail(line.Length() - 8), directories);
			else					directories.Add(line);
		}
	}
#endif
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x238, %rsp            # imm = 0x238
movq %rdx, 0x8(%rsp)
movq %rsi, %r14
movq %rdi, 0x48(%rsp)
leaq 0x10(%rsp), %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x5a180
leaq 0x50(%rsp), %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x57940
leaq 0x50(%rsp), %rdi
callq 0x59370
movq %rax, %r15
leaq 0x28(%rsp), %rdi
xorl %esi, %esi
callq 0x5a180
leaq 0x158(%rsp), %rdi
leaq 0x28(%rsp), %rdx
movq %r15, %rsi
callq 0x59fb0
leaq 0x28(%rsp), %rdi
callq 0x5a588
leaq 0x50(%rsp), %rdi
callq 0x5a500
leaq 0x10(%rsp), %rdi
callq 0x5a588
leaq 0x10(%rsp), %rdi
xorl %esi, %esi
callq 0x5a180
leaq 0x50(%rsp), %rdi
leaq 0x10(%rsp), %rdx
movq %r14, %rsi
callq 0x57940
leaq 0x50(%rsp), %rdi
callq 0x59340
leaq 0x158(%rsp), %rdi
movq %rax, %rsi
callq 0x57ec0
movq %rax, 0x40(%rsp)
leaq 0x50(%rsp), %r12
movq %r12, %rdi
callq 0x5a500
leaq 0x10(%rsp), %r13
movq %r13, %rdi
callq 0x5a588
pushq $-0x1
popq %rbp
leaq 0x60a90(%rip), %r14     # 0x10c832
leaq 0x28(%rsp), %r15
movq 0x40(%rsp), %rdi
movl 0x8(%rdi), %eax
decl %eax
cmpl %eax, %ebp
jge 0xabeca
incl %ebp
movl %ebp, %esi
callq 0x99342
movq %r13, %rdi
movq %rax, %rsi
callq 0x5a310
movq %r12, %rdi
pushq $0x3
popq %rsi
movq %r13, %rdx
pushq $0x2
popq %rcx
callq 0x59a20
movq %r13, %rdi
callq 0x5a588
cmpw $0x0, 0x58(%rsp)
je 0xabeb3
movq 0x98(%rsp), %rax
cmpq 0x60(%rsp), %rax
jge 0xabebd
movq %r13, %rdi
movq %r12, %rsi
callq 0x58500
movq %r13, %rdi
xorl %esi, %esi
callq 0x56280
testb %al, %al
jne 0xabdde
movq %r15, %rdi
movq %r14, %rsi
callq 0x58c40
movq %r13, %rdi
movq %r15, %rsi
callq 0x58a10
movl %eax, %ebx
movq %r15, %rdi
callq 0x5a588
testb %bl, %bl
jne 0xabdde
movq %r15, %rdi
leaq 0x565d0(%rip), %rsi     # 0x10241c
callq 0x58c40
movq %r13, %rdi
movq %r15, %rsi
callq 0x58a10
movl %eax, %ebx
movq %r15, %rdi
callq 0x5a588
testb %bl, %bl
je 0xabea1
movq %r13, %rdi
callq 0x58370
addl $-0x8, %eax
movq %r15, %rdi
movq %r13, %rsi
movl %eax, %edx
callq 0x59220
movq 0x48(%rsp), %rdi
movq %r15, %rsi
movq 0x8(%rsp), %rdx
callq 0x57290
movq %r15, %rdi
callq 0x5a588
jmp 0xabdde
movq 0x8(%rsp), %rdi
movq %r13, %rsi
callq 0x64dee
jmp 0xabdde
movw $0x5, 0x148(%rsp)
movq %r12, %rdi
callq 0x565f0
jmp 0xabda7
leaq 0x158(%rsp), %rdi
callq 0x5a598
addq $0x238, %rsp            # imm = 0x238
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xabf2d
jmp 0xabf3c
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x5a588
jmp 0xabf01
jmp 0xabefe
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x5a500
jmp 0xabf10
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x5a588
jmp 0xabf83
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x5a500
jmp 0xabf30
jmp 0xabf3c
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x5a588
jmp 0xabf76
movq %rax, %rbx
jmp 0xabf76
jmp 0xabf49
jmp 0xabf5f
jmp 0xabf49
jmp 0xabf5f
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x5a588
jmp 0xabf62
jmp 0xabf5f
movq %rax, %rbx
jmp 0xabf6c
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x5a588
leaq 0x50(%rsp), %rdi
callq 0x565f0
leaq 0x158(%rsp), %rdi
callq 0x5a598
movq %rbx, %rdi
callq 0x58260
nop