//
// DeathTrackerPopup::onPrevSession from 0x14010d780 to 0x14010d80c (140 bytes)
//
// 3 xrefs:
// > DeathTrackerPopup::keyDown @ 0x14010e8de
// > DeathTrackerPopup::init @ 0x140104c2e
// > ??> @ 0x140915ab8
//
// 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:48 +0000
//
void __fastcall DeathTrackerPopup::onPrevSession(__int64 a1, __int64 a2)
{
int v2; // r9d
if ( *(_BYTE *)(a1 + 732) )
{
if ( *(_QWORD *)(a1 + 752) != *(_QWORD *)(a1 + 760) )
{
*(_BYTE *)(a1 + 732) = 0;
*(_DWORD *)(a1 + 736) = 0;
DeathTrackerPopup::refreshView(a1, a2);
return;
}
}
else
{
v2 = *(_DWORD *)(a1 + 736);
a2 = (unsigned int)((*(_DWORD *)(a1 + 760) - *(_DWORD *)(a1 + 752)) / 80 - 1);
if ( v2 < (int)a2 )
{
*(_DWORD *)(a1 + 736) = v2 + 1;
DeathTrackerPopup::refreshView(a1, a2);
return;
}
*(_BYTE *)(a1 + 732) = 1;
}
DeathTrackerPopup::refreshView(a1, a2);
}