//
// GJMultiplayerManager::sharedState from 0x140390230 to 0x1403902d5 (165 bytes)
//
// 6 xrefs:
// > GameManager::dataLoaded @ 0x140283cb7
// > GameManager::firstLoad @ 0x140285401
// > GameManager::encodeDataTo @ 0x140285eb8
// > GJMultiplayerManager::uploadComment @ 0x14039171a
// > ShareCommentLayer::onShare @ 0x14062f607
// > ??> @ 0x140922f88
//
// 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 11:31:11 +0000
//
// Hidden C++ exception states: #wind=1
__int64 GJMultiplayerManager::sharedState()
{
__int64 result; // rax
cocos2d::CCNode *v1; // [rsp+30h] [rbp+8h]
result = qword_14090C008;
if ( !qword_14090C008 )
{
v1 = (cocos2d::CCNode *)operator new(0x170u);
cocos2d::CCNode::CCNode(v1);
*(_QWORD *)v1 = &GJMultiplayerManager::`vftable';
*((_QWORD *)v1 + 40) = 0;
*((_QWORD *)v1 + 41) = 0;
*((_QWORD *)v1 + 42) = 0;
*((_QWORD *)v1 + 43) = 0;
*((_QWORD *)v1 + 44) = 0;
*((_QWORD *)v1 + 45) = 0;
qword_14090C008 = (__int64)v1;
GJMultiplayerManager::init(v1);
return qword_14090C008;
}
return result;
}