// File: /workspace/github_cpp_makefile_star2_O2/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %r8, -0x40(%rbp)
movq %rcx, -0x38(%rbp)
movl %edx, %r14d
movq %rdi, -0x68(%rbp)
movl $0x140, %edi            # imm = 0x140
movq %rsi, -0x70(%rbp)
addq (%rsi), %rdi
leaq -0xc0(%rbp), %rsi
movl %edx, (%rsi)
callq 0x4882
movq (%rax), %rsi
movq 0x8(%rax), %rax
movq %rax, -0x58(%rbp)
shll $0x10, %r14d
movl %r14d, -0x2c(%rbp)
leaq -0x90(%rbp), %rbx
cmpq -0x58(%rbp), %rsi
je 0x3f79
leaq -0x50(%rbp), %rdi
movq %rsi, -0x60(%rbp)
callq 0x4a22
movb $0x1, %al
xorl %r12d, %r12d
leaq -0xc0(%rbp), %r13
movq -0x50(%rbp), %rsi
movq 0x60(%rsi), %rcx
movq 0x68(%rsi), %rdx
subq %rcx, %rdx
sarq $0x3, %rdx
cmpq %r12, %rdx
jbe 0x3f63
movq (%rcx,%r12,8), %rcx
testq %rcx, %rcx
je 0x3f5b
testb $0x1, %al
je 0x3eb6
addq $0x14, %rsi
movq %r13, %rdi
movq -0x38(%rbp), %rdx
callq 0x48d4
movq 0xb15a(%rip), %rdi      # 0xefd8
callq 0x30d0
movq %rax, %rdi
movq -0x40(%rbp), %rsi
callq 0x31b0
movq %rax, %rdi
movq %r13, %rsi
callq 0x31b0
movq %rax, %rdi
callq 0x30d0
movq %r13, %rdi
callq 0x3378
movq -0x50(%rbp), %rax
movq 0x60(%rax), %rax
movq (%rax,%r12,8), %rcx
movq %rcx, -0x80(%rbp)
movq -0x70(%rbp), %r14
movq (%r14), %rsi
movl $0x130, %eax            # imm = 0x130
addq %rax, %rsi
leaq -0xa0(%rbp), %r15
movq %r15, %rdi
callq 0x49cc
movq (%r14), %rax
movl 0x8(%rax), %r14d
movq %rbx, %rdi
movq %r15, %rsi
callq 0x49cc
movq -0x50(%rbp), %rax
movq 0x78(%rax), %rax
movq (%rax,%r12,8), %r15
movq %r13, %rdi
movq -0x40(%rbp), %rsi
leaq 0x6220(%rip), %rdx      # 0xa124
callq 0x4968
shll $0x18, %r14d
movl -0x2c(%rbp), %esi
movq %r12, -0x78(%rbp)
orl %r12d, %esi
orl %r14d, %esi
movq %r13, (%rsp)
movq -0x68(%rbp), %rdi
movq %rbx, %rdx
movq -0x80(%rbp), %rcx
movq %r15, %r8
movq -0x38(%rbp), %r9
callq 0x3fde
movq %r13, %rdi
callq 0x3378
leaq -0x88(%rbp), %rdi
callq 0x3ac4
leaq -0x98(%rbp), %rdi
callq 0x3ac4
xorl %eax, %eax
movq -0x78(%rbp), %r12
incq %r12
jmp 0x3e3a
leaq -0x48(%rbp), %rdi
callq 0x3ac4
movq -0x60(%rbp), %rsi
addq $0x10, %rsi
jmp 0x3e17
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x3fcd
movq %rax, %rbx
leaq -0xc0(%rbp), %rdi
callq 0x3378
jmp 0x3fa4
movq %rax, %rbx
leaq -0x88(%rbp), %rdi
callq 0x3ac4
leaq -0x98(%rbp), %rdi
callq 0x3ac4
jmp 0x3fcd
movq %rax, %rbx
leaq -0xc0(%rbp), %rdi
callq 0x3378
leaq -0x48(%rbp), %rdi
callq 0x3ac4
movq %rbx, %rdi
callq 0x3340