// // GameLevelManager::replaceFollowedUsers from 0x80f384 to 0x80f5b8 (564 bytes) // // 2 xrefs: // > GameLevelManager::onGetFollowingCompleted @ 0x80f674 // > @ 0x76ed0 // // 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 12:54:49 +0000 // __int64 __fastcall GameLevelManager::replaceFollowedUsers(__int64 a1, char *a2) { cocos2d::CCObject *v4; // x24 char *v5; // x19 char v6; // t1 size_t v7; // x0 cocos2d::CCArray *v8; // x23 unsigned int v9; // w19 cocos2d::CCObject *v10; // x0 cocos2d::CCString *v12; // x0 int v13; // w22 cocos2d::CCObject *v14; // x25 cocos2d::CCString *v15; // x0 size_t v16; // x0 char *CString; // [xsp+68h] [xbp+68h] __int64 v19[2]; // [xsp+78h] [xbp+78h] BYREF void *v20; // [xsp+88h] [xbp+88h] __int64 v21; // [xsp+90h] [xbp+90h] BYREF __int64 v22; // [xsp+98h] [xbp+98h] void *v23; // [xsp+A0h] [xbp+A0h] v4 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(_stack_chk_guard); v6 = *a2; v5 = a2 + 1; if ( (v6 & 1) != 0 ) v5 = *((char **)a2 + 2); v21 = 0; v22 = 0; v23 = nullptr; v7 = strlen(v5); std::string::__init(&v21, v5, v7); v8 = sub_80CFCC((unsigned __int8 *)&v21, &byte_1169BE0); if ( (v21 & 1) != 0 ) operator delete(v23); v9 = 0; if ( v8 ) { while ( v9 < (unsigned int)cocos2d::CCArray::count(v8) ) { v12 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v8, v9); v13 = cocos2d::CCString::intValue(v12); if ( v13 <= 0 ) goto LABEL_18; v19[0] = 0; v19[1] = 0; v20 = nullptr; std::string::__init(v19, "1", 1u); v14 = (cocos2d::CCObject *)cocos2d::CCString::create(v19); v15 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)(unsigned int)v13); CString = (char *)cocos2d::CCString::getCString(v15); v21 = 0; v22 = 0; v23 = nullptr; v16 = strlen(CString); std::string::__init(&v21, CString, v16); cocos2d::CCDictionary::setObject((int)v4, v14); if ( (v21 & 1) != 0 ) operator delete(v23); if ( (v19[0] & 1) != 0 ) { ++v9; operator delete(v20); } else { LABEL_18: ++v9; } } } v10 = *(cocos2d::CCObject **)(a1 + 776); if ( v4 != v10 ) { if ( v4 ) { cocos2d::CCObject::retain(v4); v10 = *(cocos2d::CCObject **)(a1 + 776); } if ( v10 ) cocos2d::CCObject::release(v10); *(_QWORD *)(a1 + 776) = v4; } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source