{"type": "func", "start": 5369333184, "end": 5369333296, "name": "AppDelegate::applicationWillTerminate", "pseudocode": "// \n// AppDelegate::applicationWillTerminate from 0x1400985c0 to 0x140098630 (112 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140719fb8\n// > <???> @ 0x140912d34\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:26:03 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n_QWORD *__fastcall AppDelegate::applicationWillTerminate(__int64 a1)\n{\n  __int64 v1; // rcx\n  __int64 v2; // rax\n  void *v4; // [rsp+30h] [rbp+8h]\n\n  (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 56LL))(a1, 0);\n  v1 = qword_14090BFD0;\n  if ( !qword_14090BFD0 )\n  {\n    v4 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager(v4);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n    v1 = qword_14090BFD0;\n  }\n  GManager::waitForSave(v1, 2.0);\n  v2 = LocalLevelManager::sharedState();\n  return GManager::waitForSave(v2, 2.0);\n}", "assembly": "; \n; AppDelegate::applicationWillTerminate from 0x1400985c0 to 0x140098630 (112 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140719fb8\n; > <???> @ 0x140912d34\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:26:03 +0000\n; \nsub     rsp, 28h                                                       ; +0x0, 0x1400985c0\nmov     rax, [rcx]                                                     ; +0x4, 0x1400985c4\nxor     edx, edx                                                       ; +0x7, 0x1400985c7\ncall    qword ptr [rax+38h]                                            ; +0x9, 0x1400985c9\nmov     rcx, cs:qword_14090BFD0                                        ; +0xc, 0x1400985cc\ntest    rcx, rcx                                                       ; +0x13, 0x1400985d3\njnz     short loc_14009860A                                            ; +0x16, 0x1400985d6\nmov     ecx, 6E8h; Size                                                ; +0x18, 0x1400985d8\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1d, 0x1400985dd\nmov     [rsp+28h+arg_0], rax                                           ; +0x22, 0x1400985e2\nmov     rcx, rax                                                       ; +0x27, 0x1400985e7\ncall    GameManager__GameManager                                       ; +0x2a, 0x1400985ea\nnop                                                                    ; +0x2f, 0x1400985ef\nmov     cs:qword_14090BFD0, rax                                        ; +0x30, 0x1400985f0\nmov     rcx, [rax]                                                     ; +0x37, 0x1400985f7\nmov     rdx, [rcx+48h]                                                 ; +0x3a, 0x1400985fa\nmov     rcx, rax                                                       ; +0x3e, 0x1400985fe\ncall    rdx                                                            ; +0x41, 0x140098601\nmov     rcx, cs:qword_14090BFD0                                        ; +0x43, 0x140098603\nmovsd   xmm1, cs:dbl_1408352C0                                         ; +0x4a, 0x14009860a\ncall    GManager__waitForSave                                          ; +0x52, 0x140098612\ncall    LocalLevelManager__sharedState                                 ; +0x57, 0x140098617\nmov     rcx, rax                                                       ; +0x5c, 0x14009861c\nmovsd   xmm1, cs:dbl_1408352C0                                         ; +0x5f, 0x14009861f\nadd     rsp, 28h                                                       ; +0x67, 0x140098627\njmp     GManager__waitForSave                                          ; +0x6b, 0x14009862b", "xrefs": ["<???> @ 0x140719fb8", "<???> @ 0x140912d34"], "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"}