{"type": "func", "start": 4299866736, "end": 4299866857, "name": "GManager::save", "pseudocode": "// \n// GManager::save from 0x1004ac270 to 0x1004ac2e9 (121 bytes)\n// \n// 4 xrefs:\n// > EditorPauseLayer::saveLevel @ 0x100294c46\n// > GameManager::doQuickSave @ 0x10038ba70\n// > AppDelegate::trySaveGame @ 0x10065c7d2\n// > AppDelegate::trySaveGame @ 0x10065c7df\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  double v1; // xmm0_8\n  __int128 v2; // [rsp+0h] [rbp-20h] BYREF\n  void *__p; // [rsp+10h] [rbp-10h]\n\n  if ( !a1->m_saved )\n  {\n    a1->m_saved = 1;\n    if ( (a1->m_fileName.m_data.m_short.sizex2 & 1) != 0 )\n    {\n      sub_100006B70(&v2, a1->m_fileName.m_data.m_long.longStorage, a1->m_fileName.m_data.m_long.size, v1);\n    }\n    else\n    {\n      __p = a1->m_fileName.m_data.m_long.longStorage;\n      v2 = *(_OWORD *)&a1->m_fileName.m_data.m_short.sizex2;\n    }\n    GManager::saveGMTo(a1, &v2);\n    if ( (v2 & 1) != 0 )\n      operator delete(__p);\n  }\n}", "assembly": "; \n; GManager::save from 0x1004ac270 to 0x1004ac2e9 (121 bytes)\n; \n; 4 xrefs:\n; > EditorPauseLayer::saveLevel @ 0x100294c46\n; > GameManager::doQuickSave @ 0x10038ba70\n; > AppDelegate::trySaveGame @ 0x10065c7d2\n; > AppDelegate::trySaveGame @ 0x10065c7df\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\npush    rbp                                                            ; +0x0, 0x1004ac270\nmov     rbp, rsp                                                       ; +0x1, 0x1004ac271\npush    rbx                                                            ; +0x4, 0x1004ac274\nsub     rsp, 18h                                                       ; +0x5, 0x1004ac275\ncmp     byte ptr [rdi+159h], 0                                         ; +0x9, 0x1004ac279\njnz     short loc_1004AC2E2                                            ; +0x10, 0x1004ac280\nmov     byte ptr [rdi+159h], 1                                         ; +0x12, 0x1004ac282\ntest    byte ptr [rdi+140h], 1                                         ; +0x19, 0x1004ac289\njnz     short loc_1004AC2AA                                            ; +0x20, 0x1004ac290\nlea     rax, [rdi+140h]                                                ; +0x22, 0x1004ac292\nmov     rcx, [rax+10h]                                                 ; +0x29, 0x1004ac299\nmov     [rbp+__p], rcx                                                 ; +0x2d, 0x1004ac29d\nmovups  xmm0, xmmword ptr [rax]                                        ; +0x31, 0x1004ac2a1\nmovaps  [rbp+var_20], xmm0                                             ; +0x34, 0x1004ac2a4\njmp     short loc_1004AC2CA                                            ; +0x38, 0x1004ac2a8\nmov     rdx, [rdi+148h]                                                ; +0x3a, 0x1004ac2aa\nmov     rsi, [rdi+150h]                                                ; +0x41, 0x1004ac2b1\nlea     rax, [rbp+var_20]                                              ; +0x48, 0x1004ac2b8\nmov     rbx, rdi                                                       ; +0x4c, 0x1004ac2bc\nmov     rdi, rax                                                       ; +0x4f, 0x1004ac2bf\ncall    sub_100006B70                                                  ; +0x52, 0x1004ac2c2\nmov     rdi, rbx                                                       ; +0x57, 0x1004ac2c7\nlea     rsi, [rbp+var_20]                                              ; +0x5a, 0x1004ac2ca\ncall    GManager__saveGMTo                                             ; +0x5e, 0x1004ac2ce\ntest    byte ptr [rbp+var_20], 1                                       ; +0x63, 0x1004ac2d3\njz      short loc_1004AC2E2                                            ; +0x67, 0x1004ac2d7\nmov     rdi, [rbp+__p]; __p                                            ; +0x69, 0x1004ac2d9\ncall    __ZdlPv; operator delete(void *)                               ; +0x6d, 0x1004ac2dd\nadd     rsp, 18h                                                       ; +0x72, 0x1004ac2e2\npop     rbx                                                            ; +0x76, 0x1004ac2e6\npop     rbp                                                            ; +0x77, 0x1004ac2e7\nretn                                                                   ; +0x78, 0x1004ac2e8", "xrefs": ["EditorPauseLayer::saveLevel @ 0x100294c46", "GameManager::doQuickSave @ 0x10038ba70", "AppDelegate::trySaveGame @ 0x10065c7d2", "AppDelegate::trySaveGame @ 0x10065c7df"], "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"}