// File: bluesky466[P]ResourcesParser/ResourcesParserInterpreter.cpp
// Function: ResourcesParserInterpreter::parserResource(std::shared_ptr<ResourcesParser::PackageResource>, unsigned int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void ResourcesParserInterpreter::parserResource(
		ResourcesParser::PackageResourcePtr packageRes,
		uint32_t typeId,
		const string& type,
		const string& tab) {
	for(ResourcesParser::ResTableTypePtr pResTableType : packageRes->resTablePtrs[typeId]) {
		bool showConfigDirectory = true;

		for(int i = 0 ; i < pResTableType->entries.size() ; i++) {
			if(pResTableType->entries[i] == nullptr){
				continue;
			}
			if(showConfigDirectory) {
				string config = getConfigDirectory(pResTableType->header.config, type);
				cout<<endl<<tab<<config<<endl;
				showConfigDirectory = false;
			}
			auto pEntry = pResTableType->entries[i];
			auto keys = packageRes->pKeys;
			parserEntry(
					MAKE_RESOURCE_ID(packageRes->header.id, typeId, i),
					keys,
					pEntry,
					pResTableType->values[i],
					type,
					tab + "\t");
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x150, %rsp            # imm = 0x150
movq %rsi, -0xf0(%rbp)
movq %rdi, %rax
movq -0xf0(%rbp), %rdi
movq %rdi, -0xe8(%rbp)
movq %rax, -0x8(%rbp)
movq %rdi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xe0(%rbp)
callq 0x6550
movq %rax, %rdi
addq $0x140, %rdi            # imm = 0x140
movl -0x14(%rbp), %eax
movl %eax, -0x34(%rbp)
leaq -0x34(%rbp), %rsi
callq 0x66b0
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdi
callq 0x6790
movq %rax, -0x40(%rbp)
movq -0x30(%rbp), %rdi
callq 0x67c0
movq %rax, -0x48(%rbp)
leaq -0x40(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x67f0
testb $0x1, %al
jne 0x51c3
jmp 0x54cc
leaq -0x40(%rbp), %rdi
callq 0x6830
movq %rax, %rsi
leaq -0x58(%rbp), %rdi
callq 0x6850
movb $0x1, -0x59(%rbp)
movl $0x0, -0x60(%rbp)
movslq -0x60(%rbp), %rax
movq %rax, -0xf8(%rbp)
leaq -0x58(%rbp), %rdi
callq 0x6880
movq %rax, %rdi
addq $0x60, %rdi
callq 0x68a0
movq %rax, %rcx
movq -0xf8(%rbp), %rax
cmpq %rcx, %rax
jae 0x54aa
leaq -0x58(%rbp), %rdi
callq 0x6880
movq %rax, %rdi
addq $0x60, %rdi
movslq -0x60(%rbp), %rsi
callq 0x68c0
cmpq $0x0, (%rax)
jne 0x523a
jmp 0x5450
testb $0x1, -0x59(%rbp)
je 0x530c
leaq -0x58(%rbp), %rdi
callq 0x6880
movq %rax, %rsi
addq $0x14, %rsi
movq -0x20(%rbp), %rdx
leaq -0x80(%rbp), %rdi
callq 0x68e0
jmp 0x5263
movq 0x21d5e(%rip), %rdi     # 0x26fc8
movq 0x21d37(%rip), %rsi     # 0x26fa8
callq 0x3290
movq %rax, -0x100(%rbp)
jmp 0x527f
movq -0x100(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0x3230
movq %rax, -0x108(%rbp)
jmp 0x5298
movq -0x108(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x3230
movq %rax, -0x110(%rbp)
jmp 0x52b1
movq -0x110(%rbp), %rdi
movq 0x21ce9(%rip), %rsi     # 0x26fa8
callq 0x3290
jmp 0x52c6
movb $0x0, -0x59(%rbp)
leaq -0x80(%rbp), %rdi
callq 0x34a8
jmp 0x530c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x88(%rbp)
movl %eax, -0x8c(%rbp)
jmp 0x54c1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x88(%rbp)
movl %eax, -0x8c(%rbp)
leaq -0x80(%rbp), %rdi
callq 0x34a8
jmp 0x54c1
leaq -0x58(%rbp), %rdi
movq %rdi, -0x130(%rbp)
callq 0x6880
movq %rax, %rdi
addq $0x60, %rdi
movslq -0x60(%rbp), %rsi
callq 0x68c0
movq -0xe8(%rbp), %rdi
movq (%rax), %rax
movq %rax, -0x98(%rbp)
callq 0x6550
movq %rax, %rsi
addq $0x130, %rsi            # imm = 0x130
leaq -0xa8(%rbp), %rdi
movq %rdi, -0x140(%rbp)
callq 0x6570
movq -0xe8(%rbp), %rdi
callq 0x6550
movq -0x140(%rbp), %rsi
movl 0x8(%rax), %eax
shll $0x18, %eax
movl -0x14(%rbp), %ecx
shll $0x10, %ecx
orl %ecx, %eax
movl -0x60(%rbp), %ecx
orl %ecx, %eax
movl %eax, -0x134(%rbp)
leaq -0xb8(%rbp), %rdi
callq 0x6570
movq -0x130(%rbp), %rdi
movq -0x98(%rbp), %rax
movq %rax, -0x128(%rbp)
callq 0x6880
movq %rax, %rdi
addq $0x78, %rdi
movslq -0x60(%rbp), %rsi
callq 0x69c0
movq (%rax), %rax
movq %rax, -0x120(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x118(%rbp)
movq -0x28(%rbp), %rsi
leaq 0x14d43(%rip), %rdx     # 0x1a124
leaq -0xd8(%rbp), %rdi
callq 0x69e0
jmp 0x53ef
movq -0x118(%rbp), %r9
movq -0x120(%rbp), %r8
movq -0x128(%rbp), %rcx
movl -0x134(%rbp), %esi
movq -0xe0(%rbp), %rdi
movq %rsp, %rax
leaq -0xd8(%rbp), %rdx
movq %rdx, (%rax)
leaq -0xb8(%rbp), %rdx
callq 0x54f0
jmp 0x542c
leaq -0xd8(%rbp), %rdi
callq 0x34a8
leaq -0xb8(%rbp), %rdi
callq 0x43a0
leaq -0xa8(%rbp), %rdi
callq 0x43a0
movl -0x60(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x60(%rbp)
jmp 0x51e3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x88(%rbp)
movl %eax, -0x8c(%rbp)
jmp 0x5490
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x88(%rbp)
movl %eax, -0x8c(%rbp)
leaq -0xd8(%rbp), %rdi
callq 0x34a8
leaq -0xb8(%rbp), %rdi
callq 0x43a0
leaq -0xa8(%rbp), %rdi
callq 0x43a0
jmp 0x54c1
leaq -0x58(%rbp), %rdi
callq 0x6a60
leaq -0x40(%rbp), %rdi
callq 0x6a80
jmp 0x51ad
leaq -0x58(%rbp), %rdi
callq 0x6a60
jmp 0x54d5
addq $0x150, %rsp            # imm = 0x150
popq %rbp
retq
movq -0x88(%rbp), %rdi
callq 0x3450
nopw %cs:(%rax,%rax)