// // DS_Dictionary::getArrayForKey from 0x180019d20 to 0x180019e56 (310 bytes) // // 4 xrefs: // > DS_Dictionary::getDictForKey @ 0x18001a135 // > DS_Dictionary::getObjectForKey @ 0x18001ac18 // > @ 0x1801438a8 // > @ 0x1801ae9b0 // // 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 // // Hidden C++ exception states: #wind=1 struct cocos2d::CCArray *__fastcall DS_Dictionary::getArrayForKey(DS_Dictionary *this, const char *a2, char a3) { cocos2d::CCArray *v5; // rbp signed int NumKeys; // esi signed int i; // ebx const char *v8; // rdx struct cocos2d::CCObject *ObjectForKey; // rax char *v10; // rcx char *v11[3]; // [rsp+20h] [rbp-38h] BYREF unsigned __int64 v12; // [rsp+38h] [rbp-20h] if ( !a3 && !DS_Dictionary::stepIntoSubDictWithKey(this, a2) ) return cocos2d::CCArray::create(); v5 = cocos2d::CCArray::create(); DS_Dictionary::removeKey(this, "_isArr"); NumKeys = DS_Dictionary::getNumKeys(this); for ( i = 0; i < NumKeys; ++i ) { DS_Dictionary::getKey(this, v11, (unsigned int)i); v8 = (const char *)v11; if ( v12 > 0xF ) v8 = v11[0]; ObjectForKey = DS_Dictionary::getObjectForKey(this, v8); if ( ObjectForKey ) cocos2d::CCArray::addObject(v5, ObjectForKey); if ( v12 > 0xF ) { v10 = v11[0]; if ( v12 + 1 >= 0x1000 ) { v10 = *((char **)v11[0] - 1); if ( (unsigned __int64)(v11[0] - v10 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free_0(v10); } } if ( (unsigned __int64)(this->dictTree._Mypair._Myval2._Mylast - this->dictTree._Mypair._Myval2._Myfirst) > 1 ) --this->dictTree._Mypair._Myval2._Mylast; return v5; }