//
// DeathTrackerPopup::onNextSession from 0xcb3ad4 to 0xcb3b28 (84 bytes)
//
// 4 xrefs:
// > DeathTrackerPopup::keyDown @ 0xcb3b40
// > ??> @ 0x8c530
// > DeathTrackerPopup::init @ 0xcb44a4
// > ??> @ 0x1543b28
//
// 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:10 +0000
//
__int64 __fastcall DeathTrackerPopup::onNextSession(DeathTrackerPopup *this, cocos2d::CCObject *a2)
{
__int64 v2; // x2
__int64 v3; // x1
int v5; // w1
if ( *((_BYTE *)this + 732) )
{
v2 = *((_QWORD *)this + 94);
v3 = *((_QWORD *)this + 95);
if ( v2 != v3 )
{
*((_BYTE *)this + 732) = 0;
*((_DWORD *)this + 184) = ((v3 - v2) >> 6) - 1;
}
}
else
{
v5 = *((_DWORD *)this + 184);
if ( v5 <= 0 )
*((_BYTE *)this + 732) = 1;
else
*((_DWORD *)this + 184) = v5 - 1;
}
return DeathTrackerPopup::refreshView(this);
}