{"type": "func", "start": 5756236, "end": 5756384, "name": "FileSaveManager::sharedState", "pseudocode": "// \n// FileSaveManager::sharedState from 0x57d54c to 0x57d5e0 (148 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0xa4058\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\nFileSaveManager *FileSaveManager::sharedState()\n{\n  FileSaveManager *result; // x0\n  FileSaveManager *v1; // x20\n\n  result = (FileSaveManager *)qword_1241798;\n  if ( !qword_1241798 )\n  {\n    v1 = (FileSaveManager *)operator new(0x158u);\n    cocos2d::CCNode::CCNode(v1);\n    qword_1241798 = (__int64)v1;\n    v1->m_setup = 0;\n    v1->m_fileName.m_data.m_data = (stl::StringData<char>::Internal *)&byte_124B6C8;\n    v1->m_saved = 0;\n    v1->m_quickSave = 0;\n    v1->m_storeData = nullptr;\n    v1->__vftable = (FileSaveManager_vtbl *)&off_113B670;\n    FileSaveManager::init(v1);\n    return (FileSaveManager *)qword_1241798;\n  }\n  return result;\n}", "assembly": "; \n; FileSaveManager::sharedState from 0x57d54c to 0x57d5e0 (148 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0xa4058\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\nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0x57d54c\nMOV             X29, SP                                                ; +0x4, 0x57d550\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0x57d554\nADRP            X19, #qword_1241798@PAGE                               ; +0xc, 0x57d558\nLDR             X0, [X19,#qword_1241798@PAGEOFF]                       ; +0x10, 0x57d55c\nCBZ             X0, loc_57D570                                         ; +0x14, 0x57d560\nLDP             X19, X20, [SP,#var_s10]                                ; +0x18, 0x57d564\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x1c, 0x57d568\nRET                                                                    ; +0x20, 0x57d56c\nMOV             X0, #0x158; unsigned __int64                           ; +0x24, 0x57d570\nBL              _Znwm; operator new(ulong)                             ; +0x28, 0x57d574\nMOV             X20, X0                                                ; +0x2c, 0x57d578\nBL              _ZN7cocos2d6CCNodeC2Ev; cocos2d::CCNode::CCNode(void)  ; +0x30, 0x57d57c\nADRP            X1, #off_122EFE8@PAGE                                  ; +0x34, 0x57d580\nMOV             X0, X20; this                                          ; +0x38, 0x57d584\nSTR             X20, [X19,#qword_1241798@PAGEOFF]                      ; +0x3c, 0x57d588\nLDR             X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0x40, 0x57d58c\nSTRB            WZR, [X20,#0x148]                                      ; +0x44, 0x57d590\nADD             X1, X1, #0x18                                          ; +0x48, 0x57d594\nSTR             X1, [X20,#0x140]                                       ; +0x4c, 0x57d598\nADRP            X1, #_ZTV15FileSaveManager_ptr@PAGE                    ; +0x50, 0x57d59c\nSTRB            WZR, [X20,#0x149]                                      ; +0x54, 0x57d5a0\nSTRB            WZR, [X20,#0x14A]                                      ; +0x58, 0x57d5a4\nLDR             X1, [X1,#_ZTV15FileSaveManager_ptr@PAGEOFF]; `vtable for'FileSaveManager ... ; +0x5c, 0x57d5a8\nSTR             XZR, [X20,#0x150]                                      ; +0x60, 0x57d5ac\nADD             X1, X1, #0x10                                          ; +0x64, 0x57d5b0\nSTR             X1, [X20]                                              ; +0x68, 0x57d5b4\nBL              _ZN15FileSaveManager4initEv; FileSaveManager::init(void) ; +0x6c, 0x57d5b8\nLDR             X0, [X19,#qword_1241798@PAGEOFF]                       ; +0x70, 0x57d5bc\nLDP             X19, X20, [SP,#var_s10]                                ; +0x74, 0x57d5c0\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x78, 0x57d5c4\nRET                                                                    ; +0x7c, 0x57d5c8\nMOV             X19, X0                                                ; +0x80, 0x57d5cc\nMOV             X0, X20; p                                             ; +0x84, 0x57d5d0\nBL              _ZdlPv; operator delete(void *)                        ; +0x88, 0x57d5d4\nMOV             X0, X19                                                ; +0x8c, 0x57d5d8\nBL              _Unwind_Resume                                         ; +0x90, 0x57d5dc", "xrefs": ["<???> @ 0xa4058"], "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"}