//
// DeathTrackerPopup::onPrevSession from 0x77519c to 0x7751dc (64 bytes)
//
// 1 xrefs:
// > DeathTrackerPopup::keyDown @ 0x77522c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:59:19 +0000
//
char **__fastcall DeathTrackerPopup::onPrevSession(DeathTrackerPopup *this, cocos2d::CCObject *a2)
{
int v2; // r2
int v3; // r3
int v4; // r1
v2 = *((_DWORD *)this + 145);
v3 = *((_DWORD *)this + 146);
if ( *((_BYTE *)this + 564) )
{
if ( v2 != v3 )
{
*((_BYTE *)this + 564) = 0;
*((_DWORD *)this + 142) = 0;
}
}
else
{
v4 = *((_DWORD *)this + 142);
if ( v4 >= 954437177 * ((v3 - v2) >> 2) - 1 )
*((_BYTE *)this + 564) = 1;
else
*((_DWORD *)this + 142) = v4 + 1;
}
return DeathTrackerPopup::refreshView(this);
}