{"type": "func", "start": 4297369828, "end": 4297369948, "name": "GManager::save", "pseudocode": "// \n// GManager::save from 0x10024a8e4 to 0x10024a95c (120 bytes)\n// \n// 4 xrefs:\n// > AppDelegate::trySaveGame @ 0x100269798\n// > AppDelegate::trySaveGame @ 0x1002697a0\n// > GameManager::doQuickSave @ 0x10031d2fc\n// > EditorPauseLayer::saveLevel @ 0x10039e618\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\nvoid __fastcall GManager::save(GManager *a1)\n{\n  std::string __p; // [xsp+0h] [xbp-30h] BYREF\n\n  if ( !a1->m_saved )\n  {\n    a1->m_saved = 1;\n    if ( a1->m_fileName.m_data.m_short.shortStorage.__elems_[22] < 0 )\n      sub_1000097D0(&__p, (void *)a1->m_fileName.m_data.m_long.capacitym1, a1->m_fileName.m_data.m_long.size);\n    else\n      __p = a1->m_fileName;\n    GManager::saveGMTo(a1, &__p);\n    if ( __p.m_data.m_short.shortStorage.__elems_[22] < 0 )\n      operator delete((void *)__p.m_data.m_long.capacitym1);\n  }\n}", "assembly": "; \n; GManager::save from 0x10024a8e4 to 0x10024a95c (120 bytes)\n; \n; 4 xrefs:\n; > AppDelegate::trySaveGame @ 0x100269798\n; > AppDelegate::trySaveGame @ 0x1002697a0\n; > GameManager::doQuickSave @ 0x10031d2fc\n; > EditorPauseLayer::saveLevel @ 0x10039e618\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             SP, SP, #0x40                                          ; +0x0, 0x10024a8e4\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x10024a8e8\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x10024a8ec\nADD             X29, SP, #0x30                                         ; +0xc, 0x10024a8f0\nLDRB            W8, [X0,#0x159]                                        ; +0x10, 0x10024a8f4\nTBNZ            W8, #0, loc_10024A94C                                  ; +0x14, 0x10024a8f8\nMOV             X19, X0                                                ; +0x18, 0x10024a8fc\nMOV             W8, #1                                                 ; +0x1c, 0x10024a900\nSTRB            W8, [X0,#0x159]                                        ; +0x20, 0x10024a904\nLDRSB           W8, [X0,#0x157]                                        ; +0x24, 0x10024a908\nTBNZ            W8, #0x1F, loc_10024A924                               ; +0x28, 0x10024a90c\nLDR             Q0, [X19,#0x140]                                       ; +0x2c, 0x10024a910\nSTR             Q0, [SP,#0x30+__p]                                     ; +0x30, 0x10024a914\nLDR             X8, [X19,#0x150]                                       ; +0x34, 0x10024a918\nSTR             X8, [SP,#0x30+var_20]                                  ; +0x38, 0x10024a91c\nB               loc_10024A930                                          ; +0x3c, 0x10024a920\nLDP             X1, X2, [X19,#0x140]; __src                            ; +0x40, 0x10024a924\nMOV             X0, SP; __dst                                          ; +0x44, 0x10024a928\nBL              sub_1000097D0                                          ; +0x48, 0x10024a92c\nMOV             X1, SP                                                 ; +0x4c, 0x10024a930\nMOV             X0, X19                                                ; +0x50, 0x10024a934\nBL              GManager__saveGMTo                                     ; +0x54, 0x10024a938\nLDRSB           W8, [SP,#0x30+var_20+7]                                ; +0x58, 0x10024a93c\nTBZ             W8, #0x1F, loc_10024A94C                               ; +0x5c, 0x10024a940\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0x60, 0x10024a944\nBL              __ZdlPv; operator delete(void *)                       ; +0x64, 0x10024a948\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x68, 0x10024a94c\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x6c, 0x10024a950\nADD             SP, SP, #0x40 ; '@'                                    ; +0x70, 0x10024a954\nRET                                                                    ; +0x74, 0x10024a958", "xrefs": ["AppDelegate::trySaveGame @ 0x100269798", "AppDelegate::trySaveGame @ 0x1002697a0", "GameManager::doQuickSave @ 0x10031d2fc", "EditorPauseLayer::saveLevel @ 0x10039e618"], "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"}