//
// DeathStatsPopup::onClearFetched from 0xca75ac to 0xca7624 (120 bytes)
//
// 3 xrefs:
// > ??> @ 0x9fda8
// > DeathStatsPopup::init @ 0xca809c
// > ??> @ 0x1544708
//
// This function is hookable on this platform (idp: arm, 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 13:06:03 +0000
//
LevelEditorLayer **__fastcall DeathStatsPopup::onClearFetched(LevelEditorLayer **this, cocos2d::CCObject *a2)
{
__int64 v2; // x1
__int64 v3; // x1
char v4; // w2
DeathStatsPopup *v5; // x19
v2 = (__int64)*(this + 127);
if ( v2 )
{
v3 = *(_QWORD *)(v2 + 1936);
if ( v3 )
{
v4 = *(_BYTE *)(v3 + 1760);
*(_DWORD *)(v3 + 1752) = 0;
*(_DWORD *)(v3 + 1756) = 0;
if ( (v4 & 1) != 0 )
{
**(_BYTE **)(v3 + 1776) = 0;
*(_QWORD *)(v3 + 1768) = 0;
}
else
{
*(_BYTE *)(v3 + 1761) = 0;
*(_BYTE *)(v3 + 1760) = 0;
}
v5 = (DeathStatsPopup *)this;
LevelEditorLayer::rebuildDeathOverlay(*(this + 127));
return (LevelEditorLayer **)DeathStatsPopup::setStatus(v5, "Fetched death data cleared.");
}
}
return this;
}