//
// DS_Dictionary::decodeObjectForKey from 0x100181e60 to 0x100181ed6 (118 bytes)
//
// 0 xrefs:
//
// 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 *v5; // rax
cocos2d::CCObject *result; // rax
if ( !a3 && !DS_Dictionary::stepIntoSubDictWithKey(a1, a2) )
return nullptr;
if ( IntegerForKey == -1 )
IntegerForKey = DS_Dictionary::getIntegerForKey(a1, "kCEK");
v5 = ObjectDecoder::sharedDecoder();
result = ObjectDecoder::getDecodedObject(v5, IntegerForKey, a1);
if ( (std::__vector_base
::pointer)((char *)a1->dictTree.__end_ - (char *)a1->dictTree.__begin_) >= (std::__vector_base::pointer)9 )
--a1->dictTree.__end_;
return result;
}