//
// GJAccountManager::sharedState from 0x1401fffd0 to 0x1402000f0 (288 bytes)
//
// 133 xrefs:
// > sub_140078840 @ 0x1400788f2
// > sub_140078840 @ 0x140078909
// > sub_140078960 @ 0x140078a12
// > sub_140078960 @ 0x140078a29
// > AccountRegisterLayer::onSubmit @ 0x14007a892
// > AccountRegisterLayer::onSubmit @ 0x14007a9d9
// > AccountLoginLayer::loginAccountFinished @ 0x14007c7f7
// > AccountLoginLayer::onSubmit @ 0x14007ce7c
// > AccountLoginLayer::onSubmit @ 0x14007cefb
// > sub_14007D340 @ 0x14007d40a
// > sub_14007D340 @ 0x14007d422
// > sub_14007D340 @ 0x14007d42e
// > sub_14007D340 @ 0x14007d443
// > sub_14007D340 @ 0x14007d44f
// > sub_14007D340 @ 0x14007d464
// > sub_14007D4B0 @ 0x14007d554
// > sub_14007D4B0 @ 0x14007d56b
// > AccountLayer::customSetup @ 0x14007dd03
// > AccountLayer::customSetup @ 0x14007dd16
// > AccountLayer::customSetup @ 0x14007dd63
// > AccountLayer::customSetup @ 0x14007dd76
// > AccountLayer::customSetup @ 0x14007dd89
// > AccountLayer::onLogin @ 0x14007de64
// > AccountLayer::updatePage @ 0x14007e7df
// > AccountLayer::updatePage @ 0x14007e7f4
// > AccountLayer::updatePage @ 0x14007e850
// > AccountLayer::updatePage @ 0x14007e8f3
// > AccountLayer::updatePage @ 0x14007ea55
// > AccountLayer::updatePage @ 0x14007eab7
// > AccountLayer::backupAccountFailed @ 0x14007ed9a
// > AccountLayer::backupAccountFailed @ 0x14007edb2
// > AccountLayer::FLAlert_Clicked @ 0x14007f3ff
// > AccountLayer::FLAlert_Clicked @ 0x14007f42e
// > AccountHelpLayer::customSetup @ 0x14007f9eb
// > AccountHelpLayer::onUnlink @ 0x14007fb9e
// > AccountHelpLayer::updatePage @ 0x14007fd4d
// > AccountHelpLayer::updatePage @ 0x14007fd60
// > AccountHelpLayer::updatePage @ 0x14007fdbc
// > AccountHelpLayer::updatePage @ 0x14007fe5f
// > AccountHelpLayer::updatePage @ 0x14007ff9c
// > AccountHelpLayer::FLAlert_Clicked @ 0x140080062
// > CommentCell::loadFromComment @ 0x1400b7a96
// > CommentCell::onLike @ 0x1400b7efe
// > GJRequestCell::markAsRead @ 0x1400bccc4
// > GJMessageCell::markAsRead @ 0x1400bdeda
// > EditLevelLayer::onShare @ 0x1400d847e
// > FRequestProfilePage::deleteSelected @ 0x14013ec20
// > FRequestProfilePage::onClose @ 0x14013edd4
// > FriendsProfilePage::getUserListFinished @ 0x1401408d8
// > FriendsProfilePage::onClose @ 0x140140c7c
// > GameLevelManager::createNewLevelList @ 0x140145404
// > GameLevelManager::getBasePostString @ 0x14014c6f7
// > GameLevelManager::getBasePostString @ 0x14014c713
// > GameLevelManager::getBasePostString @ 0x14014c745
// > GameLevelManager::uploadLevelList @ 0x14015005e
// > GameLevelManager::downloadLevel @ 0x140152016
// > GameLevelManager::rateStars @ 0x140153db7
// > GameLevelManager::updateUserScore @ 0x140156336
// > GameLevelManager::updateUserScore @ 0x1401566ec
// > GameLevelManager::updateUserScore @ 0x140156a92
// > GameLevelManager::getLeaderboardScores @ 0x1401579ff
// > GameLevelManager::getLevelLeaderboard @ 0x1401580e6
// > GameLevelManager::getLevelLeaderboard @ 0x140158734
// > GameLevelManager::onUploadCommentCompleted @ 0x14015e555
// > GameLevelManager::onDeleteCommentCompleted @ 0x14015f6dc
// > GameLevelManager::likeItem @ 0x140163ee6
// > GameLevelManager::onGetGJRewardsCompleted @ 0x140166f85
// > GameLevelManager::onGetGJChallengesCompleted @ 0x14016826f
// > GameLevelManager::submitUserInfo @ 0x14016a051
// > GJUserScore::isCurrentUser @ 0x140172bc2
// > GameManager::dataLoaded @ 0x1401878e4
// > GameManager::dataLoaded @ 0x1401879eb
// > GameManager::dataLoaded @ 0x140187a44
// > GameManager::firstLoad @ 0x140188c4d
// > GameManager::encodeDataTo @ 0x140189491
// > GJAccountManager::onSyncAccountCompleted @ 0x1402036c1
// > GJAccountManager::updateAccountSettings @ 0x140203c20
// > GJAccountManager::updateAccountSettings @ 0x140203cca
// > GJGarageLayer::init @ 0x140273402
// > GJGarageLayer::init @ 0x1402735e9
// > GJGarageLayer::init @ 0x140273600
// > GJMultiplayerManager::uploadComment @ 0x140283801
// > GJMultiplayerManager::createAndAddComment @ 0x140283b64
// > GJMultiplayerManager::addComment @ 0x140283d98
// > GJMultiplayerManager::addComment @ 0x140283dde
// > GJMultiplayerManager::getBasePostString @ 0x140283f4b
// > sub_14028D650 @ 0x14028d6e6
// > sub_14028D650 @ 0x14028d6fd
// > UpdateAccountSettingsPopup::init @ 0x140294cb3
// > UpdateAccountSettingsPopup::init @ 0x140294d7b
// > InfoLayer::onComment @ 0x1402bd60b
// > InfoLayer::setupCommentsBrowser @ 0x1402be925
// > LevelBrowserLayer::init @ 0x1402ca3eb
// > LevelBrowserLayer::getSearchTitle @ 0x1402cbff5
// > LevelBrowserLayer::onMyOnlineLevels @ 0x1402ce28b
// > LevelInfoLayer::init @ 0x1402f8a1a
// > LevelInfoLayer::init @ 0x1402f8a2d
// > LevelInfoLayer::confirmOwnerDelete @ 0x1402fdbab
// > LevelInfoLayer::confirmOwnerDelete @ 0x1402fdbc2
// > LevelInfoLayer::onRateStarsMod @ 0x1402fe4ff
// > LevelLeaderboard::onChangeType @ 0x140302700
// > LevelLeaderboard::onUpdate @ 0x14030281d
// > LevelLeaderboard::loadLeaderboardFailed @ 0x140302c5c
// > LevelListLayer::init @ 0x14030484b
// > LevelListLayer::onShare @ 0x140307e59
// > LevelSearchLayer::init @ 0x14030d2eb
// > MenuLayer::init @ 0x140334a03
// > MenuLayer::updateUserProfileButton @ 0x140335211
// > MenuLayer::updateUserProfileButton @ 0x14033526d
// > MenuLayer::onMyProfile @ 0x1403355e4
// > MenuLayer::onMyProfile @ 0x140335643
// > MessagesProfilePage::deleteSelected @ 0x14033786e
// > MessagesProfilePage::onClose @ 0x140337b14
// > MessagesProfilePage::loadMessagesFinished @ 0x14033828f
// > ProfilePage::init @ 0x1403be8a6
// > ProfilePage::init @ 0x1403be90e
// > ProfilePage::init @ 0x1403bebe9
// > ProfilePage::init @ 0x1403bec0e
// > ProfilePage::init @ 0x1403bec24
// > ProfilePage::init @ 0x1403bf27f
// > ProfilePage::onUpdate @ 0x1403bf900
// > ProfilePage::onUpdate @ 0x1403bf921
// > ProfilePage::onUpdate @ 0x1403bfa7d
// > ProfilePage::loadPageFromUserInfo @ 0x1403c222e
// > ProfilePage::onSendMessage @ 0x1403c3cd9
// > ProfilePage::onFriend @ 0x1403c3efa
// > ProfilePage::onBlockUser @ 0x1403c42ff
// > ProfilePage::commentUploadFinished @ 0x1403c691f
// > ProfilePage::commentUploadFailed @ 0x1403c696b
// > ProfilePage::commentDeleteFailed @ 0x1403c6a9f
// > SupportLayer::customSetup @ 0x1404c8a6a
// > SupportLayer::FLAlert_Clicked @ 0x1404ca972
// > ??> @ 0x1406cca8c
//
// 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
//
// Hidden C++ exception states: #wind=1
GJAccountManager *GJAccountManager::sharedState()
{
GJAccountManager *result; // rax
void (__fastcall *v1)(char *); // rdx
char *v2; // [rsp+30h] [rbp+8h]
result = (GJAccountManager *)qword_1406C2EF0;
if ( !qword_1406C2EF0 )
{
v2 = (char *)operator new(0x1F0u);
cocos2d::CCNode::CCNode((cocos2d::CCNode *)v2);
*(_QWORD *)v2 = &GJAccountManager::`vftable';
*((_QWORD *)v2 + 40) = 0;
*(_OWORD *)(v2 + 328) = 0;
*((_QWORD *)v2 + 43) = 0;
*((_QWORD *)v2 + 44) = 15;
v2[328] = 0;
*((_QWORD *)v2 + 45) = 0;
*((_DWORD *)v2 + 92) = 0;
*(_OWORD *)(v2 + 376) = 0;
*((_QWORD *)v2 + 49) = 0;
*((_QWORD *)v2 + 50) = 15;
v2[376] = 0;
*((_QWORD *)v2 + 51) = 0;
*((_QWORD *)v2 + 52) = 0;
*((_QWORD *)v2 + 53) = 0;
*((_QWORD *)v2 + 54) = 0;
*((_QWORD *)v2 + 55) = 0;
*((_QWORD *)v2 + 56) = 0;
*((_QWORD *)v2 + 57) = 0;
*((_OWORD *)v2 + 29) = 0;
*((_QWORD *)v2 + 60) = 0;
*((_QWORD *)v2 + 61) = 15;
v2[464] = 0;
qword_1406C2EF0 = (__int64)v2;
v1 = *(void (__fastcall **)(char *))(*(_QWORD *)v2 + 72LL);
if ( (char *)v1 == (char *)GJAccountManager::init )
GJAccountManager::init(v2);
else
v1(v2);
return (GJAccountManager *)qword_1406C2EF0;
}
return result;
}