{"type": "func", "start": 5372938736, "end": 5372939023, "name": "LevelEditorLayer::canAutoSave", "pseudocode": "// \n// LevelEditorLayer::canAutoSave from 0x1404089f0 to 0x140408b0f (287 bytes)\n// \n// 5 xrefs:\n// > LevelEditorLayer::checkAutoSave @ 0x140408cba\n// > LevelEditorLayer::checkAutoSave @ 0x140408e8f\n// > LevelEditorLayer::doAutoSave @ 0x140409206\n// > LevelEditorLayer::doAutoBackup @ 0x14040965e\n// > <???> @ 0x140925c1c\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:31:59 +0000\n// \n\nbool __fastcall LevelEditorLayer::canAutoSave(__int64 a1)\n{\n  __int64 v2; // rax\n  __int64 v3; // rcx\n  __int64 v4; // rdi\n  __int64 v5; // rcx\n  __int64 v6; // rcx\n\n  if ( !*(_BYTE *)(LocalLevelManager::sharedState(a1) + 673)\n    && *(_DWORD *)(*(_QWORD *)(a1 + 2168) + 1220LL) == 2\n    && !*(_DWORD *)(a1 + 2204)\n    && !*(_BYTE *)(a1 + 15512) )\n  {\n    v2 = *(_QWORD *)(a1 + 14904);\n    if ( !v2 )\n      return 1;\n    if ( !*(_BYTE *)(v2 + 1585) && !*(_BYTE *)(v2 + 1584) )\n    {\n      v3 = *(_QWORD *)(v2 + 808);\n      v4 = a1 + 14904;\n      if ( !v3 )\n        goto LABEL_11;\n      if ( !(*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v3 + 344LL))(v3) )\n      {\n        v4 = a1 + 14904;\nLABEL_11:\n        v5 = *(_QWORD *)(*(_QWORD *)(a1 + 14904) + 832LL);\n        if ( !v5 || !(*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v5 + 344LL))(v5) )\n        {\n          v6 = *(_QWORD *)(*(_QWORD *)v4 + 840LL);\n          if ( !v6 || !(*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v6 + 344LL))(v6) )\n            return *(_DWORD *)(*(_QWORD *)v4 + 752LL) == -1;\n        }\n      }\n    }\n  }\n  return 0;\n}", "assembly": "; \n; LevelEditorLayer::canAutoSave from 0x1404089f0 to 0x140408b0f (287 bytes)\n; \n; 5 xrefs:\n; > LevelEditorLayer::checkAutoSave @ 0x140408cba\n; > LevelEditorLayer::checkAutoSave @ 0x140408e8f\n; > LevelEditorLayer::doAutoSave @ 0x140409206\n; > LevelEditorLayer::doAutoBackup @ 0x14040965e\n; > <???> @ 0x140925c1c\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:31:59 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1404089f0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1404089f5\npush    rdi                                                            ; +0xa, 0x1404089fa\nsub     rsp, 20h                                                       ; +0xb, 0x1404089fb\nmov     rbx, rcx                                                       ; +0xf, 0x1404089ff\ncall    LocalLevelManager__sharedState                                 ; +0x12, 0x140408a02\nmovzx   edx, byte ptr [rax+2A1h]                                       ; +0x17, 0x140408a07\ntest    dl, dl                                                         ; +0x1e, 0x140408a0e\njnz     loc_140408AFD                                                  ; +0x20, 0x140408a10\nmov     rax, [rbx+878h]                                                ; +0x26, 0x140408a16\ncmp     dword ptr [rax+4C4h], 2                                        ; +0x2d, 0x140408a1d\njnz     loc_140408AFD                                                  ; +0x34, 0x140408a24\ncmp     dword ptr [rbx+89Ch], 0                                        ; +0x3a, 0x140408a2a\njnz     loc_140408AFD                                                  ; +0x41, 0x140408a31\ncmp     [rbx+3C98h], dl                                                ; +0x47, 0x140408a37\njnz     loc_140408AFD                                                  ; +0x4d, 0x140408a3d\nmov     rax, [rbx+3A38h]                                               ; +0x53, 0x140408a43\ntest    rax, rax                                                       ; +0x5a, 0x140408a4a\njz      loc_140408AEB                                                  ; +0x5d, 0x140408a4d\ncmp     [rax+631h], dl                                                 ; +0x63, 0x140408a53\njnz     loc_140408AFD                                                  ; +0x69, 0x140408a59\ncmp     [rax+630h], dl                                                 ; +0x6f, 0x140408a5f\njnz     loc_140408AFD                                                  ; +0x75, 0x140408a65\nmov     rcx, [rax+328h]                                                ; +0x7b, 0x140408a6b\nlea     rdi, [rbx+3A38h]                                               ; +0x82, 0x140408a72\ntest    rcx, rcx                                                       ; +0x89, 0x140408a79\njz      short loc_140408A92                                            ; +0x8c, 0x140408a7c\nmov     rax, [rcx]                                                     ; +0x8e, 0x140408a7e\ncall    qword ptr [rax+158h]                                           ; +0x91, 0x140408a81\ntest    al, al                                                         ; +0x97, 0x140408a87\njnz     short loc_140408AFD                                            ; +0x99, 0x140408a89\nlea     rdi, [rbx+3A38h]                                               ; +0x9b, 0x140408a8b\nmov     rax, [rbx+3A38h]                                               ; +0xa2, 0x140408a92\nmov     rcx, [rax+340h]                                                ; +0xa9, 0x140408a99\ntest    rcx, rcx                                                       ; +0xb0, 0x140408aa0\njz      short loc_140408AB2                                            ; +0xb3, 0x140408aa3\nmov     rax, [rcx]                                                     ; +0xb5, 0x140408aa5\ncall    qword ptr [rax+158h]                                           ; +0xb8, 0x140408aa8\ntest    al, al                                                         ; +0xbe, 0x140408aae\njnz     short loc_140408AFD                                            ; +0xc0, 0x140408ab0\nmov     rax, [rdi]                                                     ; +0xc2, 0x140408ab2\nmov     rcx, [rax+348h]                                                ; +0xc5, 0x140408ab5\ntest    rcx, rcx                                                       ; +0xcc, 0x140408abc\njz      short loc_140408ACE                                            ; +0xcf, 0x140408abf\nmov     rax, [rcx]                                                     ; +0xd1, 0x140408ac1\ncall    qword ptr [rax+158h]                                           ; +0xd4, 0x140408ac4\ntest    al, al                                                         ; +0xda, 0x140408aca\njnz     short loc_140408AFD                                            ; +0xdc, 0x140408acc\nmov     rax, [rdi]                                                     ; +0xde, 0x140408ace\ncmp     dword ptr [rax+2F0h], 0FFFFFFFFh                               ; +0xe1, 0x140408ad1\nsetz    al                                                             ; +0xe8, 0x140408ad8\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xeb, 0x140408adb\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xf0, 0x140408ae0\nadd     rsp, 20h                                                       ; +0xf5, 0x140408ae5\npop     rdi                                                            ; +0xf9, 0x140408ae9\nretn                                                                   ; +0xfa, 0x140408aea\nmov     al, 1                                                          ; +0xfb, 0x140408aeb\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xfd, 0x140408aed\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x102, 0x140408af2\nadd     rsp, 20h                                                       ; +0x107, 0x140408af7\npop     rdi                                                            ; +0x10b, 0x140408afb\nretn                                                                   ; +0x10c, 0x140408afc\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x10d, 0x140408afd\nxor     al, al                                                         ; +0x112, 0x140408b02\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x114, 0x140408b04\nadd     rsp, 20h                                                       ; +0x119, 0x140408b09\npop     rdi                                                            ; +0x11d, 0x140408b0d\nretn                                                                   ; +0x11e, 0x140408b0e", "xrefs": ["LevelEditorLayer::checkAutoSave @ 0x140408cba", "LevelEditorLayer::checkAutoSave @ 0x140408e8f", "LevelEditorLayer::doAutoSave @ 0x140409206", "LevelEditorLayer::doAutoBackup @ 0x14040965e", "<???> @ 0x140925c1c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}