//
// DS_Dictionary::decodeObjectForKey from 0x180019b10 to 0x180019b8e (126 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801ae998
//
// 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
//
struct cocos2d::CCObject *__fastcall DS_Dictionary::decodeObjectForKey(
DS_Dictionary *this,
const char *a2,
char a3,
int IntegerForKey)
{
struct cocos2d::CCObject *result; // rax
ObjectDecoder *v7; // rax
if ( !a3 && !DS_Dictionary::stepIntoSubDictWithKey(this, a2) )
return nullptr;
if ( IntegerForKey == -1 )
IntegerForKey = DS_Dictionary::getIntegerForKey(this, "kCEK");
v7 = ObjectDecoder::sharedDecoder();
result = ObjectDecoder::getDecodedObject(v7, IntegerForKey, this);
if ( (unsigned __int64)(this->dictTree._Mypair._Myval2._Mylast - this->dictTree._Mypair._Myval2._Myfirst) > 1 )
--this->dictTree._Mypair._Myval2._Mylast;
return result;
}