//
// ObjectDecoder::sharedDecoder from 0x180063300 to 0x180063388 (136 bytes)
//
// 5 xrefs:
// > DS_Dictionary::decodeObjectForKey @ 0x180019671
// > DS_Dictionary::getDictForKey @ 0x180019eae
// > DS_Dictionary::getObjectForKey @ 0x18001a947
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bd8e8
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:21:51 +0000
//
// Hidden C++ exception states: #wind=1
struct ObjectDecoder *__fastcall ObjectDecoder::sharedDecoder()
{
struct ObjectDecoder *result; // rax
cocos2d::CCNode *v1; // rax
cocos2d::CCComponent *v2; // rbx
bool (__fastcall *v3)(ObjectDecoder *, void *); // rdx
result = (struct ObjectDecoder *)qword_1801B2440;
if ( !qword_1801B2440 )
{
v1 = (cocos2d::CCNode *)sub_1800E4AC0(0x148u);
v2 = v1;
if ( v1 )
{
cocos2d::CCNode::CCNode(v1);
*(_QWORD *)v2 = &ObjectDecoder::`vftable';
*((_QWORD *)v2 + 40) = 0;
}
else
{
v2 = nullptr;
}
qword_1801B2440 = (__int64)v2;
v3 = *(bool (__fastcall **)(ObjectDecoder *, void *))(*(_QWORD *)v2 + 72LL);
if ( v3 == ObjectDecoder::init )
cocos2d::CCComponent::serialize(v2, v3);
else
((void (__fastcall *)(cocos2d::CCComponent *))v3)(v2);
return (struct ObjectDecoder *)qword_1801B2440;
}
return result;
}