// // GameLevelManager::replaceFollowedUsers from 0x4c2e80 to 0x4c2f98 (280 bytes) // // 1 xrefs: // > GameLevelManager::onGetFollowingCompleted @ 0x4c3008 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:50:25 +0000 // cocos2d::CCObject *__fastcall GameLevelManager::replaceFollowedUsers(int a1, int a2) { cocos2d::CCObject *v3; // r0 bool v4; // zf cocos2d::CCObject *v5; // r9 size_t v6; // r0 cocos2d::CCArray *v7; // r8 unsigned int i; // r6 cocos2d::CCString *v9; // r0 const char *v10; // r10 cocos2d::CCObject *v11; // r11 cocos2d::CCString *v12; // r0 const char *CString; // r10 size_t v14; // r0 int v17[3]; // [sp+14h] [bp-20h] BYREF int v18; // [sp+20h] [bp-14h] BYREF int v19; // [sp+24h] [bp-10h] int v20; // [sp+28h] [bp-Ch] v3 = (cocos2d::CCObject *)cocos2d::CCDictionary::create((cocos2d::CCDictionary *)a1); v4 = (*(_BYTE *)a2 & 1) == 0; if ( (*(_BYTE *)a2 & 1) == 0 ) ++a2; v18 = 0; if ( !v4 ) a2 = *(_DWORD *)(a2 + 8); v19 = 0; v20 = 0; v5 = v3; v6 = strlen((const char *)a2); std::string::__init(&v18, (const void *)a2, v6); v7 = sub_4C1A88(&v18, ","); std::string::~string((int)&v18); for ( i = 0; v7 && i < cocos2d::CCArray::count(v7); ++i ) { v9 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v7, i); v10 = (const char *)cocos2d::CCString::intValue(v9); if ( (int)v10 > 0 ) { memset(v17, 0, sizeof(v17)); std::string::__init(v17, a1i2r3e45s789g, 1u); v11 = (cocos2d::CCObject *)cocos2d::CCString::create(v17); v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v10); CString = (const char *)cocos2d::CCString::getCString(v12); v18 = 0; v19 = 0; v20 = 0; v14 = strlen(CString); std::string::__init(&v18, CString, v14); cocos2d::CCDictionary::setObject((int)v5, v11); std::string::~string((int)&v18); std::string::~string((int)v17); } } return sub_4A9C2E((cocos2d::CCObject *)(a1 + 552), v5); }
GD Web Decomp Icon

GD Web Decomp

Raw Source