//
// DeathTrackerPopup::keyDown from 0x14010e8d0 to 0x14010e8fb (43 bytes)
//
// 1 xrefs:
// > ??> @ 0x14072f5b0
//
// 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::keyDown(__int64 a1, int a2)
{
__int64 v2; // rax
__int64 v3; // rdx
int v4; // eax
__int64 v5; // rcx
if ( a2 == 37 )
{
DeathTrackerPopup::onPrevSession(a1 - 344, 0);
return;
}
if ( a2 != 39 )
{
FLAlertLayer::keyDown(a1, a2);
return;
}
v5 = a1 - 344;
if ( *(_BYTE *)(v5 + 732) )
{
v2 = *(_QWORD *)(v5 + 752);
if ( v2 != *(_QWORD *)(v5 + 760) )
{
*(_BYTE *)(v5 + 732) = 0;
v3 = (unsigned int)((*(_DWORD *)(v5 + 760) - (int)v2) / 80 - 1);
*(_DWORD *)(v5 + 736) = v3;
DeathTrackerPopup::refreshView(v5, v3);
return;
}
}
else
{
v4 = *(_DWORD *)(v5 + 736);
if ( v4 > 0 )
{
*(_DWORD *)(v5 + 736) = v4 - 1;
DeathTrackerPopup::refreshView(v5, 0);
return;
}
*(_BYTE *)(v5 + 732) = 1;
}
DeathTrackerPopup::refreshView(v5, 0);
}