//
// GJMultiplayerManager::sharedState from 0x983964 to 0x9839f0 (140 bytes)
//
// 16 xrefs:
// > GameManager::firstLoad @ 0x5f0b94
// > GameManager::dataLoaded @ 0x5fb9ac
// > GameManager::encodeDataTo @ 0x5ff2e8
// > ShareCommentLayer::onShare @ 0x7e6594
// > GJMultiplayerManager::uploadComment @ 0x983ce0
// > MPLobbyLayer::~MPLobbyLayer @ 0x9c9a08
// > MPLobbyLayer::~MPLobbyLayer @ 0x9c9a1c
// > MPLobbyLayer::~MPLobbyLayer @ 0x9c9a4c
// > MPLobbyLayer::~MPLobbyLayer @ 0x9c9a58
// > MPLobbyLayer::updateComments @ 0x9c9ab0
// > MPLobbyLayer::onUpdateLobby @ 0x9c9bb8
// > MPLobbyLayer::joinLobbyFinished @ 0x9c9fe8
// > MPLobbyLayer::postComment @ 0x9ca680
// > MPLobbyLayer::tryExitLobby @ 0x9cab0c
// > MPLobbyLayer::tryExitLobby @ 0x9cab18
// > ??> @ 0x4efd8
//
// 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 *GJMultiplayerManager::sharedState()
{
GJMultiplayerManager *result; // x0
GJMultiplayerManager *v1; // x20
result = (GJMultiplayerManager *)qword_1243B18;
if ( !qword_1243B18 )
{
v1 = (GJMultiplayerManager *)operator new(0x170u);
cocos2d::CCNode::CCNode(v1);
qword_1243B18 = (__int64)v1;
v1->m_activeDownloads = nullptr;
v1->m_lobbyScores = nullptr;
v1->__vftable = (GJMultiplayerManager_vtbl *)&off_11C43B0;
v1->m_scoreArrays = nullptr;
v1->m_lobbyComments = nullptr;
v1->m_mpDelegate = nullptr;
v1->m_uploadDelegate = nullptr;
GJMultiplayerManager::init(v1);
return (GJMultiplayerManager *)qword_1243B18;
}
return result;
}