//
// GJAccountManager::unlinkFromAccount from 0x581b20 to 0x581b96 (118 bytes)
//
// 1 xrefs:
// > AccountHelpLayer::doUnlink @ 0x583fd0
//
// 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:52:54 +0000
//
cocos2d::CCLabelBMFont **__fastcall GJAccountManager::unlinkFromAccount(GJAccountManager *this)
{
int *v2; // r0
GameManager *v3; // r0
int v4; // r0
GameManager *v5; // r0
LocalLevelManager *v6; // r0
int v7; // r0
GameLevelManager *v8; // r0
cocos2d::CCDictionary **v9; // r0
GameManager *v10; // r0
GameManager *v11; // r0
std::string::assign((int *)this + 73, (char *)&unk_B6B226);
std::string::assign((int *)this + 84, (char *)&unk_B6B226);
v2 = std::string::assign((int *)this + 67, (char *)&unk_B6B226);
*((_DWORD *)this + 70) = 0;
v3 = (GameManager *)GameManager::sharedState((GameManager *)v2);
*((_BYTE *)v3 + 814) = 1;
v4 = GameManager::sharedState(v3);
v5 = (GameManager *)(*(int (__fastcall **)(int))(*(_DWORD *)v4 + 468))(v4);
v6 = (LocalLevelManager *)GameManager::sharedState(v5);
*((_BYTE *)v6 + 814) = 0;
v7 = LocalLevelManager::sharedState(v6);
v8 = (GameLevelManager *)(*(int (__fastcall **)(int))(*(_DWORD *)v7 + 468))(v7);
v9 = (cocos2d::CCDictionary **)GameLevelManager::sharedState(v8);
GameLevelManager::resetAccountCaches(v9);
v10 = *((GameManager **)this + 78);
if ( v10 )
v10 = (GameManager *)(**(int (__fastcall ***)(GameManager *))v10)(v10);
v11 = (GameManager *)GameManager::sharedState(v10);
return GameManager::accountStatusChanged(v11);
}