//
// DS_Dictionary::decodeObjectForKey from 0x100163298 to 0x100163314 (124 bytes)
//
// 2 xrefs:
// > DS_Dictionary::getObjectForKey @ 0x1001629a0
// > DS_Dictionary::getDictForKey @ 0x100163160
//
// 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 DS_Dictionary::decodeObjectForKey(
DS_Dictionary *a1,
const char *a2,
bool a3,
int IntegerForKey)
{
ObjectDecoder *v6; // x0
cocos2d::CCObject *result; // x0
std::__vector_base
::pointer end; // x8
if ( !a3 && !DS_Dictionary::stepIntoSubDictWithKey(a1, a2) )
return nullptr;
if ( IntegerForKey == -1 )
IntegerForKey = DS_Dictionary::getIntegerForKey(a1, "kCEK");
v6 = ObjectDecoder::sharedDecoder();
result = ObjectDecoder::getDecodedObject(v6, IntegerForKey, a1);
end = a1->dictTree.__end_;
if ( (unsigned __int64)((char *)end - (char *)a1->dictTree.__begin_) >= 9 )
a1->dictTree.__end_ = end - 1;
return result;
}