{"type": "func", "start": 5370031376, "end": 5370031443, "name": "GameLevelManager::sharedState", "pseudocode": "// \n// GameLevelManager::sharedState from 0x140142d10 to 0x140142d53 (67 bytes)\n// \n// 3 xrefs:\n// > GJGameLevel::create @ 0x14016bfd9\n// > GameManager::verifyCoinUnlocks @ 0x14017e600\n// > <???> @ 0x1406ca4dc\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// Hidden C++ exception states: #wind=1\nGameLevelManager *GameLevelManager::sharedState()\n{\n  GameLevelManager *result; // rax\n  void *v1; // [rsp+30h] [rbp+8h]\n\n  result = (GameLevelManager *)qword_1406C2EC0;\n  if ( !qword_1406C2EC0 )\n  {\n    v1 = operator new(0x3D0u);\n    qword_1406C2EC0 = sub_140141280((__int64)v1);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n    return (GameLevelManager *)qword_1406C2EC0;\n  }\n  return result;\n}", "assembly": "; \n; GameLevelManager::sharedState from 0x140142d10 to 0x140142d53 (67 bytes)\n; \n; 3 xrefs:\n; > GJGameLevel::create @ 0x14016bfd9\n; > GameManager::verifyCoinUnlocks @ 0x14017e600\n; > <???> @ 0x1406ca4dc\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nsub     rsp, 28h                                                       ; +0x0, 0x140142d10\nmov     rax, cs:qword_1406C2EC0                                        ; +0x4, 0x140142d14\ntest    rax, rax                                                       ; +0xb, 0x140142d1b\njnz     short loc_140142D4E                                            ; +0xe, 0x140142d1e\nmov     ecx, 3D0h; Size                                                ; +0x10, 0x140142d20\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x15, 0x140142d25\nmov     [rsp+28h+arg_0], rax                                           ; +0x1a, 0x140142d2a\nmov     rcx, rax                                                       ; +0x1f, 0x140142d2f\ncall    sub_140141280                                                  ; +0x22, 0x140142d32\nmov     rcx, rax                                                       ; +0x27, 0x140142d37\nmov     cs:qword_1406C2EC0, rax                                        ; +0x2a, 0x140142d3a\nmov     rax, [rax]                                                     ; +0x31, 0x140142d41\ncall    qword ptr [rax+48h]                                            ; +0x34, 0x140142d44\nmov     rax, cs:qword_1406C2EC0                                        ; +0x37, 0x140142d47\nadd     rsp, 28h                                                       ; +0x3e, 0x140142d4e\nretn                                                                   ; +0x42, 0x140142d52", "xrefs": ["GJGameLevel::create @ 0x14016bfd9", "GameManager::verifyCoinUnlocks @ 0x14017e600", "<???> @ 0x1406ca4dc"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}