{"type": "func", "start": 5371357344, "end": 5371357502, "name": "GameManager::didEncodeForSave", "pseudocode": "// \n// GameManager::didEncodeForSave from 0x1402868a0 to 0x14028693e (158 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x14075e160\n// > <???> @ 0x14091d0f0\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:29:02 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall GameManager::didEncodeForSave(__int64 a1)\n{\n  __int64 *v2; // rbx\n  __int64 *v3; // rdi\n  __int64 v4[5]; // [rsp+20h] [rbp-28h] BYREF\n  void *v5; // [rsp+50h] [rbp+8h]\n\n  if ( !*(_QWORD *)&qword_14090BFB0 )\n  {\n    v5 = operator new(0x690u);\n    *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v5);\n    (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n  }\n  v2 = GameLevelManager::collectPlatformerJournalKeys(a1, v4, 0);\n  v3 = (__int64 *)(a1 + 360);\n  if ( v3 != v2 )\n  {\n    sub_140274BC0(v3);\n    *v3 = *v2;\n    v3[1] = v2[1];\n    v3[2] = v2[2];\n    *v2 = 0;\n    v2[1] = 0;\n    v2[2] = 0;\n  }\n  sub_140274BC0(v4);\n}", "assembly": "; \n; GameManager::didEncodeForSave from 0x1402868a0 to 0x14028693e (158 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x14075e160\n; > <???> @ 0x14091d0f0\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:29:02 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1402868a0\npush    rdi                                                            ; +0x5, 0x1402868a5\nsub     rsp, 40h                                                       ; +0x6, 0x1402868a6\nmov     rdi, rcx                                                       ; +0xa, 0x1402868aa\ncmp     cs:qword_14090BFB0, 0                                          ; +0xd, 0x1402868ad\njnz     short loc_1402868E2                                            ; +0x15, 0x1402868b5\nmov     ecx, 690h; Size                                                ; +0x17, 0x1402868b7\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1c, 0x1402868bc\nmov     [rsp+48h+arg_0], rax                                           ; +0x21, 0x1402868c1\nmov     rcx, rax                                                       ; +0x26, 0x1402868c6\ncall    GameLevelManager__GameLevelManager                             ; +0x29, 0x1402868c9\nnop                                                                    ; +0x2e, 0x1402868ce\nmov     cs:qword_14090BFB0, rax                                        ; +0x2f, 0x1402868cf\nmov     rcx, [rax]                                                     ; +0x36, 0x1402868d6\nmov     rdx, [rcx+48h]                                                 ; +0x39, 0x1402868d9\nmov     rcx, rax                                                       ; +0x3d, 0x1402868dd\ncall    rdx                                                            ; +0x40, 0x1402868e0\nxor     r8d, r8d                                                       ; +0x42, 0x1402868e2\nlea     rdx, [rsp+48h+var_28]                                          ; +0x45, 0x1402868e5\ncall    GameLevelManager__collectPlatformerJournalKeys                 ; +0x4a, 0x1402868ea\nmov     rbx, rax                                                       ; +0x4f, 0x1402868ef\nadd     rdi, 168h                                                      ; +0x52, 0x1402868f2\ncmp     rdi, rax                                                       ; +0x59, 0x1402868f9\njz      short loc_140286929                                            ; +0x5c, 0x1402868fc\nmov     rcx, rdi                                                       ; +0x5e, 0x1402868fe\ncall    sub_140274BC0                                                  ; +0x61, 0x140286901\nmov     rcx, [rbx]                                                     ; +0x66, 0x140286906\nmov     [rdi], rcx                                                     ; +0x69, 0x140286909\nmov     rcx, [rbx+8]                                                   ; +0x6c, 0x14028690c\nmov     [rdi+8], rcx                                                   ; +0x70, 0x140286910\nmov     rcx, [rbx+10h]                                                 ; +0x74, 0x140286914\nmov     [rdi+10h], rcx                                                 ; +0x78, 0x140286918\nxor     eax, eax                                                       ; +0x7c, 0x14028691c\nmov     [rbx], rax                                                     ; +0x7e, 0x14028691e\nmov     [rbx+8], rax                                                   ; +0x81, 0x140286921\nmov     [rbx+10h], rax                                                 ; +0x85, 0x140286925\nlea     rcx, [rsp+48h+var_28]                                          ; +0x89, 0x140286929\ncall    sub_140274BC0                                                  ; +0x8e, 0x14028692e\nmov     rbx, [rsp+48h+arg_8]                                           ; +0x93, 0x140286933\nadd     rsp, 40h                                                       ; +0x98, 0x140286938\npop     rdi                                                            ; +0x9c, 0x14028693c\nretn                                                                   ; +0x9d, 0x14028693d", "xrefs": ["<???> @ 0x14075e160", "<???> @ 0x14091d0f0"], "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"}