// File: /workspace/github_cpp_makefile_star2_O3/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), %rax
cmpb $0x30, (%rax)
jne 0x4eae
cmpb $0x78, 0x1(%rax)
jne 0x4eae
leaq -0x238(%rbp), %r14
movq %r14, %rdi
movq %rbx, %rsi
movl $0x8, %edx
callq 0x3300
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 0x3320
jmp 0x4ed1
leaq -0x238(%rbp), %r14
movq %r14, %rdi
movq %rbx, %rsi
movl $0x8, %edx
callq 0x3300
leaq -0x2c(%rbp), %rsi
movq %r14, %rdi
callq 0x3320
movq 0xa0f0(%rip), %rsi      # 0xefc8
leaq -0x238(%rbp), %rdi
callq 0x3280
leaq -0x1c0(%rbp), %rdi
callq 0x30b0
movq (%r15), %rsi
movl -0x2c(%rbp), %edx
leaq -0xb8(%rbp), %r14
movq %r14, %rdi
callq 0x720c
movq (%r14), %rax
cmpq 0x8(%r14), %rax
je 0x4f5e
movq (%r15), %rsi
movl -0x2c(%rbp), %edx
leaq -0x90(%rbp), %rdi
callq 0x719c
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 0x4fbc
movq 0xa07c(%rip), %rcx      # 0xefd0
cmpb $0x0, (%rcx)
je 0x4fb8
incl 0x8(%rax)
jmp 0x4fbc
movq 0xa073(%rip), %rdi      # 0xefd8
leaq 0x61d4(%rip), %rsi      # 0xb140
movl $0x18, %edx
callq 0x3220
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq 0xa054(%rip), %rdi      # 0xefd8
callq 0x3220
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x31e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3120
jmp 0x51bd
lock
incl 0x8(%rax)
decl %edx
leaq -0x238(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x6f0a
movq %r15, -0x98(%rbp)
movq -0x78(%rbp), %rdi
testq %rdi, %rdi
je 0x4fe3
callq 0x3ddc
movq -0xb8(%rbp), %r13
movq -0xb0(%rbp), %rax
movq %rax, -0xa0(%rbp)
cmpq %rax, %r13
je 0x5197
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 0x5038
movq 0x9fa6(%rip), %rcx      # 0xefd0
cmpb $0x0, (%rcx)
je 0x5034
incl 0x8(%rax)
jmp 0x5038
lock
incl 0x8(%rax)
movq %rax, -0x38(%rbp)
movq 0x60(%rsi), %rax
movq -0x60(%rbp), %rcx
movq (%rax,%rcx), %r12
testq %r12, %r12
je 0x5178
movq 0x78(%rsi), %rax
movq -0x60(%rbp), %rcx
movq (%rax,%rcx), %rbx
addq $0x14, %rsi
movq %r14, %rdi
movq %r15, %rdx
callq 0x53a2
movq -0x58(%rbp), %rsi
movq -0x50(%rbp), %rdx
movq 0x9f5d(%rip), %rdi      # 0xefd8
callq 0x3220
movl $0x3, %edx
movq %rax, %rdi
leaq 0x60ca(%rip), %rsi      # 0xb159
callq 0x3220
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x50a6
callq 0x31c0
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 0x50e1
movq 0x9efd(%rip), %rcx      # 0xefd0
cmpb $0x0, (%rcx)
je 0x50dd
incl 0x8(%rax)
jmp 0x50e1
lock
incl 0x8(%rax)
leaq -0x48(%rbp), %rax
movq %rax, -0x58(%rbp)
leaq -0x58(%rbp), %r14
movq %r14, %rdi
leaq 0x6039(%rip), %rdx      # 0xb130
movq %rdx, %rsi
callq 0x3ede
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 0x45ce
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x5138
callq 0x31c0
movq -0x68(%rbp), %rdi
testq %rdi, %rdi
je 0x5146
callq 0x3ddc
movq 0x9e8b(%rip), %rcx      # 0xefd8
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x31e0
movsbl %al, %esi
movq 0x9e6d(%rip), %rdi      # 0xefd8
callq 0x3040
movq %rax, %rdi
callq 0x3120
movq -0x38(%rbp), %rdi
testq %rdi, %rdi
je 0x5186
callq 0x3ddc
addq $0x10, %r13
cmpq -0xa0(%rbp), %r13
jne 0x5016
leaq -0x228(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x51ac
callq 0x31c0
movq -0x88(%rbp), %rdi
testq %rdi, %rdi
je 0x51bd
callq 0x3ddc
leaq -0xb8(%rbp), %rdi
callq 0x54b2
addq $0x218, %rsp            # imm = 0x218
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x51f9
movq %rax, %rbx
movq -0x78(%rbp), %rdi
testq %rdi, %rdi
je 0x5290
callq 0x3ddc
jmp 0x5290
jmp 0x5220
movq %rax, %rbx
movq 0x9dc5(%rip), %rsi      # 0xefc8
leaq -0x238(%rbp), %rdi
callq 0x3280
leaq -0x1c0(%rbp), %rdi
callq 0x30b0
jmp 0x52ad
movq %rax, %rbx
jmp 0x52a1
movq %rax, %rbx
jmp 0x523f
movq %rax, %rbx
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x523f
callq 0x31c0
movq -0x68(%rbp), %rdi
testq %rdi, %rdi
je 0x526b
callq 0x3ddc
jmp 0x526b
jmp 0x5268
movq %rax, %rbx
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x526b
callq 0x31c0
jmp 0x526b
movq %rax, %rbx
cmpq $0x0, -0x38(%rbp)
je 0x527b
movq -0x38(%rbp), %rdi
callq 0x3ddc
leaq -0x228(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5290
callq 0x31c0
movq -0x88(%rbp), %rdi
testq %rdi, %rdi
je 0x52a1
callq 0x3ddc
leaq -0xb8(%rbp), %rdi
callq 0x54b2
movq %rbx, %rdi
callq 0x3330
nop