//
// DeathStatsPopup::onClearLocal from 0x14011fa10 to 0x14011fa9e (142 bytes)
//
// 2 xrefs:
// > DeathStatsPopup::init @ 0x14011ed4d
// > ??> @ 0x140916508
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:26:56 +0000
//
__int64 __fastcall DeathStatsPopup::onClearLocal(__int64 a1)
{
__int64 result; // rax
__int64 v3; // r8
__int64 v4; // r9
__int64 v5; // rdx
_QWORD *v6; // rax
__int64 v7; // rcx
result = *(_QWORD *)(a1 + 1000);
if ( result && *(_QWORD *)(result + 2168) )
{
GJGameLevel::clearDeathTrackerData();
v5 = *(_QWORD *)(*(_QWORD *)(a1 + 1000) + 2168LL);
v6 = (_QWORD *)(v5 + 1944);
*(_QWORD *)(v5 + 1960) = 0;
if ( *(_QWORD *)(v5 + 1968) > 0xFu )
v6 = (_QWORD *)*v6;
*(_BYTE *)v6 = 0;
*(_BYTE *)(v5 + 1976) = 0;
result = LevelEditorLayer::rebuildDeathOverlay(*(_QWORD *)(a1 + 1000), v5, v3, v4);
v7 = *(_QWORD *)(a1 + 1024);
if ( v7 )
return (**(__int64 (__fastcall ***)(__int64, const char *))(v7 + 360))(v7 + 360, "Local death data cleared.");
}
return result;
}