//
// DS_Dictionary::decodeObjectForKey from 0xb46064 to 0xb460f4 (144 bytes)
//
// 3 xrefs:
// > DS_Dictionary::getDictForKey @ 0xb46b58
// > DS_Dictionary::getObjectForKey @ 0xb46e90
// > ??> @ 0x8ba88
//
// 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)
{
ObjectDecoder *v5; // x0
cocos2d::CCObject *DecodedObject; // x19
bool v8; // w0
int v9; // [xsp+28h] [xbp+28h]
int v10; // [xsp+28h] [xbp+28h]
if ( !a3 )
{
v10 = IntegerForKey;
v8 = DS_Dictionary::stepIntoSubDictWithKey(a1, a2);
IntegerForKey = v10;
if ( !v8 )
return nullptr;
}
if ( IntegerForKey == -1 )
IntegerForKey = DS_Dictionary::getIntegerForKey(a1, "kCEK");
v9 = IntegerForKey;
v5 = ObjectDecoder::sharedDecoder();
DecodedObject = ObjectDecoder::getDecodedObject(v5, v9, a1);
DS_Dictionary::stepOutOfSubDict(a1);
return DecodedObject;
}