{"type": "func", "start": 5371357504, "end": 5371357656, "name": "GameManager::saveFinished", "pseudocode": "// \n// GameManager::saveFinished from 0x140286940 to 0x1402869d8 (152 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x14075e168\n// > <???> @ 0x14091d0fc\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\nvoid __fastcall GameManager::saveFinished(__int64 a1, char a2)\n{\n  __int64 *v3; // rdi\n  __int64 v4; // rbx\n  __int64 v5; // rsi\n  void *v6; // [rsp+30h] [rbp+8h]\n\n  if ( a2 )\n  {\n    if ( !*(_QWORD *)&qword_14090BFB0 )\n    {\n      v6 = operator new(0x690u);\n      *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v6);\n      (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n    }\n    v3 = (__int64 *)(a1 + 360);\n    GameLevelManager::prunePlatformerJournalKeys(a1, v3);\n  }\n  else\n  {\n    v3 = (__int64 *)(a1 + 360);\n  }\n  v4 = *v3;\n  v5 = v3[1];\n  if ( *v3 != v5 )\n  {\n    do\n    {\n      sub_14003D310(v4);\n      v4 += 40;\n    }\n    while ( v4 != v5 );\n    v3[1] = *v3;\n  }\n}", "assembly": "; \n; GameManager::saveFinished from 0x140286940 to 0x1402869d8 (152 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x14075e168\n; > <???> @ 0x14091d0fc\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, 0x140286940\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x140286945\npush    rdi                                                            ; +0xa, 0x14028694a\nsub     rsp, 20h                                                       ; +0xb, 0x14028694b\nmov     rdi, rcx                                                       ; +0xf, 0x14028694f\ntest    dl, dl                                                         ; +0x12, 0x140286952\njz      short loc_14028699C                                            ; +0x14, 0x140286954\ncmp     cs:qword_14090BFB0, 0                                          ; +0x16, 0x140286956\njnz     short loc_14028698B                                            ; +0x1e, 0x14028695e\nmov     ecx, 690h; Size                                                ; +0x20, 0x140286960\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x25, 0x140286965\nmov     [rsp+28h+arg_0], rax                                           ; +0x2a, 0x14028696a\nmov     rcx, rax                                                       ; +0x2f, 0x14028696f\ncall    GameLevelManager__GameLevelManager                             ; +0x32, 0x140286972\nnop                                                                    ; +0x37, 0x140286977\nmov     cs:qword_14090BFB0, rax                                        ; +0x38, 0x140286978\nmov     rcx, [rax]                                                     ; +0x3f, 0x14028697f\nmov     rdx, [rcx+48h]                                                 ; +0x42, 0x140286982\nmov     rcx, rax                                                       ; +0x46, 0x140286986\ncall    rdx                                                            ; +0x49, 0x140286989\nadd     rdi, 168h                                                      ; +0x4b, 0x14028698b\nmov     rdx, rdi                                                       ; +0x52, 0x140286992\ncall    GameLevelManager__prunePlatformerJournalKeys                   ; +0x55, 0x140286995\njmp     short loc_1402869A3                                            ; +0x5a, 0x14028699a\nadd     rdi, 168h                                                      ; +0x5c, 0x14028699c\nmov     rbx, [rdi]                                                     ; +0x63, 0x1402869a3\nmov     rsi, [rdi+8]                                                   ; +0x66, 0x1402869a6\ncmp     rbx, rsi                                                       ; +0x6a, 0x1402869aa\njz      short loc_1402869C8                                            ; +0x6d, 0x1402869ad\nnop                                                                    ; +0x6f, 0x1402869af\nmov     rcx, rbx                                                       ; +0x70, 0x1402869b0\ncall    sub_14003D310                                                  ; +0x73, 0x1402869b3\nadd     rbx, 28h ; '('                                                 ; +0x78, 0x1402869b8\ncmp     rbx, rsi                                                       ; +0x7c, 0x1402869bc\njnz     short loc_1402869B0                                            ; +0x7f, 0x1402869bf\nmov     rax, [rdi]                                                     ; +0x81, 0x1402869c1\nmov     [rdi+8], rax                                                   ; +0x84, 0x1402869c4\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x88, 0x1402869c8\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x8d, 0x1402869cd\nadd     rsp, 20h                                                       ; +0x92, 0x1402869d2\npop     rdi                                                            ; +0x96, 0x1402869d6\nretn                                                                   ; +0x97, 0x1402869d7", "xrefs": ["<???> @ 0x14075e168", "<???> @ 0x14091d0fc"], "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"}