// File: /workspace/github_c_makefile_star2_O3/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 $0x228, %rsp            # imm = 0x228
movq %rdx, 0x18(%rsp)
movq %rsi, %rbx
movq %rdi, 0x38(%rsp)
movq %rsp, %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x58e20
leaq 0x40(%rsp), %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x56800
leaq 0x40(%rsp), %rdi
callq 0x580e0
movq %rax, %r14
leaq 0x20(%rsp), %rdi
xorl %esi, %esi
callq 0x58e20
leaq 0x148(%rsp), %rdi
leaq 0x20(%rsp), %rdx
movq %r14, %rsi
callq 0x58c60
leaq 0x20(%rsp), %rdi
callq 0x59200
leaq 0x40(%rsp), %rdi
callq 0x59178
movq %rsp, %rdi
callq 0x59200
movq %rsp, %rdi
xorl %esi, %esi
callq 0x58e20
leaq 0x40(%rsp), %rdi
movq %rsp, %rdx
movq %rbx, %rsi
callq 0x56800
leaq 0x40(%rsp), %rdi
callq 0x580b0
leaq 0x148(%rsp), %rdi
movq %rax, %rsi
callq 0x56d30
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x59178
movq %rsp, %rdi
callq 0x59200
cmpl $0x0, 0x8(%rbx)
jle 0xb0d9f
movq %rbx, %rdi
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movq %rsp, %r12
leaq 0x40(%rsp), %r13
leaq 0x20(%rsp), %rbx
incl %ebp
movq %rdi, %r14
movl %ebp, %esi
callq 0x9d384
movq %r12, %rdi
movq %rax, %rsi
callq 0x58fa0
movq %r13, %rdi
movl $0x3, %esi
movq %r12, %rdx
movl $0x2, %ecx
callq 0x58730
movq %r12, %rdi
callq 0x59200
cmpw $0x0, 0x48(%rsp)
je 0xb0d7c
movq 0x88(%rsp), %rax
cmpq 0x50(%rsp), %rax
jge 0xb0d86
movq %r12, %rdi
movq %r13, %rsi
callq 0x57310
movq %r12, %rdi
xorl %esi, %esi
callq 0x55260
testb %al, %al
jne 0xb0c9f
movq %rbx, %rdi
leaq 0x6bcb9(%rip), %rsi     # 0x11c9a2
callq 0x579f0
movq %r12, %rdi
movq %rbx, %rsi
callq 0x577d0
movl %eax, %r15d
movq %rbx, %rdi
callq 0x59200
testb %r15b, %r15b
jne 0xb0c9f
movq %rbx, %rdi
leaq 0x61819(%rip), %rsi     # 0x11252c
callq 0x579f0
movq %r12, %rdi
movq %rbx, %rsi
callq 0x577d0
movl %eax, %r15d
movq %rbx, %rdi
callq 0x59200
testb %r15b, %r15b
je 0xb0d6a
movq %r12, %rdi
callq 0x57180
addl $-0x8, %eax
movq %rbx, %rdi
movq %r12, %rsi
movl %eax, %edx
callq 0x57f90
movq 0x38(%rsp), %rdi
movq %rbx, %rsi
movq 0x18(%rsp), %rdx
callq 0x561a0
movq %rbx, %rdi
callq 0x59200
jmp 0xb0c9f
movq 0x18(%rsp), %rdi
movq %r12, %rsi
callq 0x642ac
jmp 0xb0c9f
movw $0x5, 0x138(%rsp)
movq %r13, %rdi
callq 0x555b0
movq %r14, %rdi
movl 0x8(%r14), %eax
decl %eax
cmpl %eax, %ebp
jl 0xb0c73
leaq 0x148(%rsp), %rdi
callq 0x59210
addq $0x228, %rsp            # imm = 0x228
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xb0e05
jmp 0xb0e00
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x59200
jmp 0xb0dd6
jmp 0xb0dd3
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x59178
jmp 0xb0de5
movq %rax, %rbx
movq %rsp, %rdi
callq 0x59200
jmp 0xb0e52
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x59178
jmp 0xb0e08
jmp 0xb0e00
movq %rax, %rbx
jmp 0xb0e45
movq %rax, %rbx
movq %rsp, %rdi
callq 0x59200
jmp 0xb0e45
jmp 0xb0e1c
jmp 0xb0e30
jmp 0xb0e1c
jmp 0xb0e30
jmp 0xb0e30
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x59200
jmp 0xb0e33
movq %rax, %rbx
jmp 0xb0e3b
movq %rax, %rbx
movq %rsp, %rdi
callq 0x59200
leaq 0x40(%rsp), %rdi
callq 0x555b0
leaq 0x148(%rsp), %rdi
callq 0x59210
movq %rbx, %rdi
callq 0x57090