// // cocos2d::CCDictionary::randomObject from 0x5c0dfc to 0x5c0e66 (106 bytes) // // 0 xrefs: // // 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 *cocos2d::CCDictionary::randomObject(cocos2d::CCDictionary *a1) { cocos2d::CCObject *v2; // r4 cocos2d::CCArray *v3; // r0 int v4; // r0 cocos2d::CCDictionary::CCDictType m_eDictType; // r3 char *CString; // r0 const char *v8; // [sp+8h] [bp-8h] BYREF if ( a1->m_eDictType ) { v3 = cocos2d::CCDictionary::allKeys(a1); v4 = cocos2d::CCArray::randomObject(v3); m_eDictType = a1->m_eDictType; if ( m_eDictType == kCCDictInt ) return cocos2d::CCDictionary::objectForKey(a1, *(_DWORD *)(v4 + 52)); if ( m_eDictType == kCCDictStr ) { CString = (char *)cocos2d::CCString::getCString((cocos2d::CCString *)v4); sub_776584((int)&v8, CString); v2 = (cocos2d::CCObject *)cocos2d::CCDictionary::objectForKey((int)a1, &v8); sub_774008(&v8); return v2; } } return nullptr; }
GD Web Decomp Icon

GD Web Decomp

Raw Source