{"type": "func", "start": 5371216096, "end": 5371216299, "name": "GJGameLevel::clearPlatformerSave", "pseudocode": "// \n// GJGameLevel::clearPlatformerSave from 0x1402640e0 to 0x1402641ab (203 bytes)\n// \n// 13 xrefs:\n// > EditLevelLayer::onPlay @ 0x14017b152\n// > EditLevelLayer::FLAlert_Clicked @ 0x14017c751\n// > sub_140274000 @ 0x1402740af\n// > sub_140274000 @ 0x14027411f\n// > sub_140274000 @ 0x14027418f\n// > sub_140274000 @ 0x1402741ff\n// > sub_140274000 @ 0x140274283\n// > GameLevelOptionsLayer::FLAlert_Clicked @ 0x1403aa9c1\n// > LevelEditorLayer::saveLevel @ 0x1403ff2e9\n// > LevelInfoLayer::onPlay @ 0x140421941\n// > LevelInfoLayer::FLAlert_Clicked @ 0x140426462\n// > PlayLayer::levelComplete @ 0x140506b00\n// > <???> @ 0x14091c850\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:28:49 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nvoid __fastcall GJGameLevel::clearPlatformerSave(__int64 a1)\n{\n  int v2; // eax\n  const void **v3; // rax\n  void *v4; // [rsp+20h] [rbp-38h]\n  _BYTE v5[32]; // [rsp+28h] [rbp-30h] BYREF\n\n  sub_1400405A0((void **)(a1 + 1632), &byte_1406ED6E0, 0);\n  sub_1400405A0((void **)(a1 + 1664), &byte_1406ED6E0, 0);\n  *(_QWORD *)(a1 + 1696) = 0;\n  if ( !*(_QWORD *)&qword_14090BFB0 )\n  {\n    v4 = operator new(0x690u);\n    *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v4);\n    (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n  }\n  v2 = *(_DWORD *)(a1 + 1220);\n  if ( v2 == 3 || v2 == 2 )\n  {\n    v3 = (const void **)sub_140222BE0((__int64)v5, a1);\n    sub_140223100(3, v3);\n    sub_14003D310((__int64)v5);\n  }\n}", "assembly": "; \n; GJGameLevel::clearPlatformerSave from 0x1402640e0 to 0x1402641ab (203 bytes)\n; \n; 13 xrefs:\n; > EditLevelLayer::onPlay @ 0x14017b152\n; > EditLevelLayer::FLAlert_Clicked @ 0x14017c751\n; > sub_140274000 @ 0x1402740af\n; > sub_140274000 @ 0x14027411f\n; > sub_140274000 @ 0x14027418f\n; > sub_140274000 @ 0x1402741ff\n; > sub_140274000 @ 0x140274283\n; > GameLevelOptionsLayer::FLAlert_Clicked @ 0x1403aa9c1\n; > LevelEditorLayer::saveLevel @ 0x1403ff2e9\n; > LevelInfoLayer::onPlay @ 0x140421941\n; > LevelInfoLayer::FLAlert_Clicked @ 0x140426462\n; > PlayLayer::levelComplete @ 0x140506b00\n; > <???> @ 0x14091c850\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:28:49 +0000\n; \npush    rbx                                                            ; +0x0, 0x1402640e0\nsub     rsp, 50h                                                       ; +0x2, 0x1402640e2\nmov     rax, cs:__security_cookie                                      ; +0x6, 0x1402640e6\nxor     rax, rsp                                                       ; +0xd, 0x1402640ed\nmov     [rsp+58h+var_10], rax                                          ; +0x10, 0x1402640f0\nmov     rbx, rcx                                                       ; +0x15, 0x1402640f5\nadd     rcx, 660h; void *                                              ; +0x18, 0x1402640f8\nxor     r8d, r8d; Size                                                 ; +0x1f, 0x1402640ff\nlea     rdx, byte_1406ED6E0; Src                                       ; +0x22, 0x140264102\ncall    sub_1400405A0                                                  ; +0x29, 0x140264109\nlea     rcx, [rbx+680h]; void *                                        ; +0x2e, 0x14026410e\nxor     r8d, r8d; Size                                                 ; +0x35, 0x140264115\nlea     rdx, byte_1406ED6E0; Src                                       ; +0x38, 0x140264118\ncall    sub_1400405A0                                                  ; +0x3f, 0x14026411f\nxor     eax, eax                                                       ; +0x44, 0x140264124\nmov     [rbx+6A0h], rax                                                ; +0x46, 0x140264126\ncmp     cs:qword_14090BFB0, rax                                        ; +0x4d, 0x14026412d\njnz     short loc_140264162                                            ; +0x54, 0x140264134\nmov     ecx, 690h; Size                                                ; +0x56, 0x140264136\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x5b, 0x14026413b\nmov     [rsp+58h+var_38], rax                                          ; +0x60, 0x140264140\nmov     rcx, rax                                                       ; +0x65, 0x140264145\ncall    GameLevelManager__GameLevelManager                             ; +0x68, 0x140264148\nnop                                                                    ; +0x6d, 0x14026414d\nmov     cs:qword_14090BFB0, rax                                        ; +0x6e, 0x14026414e\nmov     rcx, [rax]                                                     ; +0x75, 0x140264155\nmov     r8, [rcx+48h]                                                  ; +0x78, 0x140264158\nmov     rcx, rax                                                       ; +0x7c, 0x14026415c\ncall    r8                                                             ; +0x7f, 0x14026415f\nmov     eax, [rbx+4C4h]                                                ; +0x82, 0x140264162\ncmp     eax, 3                                                         ; +0x88, 0x140264168\njz      short loc_140264172                                            ; +0x8b, 0x14026416b\ncmp     eax, 2                                                         ; +0x8d, 0x14026416d\njnz     short loc_140264198                                            ; +0x90, 0x140264170\nmov     rdx, rbx                                                       ; +0x92, 0x140264172\nlea     rcx, [rsp+58h+var_30]                                          ; +0x95, 0x140264175\ncall    sub_140222BE0                                                  ; +0x9a, 0x14026417a\nnop                                                                    ; +0x9f, 0x14026417f\nmov     rdx, rax                                                       ; +0xa0, 0x140264180\nmov     ecx, 3                                                         ; +0xa3, 0x140264183\ncall    sub_140223100                                                  ; +0xa8, 0x140264188\nnop                                                                    ; +0xad, 0x14026418d\nlea     rcx, [rsp+58h+var_30]                                          ; +0xae, 0x14026418e\ncall    sub_14003D310                                                  ; +0xb3, 0x140264193\nmov     rcx, [rsp+58h+var_10]                                          ; +0xb8, 0x140264198\nxor     rcx, rsp; StackCookie                                          ; +0xbd, 0x14026419d\ncall    __security_check_cookie                                        ; +0xc0, 0x1402641a0\nadd     rsp, 50h                                                       ; +0xc5, 0x1402641a5\npop     rbx                                                            ; +0xc9, 0x1402641a9\nretn                                                                   ; +0xca, 0x1402641aa", "xrefs": ["EditLevelLayer::onPlay @ 0x14017b152", "EditLevelLayer::FLAlert_Clicked @ 0x14017c751", "sub_140274000 @ 0x1402740af", "sub_140274000 @ 0x14027411f", "sub_140274000 @ 0x14027418f", "sub_140274000 @ 0x1402741ff", "sub_140274000 @ 0x140274283", "GameLevelOptionsLayer::FLAlert_Clicked @ 0x1403aa9c1", "LevelEditorLayer::saveLevel @ 0x1403ff2e9", "LevelInfoLayer::onPlay @ 0x140421941", "LevelInfoLayer::FLAlert_Clicked @ 0x140426462", "PlayLayer::levelComplete @ 0x140506b00", "<???> @ 0x14091c850"], "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"}