//
// GJGameLevel::clearDeathTrackerData from 0x806398 to 0x8064a8 (272 bytes)
//
// 3 xrefs:
// > GameLevelManager::clearDeathDataInstances @ 0x813828
// > DeathStatsPopup::onClearLocal @ 0xca7570
// > ??> @ 0x47620
//
// 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 12:54:45 +0000
//
__int64 __fastcall GJGameLevel::clearDeathTrackerData(__int64 this)
{
char v1; // w2
char v2; // w2
char v3; // w2
char v4; // w2
char v5; // w1
if ( (*(_BYTE *)(this + 1544) & 1) != 0 )
{
**(_BYTE **)(this + 1560) = 0;
*(_QWORD *)(this + 1552) = 0;
if ( (*(_BYTE *)(this + 1568) & 1) != 0 )
goto LABEL_3;
}
else
{
v1 = *(_BYTE *)(this + 1568);
*(_BYTE *)(this + 1545) = 0;
*(_BYTE *)(this + 1544) = 0;
if ( (v1 & 1) != 0 )
{
LABEL_3:
**(_BYTE **)(this + 1584) = 0;
*(_QWORD *)(this + 1576) = 0;
if ( (*(_BYTE *)(this + 1592) & 1) != 0 )
goto LABEL_4;
goto LABEL_10;
}
}
v2 = *(_BYTE *)(this + 1592);
*(_BYTE *)(this + 1569) = 0;
*(_BYTE *)(this + 1568) = 0;
if ( (v2 & 1) != 0 )
{
LABEL_4:
**(_BYTE **)(this + 1608) = 0;
*(_QWORD *)(this + 1600) = 0;
if ( (*(_BYTE *)(this + 1616) & 1) != 0 )
goto LABEL_5;
goto LABEL_11;
}
LABEL_10:
v3 = *(_BYTE *)(this + 1616);
*(_BYTE *)(this + 1593) = 0;
*(_BYTE *)(this + 1592) = 0;
if ( (v3 & 1) != 0 )
{
LABEL_5:
**(_BYTE **)(this + 1632) = 0;
*(_QWORD *)(this + 1624) = 0;
if ( (*(_BYTE *)(this + 1664) & 1) != 0 )
goto LABEL_6;
LABEL_12:
v5 = *(_BYTE *)(this + 1688);
*(_BYTE *)(this + 1665) = 0;
*(_BYTE *)(this + 1664) = 0;
if ( (v5 & 1) == 0 )
goto LABEL_7;
goto LABEL_13;
}
LABEL_11:
v4 = *(_BYTE *)(this + 1664);
*(_BYTE *)(this + 1617) = 0;
*(_BYTE *)(this + 1616) = 0;
if ( (v4 & 1) == 0 )
goto LABEL_12;
LABEL_6:
**(_BYTE **)(this + 1680) = 0;
*(_QWORD *)(this + 1672) = 0;
if ( (*(_BYTE *)(this + 1688) & 1) == 0 )
{
LABEL_7:
*(_BYTE *)(this + 1689) = 0;
*(_BYTE *)(this + 1688) = 0;
*(_BYTE *)(this + 1712) = 0;
*(_DWORD *)(this + 1640) = 0;
*(_DWORD *)(this + 1644) = 0;
*(_DWORD *)(this + 1648) = 0;
*(_DWORD *)(this + 1652) = 0;
*(_DWORD *)(this + 1656) = 0;
*(_BYTE *)(this + 1744) = 0;
return this;
}
LABEL_13:
**(_BYTE **)(this + 1704) = 0;
*(_QWORD *)(this + 1696) = 0;
*(_BYTE *)(this + 1712) = 0;
*(_DWORD *)(this + 1640) = 0;
*(_DWORD *)(this + 1644) = 0;
*(_DWORD *)(this + 1648) = 0;
*(_DWORD *)(this + 1652) = 0;
*(_DWORD *)(this + 1656) = 0;
*(_BYTE *)(this + 1744) = 0;
return this;
}