//
// ObjectDecoder::sharedDecoder from 0x180060ef0 to 0x180060f78 (136 bytes)
//
// 5 xrefs:
// > DS_Dictionary::decodeObjectForKey @ 0x180019b51
// > DS_Dictionary::getDictForKey @ 0x18001a0e5
// > DS_Dictionary::getObjectForKey @ 0x18001abd6
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b3594
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=1
struct ObjectDecoder *__fastcall ObjectDecoder::sharedDecoder()
{
struct ObjectDecoder *result; // rax
cocos2d::CCNode *v1; // rax
cocos2d::CCComponent *v2; // rbx
bool (__stdcall *init)(cocos2d::CCComponent *__hidden); // rdx
result = (struct ObjectDecoder *)qword_1801A8400;
if ( !qword_1801A8400 )
{
v1 = (cocos2d::CCNode *)operator new(0x148u);
v2 = (cocos2d::CCComponent *)v1;
if ( v1 )
{
cocos2d::CCNode::CCNode(v1);
v2->__vftable = (cocos2d::CCComponent_vtbl *)&ObjectDecoder::`vftable';
*(_QWORD *)&v2[3].m_uID = 0;
}
else
{
v2 = nullptr;
}
qword_1801A8400 = (__int64)v2;
init = v2->init;
if ( (char *)init == (char *)ObjectDecoder::init )
cocos2d::CCComponent::serialize(v2, init);
else
((void (__fastcall *)(cocos2d::CCComponent *))init)(v2);
return (struct ObjectDecoder *)qword_1801A8400;
}
return result;
}