//
// GJMultiplayerManager::sharedState from 0x100658b50 to 0x100658bba (106 bytes)
//
// 14 xrefs:
// > GameManager::dataLoaded @ 0x100389f29
// > GameManager::firstLoad @ 0x10038ab50
// > GameManager::encodeDataTo @ 0x10038b295
// > sub_1004938C0 @ 0x10049395f
// > sub_1004938C0 @ 0x100493974
// > sub_1004938C0 @ 0x100493984
// > sub_1004938C0 @ 0x100493999
// > MPLobbyLayer::onUpdateLobby @ 0x100493d33
// > MPLobbyLayer::postComment @ 0x100493f56
// > MPLobbyLayer::tryExitLobby @ 0x1004940cc
// > MPLobbyLayer::tryExitLobby @ 0x1004940df
// > MPLobbyLayer::joinLobbyFinished @ 0x1004941cc
// > MPLobbyLayer::updateComments @ 0x100494521
// > ShareCommentLayer::onShare @ 0x1005e0f76
//
// 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
//
GJMultiplayerManager *__fastcall GJMultiplayerManager::sharedState()
{
GJMultiplayerManager *result; // rax
GJMultiplayerManager *v1; // rbx
result = (GJMultiplayerManager *)qword_1009A37E0;
if ( !qword_1009A37E0 )
{
v1 = (GJMultiplayerManager *)operator new(0x170u);
cocos2d::CCNode::CCNode((__int64)v1);
v1->__vftable = (GJMultiplayerManager_vtbl *)off_100986780;
*(_OWORD *)&v1->m_activeDownloads = 0;
*(_OWORD *)&v1->m_scoreArrays = 0;
*(_OWORD *)&v1->m_mpDelegate = 0;
qword_1009A37E0 = (__int64)v1;
GJMultiplayerManager::init(v1);
return (GJMultiplayerManager *)qword_1009A37E0;
}
return result;
}