// File: /workspace/github_cpp_makefile_star2_O2/bluesky466[P]ResourcesParser/ResourcesParserInterpreter.cpp
// Function: ResourcesParserInterpreter::parserEntry(unsigned int, std::shared_ptr<ResourcesParser::ResStringPool>, ResTable_entry*, Res_value*, 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::parserEntry(
		uint32_t resId,
		ResourcesParser::ResStringPoolPtr pKeys,
		ResTable_entry* pEntry,
		Res_value* pValue,
		const string& type,
		const string& tab) {
	string key = ResourcesParser::getStringFromResStringPool(pKeys, pEntry->key.index);
	if(pEntry->flags & ResTable_entry::FLAG_COMPLEX) {
		cout <<tab<<key<<endl;
		ResTable_map_entry* pMapEntry = (ResTable_map_entry*)pEntry;
		ResTable_map* pMap = (ResTable_map*)pValue;
		if(pMapEntry->parent.ident!= 0) {
			cout <<tab+"\t" <<"parent: " <<mParser->getNameForId(pMapEntry->parent.ident) <<endl;
		}

		for(int i = 0 ; i < pMapEntry->count ; i++) {
			string name = mParser->getNameForResTableMap((pMap+i)->name);

			uint32_t ident = (pMap+i)->name.ident;

			if(!ResourcesParser::isTableMapForAttrDesc((pMap+i)->name)){
				cout
					<<tab+"\t\t" <<name
					<<"(" <<*dec <<ident <<" or 0x" <<hex <<ident <<") = "
					<<mParser->stringOfValue(&(pMap+i)->value)
					<<endl;
			} else {
				cout <<tab+"\t" <<name
					<<"(" <<*dec <<ident <<" or 0x" <<hex <<ident <<") "
					<<mParser->getValueTypeForResTableMap((pMap+i)->value)
					<<endl;
			}
		}
	}else{
		if(ID_TYPE == type) {
			cout <<tab+"\t" <<key <<" (" <<*dec <<resId <<" or 0x" <<hex <<resId <<")"<<endl;
		} else {
			string value = mParser->stringOfValue(pValue);
			cout <<tab+"\t" <<key <<" (" <<*dec <<resId <<" or 0x" <<hex <<resId <<")"
				<<" = " <<value <<endl;
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %r9, %r15
movq %r8, %rbx
movq %rcx, %r13
movl %esi, %r14d
movq %rdi, -0x30(%rbp)
leaq -0x88(%rbp), %r12
movq %r12, %rdi
movq %rdx, %rsi
callq 0x49cc
movl 0x4(%r13), %edx
leaq -0xa8(%rbp), %rdi
movq %r12, %rsi
callq 0x5dde
movq 0x10(%rbp), %r12
leaq -0x80(%rbp), %rdi
callq 0x3ac4
testb $0x1, 0x2(%r13)
jne 0x4105
leaq 0xb31a(%rip), %rdi      # 0xf360
movq %r15, %rsi
callq 0x485f
testb %al, %al
je 0x439b
leaq 0x60c7(%rip), %rdx      # 0xa124
leaq -0x50(%rbp), %rdi
movq %r12, %rsi
callq 0x4968
movq 0xaf68(%rip), %rdi      # 0xefd8
leaq -0x50(%rbp), %rsi
callq 0x31b0
leaq -0xa8(%rbp), %rsi
movq %rax, %rdi
callq 0x31b0
leaq 0x60a3(%rip), %rsi      # 0xa132
movq %rax, %rdi
callq 0x31e0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movl 0x18(%rax,%rcx), %edx
andl $-0x4b, %edx
orl $0x2, %edx
movl %edx, 0x18(%rax,%rcx)
movl %r14d, %ebx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x3100
leaq 0x6065(%rip), %rsi      # 0xa126
movq %rax, %rdi
callq 0x31e0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movl 0x18(%rax,%rcx), %edx
andl $-0x4b, %edx
orl $0x8, %edx
movl %edx, 0x18(%rax,%rcx)
movq %rax, %rdi
movq %rbx, %rsi
callq 0x3100
leaq 0x60ed(%rip), %rsi      # 0xa1dd
movq %rax, %rdi
callq 0x31e0
movq %rax, %rdi
callq 0x30d0
jmp 0x447c
movq 0xaecc(%rip), %rdi      # 0xefd8
movq %r12, %rsi
callq 0x31b0
leaq -0xa8(%rbp), %rsi
movq %rax, %rdi
callq 0x31b0
movq %rax, %rdi
callq 0x30d0
cmpl $0x0, 0x8(%r13)
je 0x41a1
leaq 0x5feb(%rip), %rdx      # 0xa124
leaq -0x50(%rbp), %rdi
movq %r12, %rsi
callq 0x4968
movq 0xae8c(%rip), %rdi      # 0xefd8
leaq -0x50(%rbp), %rsi
callq 0x31b0
leaq 0x5fbe(%rip), %rsi      # 0xa11a
movq %rax, %rdi
callq 0x31e0
movq %rax, %r14
movq -0x30(%rbp), %rax
movq (%rax), %rsi
movl 0x8(%r13), %edx
leaq -0x70(%rbp), %rdi
callq 0x51de
leaq -0x70(%rbp), %rsi
movq %r14, %rdi
callq 0x31b0
movq %rax, %rdi
callq 0x30d0
leaq -0x70(%rbp), %rdi
callq 0x3378
leaq -0x50(%rbp), %rdi
callq 0x3378
movq %r13, -0x78(%rbp)
xorl %r13d, %r13d
leaq -0x70(%rbp), %r14
leaq -0xc8(%rbp), %r12
movq -0x78(%rbp), %rax
movl 0xc(%rax), %eax
cmpq %rax, %r13
jae 0x4485
movq -0x30(%rbp), %rax
movq (%rax), %rsi
leaq -0x50(%rbp), %rdi
movq %rbx, %rdx
callq 0x6068
movl (%rbx), %r15d
movq %rbx, %rdi
callq 0x6132
testb %al, %al
je 0x42b2
movq %r14, %rdi
movq 0x10(%rbp), %rsi
leaq 0x5f2d(%rip), %rdx      # 0xa124
callq 0x4968
movq 0xadd5(%rip), %rdi      # 0xefd8
movq %r14, %rsi
callq 0x31b0
movq %rax, %rdi
leaq -0x50(%rbp), %rsi
callq 0x31b0
movq %rax, %rdi
leaq 0x5f12(%rip), %rsi      # 0xa133
callq 0x31e0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movl 0x18(%rax,%rcx), %edx
andl $-0x4b, %edx
orl $0x2, %edx
movl %edx, 0x18(%rax,%rcx)
movq %rax, %rdi
movq %r15, %rsi
callq 0x3100
movq %rax, %rdi
leaq 0x5ed6(%rip), %rsi      # 0xa126
callq 0x31e0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movl 0x18(%rax,%rcx), %edx
andl $-0x4b, %edx
orl $0x8, %edx
movl %edx, 0x18(%rax,%rcx)
movq %rax, %rdi
movq %r15, %rsi
callq 0x3100
movq %rax, %rdi
leaq 0x5f6a(%rip), %rsi      # 0xa1e9
callq 0x31e0
movq %rax, %r15
movq -0x30(%rbp), %rax
movq (%rax), %rsi
leaq 0x4(%rbx), %rdx
movq %r12, %rdi
callq 0x6146
movq %r15, %rdi
movq %r12, %rsi
callq 0x31b0
movq %rax, %rdi
callq 0x30d0
jmp 0x4376
movq %r14, %rdi
movq 0x10(%rbp), %rsi
leaq 0x5e63(%rip), %rdx      # 0xa123
callq 0x4968
movq 0xad0c(%rip), %rdi      # 0xefd8
movq %r14, %rsi
callq 0x31b0
movq %rax, %rdi
leaq -0x50(%rbp), %rsi
callq 0x31b0
movq %rax, %rdi
leaq 0x5e49(%rip), %rsi      # 0xa133
callq 0x31e0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movl 0x18(%rax,%rcx), %edx
andl $-0x4b, %edx
orl $0x2, %edx
movl %edx, 0x18(%rax,%rcx)
movq %rax, %rdi
movq %r15, %rsi
callq 0x3100
movq %rax, %rdi
leaq 0x5e0d(%rip), %rsi      # 0xa126
callq 0x31e0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movl 0x18(%rax,%rcx), %edx
andl $-0x4b, %edx
orl $0x8, %edx
movl %edx, 0x18(%rax,%rcx)
movq %rax, %rdi
movq %r15, %rsi
callq 0x3100
movq %rax, %rdi
leaq 0x5de5(%rip), %rsi      # 0xa12d
callq 0x31e0
movq %rax, %r15
movq -0x30(%rbp), %rax
movq (%rax), %rsi
leaq 0x4(%rbx), %rdx
movq %r12, %rdi
callq 0x4d7c
movq %r15, %rdi
movq %r12, %rsi
callq 0x31b0
movq %rax, %rdi
callq 0x30d0
movq %r12, %rdi
callq 0x3378
movq %r14, %rdi
callq 0x3378
leaq -0x50(%rbp), %rdi
callq 0x3378
incq %r13
addq $0xc, %rbx
jmp 0x41b3
movq -0x30(%rbp), %rax
movq (%rax), %rsi
leaq -0x50(%rbp), %rdi
movq %rbx, %rdx
callq 0x4d7c
leaq 0x5d6f(%rip), %rdx      # 0xa124
leaq -0x70(%rbp), %rdi
movq %r12, %rsi
callq 0x4968
movq 0xac10(%rip), %rdi      # 0xefd8
leaq -0x70(%rbp), %rsi
callq 0x31b0
leaq -0xa8(%rbp), %rsi
movq %rax, %rdi
callq 0x31b0
leaq 0x5d4b(%rip), %rsi      # 0xa132
movq %rax, %rdi
callq 0x31e0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movl 0x18(%rax,%rcx), %edx
andl $-0x4b, %edx
orl $0x2, %edx
movl %edx, 0x18(%rax,%rcx)
movl %r14d, %ebx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x3100
leaq 0x5d0d(%rip), %rsi      # 0xa126
movq %rax, %rdi
callq 0x31e0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movl 0x18(%rax,%rcx), %edx
andl $-0x4b, %edx
orl $0x8, %edx
movl %edx, 0x18(%rax,%rcx)
movq %rax, %rdi
movq %rbx, %rsi
callq 0x3100
leaq 0x5d95(%rip), %rsi      # 0xa1dd
movq %rax, %rdi
callq 0x31e0
leaq 0x5cd7(%rip), %rsi      # 0xa12e
movq %rax, %rdi
callq 0x31e0
leaq -0x50(%rbp), %rsi
movq %rax, %rdi
callq 0x31b0
movq %rax, %rdi
callq 0x30d0
leaq -0x70(%rbp), %rdi
callq 0x3378
leaq -0x50(%rbp), %rdi
callq 0x3378
leaq -0xa8(%rbp), %rdi
callq 0x3378
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x44cd
jmp 0x44e5
jmp 0x44e5
jmp 0x44cd
jmp 0x44e5
jmp 0x44ec
jmp 0x44cd
movq %rax, %rbx
leaq -0x80(%rbp), %rdi
callq 0x3ac4
jmp 0x450d
jmp 0x44e5
jmp 0x44cd
jmp 0x44ec
jmp 0x44ec
jmp 0x44cd
jmp 0x44cd
jmp 0x44ec
movq %rax, %rbx
jmp 0x44f8
jmp 0x44d4
movq %rax, %rbx
leaq -0xc8(%rbp), %rdi
callq 0x3378
jmp 0x44ef
movq %rax, %rbx
jmp 0x4501
jmp 0x44ec
movq %rax, %rbx
leaq -0x70(%rbp), %rdi
callq 0x3378
leaq -0x50(%rbp), %rdi
callq 0x3378
leaq -0xa8(%rbp), %rdi
callq 0x3378
movq %rbx, %rdi
callq 0x3340
nop