//
// GJObjectDecoder::getDecodedObject from 0x100216b24 to 0x100216bd4 (176 bytes)
//
// 2 xrefs:
// > j_GJObjectDecoder::getDecodedObject @ 0x100216bd4
// > ??> @ 0x1007c3b40
//
// 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
//
cocos2d::CCObject *__fastcall GJObjectDecoder::getDecodedObject(GJObjectDecoder *a1, int a2, DS_Dictionary *a3)
{
if ( a2 <= 7 )
{
if ( a2 <= 5 )
{
if ( a2 == 4 )
return GJGameLevel::createWithCoder(a3);
if ( a2 == 5 )
return cocos2d::CCObject::createWithCoder(a3);
return nullptr;
}
if ( a2 == 6 )
return SongInfoObject::createWithCoder(a3);
else
return GJChallengeItem::createWithCoder(a3);
}
else
{
if ( a2 > 9 )
{
switch ( a2 )
{
case 10:
return GJSmartTemplate::createWithCoder(a3);
case 11:
return GJSmartPrefab::createWithCoder(a3);
case 12:
return GJLevelList::createWithCoder(a3);
}
return nullptr;
}
if ( a2 == 8 )
return GJRewardItem::createWithCoder(a3);
else
return GJRewardObject::createWithCoder(a3);
}
}