//
// GJAccountManager::sharedState from 0x8485cc to 0x848688 (188 bytes)
//
// 135 xrefs:
// > MenuLayer::onMyProfile @ 0x5c2238
// > MenuLayer::onMyProfile @ 0x5c2264
// > MenuLayer::updateUserProfileButton @ 0x5c247c
// > MenuLayer::updateUserProfileButton @ 0x5c2514
// > MenuLayer::init @ 0x5c3de4
// > GameManager::firstLoad @ 0x5f0b8c
// > GameManager::dataLoaded @ 0x5fb048
// > GameManager::dataLoaded @ 0x5fb06c
// > GameManager::dataLoaded @ 0x5fb9a0
// > GameManager::encodeDataTo @ 0x5ff2dc
// > CommentCell::onLike @ 0x60aaa0
// > CommentCell::loadFromComment @ 0x6174b0
// > GJRequestCell::markAsRead @ 0x61c9e4
// > GJMessageCell::markAsRead @ 0x61d800
// > LevelSearchLayer::init @ 0x6d2484
// > LevelInfoLayer::onRateStarsMod @ 0x6d589c
// > LevelInfoLayer::confirmOwnerDelete @ 0x6d6ae8
// > LevelInfoLayer::confirmOwnerDelete @ 0x6d6afc
// > LevelInfoLayer::init @ 0x6dbe6c
// > LevelInfoLayer::init @ 0x6dbe80
// > EditLevelLayer::onShare @ 0x6dfcdc
// > LevelBrowserLayer::getSearchTitle @ 0x6e856c
// > LevelBrowserLayer::init @ 0x6ec3a8
// > LevelBrowserLayer::onMyOnlineLevels @ 0x6ec8b8
// > GameLevelManager::getBasePostString @ 0x6f47bc
// > GameLevelManager::getBasePostString @ 0x6f47d4
// > GameLevelManager::getBasePostString @ 0x6f47e4
// > GameLevelManager::onUploadCommentCompleted @ 0x6f9034
// > GameLevelManager::onDeleteCommentCompleted @ 0x6f9d30
// > GameLevelManager::onGetGJRewardsCompleted @ 0x6fd9bc
// > GameLevelManager::onGetGJChallengesCompleted @ 0x6fe4c8
// > GJUserScore::isCurrentUser @ 0x712730
// > GameLevelManager::createNewLevelList @ 0x71ae3c
// > GameLevelManager::downloadLevel @ 0x71e10c
// > GameLevelManager::rateStars @ 0x71ec68
// > GameLevelManager::getLeaderboardScores @ 0x7202d8
// > GameLevelManager::getLevelLeaderboard @ 0x720808
// > GameLevelManager::getLevelLeaderboard @ 0x720d2c
// > GameLevelManager::likeItem @ 0x728c50
// > GameLevelManager::submitUserInfo @ 0x72cb3c
// > GameLevelManager::uploadLevelList @ 0x72d514
// > GameLevelManager::updateUserScore @ 0x7375c4
// > GameLevelManager::updateUserScore @ 0x737714
// > GameLevelManager::updateUserScore @ 0x737880
// > GJGarageLayer::init @ 0x7991d0
// > GJGarageLayer::init @ 0x79930c
// > GJGarageLayer::init @ 0x799324
// > SupportLayer::customSetup @ 0x7dd628
// > SupportLayer::sendSupportMail @ 0x7ddcf0
// > InfoLayer::onComment @ 0x7e1f78
// > InfoLayer::setupCommentsBrowser @ 0x7e3010
// > GJAccountManager::onSyncAccountCompleted @ 0x848d54
// > GJAccountManager::updateAccountSettings @ 0x849c6c
// > GJAccountManager::updateAccountSettings @ 0x849c7c
// > AccountHelpLayer::~AccountHelpLayer @ 0x84a040
// > AccountHelpLayer::~AccountHelpLayer @ 0x84a064
// > AccountLayer::~AccountLayer @ 0x84a128
// > AccountLayer::~AccountLayer @ 0x84a13c
// > AccountLayer::~AccountLayer @ 0x84a150
// > AccountLayer::~AccountLayer @ 0x84a174
// > AccountLayer::~AccountLayer @ 0x84a18c
// > AccountLayer::~AccountLayer @ 0x84a198
// > AccountLayer::onLogin @ 0x84a314
// > AccountHelpLayer::onUnlink @ 0x84a698
// > AccountLayer::updatePage @ 0x84b1e0
// > AccountLayer::updatePage @ 0x84b1f4
// > AccountLayer::updatePage @ 0x84b244
// > AccountLayer::updatePage @ 0x84b2ec
// > AccountLayer::updatePage @ 0x84b360
// > AccountLayer::updatePage @ 0x84b3d0
// > AccountLayer::updatePage @ 0x84b3f0
// > AccountLayer::customSetup @ 0x84bc30
// > AccountLayer::customSetup @ 0x84bc44
// > AccountLayer::customSetup @ 0x84bc84
// > AccountLayer::customSetup @ 0x84bc90
// > AccountLayer::customSetup @ 0x84bc9c
// > AccountLayer::doBackup @ 0x84bef4
// > AccountLayer::doSync @ 0x84bf50
// > AccountLayer::backupAccountFailed @ 0x84c2a4
// > AccountLayer::backupAccountFailed @ 0x84c2b8
// > AccountHelpLayer::updatePage @ 0x84cda0
// > AccountHelpLayer::updatePage @ 0x84cdb4
// > AccountHelpLayer::updatePage @ 0x84ce04
// > AccountHelpLayer::updatePage @ 0x84ce8c
// > AccountHelpLayer::updatePage @ 0x84ceec
// > AccountHelpLayer::updatePage @ 0x84cf0c
// > AccountHelpLayer::customSetup @ 0x84d4f0
// > AccountHelpLayer::doUnlink @ 0x84d5f8
// > AccountRegisterLayer::~AccountRegisterLayer @ 0x84d76c
// > AccountRegisterLayer::~AccountRegisterLayer @ 0x84d79c
// > AccountLoginLayer::~AccountLoginLayer @ 0x84da38
// > AccountLoginLayer::~AccountLoginLayer @ 0x84db18
// > AccountRegisterLayer::onSubmit @ 0x84faf4
// > AccountRegisterLayer::onSubmit @ 0x84fb00
// > AccountLoginLayer::onSubmit @ 0x851e3c
// > AccountLoginLayer::onSubmit @ 0x851e98
// > AccountLoginLayer::loginAccountFinished @ 0x85223c
// > UpdateAccountSettingsPopup::~UpdateAccountSettingsPopup @ 0x8c2f30
// > UpdateAccountSettingsPopup::~UpdateAccountSettingsPopup @ 0x8c2f54
// > UpdateAccountSettingsPopup::init @ 0x8ca488
// > UpdateAccountSettingsPopup::init @ 0x8ca494
// > MessagesProfilePage::deleteSelected @ 0x8f2774
// > MessagesProfilePage::loadMessagesFinished @ 0x8f2e00
// > MessagesProfilePage::onClose @ 0x8f3df0
// > FRequestProfilePage::deleteSelected @ 0x8f4c60
// > FRequestProfilePage::onClose @ 0x8f62d0
// > FriendsProfilePage::onClose @ 0x8f7640
// > FriendsProfilePage::getUserListFinished @ 0x8f7778
// > ProfilePage::commentUploadFailed @ 0x8f98fc
// > ProfilePage::loadPageFromUserInfo @ 0x8fa5b4
// > ProfilePage::onSendMessage @ 0x8fd11c
// > ProfilePage::onFriend @ 0x8fd18c
// > ProfilePage::onBlockUser @ 0x8fd584
// > ProfilePage::onUpdate @ 0x8fdc48
// > ProfilePage::onUpdate @ 0x8fdc6c
// > ProfilePage::onUpdate @ 0x8fdc90
// > ProfilePage::init @ 0x8fdfc8
// > ProfilePage::init @ 0x8fe3a4
// > ProfilePage::init @ 0x8fe6f8
// > ProfilePage::init @ 0x8fe72c
// > ProfilePage::init @ 0x8fe7c4
// > ProfilePage::init @ 0x8fe7d8
// > ProfilePage::commentUploadFinished @ 0x8feea0
// > ProfilePage::commentDeleteFailed @ 0x8fef18
// > LevelLeaderboard::loadLeaderboardFailed @ 0x931ec0
// > LevelLeaderboard::onUpdate @ 0x9321fc
// > LevelLeaderboard::onChangeType @ 0x933930
// > GJMultiplayerManager::addComment @ 0x981d4c
// > GJMultiplayerManager::addComment @ 0x981e1c
// > GJMultiplayerManager::createAndAddComment @ 0x982f20
// > GJMultiplayerManager::getBasePostString @ 0x9830f8
// > GJMultiplayerManager::uploadComment @ 0x983b5c
// > LevelListLayer::init @ 0xa772a4
// > LevelListLayer::onShare @ 0xa7a944
// > ??> @ 0x6b3b8
//
// 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
//
GJAccountManager *GJAccountManager::sharedState()
{
GJAccountManager *result; // x0
GJAccountManager *v1; // x20
result = (GJAccountManager *)qword_1242C78;
if ( !qword_1242C78 )
{
v1 = (GJAccountManager *)operator new(0x1A8u);
cocos2d::CCNode::CCNode(v1);
qword_1242C78 = (__int64)v1;
v1->m_activeDownloads = nullptr;
v1->__vftable = (GJAccountManager_vtbl *)&off_118D390;
v1->m_accountID = 0;
v1->m_unkInt1 = 0;
v1->m_username.m_data.m_data = (stl::StringData::Internal *)&byte_124B6C8;
v1->m_GJP2.m_data.m_data = (stl::StringData::Internal *)&byte_124B6C8;
v1->m_password.m_data.m_data = (stl::StringData::Internal *)&byte_124B6C8;
v1->m_unkInt2 = 0;
v1->m_accountRegisterDelegate = nullptr;
v1->m_accountLoginDelegate = nullptr;
v1->m_accountDelegate = nullptr;
v1->m_backupDelegate = nullptr;
v1->m_syncDelegate = nullptr;
v1->m_accountSettingsDelegate = nullptr;
v1->m_gameManagerSize = 0;
v1->m_localLevelsSize = 0;
GJAccountManager::init(v1);
return (GJAccountManager *)qword_1242C78;
}
return result;
}