{"type": "func", "start": 5369887248, "end": 5369887390, "name": "DeathStatsPopup::onClearLocal", "pseudocode": "// \n// DeathStatsPopup::onClearLocal from 0x14011fa10 to 0x14011fa9e (142 bytes)\n// \n// 2 xrefs:\n// > DeathStatsPopup::init @ 0x14011ed4d\n// > <???> @ 0x140916508\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:56 +0000\n// \n\n__int64 __fastcall DeathStatsPopup::onClearLocal(__int64 a1)\n{\n  __int64 result; // rax\n  __int64 v3; // r8\n  __int64 v4; // r9\n  __int64 v5; // rdx\n  _QWORD *v6; // rax\n  __int64 v7; // rcx\n\n  result = *(_QWORD *)(a1 + 1000);\n  if ( result && *(_QWORD *)(result + 2168) )\n  {\n    GJGameLevel::clearDeathTrackerData();\n    v5 = *(_QWORD *)(*(_QWORD *)(a1 + 1000) + 2168LL);\n    v6 = (_QWORD *)(v5 + 1944);\n    *(_QWORD *)(v5 + 1960) = 0;\n    if ( *(_QWORD *)(v5 + 1968) > 0xFu )\n      v6 = (_QWORD *)*v6;\n    *(_BYTE *)v6 = 0;\n    *(_BYTE *)(v5 + 1976) = 0;\n    result = LevelEditorLayer::rebuildDeathOverlay(*(_QWORD *)(a1 + 1000), v5, v3, v4);\n    v7 = *(_QWORD *)(a1 + 1024);\n    if ( v7 )\n      return (**(__int64 (__fastcall ***)(__int64, const char *))(v7 + 360))(v7 + 360, \"Local death data cleared.\");\n  }\n  return result;\n}", "assembly": "; \n; DeathStatsPopup::onClearLocal from 0x14011fa10 to 0x14011fa9e (142 bytes)\n; \n; 2 xrefs:\n; > DeathStatsPopup::init @ 0x14011ed4d\n; > <???> @ 0x140916508\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:56 +0000\n; \npush    rbx                                                            ; +0x0, 0x14011fa10\nsub     rsp, 20h                                                       ; +0x2, 0x14011fa12\nmov     rax, [rcx+3E8h]                                                ; +0x6, 0x14011fa16\nmov     rbx, rcx                                                       ; +0xd, 0x14011fa1d\ntest    rax, rax                                                       ; +0x10, 0x14011fa20\njz      short loc_14011FA98                                            ; +0x13, 0x14011fa23\nmov     rcx, [rax+878h]                                                ; +0x15, 0x14011fa25\ntest    rcx, rcx                                                       ; +0x1c, 0x14011fa2c\njz      short loc_14011FA98                                            ; +0x1f, 0x14011fa2f\ncall    GJGameLevel__clearDeathTrackerData                             ; +0x21, 0x14011fa31\nmov     rcx, [rbx+3E8h]                                                ; +0x26, 0x14011fa36\nmov     rdx, [rcx+878h]                                                ; +0x2d, 0x14011fa3d\nlea     rax, [rdx+798h]                                                ; +0x34, 0x14011fa44\nmov     qword ptr [rax+10h], 0                                         ; +0x3b, 0x14011fa4b\ncmp     qword ptr [rax+18h], 0Fh                                       ; +0x43, 0x14011fa53\njbe     short loc_14011FA5D                                            ; +0x48, 0x14011fa58\nmov     rax, [rax]                                                     ; +0x4a, 0x14011fa5a\nmov     byte ptr [rax], 0                                              ; +0x4d, 0x14011fa5d\nmov     byte ptr [rdx+7B8h], 0                                         ; +0x50, 0x14011fa60\nmov     rcx, [rbx+3E8h]                                                ; +0x57, 0x14011fa67\ncall    LevelEditorLayer__rebuildDeathOverlay                          ; +0x5e, 0x14011fa6e\nmov     rcx, [rbx+400h]                                                ; +0x63, 0x14011fa73\ntest    rcx, rcx                                                       ; +0x6a, 0x14011fa7a\njz      short loc_14011FA98                                            ; +0x6d, 0x14011fa7d\nadd     rcx, 168h                                                      ; +0x6f, 0x14011fa7f\nlea     rdx, aLocalDeathData; \"Local death data cleared.\"              ; +0x76, 0x14011fa86\nmov     rax, [rcx]                                                     ; +0x7d, 0x14011fa8d\nadd     rsp, 20h                                                       ; +0x80, 0x14011fa90\npop     rbx                                                            ; +0x84, 0x14011fa94\njmp     qword ptr [rax]                                                ; +0x85, 0x14011fa95\nadd     rsp, 20h                                                       ; +0x88, 0x14011fa98\npop     rbx                                                            ; +0x8c, 0x14011fa9c\nretn                                                                   ; +0x8d, 0x14011fa9d", "xrefs": ["DeathStatsPopup::init @ 0x14011ed4d", "<???> @ 0x140916508"], "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"}