// File: /workspace/github_cpp_makefile_star2_O1/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 $0x98, %rsp
movq %r8, -0x70(%rbp)
movq %rcx, -0x68(%rbp)
movq %rsi, %r13
movq %rdi, -0xa8(%rbp)
movl $0x140, %edi            # imm = 0x140
addq (%rsi), %rdi
leaq -0x60(%rbp), %rsi
movl %edx, -0x34(%rbp)
movl %edx, (%rsi)
callq 0x533c
movq (%rax), %rcx
movq 0x8(%rax), %rax
movq %rax, -0x88(%rbp)
cmpq %rax, %rcx
je 0x4559
shll $0x10, -0x34(%rbp)
movq %r13, -0xa0(%rbp)
movq (%rcx), %rax
movq %rax, -0x30(%rbp)
movq 0x8(%rcx), %r15
testq %r15, %r15
je 0x430b
movq 0xacd5(%rip), %rax      # 0xefd0
cmpb $0x0, (%rax)
je 0x4306
incl 0x8(%r15)
jmp 0x430b
lock
incl 0x8(%r15)
movq %rcx, -0x90(%rbp)
movq -0x30(%rbp), %rcx
movq 0x60(%rcx), %rax
cmpq %rax, 0x68(%rcx)
je 0x4534
movq -0x30(%rbp), %rcx
addq $0x14, %rcx
movq %rcx, -0x98(%rbp)
movb $0x1, %cl
movl %ecx, -0x38(%rbp)
xorl %r14d, %r14d
movq %r15, -0x40(%rbp)
cmpq $0x0, (%rax,%r14,8)
je 0x4515
testb $0x1, -0x38(%rbp)
je 0x4400
leaq -0x60(%rbp), %rdi
movq -0x98(%rbp), %rsi
movq -0x68(%rbp), %rdx
callq 0x53a4
movq 0xac69(%rip), %rcx      # 0xefd8
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x31f0
movsbl %al, %esi
movq 0xac4b(%rip), %rdi      # 0xefd8
callq 0x3040
movq %rax, %rdi
callq 0x3130
movq -0x70(%rbp), %rcx
movq (%rcx), %rsi
movq 0x8(%rcx), %rdx
movq %rax, %rdi
callq 0x3230
movq -0x60(%rbp), %rsi
movq -0x58(%rbp), %rdx
movq %rax, %rdi
callq 0x3230
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x31f0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3130
movq -0x60(%rbp), %rdi
leaq -0x50(%rbp), %rax
cmpq %rax, %rdi
je 0x43f9
callq 0x31d0
movl $0x0, -0x38(%rbp)
movq -0x30(%rbp), %rax
movq 0x60(%rax), %rax
movq (%rax,%r14,8), %rax
movq %rax, -0xb0(%rbp)
movq (%r13), %rcx
movq 0x130(%rcx), %rax
movq 0x138(%rcx), %r12
testq %r12, %r12
je 0x4443
movq 0xab9f(%rip), %rcx      # 0xefd0
cmpb $0x0, (%rcx)
je 0x443d
incl 0x8(%r12)
jmp 0x4443
lock
incl 0x8(%r12)
movq (%r13), %rcx
movl 0x8(%rcx), %r13d
movq %rax, -0x80(%rbp)
movq %r12, -0x78(%rbp)
testq %r12, %r12
je 0x4471
movq 0xab71(%rip), %rax      # 0xefd0
cmpb $0x0, (%rax)
je 0x446b
incl 0x8(%r12)
jmp 0x4471
lock
incl 0x8(%r12)
movq -0x30(%rbp), %rax
movq 0x78(%rax), %rax
movq (%rax,%r14,8), %rbx
leaq -0x50(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x70(%rbp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq -0x60(%rbp), %r15
movq %r15, %rdi
callq 0x5500
movq %r15, %rdi
leaq 0x6c89(%rip), %rsi      # 0xb132
callq 0x3360
shll $0x18, %r13d
movl -0x34(%rbp), %esi
orl %r14d, %esi
orl %r13d, %esi
movq %r15, (%rsp)
movq -0xa8(%rbp), %rdi
leaq -0x80(%rbp), %rdx
movq -0xb0(%rbp), %rcx
movq %rbx, %r8
movq -0x68(%rbp), %r9
callq 0x45d8
movq -0x60(%rbp), %rdi
leaq -0x50(%rbp), %rax
cmpq %rax, %rdi
je 0x44ef
callq 0x31d0
movq -0x78(%rbp), %rdi
testq %rdi, %rdi
movq -0xa0(%rbp), %r13
je 0x4504
callq 0x3dfa
testq %r12, %r12
je 0x4511
movq %r12, %rdi
callq 0x3dfa
movq -0x40(%rbp), %r15
incq %r14
movq -0x30(%rbp), %rcx
movq 0x60(%rcx), %rax
movq 0x68(%rcx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %r14, %rcx
ja 0x433f
testq %r15, %r15
je 0x4541
movq %r15, %rdi
callq 0x3dfa
movq -0x90(%rbp), %rcx
addq $0x10, %rcx
cmpq -0x88(%rbp), %rcx
jne 0x42e4
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x45c2
jmp 0x4577
movq %rax, %rbx
jmp 0x458c
movq %rax, %rbx
movq -0x60(%rbp), %rdi
leaq -0x50(%rbp), %rax
cmpq %rax, %rdi
je 0x458c
callq 0x31d0
movq -0x78(%rbp), %rdi
testq %rdi, %rdi
je 0x459a
callq 0x3dfa
testq %r12, %r12
je 0x45a7
movq %r12, %rdi
callq 0x3dfa
movq -0x40(%rbp), %r15
jmp 0x45c2
movq %rax, %rbx
movq -0x60(%rbp), %rdi
leaq -0x50(%rbp), %rax
cmpq %rax, %rdi
je 0x45c2
callq 0x31d0
testq %r15, %r15
je 0x45cf
movq %r15, %rdi
callq 0x3dfa
movq %rbx, %rdi
callq 0x3340
nop