// File: /workspace/github_cpp_makefile_star2_O3/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, -0x88(%rbp)
movq %rcx, -0x80(%rbp)
movq %rdi, -0xb0(%rbp)
movl $0x140, %edi            # imm = 0x140
movq %rsi, -0x78(%rbp)
addq (%rsi), %rdi
leaq -0x70(%rbp), %rbx
movl %edx, -0x3c(%rbp)
movl %edx, (%rbx)
movq %rbx, %rsi
callq 0x533a
movq (%rax), %rcx
movq 0x8(%rax), %rax
movq %rax, -0x98(%rbp)
cmpq %rax, %rcx
je 0x454e
shll $0x10, -0x3c(%rbp)
movq 0xad01(%rip), %rdx      # 0xefd0
movq (%rcx), %rax
movq %rax, -0x38(%rbp)
movq 0x8(%rcx), %rax
testq %rax, %rax
je 0x42ed
cmpb $0x0, (%rdx)
je 0x42e9
incl 0x8(%rax)
jmp 0x42ed
lock
incl 0x8(%rax)
movq %rcx, -0xa0(%rbp)
movq %rax, -0x30(%rbp)
movq -0x38(%rbp), %rax
movq 0x60(%rax), %rcx
cmpq %rcx, 0x68(%rax)
je 0x4521
movq -0x38(%rbp), %rax
addq $0x14, %rax
movq %rax, -0xa8(%rbp)
movb $0x1, %al
xorl %r14d, %r14d
movq (%rcx,%r14,8), %r13
testq %r13, %r13
je 0x44f7
testb $0x1, %al
je 0x43e6
movq %rbx, %rdi
movq -0xa8(%rbp), %rsi
movq -0x80(%rbp), %rdx
callq 0x53a2
movq 0xac8b(%rip), %rcx      # 0xefd8
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x31e0
movsbl %al, %esi
movq 0xac6d(%rip), %rdi      # 0xefd8
callq 0x3040
movq %rax, %rdi
callq 0x3120
movq -0x88(%rbp), %rcx
movq (%rcx), %rsi
movq 0x8(%rcx), %rdx
movq %rax, %rdi
callq 0x3220
movq -0x70(%rbp), %rsi
movq -0x68(%rbp), %rdx
movq %rax, %rdi
callq 0x3220
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x31e0
movsbl %al, %esi
movq %r15, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3120
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x43da
callq 0x31c0
movq -0x38(%rbp), %rax
movq 0x60(%rax), %rax
movq (%rax,%r14,8), %r13
movq -0x78(%rbp), %rax
movq (%rax), %rcx
movq 0x130(%rcx), %rax
movq 0x138(%rcx), %rsi
testq %rsi, %rsi
movq %rsi, -0x90(%rbp)
je 0x4424
movq 0xabc2(%rip), %rdx      # 0xefd0
cmpb $0x0, (%rdx)
je 0x4436
incl 0x8(%rsi)
movl 0x8(%rcx), %r12d
movq %rax, -0x50(%rbp)
movq %rsi, -0x48(%rbp)
jmp 0x4456
movl 0x8(%rcx), %r12d
movq %rax, -0x50(%rbp)
movq $0x0, -0x48(%rbp)
jmp 0x4459
lock
incl 0x8(%rsi)
cmpb $0x0, (%rdx)
movq -0x78(%rbp), %rcx
movq (%rcx), %rcx
movl 0x8(%rcx), %r12d
movq %rax, -0x50(%rbp)
movq %rsi, -0x48(%rbp)
je 0x4518
incl 0x8(%rsi)
movq -0x38(%rbp), %rax
movq 0x78(%rax), %rax
movq (%rax,%r14,8), %r15
leaq -0x60(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x88(%rbp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq -0x70(%rbp), %rbx
movq %rbx, %rdi
callq 0x5508
movq %rbx, %rdi
leaq 0x6c9b(%rip), %rsi      # 0xb12f
callq 0x3350
shll $0x18, %r12d
movl -0x3c(%rbp), %esi
orl %r14d, %esi
orl %r12d, %esi
movq %rbx, (%rsp)
movq -0xb0(%rbp), %rdi
leaq -0x50(%rbp), %rdx
movq %r13, %rcx
movq %r15, %r8
movq -0x80(%rbp), %r9
callq 0x45ce
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x44d6
callq 0x31c0
movq -0x48(%rbp), %rdi
testq %rdi, %rdi
je 0x44e4
callq 0x3ddc
movq -0x90(%rbp), %rdi
testq %rdi, %rdi
je 0x44f5
callq 0x3ddc
xorl %eax, %eax
incq %r14
movq -0x38(%rbp), %rdx
movq 0x60(%rdx), %rcx
movq 0x68(%rdx), %rdx
subq %rcx, %rdx
sarq $0x3, %rdx
cmpq %r14, %rdx
ja 0x431e
jmp 0x4521
lock
incl 0x8(%rsi)
jmp 0x4459
movq -0x30(%rbp), %rdi
testq %rdi, %rdi
je 0x452f
callq 0x3ddc
movq -0xa0(%rbp), %rcx
addq $0x10, %rcx
cmpq -0x98(%rbp), %rcx
movq 0xaa88(%rip), %rdx      # 0xefd0
jne 0x42cf
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x45b7
jmp 0x456c
movq %rax, %rbx
jmp 0x4581
movq %rax, %rbx
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x4581
callq 0x31c0
movq -0x48(%rbp), %rdi
testq %rdi, %rdi
je 0x458f
callq 0x3ddc
movq -0x90(%rbp), %rdi
testq %rdi, %rdi
je 0x45b7
callq 0x3ddc
jmp 0x45b7
movq %rax, %rbx
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x45b7
callq 0x31c0
movq -0x30(%rbp), %rdi
testq %rdi, %rdi
je 0x45c5
callq 0x3ddc
movq %rbx, %rdi
callq 0x3330
nop