// File: /workspace/github_cpp_makefile_star2_O1/bluesky466[P]ResourcesParser/ResourcesParserInterpreter.cpp
// Function: ResourcesParserInterpreter::parserId(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void ResourcesParserInterpreter::parserId(const string& id) {
	uint32_t uid;
	if(0 == strncmp(id.c_str(), "0x", 2)) {
		istringstream(id)>>hex>>uid;
	} else {
		istringstream(id)>>uid;
	}
	vector<ResourcesParser::ResTableTypePtr> resTableTypePtrs = mParser->getResTableTypesForId(uid);
	if(resTableTypePtrs.empty()) {
		cout <<"can't find resource for " <<id <<endl;
	} else {
		ResourcesParser::PackageResourcePtr pPackage = mParser->getPackageResouceForId(uid);
		uint32_t typeId = TYPE_ID(uid);
		uint32_t entryId = ENTRY_ID(uid);
		string type = ResourcesParser::getStringFromResStringPool(pPackage->pTypes, typeId-1);
		for(ResourcesParser::ResTableTypePtr pResTableType : resTableTypePtrs) {
			ResTable_entry* pEntry = pResTableType->entries[entryId];
			Res_value* pValue = pResTableType->values[entryId];
			if(nullptr != pEntry) {
				cout <<getConfigDirectory(pResTableType->header.config, type) << " : ";
				parserEntry(uid, pPackage->pKeys, pEntry, pValue, type, "");
				cout <<endl;
			}
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x218, %rsp            # imm = 0x218
movq %rsi, %rbx
movq %rdi, %r15
movq (%rsi), %rdi
leaq 0x62c4(%rip), %rsi      # 0xb138
movl $0x2, %edx
callq 0x30f0
leaq -0x238(%rbp), %r14
movq %r14, %rdi
movq %rbx, %rsi
movl $0x8, %edx
testl %eax, %eax
je 0x4ea7
callq 0x3310
leaq -0x2c(%rbp), %rsi
movq %r14, %rdi
callq 0x3330
jmp 0x4ed3
callq 0x3310
movq (%r14), %rax
movq -0x18(%rax), %rax
movl -0x220(%rbp,%rax), %ecx
andl $-0x4b, %ecx
orl $0x8, %ecx
movl %ecx, -0x220(%rbp,%rax)
leaq -0x2c(%rbp), %rsi
movq %r14, %rdi
callq 0x3330
movq 0xa0ee(%rip), %rsi      # 0xefc8
leaq -0x238(%rbp), %rdi
callq 0x3290
leaq -0x1c0(%rbp), %rdi
callq 0x30b0
movq (%r15), %rsi
movl -0x2c(%rbp), %edx
leaq -0xb8(%rbp), %r14
movq %r14, %rdi
callq 0x7332
movq (%r14), %rax
cmpq 0x8(%r14), %rax
je 0x4f60
movq (%r15), %rsi
movl -0x2c(%rbp), %edx
leaq -0x90(%rbp), %rdi
callq 0x72b2
movl -0x2c(%rbp), %ebx
movl %ebx, %eax
shrl $0x10, %eax
movzbl %al, %edx
movq -0x90(%rbp), %rax
movq 0x120(%rax), %rcx
movq %rcx, -0x80(%rbp)
movq 0x128(%rax), %rax
movq %rax, -0x78(%rbp)
testq %rax, %rax
je 0x4fbe
movq 0xa07a(%rip), %rcx      # 0xefd0
cmpb $0x0, (%rcx)
je 0x4fba
incl 0x8(%rax)
jmp 0x4fbe
movq 0xa071(%rip), %rdi      # 0xefd8
leaq 0x61d5(%rip), %rsi      # 0xb143
movl $0x18, %edx
callq 0x3230
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq 0xa052(%rip), %rdi      # 0xefd8
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
jmp 0x51bf
lock
incl 0x8(%rax)
decl %edx
leaq -0x238(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x6fca
movq %r15, -0x98(%rbp)
movq -0x78(%rbp), %rdi
testq %rdi, %rdi
je 0x4fe5
callq 0x3dfa
movq -0xb8(%rbp), %r13
movq -0xb0(%rbp), %rax
movq %rax, -0xa0(%rbp)
cmpq %rax, %r13
je 0x5199
movzwl %bx, %eax
shll $0x3, %eax
movq %rax, -0x60(%rbp)
leaq -0x58(%rbp), %r14
leaq -0x238(%rbp), %r15
movq (%r13), %rsi
movq 0x8(%r13), %rax
testq %rax, %rax
je 0x503a
movq 0x9fa4(%rip), %rcx      # 0xefd0
cmpb $0x0, (%rcx)
je 0x5036
incl 0x8(%rax)
jmp 0x503a
lock
incl 0x8(%rax)
movq %rax, -0x38(%rbp)
movq 0x60(%rsi), %rax
movq -0x60(%rbp), %rcx
movq (%rax,%rcx), %r12
testq %r12, %r12
je 0x517a
movq 0x78(%rsi), %rax
movq -0x60(%rbp), %rcx
movq (%rax,%rcx), %rbx
addq $0x14, %rsi
movq %r14, %rdi
movq %r15, %rdx
callq 0x53a4
movq -0x58(%rbp), %rsi
movq -0x50(%rbp), %rdx
movq 0x9f5b(%rip), %rdi      # 0xefd8
callq 0x3230
movl $0x3, %edx
movq %rax, %rdi
leaq 0x60cb(%rip), %rsi      # 0xb15c
callq 0x3230
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x50a8
callq 0x31d0
movl -0x2c(%rbp), %r15d
movq -0x90(%rbp), %rax
movq 0x130(%rax), %rcx
movq %rcx, -0x70(%rbp)
movq 0x138(%rax), %rax
movq %rax, -0x68(%rbp)
testq %rax, %rax
je 0x50e3
movq 0x9efb(%rip), %rcx      # 0xefd0
cmpb $0x0, (%rcx)
je 0x50df
incl 0x8(%rax)
jmp 0x50e3
lock
incl 0x8(%rax)
leaq -0x48(%rbp), %rax
movq %rax, -0x58(%rbp)
leaq -0x58(%rbp), %r14
movq %r14, %rdi
leaq 0x603a(%rip), %rdx      # 0xb133
movq %rdx, %rsi
callq 0x3efc
movq %r14, (%rsp)
movq -0x98(%rbp), %rdi
movl %r15d, %esi
leaq -0x70(%rbp), %rdx
movq %r12, %rcx
movq %rbx, %r8
leaq -0x238(%rbp), %r15
movq %r15, %r9
callq 0x45d8
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x513a
callq 0x31d0
movq -0x68(%rbp), %rdi
testq %rdi, %rdi
je 0x5148
callq 0x3dfa
movq 0x9e89(%rip), %rcx      # 0xefd8
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x31f0
movsbl %al, %esi
movq 0x9e6b(%rip), %rdi      # 0xefd8
callq 0x3040
movq %rax, %rdi
callq 0x3130
movq -0x38(%rbp), %rdi
testq %rdi, %rdi
je 0x5188
callq 0x3dfa
addq $0x10, %r13
cmpq -0xa0(%rbp), %r13
jne 0x5018
leaq -0x228(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x51ae
callq 0x31d0
movq -0x88(%rbp), %rdi
testq %rdi, %rdi
je 0x51bf
callq 0x3dfa
leaq -0xb8(%rbp), %rdi
callq 0x54b4
addq $0x218, %rsp            # imm = 0x218
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x51fb
movq %rax, %rbx
movq -0x78(%rbp), %rdi
testq %rdi, %rdi
je 0x5292
callq 0x3dfa
jmp 0x5292
jmp 0x5222
movq %rax, %rbx
movq 0x9dc3(%rip), %rsi      # 0xefc8
leaq -0x238(%rbp), %rdi
callq 0x3290
leaq -0x1c0(%rbp), %rdi
callq 0x30b0
jmp 0x52af
movq %rax, %rbx
jmp 0x52a3
movq %rax, %rbx
jmp 0x5241
movq %rax, %rbx
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x5241
callq 0x31d0
movq -0x68(%rbp), %rdi
testq %rdi, %rdi
je 0x526d
callq 0x3dfa
jmp 0x526d
jmp 0x526a
movq %rax, %rbx
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x526d
callq 0x31d0
jmp 0x526d
movq %rax, %rbx
cmpq $0x0, -0x38(%rbp)
je 0x527d
movq -0x38(%rbp), %rdi
callq 0x3dfa
leaq -0x228(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5292
callq 0x31d0
movq -0x88(%rbp), %rdi
testq %rdi, %rdi
je 0x52a3
callq 0x3dfa
leaq -0xb8(%rbp), %rdi
callq 0x54b4
movq %rbx, %rdi
callq 0x3340
nop