//
// DS_Dictionary::decodeObjectForKey from 0x5ff114 to 0x5ff14c (56 bytes)
//
// 2 xrefs:
// > DS_Dictionary::getDictForKey @ 0x5ff5c6
// > DS_Dictionary::getObjectForKey @ 0x5ff756
//
// 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 *DS_Dictionary::decodeObjectForKey(DS_Dictionary *a1, const char *a2, bool a3, int IntegerForKey)
{
cocos2d::CCObject *result; // r0
ObjectDecoder *v7; // r0
cocos2d::CCObject *DecodedObject; // r4
if ( a3 || (result = (cocos2d::CCObject *)DS_Dictionary::stepIntoSubDictWithKey(a1, a2)) != nullptr )
{
if ( IntegerForKey == -1 )
IntegerForKey = DS_Dictionary::getIntegerForKey(a1, "kCEK");
v7 = ObjectDecoder::sharedDecoder();
DecodedObject = ObjectDecoder::getDecodedObject(v7, IntegerForKey, a1);
DS_Dictionary::stepOutOfSubDict(a1);
return DecodedObject;
}
return result;
}