//
// GJAccountManager::unlinkFromAccount from 0x1000d3980 to 0x1000d3a24 (164 bytes)
//
// 3 xrefs:
// > AccountHelpLayer::doUnlink @ 0x1000cef11
// > AccountHelpLayer::FLAlert_Clicked @ 0x1000cefa2
// > sub_1000CEFF0 @ 0x1000cf029
//
// 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 *v1; // rax
LocalLevelManager *v2; // rax
GJAccountDelegate *m_accountDelegate; // rdi
GameManager *v4; // rax
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;
v1 = GameManager::sharedState();
((void (__fastcall *)(GameManager *))v1->firstLoad)(v1);
GameManager::sharedState()->m_shouldLoadUnlockValueKeeper = 0;
v2 = LocalLevelManager::sharedState();
((void (__fastcall *)(LocalLevelManager *))v2->firstLoad)(v2);
m_accountDelegate = a1->m_accountDelegate;
if ( m_accountDelegate )
((void (__fastcall *)(GJAccountDelegate *))m_accountDelegate->accountStatusChanged)(m_accountDelegate);
v4 = GameManager::sharedState();
GameManager::accountStatusChanged(v4);
}