//
// GameLevelManager::syncFollowListIfNeeded from 0x832b00 to 0x832ba8 (168 bytes)
//
// 3 xrefs:
// > MenuLayer::init @ 0x6ec08c
// > GJAccountManager::linkToAccount @ 0x989b34
// > ??> @ 0x829f0
//
// 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:55:09 +0000
//
__int64 __fastcall GameLevelManager::syncFollowListIfNeeded(cocos2d::CCDictionary **this)
{
__int64 v2; // x0
__int64 result; // x0
GameManager *v4; // x0
GameManager *GameVariable; // x0
GameManager *v6; // x0
v2 = GJAccountManager::sharedState((GJAccountManager *)this);
result = (unsigned int)(*(_DWORD *)(v2 + 352) - *(_DWORD *)(v2 + 356));
if ( (int)result > 0 )
{
v4 = (GameManager *)GameManager::sharedState((GameManager *)result);
GameVariable = (GameManager *)(unsigned __int8)GameManager::getGameVariable(v4, "0241");
if ( (_BYTE)GameVariable )
{
result = *((unsigned __int8 *)this + 472);
if ( !*((_BYTE *)this + 472) )
{
*((_BYTE *)this + 472) = 1;
return GameLevelManager::getFollowing((GameLevelManager *)this);
}
}
else
{
v6 = (GameManager *)GameManager::sharedState(GameVariable);
result = (unsigned __int8)GameManager::safeModeEnabled(v6);
if ( !(_BYTE)result )
{
if ( (unsigned int)cocos2d::CCDictionary::count(*(this + 97)) )
GameLevelManager::syncFollowing(this);
else
GameLevelManager::getFollowing((GameLevelManager *)this);
*((_BYTE *)this + 472) = 1;
return 1;
}
}
}
return result;
}