//
// GJMultiplayerManager::sharedState from 0x1402825f0 to 0x140282695 (165 bytes)
//
// 6 xrefs:
// > GameManager::dataLoaded @ 0x1401879ce
// > GameManager::firstLoad @ 0x140188c52
// > GameManager::encodeDataTo @ 0x1401894de
// > GJMultiplayerManager::uploadComment @ 0x140283a83
// > ShareCommentLayer::onShare @ 0x14048e3de
// > ??> @ 0x1406d146c
//
// 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
GJMultiplayerManager *GJMultiplayerManager::sharedState()
{
GJMultiplayerManager *result; // rax
GJMultiplayerManager *v1; // [rsp+30h] [rbp+8h]
result = (GJMultiplayerManager *)qword_1406C2F00;
if ( !qword_1406C2F00 )
{
v1 = (GJMultiplayerManager *)operator new(0x170u);
cocos2d::CCNode::CCNode(v1);
v1->__vftable = (GJMultiplayerManager_vtbl *)&GJMultiplayerManager::`vftable';
v1->m_activeDownloads = nullptr;
v1->m_lobbyScores = nullptr;
v1->m_scoreArrays = nullptr;
v1->m_lobbyComments = nullptr;
v1->m_mpDelegate = nullptr;
v1->m_uploadDelegate = nullptr;
qword_1406C2F00 = (__int64)v1;
GJMultiplayerManager::init(v1);
return (GJMultiplayerManager *)qword_1406C2F00;
}
return result;
}