//
// GJAccountManager::unlinkFromAccount from 0x1003a13c0 to 0x1003a1458 (152 bytes)
//
// 1 xrefs:
// > AccountHelpLayer::FLAlert_Clicked @ 0x1001679ac
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall GJAccountManager::unlinkFromAccount(GJAccountManager *a1)
{
GameManager *v2; // x0
LocalLevelManager *v3; // x0
GJAccountDelegate *m_accountDelegate; // x0
GameManager *v5; // x0
std::string::assign((std::string *)&a1->m_GJP2, "");
std::string::assign((std::string *)&a1->m_password, "");
std::string::assign((std::string *)&a1->m_username, "");
a1->m_accountID = 0;
GameManager::sharedState()->m_shouldLoadUnlockValueKeeper = 1;
v2 = GameManager::sharedState();
((void (__fastcall *)(GameManager *))v2->firstLoad)(v2);
GameManager::sharedState()->m_shouldLoadUnlockValueKeeper = 0;
v3 = LocalLevelManager::sharedState();
((void (__fastcall *)(LocalLevelManager *))v3->firstLoad)(v3);
m_accountDelegate = a1->m_accountDelegate;
if ( m_accountDelegate )
((void (__fastcall *)(GJAccountDelegate *))m_accountDelegate->accountStatusChanged)(m_accountDelegate);
v5 = GameManager::sharedState();
GameManager::accountStatusChanged(v5);
}