// // DS_Dictionary::setObjectForKey from 0xdbb554 to 0xdbb708 (436 bytes) // // 3 xrefs: // > DS_Dictionary::setArrayForKey @ 0xdbb514 // > DS_Dictionary::setDictForKey @ 0xdbb7dc // > @ 0x79060 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 13:08:44 +0000 // __int64 __fastcall DS_Dictionary::setObjectForKey(DS_Dictionary *this, const char *a2, cocos2d::CCObject *lpsrc) { char *CString; // x0 size_t v7; // x0 __int64 v8; // x4 __int64 v9; // x5 char *v11; // [xsp+48h] [xbp+48h] __int64 v12; // [xsp+58h] [xbp+58h] BYREF __int64 v13; // [xsp+60h] [xbp+60h] void *v14; // [xsp+68h] [xbp+68h] _QWORD v15[2]; // [xsp+70h] [xbp+70h] BYREF void *v16; // [xsp+80h] [xbp+80h] if ( lpsrc ) { if ( _dynamic_cast( lpsrc, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCString, 0) ) { CString = cocos2d::CCString::getCString(lpsrc); v12 = 0; v11 = CString; v13 = 0; v14 = nullptr; v7 = strlen(CString); std::string::__init(&v12, v11, v7); v8 = v12; v9 = v13; v16 = v14; v12 = 0; v13 = 0; v15[0] = v8; v15[1] = v9; v14 = nullptr; DS_Dictionary::setStringForKey((__int64)this, a2, (__int64)v15); if ( (v15[0] & 1) != 0 ) operator delete(v16); if ( (v12 & 1) != 0 ) operator delete(v14); return _stack_chk_guard; } if ( _dynamic_cast( lpsrc, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCDictionary, 0) ) { DS_Dictionary::setDictForKey(this, a2, lpsrc); return _stack_chk_guard; } if ( _dynamic_cast( lpsrc, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCArray, 0) ) { DS_Dictionary::setArrayForKey(this, a2, lpsrc); return _stack_chk_guard; } } if ( (*(unsigned __int8 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)lpsrc + 56LL))(lpsrc) ) { DS_Dictionary::setSubDictForKey(this, a2, 0, 1u); (*(void (__fastcall **)(cocos2d::CCObject *, DS_Dictionary *))(*(_QWORD *)lpsrc + 48LL))(lpsrc, this); DS_Dictionary::stepOutOfSubDict((__int64)this); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source