// File: /workspace/github_cpp_makefile_star2_O2/Matlock42[P]Jeopardy/jgameClass.cpp
// Function: Game::findXML[abi:cxx11](char const*)
std::vector <std::string> Game::findXML ( const char *path)
{
	tinydir_dir dir;
	std::string s;
	std::vector <std::string> output;
	
	// open the current directory
	if (tinydir_open(&dir, path) == -1)
	{
		std::cout << "Error opening directory";
	}
	
	while (dir.has_next)
	{
		tinydir_file file;
		// get the file
		if (tinydir_readfile(&dir, &file) == -1)
		{
			std::cout << "Error getting file";
		}
		
		if (file.is_dir)
		{
			// prevent bad things from happening
			if ( strcmp(file.name, ".") != 0 && strcmp(file.name, "..") != 0 )
			{
				// look one directory deeper and append the directory to the filename
				std::vector <std::string> returnedVector = findXML(file.name);
				for( unsigned j = 0; j<returnedVector.size();j++)
				{
					//output.push_back( file.name  + "/" + returnedVector.at(j) );
					output.push_back( file.name + std::string("/") + returnedVector.at(j) );
				}
			}
		}
		else
		{
			// print the file's name
			s = file.name;
			// don't include the format file
			if ( (s.find(".xml",0) != -1 || s.find(".XML",0) != -1) && (s.find("format") == -1) )
			{
				output.push_back( file.name );
			}
		}
		// next one
		tinydir_next(&dir);
	}
	return output;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2268, %rsp           # imm = 0x2268
movq %rsi, -0x40(%rbp)
leaq -0x68(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movq %rdi, %rbx
movb $0x0, (%rax)
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
andq $0x0, 0x10(%rdi)
testq %rdx, %rdx
je 0x330e
movq %rdx, %r14
movq %rdx, %rdi
callq 0x20c0
testq %rax, %rax
je 0x330e
cmpq $0x1000, %rax           # imm = 0x1000
jb 0x3621
callq 0x2040
movl $0x24, (%rax)
jmp 0x3319
callq 0x2040
movl $0x16, (%rax)
movq 0x6ca0(%rip), %rdi      # 0x9fc0
leaq 0x2f5a(%rip), %rsi      # 0x6281
callq 0x2210
leaq -0x98(%rbp), %r13
leaq -0xd8(%rbp), %r12
leaq -0xb8(%rbp), %r14
movq %rbx, -0x38(%rbp)
cmpl $0x0, -0x1290(%rbp)
je 0x3603
movq -0x1278(%rbp), %r15
pushq $0x2
popq %rbx
testq %r15, %r15
je 0x33a5
leaq -0x2290(%rbp), %rdi
callq 0x20c0
movq %rax, %rbx
addq $0x13, %r15
movq %r15, %rdi
callq 0x20c0
leaq (%rbx,%rax), %rcx
addq $-0xfff, %rcx           # imm = 0xF001
cmpq $-0x1000, %rcx          # imm = 0xF000
setb %cl
cmpq $0x100, %rax            # imm = 0x100
setae %al
orb %cl, %al
pushq $0x24
popq %rbx
je 0x351d
callq 0x2040
movl %ebx, (%rax)
movq 0x6c0d(%rip), %rdi      # 0x9fc0
leaq 0x2edf(%rip), %rsi      # 0x6299
movq -0x38(%rbp), %rbx
callq 0x2210
movl -0x170(%rbp), %eax
testl %eax, %eax
je 0x3493
cmpw $0x2e, -0x270(%rbp)
je 0x35c2
leaq -0x270(%rbp), %rdi
leaq 0x2ebf(%rip), %rsi      # 0x62ac
pushq $0x3
popq %rdx
callq 0x2240
testl %eax, %eax
je 0x35c2
leaq -0x58(%rbp), %rdi
movq -0x40(%rbp), %rsi
leaq -0x270(%rbp), %rdx
callq 0x32aa
xorl %r15d, %r15d
movl %r15d, %r15d
movq -0x50(%rbp), %rax
subq -0x58(%rbp), %rax
sarq $0x5, %rax
cmpq %r15, %rax
jbe 0x35b9
movq %r14, %rdi
leaq 0x2e20(%rip), %rsi      # 0x6256
leaq -0x29(%rbp), %rdx
callq 0x376e
movq %r12, %rdi
leaq -0x270(%rbp), %rsi
movq %r14, %rdx
callq 0x3d27
leaq -0x58(%rbp), %rdi
movq %r15, %rsi
callq 0x3834
movq %r13, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x3cfe
movq %rbx, %rdi
movq %r13, %rsi
callq 0x5578
movq %r13, %rdi
callq 0x20d0
movq %r12, %rdi
callq 0x20d0
movq %r14, %rdi
callq 0x20d0
incl %r15d
jmp 0x3414
leaq -0x78(%rbp), %rdi
leaq -0x270(%rbp), %rsi
callq 0x23f0
leaq -0x78(%rbp), %rdi
leaq 0x2e01(%rip), %rsi      # 0x62af
xorl %edx, %edx
callq 0x2410
cmpq $-0x1, %rax
jne 0x34d7
leaq -0x78(%rbp), %rdi
leaq 0x2dee(%rip), %rsi      # 0x62b4
xorl %edx, %edx
callq 0x2410
cmpq $-0x1, %rax
je 0x35c2
leaq -0x78(%rbp), %rdi
leaq 0x2dd7(%rip), %rsi      # 0x62b9
xorl %edx, %edx
callq 0x2410
cmpq $-0x1, %rax
jne 0x35c2
movq %r13, %rdi
leaq -0x270(%rbp), %rsi
movq %r12, %rdx
callq 0x376e
movq %rbx, %rdi
movq %r13, %rsi
callq 0x5578
movq %r13, %rdi
callq 0x20d0
jmp 0x35c2
leaq -0x1270(%rbp), %rbx
movq %rbx, %rdi
leaq -0x2290(%rbp), %rsi
callq 0x21f0
movq %rbx, %rdi
callq 0x20c0
movw $0x2f, -0x1270(%rbp,%rax)
leaq -0x270(%rbp), %rbx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x21f0
leaq -0x1270(%rbp), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x23a0
movq %r15, %rdi
leaq -0x168(%rbp), %rsi
callq 0x21d0
cmpl $-0x1, %eax
je 0x33ac
movl -0x150(%rbp), %ecx
movl $0xf000, %eax           # imm = 0xF000
andl %eax, %ecx
xorl %eax, %eax
cmpl $0x4000, %ecx           # imm = 0x4000
sete %al
movl %eax, -0x170(%rbp)
xorl %edx, %edx
cmpl $0x8000, %ecx           # imm = 0x8000
sete %dl
movl %edx, -0x16c(%rbp)
movq -0x38(%rbp), %rbx
jmp 0x33c9
leaq -0x58(%rbp), %rdi
callq 0x37aa
cmpl $0x0, -0x1290(%rbp)
je 0x35f3
movq -0x1280(%rbp), %rdi
callq 0x2300
movq %rax, -0x1278(%rbp)
testq %rax, %rax
jne 0x3345
andl $0x0, -0x1290(%rbp)
jmp 0x3345
callq 0x2040
movl $0x2, (%rax)
jmp 0x3345
leaq -0x78(%rbp), %rdi
callq 0x20d0
movq %rbx, %rax
addq $0x2268, %rsp           # imm = 0x2268
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorps %xmm0, %xmm0
leaq -0x2290(%rbp), %r15
movups %xmm0, 0x1008(%r15)
movq %r15, %rdi
callq 0x3718
movq %r15, %rdi
movq %r14, %rsi
callq 0x21f0
movq %r14, %rdi
callq 0x22e0
movq %rax, 0x1010(%r15)
testq %rax, %rax
je 0x3688
movl $0x1, -0x1290(%rbp)
movq %rax, %rdi
callq 0x2300
movq %rax, -0x1278(%rbp)
testq %rax, %rax
jne 0x332c
andl $0x0, -0x1290(%rbp)
jmp 0x332c
callq 0x2040
movl $0x2, (%rax)
leaq -0x2290(%rbp), %rdi
callq 0x3718
jmp 0x3319
jmp 0x36bb
movq %rax, %r14
leaq -0x98(%rbp), %rdi
callq 0x20d0
jmp 0x36ff
jmp 0x36bb
jmp 0x36bb
movq %rax, %r14
jmp 0x36ff
movq %rax, %r14
jmp 0x36f6
movq %rax, %r14
leaq -0x98(%rbp), %rdi
callq 0x20d0
jmp 0x36de
movq %rax, %r14
jmp 0x36ea
movq %rax, %r14
leaq -0xd8(%rbp), %rdi
callq 0x20d0
leaq -0xb8(%rbp), %rdi
callq 0x20d0
leaq -0x58(%rbp), %rdi
callq 0x37aa
movq %rbx, %rdi
callq 0x37aa
leaq -0x78(%rbp), %rdi
callq 0x20d0
movq %r14, %rdi
callq 0x2390