//
// GJAccountManager::sharedState from 0x1000cf140 to 0x1000cf1fa (186 bytes)
//
// 162 xrefs:
// > sub_1000CBBB0 @ 0x1000cbc5d
// > sub_1000CBBB0 @ 0x1000cbc72
// > sub_1000CBBB0 @ 0x1000cbc82
// > sub_1000CBBB0 @ 0x1000cbc97
// > sub_1000CBBB0 @ 0x1000cbca7
// > sub_1000CBBB0 @ 0x1000cbcbc
// > AccountLayer::customSetup @ 0x1000cc29c
// > AccountLayer::customSetup @ 0x1000cc2b8
// > AccountLayer::customSetup @ 0x1000cc32c
// > AccountLayer::customSetup @ 0x1000cc33f
// > AccountLayer::customSetup @ 0x1000cc352
// > AccountLayer::onLogin @ 0x1000cc429
// > AccountLayer::updatePage @ 0x1000ccad7
// > AccountLayer::updatePage @ 0x1000ccb07
// > AccountLayer::updatePage @ 0x1000ccb84
// > AccountLayer::updatePage @ 0x1000ccbbe
// > AccountLayer::updatePage @ 0x1000ccc62
// > AccountLayer::updatePage @ 0x1000ccde1
// > AccountLayer::updatePage @ 0x1000cce49
// > AccountLayer::doBackup @ 0x1000cd160
// > AccountLayer::doSync @ 0x1000cd230
// > AccountLayer::backupAccountFailed @ 0x1000cd4f2
// > AccountLayer::backupAccountFailed @ 0x1000cd50c
// > AccountLayer::FLAlert_Clicked @ 0x1000cdcc0
// > AccountLayer::FLAlert_Clicked @ 0x1000cdcef
// > AccountHelpLayer::dAccountHelpLayer @ 0x1000ce051
// > AccountHelpLayer::dAccountHelpLayer @ 0x1000ce066
// > sub_1000CE090 @ 0x1000ce121
// > sub_1000CE090 @ 0x1000ce136
// > sub_1000CE160 @ 0x1000ce1df
// > sub_1000CE160 @ 0x1000ce1f4
// > sub_1000CE230 @ 0x1000ce2c1
// > sub_1000CE230 @ 0x1000ce2d6
// > sub_1000CE310 @ 0x1000ce38f
// > sub_1000CE310 @ 0x1000ce3a4
// > AccountHelpLayer::customSetup @ 0x1000ce77b
// > AccountHelpLayer::onUnlink @ 0x1000ce904
// > AccountHelpLayer::updatePage @ 0x1000ceab0
// > AccountHelpLayer::updatePage @ 0x1000ceae0
// > AccountHelpLayer::updatePage @ 0x1000ceb5d
// > AccountHelpLayer::updatePage @ 0x1000ceb97
// > AccountHelpLayer::updatePage @ 0x1000cec28
// > AccountHelpLayer::updatePage @ 0x1000ced70
// > AccountHelpLayer::doUnlink @ 0x1000cef09
// > AccountHelpLayer::FLAlert_Clicked @ 0x1000cef9a
// > sub_1000CEFF0 @ 0x1000cf021
// > EditLevelLayer::onShare @ 0x1001fbf80
// > MessagesProfilePage::onClose @ 0x10022e4ca
// > MessagesProfilePage::deleteSelected @ 0x10022eeb6
// > MessagesProfilePage::loadMessagesFinished @ 0x10022f72b
// > CommentCell::loadFromComment @ 0x10024910a
// > CommentCell::onLike @ 0x100254f6c
// > GJRequestCell::onViewFriendRequest @ 0x10025780b
// > GJRequestCell::markAsRead @ 0x1002579f7
// > GJRequestCell::FLAlert_Clicked @ 0x100257bbc
// > GJMessageCell::onViewMessage @ 0x10025855a
// > GJMessageCell::markAsRead @ 0x10025879d
// > GJMessageCell::FLAlert_Clicked @ 0x100258928
// > UpdateAccountSettingsPopup::dUpdateAccountSettingsPopup @ 0x1002a2fc3
// > UpdateAccountSettingsPopup::dUpdateAccountSettingsPopup @ 0x1002a2fd8
// > sub_1002A3000 @ 0x1002a3083
// > sub_1002A3000 @ 0x1002a3098
// > sub_1002A30C0 @ 0x1002a3131
// > sub_1002A30C0 @ 0x1002a3146
// > sub_1002A3180 @ 0x1002a3203
// > sub_1002A3180 @ 0x1002a3218
// > sub_1002A3250 @ 0x1002a32c1
// > sub_1002A3250 @ 0x1002a32d6
// > UpdateAccountSettingsPopup::init @ 0x1002a3607
// > UpdateAccountSettingsPopup::init @ 0x1002a361a
// > LevelInfoLayer::init @ 0x1002be768
// > LevelInfoLayer::init @ 0x1002be77b
// > LevelInfoLayer::onRateStarsMod @ 0x1002c1e19
// > LevelInfoLayer::confirmOwnerDelete @ 0x1002c1ecc
// > LevelInfoLayer::confirmOwnerDelete @ 0x1002c1ee2
// > LevelListLayer::init @ 0x10035d2b6
// > LevelListLayer::onShare @ 0x10035dfb0
// > GJGarageLayer::init @ 0x10036959d
// > GJGarageLayer::init @ 0x100369727
// > GJGarageLayer::init @ 0x10036976a
// > GameManager::dataLoaded @ 0x100389f19
// > GameManager::dataLoaded @ 0x100389f55
// > GameManager::dataLoaded @ 0x100389f77
// > GameManager::firstLoad @ 0x10038ab43
// > GameManager::encodeDataTo @ 0x10038b285
// > MenuLayer::init @ 0x100390f35
// > MenuLayer::onMyProfile @ 0x1003919f4
// > MenuLayer::onMyProfile @ 0x100391a20
// > MenuLayer::updateUserProfileButton @ 0x100391a62
// > MenuLayer::updateUserProfileButton @ 0x100391ad3
// > SupportLayer::customSetup @ 0x100398ceb
// > SupportLayer::sendSupportMail @ 0x10039ab4f
// > LevelLeaderboard::onUpdate @ 0x1003db439
// > LevelLeaderboard::onChangeType @ 0x1003db51d
// > LevelLeaderboard::loadLeaderboardFailed @ 0x1003dc24c
// > LevelBrowserLayer::init @ 0x10048bfa9
// > LevelBrowserLayer::onMyOnlineLevels @ 0x10048d27b
// > LevelBrowserLayer::getSearchTitle @ 0x1004902e1
// > AccountRegisterLayer::dAccountRegisterLayer @ 0x10049504f
// > AccountRegisterLayer::dAccountRegisterLayer @ 0x100495072
// > sub_1004950B0 @ 0x10049514f
// > sub_1004950B0 @ 0x100495172
// > sub_1004951B0 @ 0x10049523d
// > sub_1004951B0 @ 0x100495260
// > sub_1004952A0 @ 0x10049533f
// > sub_1004952A0 @ 0x100495362
// > AccountRegisterLayer::onSubmit @ 0x100496b36
// > AccountRegisterLayer::onSubmit @ 0x100496b49
// > sub_100498A60 @ 0x100498aff
// > sub_100498A60 @ 0x100498b22
// > AccountLoginLayer::onSubmit @ 0x100499c1c
// > AccountLoginLayer::onSubmit @ 0x100499d32
// > AccountLoginLayer::loginAccountFinished @ 0x10049a1ba
// > GameLevelManager::onUploadCommentCompleted @ 0x1005216c0
// > GameLevelManager::onDeleteCommentCompleted @ 0x10052263a
// > GameLevelManager::onGetGJRewardsCompleted @ 0x1005271bd
// > GameLevelManager::onGetGJChallengesCompleted @ 0x100527dfa
// > GameLevelManager::createNewLevelList @ 0x10052d341
// > GameLevelManager::getBasePostString @ 0x10053d2a7
// > GameLevelManager::getBasePostString @ 0x10053d2be
// > GameLevelManager::getBasePostString @ 0x10053d2d1
// > GameLevelManager::uploadLevelList @ 0x1005416b8
// > GameLevelManager::downloadLevel @ 0x100543e0f
// > GameLevelManager::rateStars @ 0x100545ff8
// > GameLevelManager::updateUserScore @ 0x10054835e
// > GameLevelManager::updateUserScore @ 0x100548b3c
// > GameLevelManager::updateUserScore @ 0x10054943e
// > GameLevelManager::submitUserInfo @ 0x10054a521
// > GameLevelManager::getLeaderboardScores @ 0x10054aa4b
// > GameLevelManager::getLevelLeaderboard @ 0x10054b3e2
// > GameLevelManager::getLevelLeaderboard @ 0x10054bb81
// > GameLevelManager::likeItem @ 0x100557325
// > GJUserScore::isCurrentUser @ 0x100560364
// > LevelSearchLayer::init @ 0x100628f38
// > FriendsProfilePage::onClose @ 0x100658331
// > FriendsProfilePage::getUserListFinished @ 0x1006587f0
// > GJMultiplayerManager::getBasePostString @ 0x10065a9dd
// > GJMultiplayerManager::addComment @ 0x10065afa1
// > GJMultiplayerManager::addComment @ 0x10065b005
// > GJMultiplayerManager::uploadComment @ 0x10065b5e7
// > GJMultiplayerManager::createAndAddComment @ 0x10065bd97
// > FRequestProfilePage::onClose @ 0x10079090a
// > FRequestProfilePage::deleteSelected @ 0x100791363
// > InfoLayer::onComment @ 0x1007b0775
// > InfoLayer::setupCommentsBrowser @ 0x1007b16b0
// > ProfilePage::init @ 0x1007b87c1
// > ProfilePage::init @ 0x1007b87fd
// > ProfilePage::init @ 0x1007b8966
// > ProfilePage::init @ 0x1007b899b
// > ProfilePage::init @ 0x1007b89ac
// > ProfilePage::init @ 0x1007b8de6
// > ProfilePage::onUpdate @ 0x1007b97a5
// > ProfilePage::onUpdate @ 0x1007b97c6
// > ProfilePage::onUpdate @ 0x1007b97e7
// > ProfilePage::loadPageFromUserInfo @ 0x1007bb7d1
// > ProfilePage::onSendMessage @ 0x1007bda2c
// > ProfilePage::onFriend @ 0x1007bdb41
// > ProfilePage::onBlockUser @ 0x1007bdee4
// > ProfilePage::commentUploadFinished @ 0x1007c0c7d
// > sub_1007C0CB0 @ 0x1007c0cbd
// > ProfilePage::commentUploadFailed @ 0x1007c0d0b
// > ProfilePage::commentDeleteFailed @ 0x1007c0de8
//
// 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 *__fastcall GJAccountManager::sharedState()
{
GJAccountManager *result; // rax
_OWORD *v1; // rbx
cocos2d::CCDictionary *v2; // rax
result = (GJAccountManager *)qword_10099EF40;
if ( !qword_10099EF40 )
{
v1 = operator new(0x1D8u);
cocos2d::CCNode::CCNode(v1);
*(_QWORD *)v1 = off_1008B9370;
v1[20] = 0;
v1[21] = 0;
*(_OWORD *)((char *)v1 + 348) = 0;
v1[23] = 0;
v1[24] = 0;
v1[25] = 0;
v1[26] = 0;
v1[27] = 0;
v1[28] = 0;
*((_QWORD *)v1 + 58) = 0;
qword_10099EF40 = (__int64)v1;
if ( cocos2d::CCNode::init((cocos2d::CCNode *)v1) )
{
v2 = cocos2d::CCDictionary::create();
*((_QWORD *)v1 + 40) = v2;
cocos2d::CCObject::retain(v2);
}
return (GJAccountManager *)qword_10099EF40;
}
return result;
}