{"type": "func", "start": 4302537120, "end": 4302537226, "name": "GJMultiplayerManager::sharedState", "pseudocode": "// \n// GJMultiplayerManager::sharedState from 0x1007381a0 to 0x10073820a (106 bytes)\n// \n// 14 xrefs:\n// > GameManager::dataLoaded @ 0x100373f13\n// > GameManager::firstLoad @ 0x100374de5\n// > GameManager::encodeDataTo @ 0x100375739\n// > sub_10048A7F0 @ 0x10048a88f\n// > sub_10048A7F0 @ 0x10048a8a4\n// > sub_10048A7F0 @ 0x10048a8b4\n// > sub_10048A7F0 @ 0x10048a8c9\n// > MPLobbyLayer::onUpdateLobby @ 0x10048ac63\n// > MPLobbyLayer::postComment @ 0x10048ae86\n// > MPLobbyLayer::tryExitLobby @ 0x10048affc\n// > MPLobbyLayer::tryExitLobby @ 0x10048b00f\n// > MPLobbyLayer::joinLobbyFinished @ 0x10048b0fc\n// > MPLobbyLayer::updateComments @ 0x10048b451\n// > ShareCommentLayer::onShare @ 0x1006b2b3b\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:36:25 +0000\n// \n\n__int64 GJMultiplayerManager::sharedState()\n{\n  __int64 result; // rax\n  _OWORD *v1; // rbx\n\n  result = qword_100BE6770;\n  if ( !qword_100BE6770 )\n  {\n    v1 = operator new(0x170u);\n    cocos2d::CCNode::CCNode((__int64)v1);\n    *(_QWORD *)v1 = off_100B9A9C8;\n    v1[20] = 0;\n    v1[21] = 0;\n    v1[22] = 0;\n    qword_100BE6770 = (__int64)v1;\n    GJMultiplayerManager::init(v1);\n    return qword_100BE6770;\n  }\n  return result;\n}", "assembly": "; \n; GJMultiplayerManager::sharedState from 0x1007381a0 to 0x10073820a (106 bytes)\n; \n; 14 xrefs:\n; > GameManager::dataLoaded @ 0x100373f13\n; > GameManager::firstLoad @ 0x100374de5\n; > GameManager::encodeDataTo @ 0x100375739\n; > sub_10048A7F0 @ 0x10048a88f\n; > sub_10048A7F0 @ 0x10048a8a4\n; > sub_10048A7F0 @ 0x10048a8b4\n; > sub_10048A7F0 @ 0x10048a8c9\n; > MPLobbyLayer::onUpdateLobby @ 0x10048ac63\n; > MPLobbyLayer::postComment @ 0x10048ae86\n; > MPLobbyLayer::tryExitLobby @ 0x10048affc\n; > MPLobbyLayer::tryExitLobby @ 0x10048b00f\n; > MPLobbyLayer::joinLobbyFinished @ 0x10048b0fc\n; > MPLobbyLayer::updateComments @ 0x10048b451\n; > ShareCommentLayer::onShare @ 0x1006b2b3b\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:36:25 +0000\n; \npush    rbp                                                            ; +0x0, 0x1007381a0\nmov     rbp, rsp                                                       ; +0x1, 0x1007381a1\npush    r14                                                            ; +0x4, 0x1007381a4\npush    rbx                                                            ; +0x6, 0x1007381a6\nmov     rax, cs:qword_100BE6770                                        ; +0x7, 0x1007381a7\ntest    rax, rax                                                       ; +0xe, 0x1007381ae\njz      short loc_1007381B8                                            ; +0x11, 0x1007381b1\npop     rbx                                                            ; +0x13, 0x1007381b3\npop     r14                                                            ; +0x14, 0x1007381b4\npop     rbp                                                            ; +0x16, 0x1007381b6\nretn                                                                   ; +0x17, 0x1007381b7\nmov     edi, 170h; __sz                                                ; +0x18, 0x1007381b8\ncall    __Znwm; operator new(ulong)                                    ; +0x1d, 0x1007381bd\nmov     rbx, rax                                                       ; +0x22, 0x1007381c2\nmov     rdi, rax                                                       ; +0x25, 0x1007381c5\ncall    cocos2d__CCNode__CCNode                                        ; +0x28, 0x1007381c8\nlea     rax, off_100B9A9C8                                             ; +0x2d, 0x1007381cd\nmov     [rbx], rax                                                     ; +0x34, 0x1007381d4\nxorps   xmm0, xmm0                                                     ; +0x37, 0x1007381d7\nmovups  xmmword ptr [rbx+140h], xmm0                                   ; +0x3a, 0x1007381da\nmovups  xmmword ptr [rbx+150h], xmm0                                   ; +0x41, 0x1007381e1\nmovups  xmmword ptr [rbx+160h], xmm0                                   ; +0x48, 0x1007381e8\nmov     cs:qword_100BE6770, rbx                                        ; +0x4f, 0x1007381ef\nmov     rdi, rbx                                                       ; +0x56, 0x1007381f6\ncall    GJMultiplayerManager__init                                     ; +0x59, 0x1007381f9\nmov     rax, cs:qword_100BE6770                                        ; +0x5e, 0x1007381fe\npop     rbx                                                            ; +0x65, 0x100738205\npop     r14                                                            ; +0x66, 0x100738206\npop     rbp                                                            ; +0x68, 0x100738208\nretn                                                                   ; +0x69, 0x100738209", "xrefs": ["GameManager::dataLoaded @ 0x100373f13", "GameManager::firstLoad @ 0x100374de5", "GameManager::encodeDataTo @ 0x100375739", "sub_10048A7F0 @ 0x10048a88f", "sub_10048A7F0 @ 0x10048a8a4", "sub_10048A7F0 @ 0x10048a8b4", "sub_10048A7F0 @ 0x10048a8c9", "MPLobbyLayer::onUpdateLobby @ 0x10048ac63", "MPLobbyLayer::postComment @ 0x10048ae86", "MPLobbyLayer::tryExitLobby @ 0x10048affc", "MPLobbyLayer::tryExitLobby @ 0x10048b00f", "MPLobbyLayer::joinLobbyFinished @ 0x10048b0fc", "MPLobbyLayer::updateComments @ 0x10048b451", "ShareCommentLayer::onShare @ 0x1006b2b3b"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}