{"type": "func", "start": 5370262688, "end": 5370262755, "name": "GameManager::sharedState", "pseudocode": "// \n// GameManager::sharedState from 0x14017b4a0 to 0x14017b4e3 (67 bytes)\n// \n// 48 xrefs:\n// > EditorUI::setupCreateMenu @ 0x1400e8124\n// > EditorUI::setupCreateMenu @ 0x1400e813c\n// > EditorUI::setupCreateMenu @ 0x1400e8163\n// > EditorUI::setupCreateMenu @ 0x1400e818b\n// > EditorUI::keyDown @ 0x1401261ce\n// > EditorUI::keyDown @ 0x1401261eb\n// > EditorUI::keyDown @ 0x140126229\n// > EditorUI::keyDown @ 0x140126246\n// > EditorUI::keyDown @ 0x1401262bc\n// > EditorUI::keyDown @ 0x1401262d8\n// > EditorUI::keyDown @ 0x1401262e9\n// > GameObject::setupCustomSprites @ 0x1401bc88b\n// > GameObject::setupCustomSprites @ 0x1401bcf5b\n// > PlayerObject::playDeathEffect @ 0x14037ef6f\n// > PlayerObject::playDeathEffect @ 0x14037ef80\n// > PlayerObject::playDeathEffect @ 0x14037ef95\n// > PlayerObject::playDeathEffect @ 0x14037f0c1\n// > PlayerObject::playDeathEffect @ 0x14037f4cb\n// > PlayerObject::playDeathEffect @ 0x14037f8bf\n// > PlayerObject::playDeathEffect @ 0x14037fc8a\n// > PlayerObject::playDeathEffect @ 0x140380067\n// > PlayerObject::playDeathEffect @ 0x140380470\n// > PlayerObject::playDeathEffect @ 0x1403807cb\n// > PlayerObject::playDeathEffect @ 0x140380bc4\n// > PlayerObject::playDeathEffect @ 0x14038109d\n// > PlayerObject::playDeathEffect @ 0x140381495\n// > PlayerObject::playDeathEffect @ 0x1403819a1\n// > PlayerObject::playDeathEffect @ 0x140381d89\n// > PlayerObject::playDeathEffect @ 0x1403821e3\n// > PlayerObject::playDeathEffect @ 0x140382699\n// > PlayerObject::playDeathEffect @ 0x140382aea\n// > PlayerObject::playDeathEffect @ 0x140382f27\n// > PlayerObject::playDeathEffect @ 0x140383262\n// > PlayerObject::playDeathEffect @ 0x140383643\n// > PlayerObject::playDeathEffect @ 0x140383801\n// > PlayerObject::playDeathEffect @ 0x140383d15\n// > SecretLayer::onSubmit @ 0x1403df1bd\n// > SecretLayer::onSubmit @ 0x1403df331\n// > SecretLayer::onSubmit @ 0x1403df3cc\n// > SecretLayer::onSubmit @ 0x1403df459\n// > SecretLayer::onSubmit @ 0x1403df6cb\n// > SecretLayer2::onSubmit @ 0x1403e691a\n// > SecretLayer2::onSubmit @ 0x1403e69f2\n// > SecretLayer2::onSubmit @ 0x1403e6a45\n// > SecretLayer2::onSubmit @ 0x1403e6b0d\n// > SecretLayer2::onSubmit @ 0x1403e6b22\n// > SecretLayer2::onSubmit @ 0x1403e6b4a\n// > <???> @ 0x1406cb334\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\nGameManager *GameManager::sharedState()\n{\n  GameManager *result; // rax\n  void *v1; // [rsp+30h] [rbp+8h]\n\n  result = (GameManager *)qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v1 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00((__int64)v1);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    return (GameManager *)qword_1406C2ED8;\n  }\n  return result;\n}", "assembly": "; \n; GameManager::sharedState from 0x14017b4a0 to 0x14017b4e3 (67 bytes)\n; \n; 48 xrefs:\n; > EditorUI::setupCreateMenu @ 0x1400e8124\n; > EditorUI::setupCreateMenu @ 0x1400e813c\n; > EditorUI::setupCreateMenu @ 0x1400e8163\n; > EditorUI::setupCreateMenu @ 0x1400e818b\n; > EditorUI::keyDown @ 0x1401261ce\n; > EditorUI::keyDown @ 0x1401261eb\n; > EditorUI::keyDown @ 0x140126229\n; > EditorUI::keyDown @ 0x140126246\n; > EditorUI::keyDown @ 0x1401262bc\n; > EditorUI::keyDown @ 0x1401262d8\n; > EditorUI::keyDown @ 0x1401262e9\n; > GameObject::setupCustomSprites @ 0x1401bc88b\n; > GameObject::setupCustomSprites @ 0x1401bcf5b\n; > PlayerObject::playDeathEffect @ 0x14037ef6f\n; > PlayerObject::playDeathEffect @ 0x14037ef80\n; > PlayerObject::playDeathEffect @ 0x14037ef95\n; > PlayerObject::playDeathEffect @ 0x14037f0c1\n; > PlayerObject::playDeathEffect @ 0x14037f4cb\n; > PlayerObject::playDeathEffect @ 0x14037f8bf\n; > PlayerObject::playDeathEffect @ 0x14037fc8a\n; > PlayerObject::playDeathEffect @ 0x140380067\n; > PlayerObject::playDeathEffect @ 0x140380470\n; > PlayerObject::playDeathEffect @ 0x1403807cb\n; > PlayerObject::playDeathEffect @ 0x140380bc4\n; > PlayerObject::playDeathEffect @ 0x14038109d\n; > PlayerObject::playDeathEffect @ 0x140381495\n; > PlayerObject::playDeathEffect @ 0x1403819a1\n; > PlayerObject::playDeathEffect @ 0x140381d89\n; > PlayerObject::playDeathEffect @ 0x1403821e3\n; > PlayerObject::playDeathEffect @ 0x140382699\n; > PlayerObject::playDeathEffect @ 0x140382aea\n; > PlayerObject::playDeathEffect @ 0x140382f27\n; > PlayerObject::playDeathEffect @ 0x140383262\n; > PlayerObject::playDeathEffect @ 0x140383643\n; > PlayerObject::playDeathEffect @ 0x140383801\n; > PlayerObject::playDeathEffect @ 0x140383d15\n; > SecretLayer::onSubmit @ 0x1403df1bd\n; > SecretLayer::onSubmit @ 0x1403df331\n; > SecretLayer::onSubmit @ 0x1403df3cc\n; > SecretLayer::onSubmit @ 0x1403df459\n; > SecretLayer::onSubmit @ 0x1403df6cb\n; > SecretLayer2::onSubmit @ 0x1403e691a\n; > SecretLayer2::onSubmit @ 0x1403e69f2\n; > SecretLayer2::onSubmit @ 0x1403e6a45\n; > SecretLayer2::onSubmit @ 0x1403e6b0d\n; > SecretLayer2::onSubmit @ 0x1403e6b22\n; > SecretLayer2::onSubmit @ 0x1403e6b4a\n; > <???> @ 0x1406cb334\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, 0x14017b4a0\nmov     rax, cs:qword_1406C2ED8                                        ; +0x4, 0x14017b4a4\ntest    rax, rax                                                       ; +0xb, 0x14017b4ab\njnz     short loc_14017B4DE                                            ; +0xe, 0x14017b4ae\nmov     ecx, 668h; Size                                                ; +0x10, 0x14017b4b0\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x15, 0x14017b4b5\nmov     [rsp+28h+arg_0], rax                                           ; +0x1a, 0x14017b4ba\nmov     rcx, rax                                                       ; +0x1f, 0x14017b4bf\ncall    sub_14017AB00                                                  ; +0x22, 0x14017b4c2\nmov     rcx, rax                                                       ; +0x27, 0x14017b4c7\nmov     cs:qword_1406C2ED8, rax                                        ; +0x2a, 0x14017b4ca\nmov     rax, [rax]                                                     ; +0x31, 0x14017b4d1\ncall    qword ptr [rax+48h]                                            ; +0x34, 0x14017b4d4\nmov     rax, cs:qword_1406C2ED8                                        ; +0x37, 0x14017b4d7\nadd     rsp, 28h                                                       ; +0x3e, 0x14017b4de\nretn                                                                   ; +0x42, 0x14017b4e2", "xrefs": ["EditorUI::setupCreateMenu @ 0x1400e8124", "EditorUI::setupCreateMenu @ 0x1400e813c", "EditorUI::setupCreateMenu @ 0x1400e8163", "EditorUI::setupCreateMenu @ 0x1400e818b", "EditorUI::keyDown @ 0x1401261ce", "EditorUI::keyDown @ 0x1401261eb", "EditorUI::keyDown @ 0x140126229", "EditorUI::keyDown @ 0x140126246", "EditorUI::keyDown @ 0x1401262bc", "EditorUI::keyDown @ 0x1401262d8", "EditorUI::keyDown @ 0x1401262e9", "GameObject::setupCustomSprites @ 0x1401bc88b", "GameObject::setupCustomSprites @ 0x1401bcf5b", "PlayerObject::playDeathEffect @ 0x14037ef6f", "PlayerObject::playDeathEffect @ 0x14037ef80", "PlayerObject::playDeathEffect @ 0x14037ef95", "PlayerObject::playDeathEffect @ 0x14037f0c1", "PlayerObject::playDeathEffect @ 0x14037f4cb", "PlayerObject::playDeathEffect @ 0x14037f8bf", "PlayerObject::playDeathEffect @ 0x14037fc8a", "PlayerObject::playDeathEffect @ 0x140380067", "PlayerObject::playDeathEffect @ 0x140380470", "PlayerObject::playDeathEffect @ 0x1403807cb", "PlayerObject::playDeathEffect @ 0x140380bc4", "PlayerObject::playDeathEffect @ 0x14038109d", "PlayerObject::playDeathEffect @ 0x140381495", "PlayerObject::playDeathEffect @ 0x1403819a1", "PlayerObject::playDeathEffect @ 0x140381d89", "PlayerObject::playDeathEffect @ 0x1403821e3", "PlayerObject::playDeathEffect @ 0x140382699", "PlayerObject::playDeathEffect @ 0x140382aea", "PlayerObject::playDeathEffect @ 0x140382f27", "PlayerObject::playDeathEffect @ 0x140383262", "PlayerObject::playDeathEffect @ 0x140383643", "PlayerObject::playDeathEffect @ 0x140383801", "PlayerObject::playDeathEffect @ 0x140383d15", "SecretLayer::onSubmit @ 0x1403df1bd", "SecretLayer::onSubmit @ 0x1403df331", "SecretLayer::onSubmit @ 0x1403df3cc", "SecretLayer::onSubmit @ 0x1403df459", "SecretLayer::onSubmit @ 0x1403df6cb", "SecretLayer2::onSubmit @ 0x1403e691a", "SecretLayer2::onSubmit @ 0x1403e69f2", "SecretLayer2::onSubmit @ 0x1403e6a45", "SecretLayer2::onSubmit @ 0x1403e6b0d", "SecretLayer2::onSubmit @ 0x1403e6b22", "SecretLayer2::onSubmit @ 0x1403e6b4a", "<???> @ 0x1406cb334"], "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"}