{"type": "func", "start": 5372445232, "end": 5372445397, "name": "GJMultiplayerManager::sharedState", "pseudocode": "// \n// GJMultiplayerManager::sharedState from 0x140390230 to 0x1403902d5 (165 bytes)\n// \n// 6 xrefs:\n// > GameManager::dataLoaded @ 0x140283cb7\n// > GameManager::firstLoad @ 0x140285401\n// > GameManager::encodeDataTo @ 0x140285eb8\n// > GJMultiplayerManager::uploadComment @ 0x14039171a\n// > ShareCommentLayer::onShare @ 0x14062f607\n// > <???> @ 0x140922f88\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 11:31:11 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 GJMultiplayerManager::sharedState()\n{\n  __int64 result; // rax\n  cocos2d::CCNode *v1; // [rsp+30h] [rbp+8h]\n\n  result = qword_14090C008;\n  if ( !qword_14090C008 )\n  {\n    v1 = (cocos2d::CCNode *)operator new(0x170u);\n    cocos2d::CCNode::CCNode(v1);\n    *(_QWORD *)v1 = &GJMultiplayerManager::`vftable';\n    *((_QWORD *)v1 + 40) = 0;\n    *((_QWORD *)v1 + 41) = 0;\n    *((_QWORD *)v1 + 42) = 0;\n    *((_QWORD *)v1 + 43) = 0;\n    *((_QWORD *)v1 + 44) = 0;\n    *((_QWORD *)v1 + 45) = 0;\n    qword_14090C008 = (__int64)v1;\n    GJMultiplayerManager::init(v1);\n    return qword_14090C008;\n  }\n  return result;\n}", "assembly": "; \n; GJMultiplayerManager::sharedState from 0x140390230 to 0x1403902d5 (165 bytes)\n; \n; 6 xrefs:\n; > GameManager::dataLoaded @ 0x140283cb7\n; > GameManager::firstLoad @ 0x140285401\n; > GameManager::encodeDataTo @ 0x140285eb8\n; > GJMultiplayerManager::uploadComment @ 0x14039171a\n; > ShareCommentLayer::onShare @ 0x14062f607\n; > <???> @ 0x140922f88\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 11:31:11 +0000\n; \npush    rbx                                                            ; +0x0, 0x140390230\nsub     rsp, 20h                                                       ; +0x2, 0x140390232\nmov     rax, cs:qword_14090C008                                        ; +0x6, 0x140390236\ntest    rax, rax                                                       ; +0xd, 0x14039023d\njnz     loc_1403902CF                                                  ; +0x10, 0x140390240\nmov     ecx, 170h; Size                                                ; +0x16, 0x140390246\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1b, 0x14039024b\nmov     rbx, rax                                                       ; +0x20, 0x140390250\nmov     [rsp+28h+arg_0], rax                                           ; +0x23, 0x140390253\nmov     rcx, rax                                                       ; +0x28, 0x140390258\ncall    cs:??0CCNode@cocos2d@@QEAA@XZ; cocos2d::CCNode::CCNode(void)   ; +0x2b, 0x14039025b\nlea     rax, ??_7GJMultiplayerManager@@6B@; const GJMultiplayerManager::`vftable' ; +0x31, 0x140390261\nmov     [rbx], rax                                                     ; +0x38, 0x140390268\nxor     eax, eax                                                       ; +0x3b, 0x14039026b\nmov     [rbx+140h], rax                                                ; +0x3d, 0x14039026d\nmov     [rbx+148h], rax                                                ; +0x44, 0x140390274\nmov     [rbx+150h], rax                                                ; +0x4b, 0x14039027b\nmov     [rbx+158h], rax                                                ; +0x52, 0x140390282\nmov     [rbx+160h], rax                                                ; +0x59, 0x140390289\nmov     [rbx+168h], rax                                                ; +0x60, 0x140390290\nmov     cs:qword_14090C008, rbx                                        ; +0x67, 0x140390297\nmov     rax, cs:off_140772EC8                                          ; +0x6e, 0x14039029e\nlea     rcx, GJMultiplayerManager__init                                ; +0x75, 0x1403902a5\ncmp     rax, rcx                                                       ; +0x7c, 0x1403902ac\nmov     rcx, rbx                                                       ; +0x7f, 0x1403902af\njnz     short loc_1403902C6                                            ; +0x82, 0x1403902b2\ncall    GJMultiplayerManager__init                                     ; +0x84, 0x1403902b4\nmov     rax, cs:qword_14090C008                                        ; +0x89, 0x1403902b9\nadd     rsp, 20h                                                       ; +0x90, 0x1403902c0\npop     rbx                                                            ; +0x94, 0x1403902c4\nretn                                                                   ; +0x95, 0x1403902c5\ncall    rax ; GJMultiplayerManager__init                               ; +0x96, 0x1403902c6\nmov     rax, cs:qword_14090C008                                        ; +0x98, 0x1403902c8\nadd     rsp, 20h                                                       ; +0x9f, 0x1403902cf\npop     rbx                                                            ; +0xa3, 0x1403902d3\nretn                                                                   ; +0xa4, 0x1403902d4", "xrefs": ["GameManager::dataLoaded @ 0x140283cb7", "GameManager::firstLoad @ 0x140285401", "GameManager::encodeDataTo @ 0x140285eb8", "GJMultiplayerManager::uploadComment @ 0x14039171a", "ShareCommentLayer::onShare @ 0x14062f607", "<???> @ 0x140922f88"], "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"}