//
// GJAccountManager::sharedState from 0x10009d5a0 to 0x10009d65d (189 bytes)
//
// 266 xrefs:
// > sub_10009A000 @ 0x10009a0ad
// > sub_10009A000 @ 0x10009a0c2
// > sub_10009A000 @ 0x10009a0d2
// > sub_10009A000 @ 0x10009a0e7
// > sub_10009A000 @ 0x10009a0f7
// > sub_10009A000 @ 0x10009a10c
// > AccountLayer::customSetup @ 0x10009a6ef
// > AccountLayer::customSetup @ 0x10009a70b
// > AccountLayer::customSetup @ 0x10009a77f
// > AccountLayer::customSetup @ 0x10009a792
// > AccountLayer::customSetup @ 0x10009a7a5
// > AccountLayer::onLogin @ 0x10009a879
// > AccountLayer::updatePage @ 0x10009af27
// > AccountLayer::updatePage @ 0x10009af57
// > AccountLayer::updatePage @ 0x10009afd4
// > AccountLayer::updatePage @ 0x10009b00e
// > AccountLayer::updatePage @ 0x10009b0b2
// > AccountLayer::updatePage @ 0x10009b231
// > AccountLayer::updatePage @ 0x10009b299
// > AccountLayer::doBackup @ 0x10009b5b0
// > AccountLayer::doSync @ 0x10009b680
// > AccountLayer::backupAccountFailed @ 0x10009b942
// > AccountLayer::backupAccountFailed @ 0x10009b95c
// > AccountLayer::FLAlert_Clicked @ 0x10009c110
// > AccountLayer::FLAlert_Clicked @ 0x10009c13f
// > sub_10009C410 @ 0x10009c4a1
// > sub_10009C410 @ 0x10009c4b6
// > sub_10009C4E0 @ 0x10009c571
// > sub_10009C4E0 @ 0x10009c586
// > sub_10009C5B0 @ 0x10009c62f
// > sub_10009C5B0 @ 0x10009c644
// > sub_10009C680 @ 0x10009c711
// > sub_10009C680 @ 0x10009c726
// > sub_10009C760 @ 0x10009c7df
// > sub_10009C760 @ 0x10009c7f4
// > AccountHelpLayer::customSetup @ 0x10009cbce
// > AccountHelpLayer::onUnlink @ 0x10009cd64
// > AccountHelpLayer::updatePage @ 0x10009cf10
// > AccountHelpLayer::updatePage @ 0x10009cf40
// > AccountHelpLayer::updatePage @ 0x10009cfbd
// > AccountHelpLayer::updatePage @ 0x10009cff7
// > AccountHelpLayer::updatePage @ 0x10009d088
// > AccountHelpLayer::updatePage @ 0x10009d1d0
// > AccountHelpLayer::doUnlink @ 0x10009d369
// > AccountHelpLayer::FLAlert_Clicked @ 0x10009d3fa
// > sub_10009D450 @ 0x10009d481
// > EditLevelLayer::onShare @ 0x1001de8e8
// > EditLevelLayer::onShare @ 0x1001de922
// > MessagesProfilePage::deleteSelected @ 0x100213428
// > MessagesProfilePage::loadMessagesFinished @ 0x100213c96
// > CommentCell::loadFromComment @ 0x10022f01f
// > CommentCell::onLike @ 0x10023df7e
// > CommentCell::onLike @ 0x10023dfc3
// > CommentCell::onLike @ 0x10023e05a
// > CommentCell::onMoreOptions @ 0x10023e246
// > GJRequestCell::onViewFriendRequest @ 0x10024077b
// > GJRequestCell::markAsRead @ 0x100240877
// > GJMessageCell::onViewMessage @ 0x1002422aa
// > GJMessageCell::markAsRead @ 0x1002424fd
// > GJMessageCell::FLAlert_Clicked @ 0x100242688
// > sub_10026DE60 @ 0x10026df25
// > sub_10026DFE0 @ 0x10026dff9
// > sub_10026FBA0 @ 0x10026fc0d
// > sub_10028EFA0 @ 0x10028f031
// > sub_10028EFA0 @ 0x10028f046
// > sub_10028F070 @ 0x10028f101
// > sub_10028F070 @ 0x10028f116
// > sub_10028F140 @ 0x10028f1bf
// > sub_10028F140 @ 0x10028f1d4
// > sub_10028F210 @ 0x10028f2a1
// > sub_10028F210 @ 0x10028f2b6
// > sub_10028F2F0 @ 0x10028f36f
// > sub_10028F2F0 @ 0x10028f384
// > UpdateAccountSettingsPopup::init @ 0x10028f6be
// > UpdateAccountSettingsPopup::init @ 0x10028f6d1
// > LevelInfoLayer::init @ 0x1002ab1b8
// > LevelInfoLayer::init @ 0x1002ab1d0
// > LevelInfoLayer::confirmOwnerDelete @ 0x1002aea88
// > LevelInfoLayer::confirmOwnerDelete @ 0x1002aea9e
// > LevelListLayer::init @ 0x100348868
// > LevelListLayer::confirmOwnerDelete @ 0x1003491f8
// > sub_100349610 @ 0x100349664
// > sub_100349610 @ 0x100349695
// > sub_10034ECF0 @ 0x10034ed75
// > sub_10034EDE0 @ 0x10034edf9
// > GJGarageLayer::init @ 0x1003529ad
// > GJGarageLayer::init @ 0x100352b37
// > GJGarageLayer::init @ 0x100352b7a
// > GameManager::dataLoaded @ 0x100373f02
// > GameManager::dataLoaded @ 0x100373f41
// > GameManager::dataLoaded @ 0x100373f63
// > GameManager::firstLoad @ 0x100374dd8
// > GameManager::encodeDataTo @ 0x100375729
// > MenuLayer::init @ 0x10037bb3c
// > MenuLayer::onMyProfile @ 0x10037c714
// > MenuLayer::onMyProfile @ 0x10037c740
// > MenuLayer::updateUserProfileButton @ 0x10037c7a0
// > MenuLayer::updateUserProfileButton @ 0x10037c853
// > SupportLayer::customSetup @ 0x1003826ab
// > SupportLayer::sendSupportMail @ 0x1003845cf
// > LevelLeaderboard::onUpdate @ 0x1003c8419
// > LevelLeaderboard::onChangeType @ 0x1003c84fd
// > LevelLeaderboard::loadLeaderboardFailed @ 0x1003c922c
// > LevelBrowserLayer::init @ 0x100481641
// > LevelBrowserLayer::onMyOnlineLevels @ 0x10048304b
// > LevelBrowserLayer::getSearchTitle @ 0x100486326
// > sub_10048BF30 @ 0x10048bfcf
// > sub_10048BF30 @ 0x10048bff2
// > sub_10048C030 @ 0x10048c0cf
// > sub_10048C030 @ 0x10048c0f2
// > sub_10048C130 @ 0x10048c1bd
// > sub_10048C130 @ 0x10048c1e0
// > sub_10048C220 @ 0x10048c2bf
// > sub_10048C220 @ 0x10048c2e2
// > AccountRegisterLayer::init @ 0x10048d4e3
// > AccountRegisterLayer::onSubmit @ 0x10048db7a
// > AccountRegisterLayer::onSubmit @ 0x10048db8d
// > sub_100490CD0 @ 0x100490d6f
// > sub_100490CD0 @ 0x100490d92
// > AccountLoginLayer::onSubmit @ 0x100491f7a
// > AccountLoginLayer::onSubmit @ 0x100492014
// > AccountLoginLayer::loginAccountFinished @ 0x1004924da
// > GameLevelManager::onUploadCommentCompleted @ 0x1005261ef
// > GameLevelManager::onDeleteCommentCompleted @ 0x100526f6a
// > GameLevelManager::onGetGJRewardsCompleted @ 0x10052c8cd
// > sub_10052CE00 @ 0x10052d50a
// > GameLevelManager::onUpdateThreadCompleted @ 0x10053ad5f
// > sub_10053C050 @ 0x10053ccd1
// > GameLevelManager::createNewLevelList @ 0x10053f1e1
// > GameLevelManager::purgeUnusedLevels @ 0x10054bb73
// > sub_10054BD70 @ 0x10054bd79
// > GameLevelManager::writePlatformerSaveJournal @ 0x10054c82f
// > GameLevelManager::replayPlatformerSaveJournal @ 0x10054d0ed
// > GameLevelManager::getBasePostString @ 0x100551d57
// > GameLevelManager::getBasePostString @ 0x100551d6e
// > GameLevelManager::getBasePostString @ 0x100551d81
// > GameLevelManager::uploadDeathData @ 0x100551ed9
// > GameLevelManager::uploadDeathData @ 0x100552010
// > sub_100553F20 @ 0x1005543bf
// > GameLevelManager::uploadLevelList @ 0x10055a078
// > GameLevelManager::downloadLevel @ 0x10055e777
// > GameLevelManager::rateStars @ 0x1005615d8
// > GameLevelManager::updateUserScore @ 0x10056397e
// > GameLevelManager::updateUserScore @ 0x100563c38
// > GameLevelManager::updateUserScore @ 0x100563ec9
// > GameLevelManager::submitUserInfo @ 0x100564ee1
// > GameLevelManager::getLeaderboardScores @ 0x100565417
// > GameLevelManager::getLevelLeaderboard @ 0x100565ad2
// > GameLevelManager::getLevelLeaderboard @ 0x100566271
// > GameLevelManager::syncFollowListIfNeeded @ 0x100576f39
// > sub_100578860 @ 0x100578ed0
// > GameLevelManager::likeItem @ 0x10057e915
// > sub_100581860 @ 0x1005818bc
// > sub_100581860 @ 0x1005818cf
// > GJUserScore::isCurrentUser @ 0x10058cdd4
// > FriendsProfilePage::getUserListFinished @ 0x100737620
// > FriendsProfilePage::onClose @ 0x100737e35
// > GJMultiplayerManager::getBasePostString @ 0x10073a03d
// > GJMultiplayerManager::addComment @ 0x10073a601
// > GJMultiplayerManager::addComment @ 0x10073a665
// > GJMultiplayerManager::uploadComment @ 0x10073ac47
// > GJMultiplayerManager::createAndAddComment @ 0x10073b3f7
// > sub_10086FCA0 @ 0x10086fd58
// > sub_100870400 @ 0x1008705aa
// > FRequestProfilePage::deleteSelected @ 0x1008716c6
// > sub_100871730 @ 0x100871745
// > sub_100886760 @ 0x1008867cf
// > sub_100886760 @ 0x1008867e2
// > sub_100886760 @ 0x100886814
// > sub_100886760 @ 0x10088686e
// > sub_100886AE0 @ 0x100886b00
// > sub_100886AE0 @ 0x100886b13
// > sub_100887070 @ 0x10088710f
// > sub_100887070 @ 0x100887124
// > ParentalPrivacyPopup::init @ 0x100887284
// > ParentalPrivacyPopup::init @ 0x1008872ca
// > ParentalPrivacyPopup::startWithScore @ 0x1008874ac
// > ParentalPrivacyPopup::startWithScore @ 0x1008874bf
// > sub_1008879E0 @ 0x100887a21
// > sub_1008879E0 @ 0x100887a54
// > sub_1008879E0 @ 0x100887a67
// > ParentalPrivacyPopup::getUserInfoFinished @ 0x100887ae7
// > sub_100887B50 @ 0x100887b67
// > ParentalPrivacyPopup::getUserInfoFailed @ 0x100887bdd
// > sub_100887C30 @ 0x100887c3d
// > ParentalPrivacyPopup::updateSettingsFinished @ 0x100887cac
// > InfoLayer::onComment @ 0x100893a74
// > InfoLayer::onComment @ 0x100893ad4
// > InfoLayer::setupCommentsBrowser @ 0x100894b3d
// > InfoLayer::setupCommentsBrowser @ 0x100894bb1
// > ProfilePage::init @ 0x10089db79
// > ProfilePage::init @ 0x10089dbe5
// > ProfilePage::init @ 0x10089dd6c
// > ProfilePage::init @ 0x10089dda1
// > ProfilePage::init @ 0x10089ddb2
// > ProfilePage::init @ 0x10089e2a1
// > ProfilePage::onFollow @ 0x10089ec60
// > ProfilePage::onUpdate @ 0x10089ee25
// > ProfilePage::onUpdate @ 0x10089ee46
// > ProfilePage::onUpdate @ 0x10089ee67
// > ProfilePage::loadPageFromUserInfo @ 0x10089f41b
// > ProfilePage::setupAccountButtons @ 0x1008a1c41
// > ProfilePage::onSendMessage @ 0x1008a21cc
// > ProfilePage::onSendMessage @ 0x1008a2211
// > ProfilePage::onFriend @ 0x1008a22a1
// > ProfilePage::onFriend @ 0x1008a2372
// > ProfilePage::onBlockUser @ 0x1008a28d4
// > ProfilePage::onBlockUser @ 0x1008a2918
// > ProfilePage::commentUploadFinished @ 0x1008a75ed
// > sub_1008A7620 @ 0x1008a762d
// > ProfilePage::commentUploadFailed @ 0x1008a7680
// > ProfilePage::commentDeleteFailed @ 0x1008a7768
// > sub_1008EF050 @ 0x1008ef917
// > sub_1008EF050 @ 0x1008f0080
// > sub_1008F0AC0 @ 0x1008f0d03
// > sub_1008F0AC0 @ 0x1008f0d11
// > sub_1008F0AC0 @ 0x1008f0fcf
// > sub_1008F0AC0 @ 0x1008f0fd9
// > sub_1008F3770 @ 0x1008f4e76
// > sub_1008F3770 @ 0x1008f4e84
// > sub_1008F3770 @ 0x1008f4e9b
// > sub_1008F3770 @ 0x1008f5010
// > sub_1008F3770 @ 0x1008f501a
// > sub_1008F3770 @ 0x1008f502d
// > sub_1008F6530 @ 0x1008f6567
// > sub_1008F6530 @ 0x1008f65a7
// > sub_1008F7070 @ 0x1008f7083
// > sub_1008F7070 @ 0x1008f708d
// > sub_1008F7070 @ 0x1008f70a0
// > sub_1008F70F0 @ 0x1008f7103
// > sub_1008F70F0 @ 0x1008f710d
// > sub_1008F70F0 @ 0x1008f7120
// > sub_1008F7160 @ 0x1008f717a
// > sub_1008F7160 @ 0x1008f7188
// > sub_1008F7160 @ 0x1008f719f
// > EditorSoundConfigInfoLayer::soundPackDescSaved @ 0x1008f7c2c
// > EditorSoundConfigInfoLayer::soundPackDescSaved @ 0x1008f7c3a
// > EditorSoundConfigInfoLayer::soundPackDescSaved @ 0x1008f7c51
// > sub_1008FB260 @ 0x1008fb933
// > sub_1008FB260 @ 0x1008fb93d
// > sub_1008FC760 @ 0x1008fc794
// > sub_1008FC760 @ 0x1008fc7f2
// > MessageThreadsPage::onClose @ 0x1009297d1
// > ThreadViewPopup::init @ 0x10092e764
// > sub_10092F790 @ 0x10092fa88
// > sub_100932760 @ 0x100932778
// > sub_100932760 @ 0x10093278e
// > sub_100933190 @ 0x1009332d1
// > ThreadViewPopup::threadMessagesFinished @ 0x10093564e
// > ThreadViewPopup::threadMessagesFinished @ 0x1009358bf
// > ThreadViewPopup::mountVirtualRow @ 0x100938237
// > sub_10093ADB0 @ 0x10093ae39
// > sub_10093D210 @ 0x10093d3a9
// > sub_10093F950 @ 0x10093f97a
// > MemberListPopup::init @ 0x100941839
// > MemberListPopup::refreshPolicyBtn @ 0x100941abc
// > MemberListPopup::buildRows @ 0x100941c24
// > MemberListPopup::buildRows @ 0x100941e92
// > MemberListPopup::buildRows @ 0x1009420f3
// > NewThreadPopup::threadSendFinished @ 0x100948832
// > ThreadOptionsPopup::init @ 0x1009494a3
// > sub_10094A810 @ 0x10094a832
// > sub_100952310 @ 0x100952343
// > sub_100966200 @ 0x100966223
// > sub_100969480 @ 0x100969b2e
// > NotificationsPage::onClose @ 0x10098ba9f
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:20:12 +0000
//
__int64 __fastcall GJAccountManager::sharedState(__int64 a1, __int64 a2)
{
__int64 result; // rax
_OWORD *v3; // rbx
__int64 v4; // rax
result = qword_100BE1148;
if ( !qword_100BE1148 )
{
v3 = operator new(0x1F0u);
cocos2d::CCNode::CCNode(v3);
*(_QWORD *)v3 = off_100ABC988;
v3[20] = 0;
v3[21] = 0;
*(_OWORD *)((char *)v3 + 348) = 0;
v3[23] = 0;
v3[24] = 0;
v3[25] = 0;
v3[26] = 0;
v3[27] = 0;
v3[28] = 0;
v3[29] = 0;
v3[30] = 0;
qword_100BE1148 = (__int64)v3;
if ( (unsigned __int8)cocos2d::CCNode::init(v3) )
{
v4 = cocos2d::CCDictionary::create(v3, a2);
*((_QWORD *)v3 + 40) = v4;
cocos2d::CCObject::retain(v4);
}
return qword_100BE1148;
}
return result;
}