//
// GameLevelManager::syncFollowListIfNeeded from 0x4b960c to 0x4b9672 (102 bytes)
//
// 2 xrefs:
// > MenuLayer::init @ 0x3fadee
// > GJAccountManager::linkToAccount @ 0x582666
//
// 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:13 +0000
//
GameManager *__fastcall GameLevelManager::syncFollowListIfNeeded(cocos2d::CCDictionary **this)
{
GameManager *result; // r0
GameManager *v3; // r0
GameManager *v4; // r0
result = (GameManager *)GJAccountManager::sharedState((GJAccountManager *)this);
if ( *((_DWORD *)result + 70) - *((_DWORD *)result + 71) > 0 )
{
v3 = (GameManager *)GameManager::sharedState(result);
result = (GameManager *)GameManager::getGameVariable(v3, "0241");
if ( result )
{
if ( !*((_BYTE *)this + 344) )
{
*((_BYTE *)this + 344) = 1;
return (GameManager *)GameLevelManager::getFollowing((GameLevelManager *)this);
}
}
else
{
v4 = (GameManager *)GameManager::sharedState(nullptr);
result = (GameManager *)GameManager::safeModeEnabled(v4);
if ( !result )
{
if ( cocos2d::CCDictionary::count(*(this + 138)) )
result = (GameManager *)GameLevelManager::syncFollowing(this);
else
result = (GameManager *)GameLevelManager::getFollowing((GameLevelManager *)this);
*((_BYTE *)this + 344) = 1;
}
}
}
return result;
}