// // DS_Dictionary::setDictForKey from 0x18001ec70 to 0x18001ede7 (375 bytes) // // 3 xrefs: // > DS_Dictionary::setObjectForKey @ 0x18001f44e // > @ 0x1801438a8 // > @ 0x1801aecc8 // // 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 void __fastcall DS_Dictionary::setDictForKey(DS_Dictionary *this, const char *a2, struct cocos2d::CCDictionary *a3) { cocos2d::CCArray *v6; // r14 unsigned int i; // esi cocos2d::CCString *v8; // rax std::string *CString; // rax const char *v10; // rbx size_t v11; // r8 struct cocos2d::CCObject *v12; // rbp void *v13; // rcx __int128 v14; // [rsp+28h] [rbp-60h] BYREF __int64 v15; // [rsp+38h] [rbp-50h] unsigned __int64 v16; // [rsp+40h] [rbp-48h] if ( a3 ) { DS_Dictionary::setSubDictForKey(this, a2); if ( DS_Dictionary::stepIntoSubDictWithKey(this, a2) ) { v6 = cocos2d::CCDictionary::allKeys(a3); for ( i = 0; i < (unsigned int)cocos2d::CCArray::count(v6); ++i ) { v8 = cocos2d::CCArray::stringAtIndex(v6, i); CString = cocos2d::CCString::getCString(v8); v10 = (const char *)CString; v14 = 0; v15 = 0; v16 = 0; v11 = -1; do ++v11; while ( CString->m_data.m_smallStorage._Elems[v11] ); sub_18000CE60(&v14, CString, v11); v12 = (struct cocos2d::CCObject *)cocos2d::CCDictionary::objectForKey((__int64)a3, (unsigned __int8 *)&v14); if ( v16 > 0xF ) { v13 = (void *)v14; if ( v16 + 1 >= 0x1000 ) { v13 = *(void **)(v14 - 8); if ( (unsigned __int64)(v14 - (_QWORD)v13 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free_0(v13); } v15 = 0; v16 = 15; LOBYTE(v14) = 0; DS_Dictionary::setObjectForKey(this, v10, v12); } if ( (unsigned __int64)(this->dictTree._Mypair._Myval2._Mylast - this->dictTree._Mypair._Myval2._Myfirst) > 1 ) --this->dictTree._Mypair._Myval2._Mylast; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source