{"type": "func", "start": 3058040, "end": 3058136, "name": "FileSaveManager::sharedState", "pseudocode": "// \n// FileSaveManager::sharedState from 0x2ea978 to 0x2ea9d8 (96 bytes)\n// \n// 0 xrefs:\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 *v0; // r4\n\n  if ( !dword_AC548C )\n  {\n    v0 = (FileSaveManager *)operator new(0x114u);\n    cocos2d::CCNode::CCNode(v0);\n    v0->m_setup = 0;\n    v0->m_saved = 0;\n    v0->m_fileName.m_data.m_data = (stl::StringData<char>::Internal *)&unk_ACDDA8;\n    v0->m_quickSave = 0;\n    v0->m_storeData = nullptr;\n    v0->__vftable = (FileSaveManager_vtbl *)&off_A3ECA0;\n    dword_AC548C = (int)v0;\n    FileSaveManager::init(v0);\n  }\n  return (FileSaveManager *)dword_AC548C;\n}", "assembly": "; \n; FileSaveManager::sharedState from 0x2ea978 to 0x2ea9d8 (96 bytes)\n; \n; 0 xrefs:\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\nLDR             R3, =(dword_AC548C - 0x2EA980)                         ; +0x0, 0x2ea978\nPUSH            {R4,LR}                                                ; +0x2, 0x2ea97a\nADD             R3, PC; dword_AC548C                                   ; +0x4, 0x2ea97c\nLDR             R3, [R3]                                               ; +0x6, 0x2ea97e\nCBNZ            R3, loc_2EA9D0                                         ; +0x8, 0x2ea980\nMOV.W           R0, #0x114; unsigned int                               ; +0xa, 0x2ea982\nBL              _Znwj; operator new(uint)                              ; +0xe, 0x2ea986\nMOV             R4, R0                                                 ; +0x12, 0x2ea98a\nBL              _ZN7cocos2d6CCNodeC2Ev; cocos2d::CCNode::CCNode(void)  ; +0x14, 0x2ea98c\nLDR             R3, =(off_AB5BA0 - 0x2EA99E)                           ; +0x18, 0x2ea990\nMOVS            R2, #0                                                 ; +0x1a, 0x2ea992\nMOV             R0, R4; this                                           ; +0x1c, 0x2ea994\nSTRB.W          R2, [R4,#0x10C]                                        ; +0x1e, 0x2ea996\nADD             R3, PC; off_AB5BA0                                     ; +0x22, 0x2ea99a\nLDR             R3, [R3]; dword_ACDD9C                                 ; +0x24, 0x2ea99c\nSTRB.W          R2, [R4,#0x10D]                                        ; +0x26, 0x2ea99e\nADDS            R3, #0xC                                               ; +0x2a, 0x2ea9a2\nSTR.W           R3, [R4,#0x108]                                        ; +0x2c, 0x2ea9a4\nLDR             R3, =(_ZTV15FileSaveManager_ptr - 0x2EA9B2)            ; +0x30, 0x2ea9a8\nSTRB.W          R2, [R4,#0x10E]                                        ; +0x32, 0x2ea9aa\nADD             R3, PC; _ZTV15FileSaveManager_ptr                      ; +0x36, 0x2ea9ae\nLDR             R3, [R3]; `vtable for'FileSaveManager ...              ; +0x38, 0x2ea9b0\nSTR.W           R2, [R4,#0x110]                                        ; +0x3a, 0x2ea9b2\nADDS            R3, #8                                                 ; +0x3e, 0x2ea9b6\nSTR             R3, [R4]                                               ; +0x40, 0x2ea9b8\nLDR             R3, =(dword_AC548C - 0x2EA9C0)                         ; +0x42, 0x2ea9ba\nADD             R3, PC; dword_AC548C                                   ; +0x44, 0x2ea9bc\nSTR             R4, [R3]                                               ; +0x46, 0x2ea9be\nBL              _ZN15FileSaveManager4initEv; FileSaveManager::init(void) ; +0x48, 0x2ea9c0\nB               loc_2EA9D0                                             ; +0x4c, 0x2ea9c4\nMOV             R0, R4; p                                              ; +0x4e, 0x2ea9c6\nBL              _ZdlPv; operator delete(void *)                        ; +0x50, 0x2ea9c8\nBL              __cxa_end_cleanup                                      ; +0x54, 0x2ea9cc\nLDR             R3, =(dword_AC548C - 0x2EA9D6)                         ; +0x58, 0x2ea9d0\nADD             R3, PC; dword_AC548C                                   ; +0x5a, 0x2ea9d2\nLDR             R0, [R3]                                               ; +0x5c, 0x2ea9d4\nPOP             {R4,PC}                                                ; +0x5e, 0x2ea9d6", "xrefs": [], "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"}