//
// GJAccountManager::unlinkFromAccount from 0x988724 to 0x9887c4 (160 bytes)
//
// 2 xrefs:
// > AccountHelpLayer::doUnlink @ 0x98ccf0
// > ??> @ 0x5b078
//
// 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:57:55 +0000
//
MenuLayer *__fastcall GJAccountManager::unlinkFromAccount(GJAccountManager *this)
{
__int64 *v2; // x0
GameManager *v3; // x0
__int64 v4; // x0
GameManager *v5; // x0
LocalLevelManager *v6; // x0
__int64 v7; // x0
GameLevelManager *v8; // x0
cocos2d::CCDictionary **v9; // x0
GameManager *v10; // x0
GameManager *v11; // x0
std::string::assign((__int64 *)this + 46, &byte_11B8890);
std::string::assign((__int64 *)this + 56, &byte_11B8890);
v2 = std::string::assign((__int64 *)this + 41, &byte_11B8890);
*((_DWORD *)this + 88) = 0;
v3 = (GameManager *)GameManager::sharedState((GameManager *)v2);
*((_BYTE *)v3 + 1026) = 1;
v4 = GameManager::sharedState(v3);
v5 = (GameManager *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 936LL))(v4);
v6 = (LocalLevelManager *)GameManager::sharedState(v5);
*((_BYTE *)v6 + 1026) = 0;
v7 = LocalLevelManager::sharedState(v6);
v8 = (GameLevelManager *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 936LL))(v7);
v9 = (cocos2d::CCDictionary **)GameLevelManager::sharedState(v8);
GameLevelManager::resetAccountCaches(v9);
v10 = *((GameManager **)this + 51);
if ( v10 )
v10 = (GameManager *)(**(__int64 (__fastcall ***)(GameManager *))v10)(v10);
v11 = (GameManager *)GameManager::sharedState(v10);
return GameManager::accountStatusChanged(v11);
}