//
// NewsPopup::keyDown from 0x10095b3d0 to 0x10095b424 (84 bytes)
//
// 1 xrefs:
// > ??> @ 0x100bca2a8
//
// 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 12:38:43 +0000
//
void __fastcall NewsPopup::keyDown(__int64 a1, int a2, double a3, double a4, double a5, __m128i a6)
{
int v6; // esi
signed int v7; // esi
if ( a2 == 39 )
{
v7 = *(_DWORD *)(a1 + 704);
if ( v7 < (int)(-858993459 * ((*(_QWORD *)(a1 + 688) - *(_QWORD *)(a1 + 680)) >> 4) - 1) )
NewsPopup::rebuildPage(a1, v7 + 1, a3, a4, a5, a6);
}
else if ( a2 == 37 )
{
v6 = *(_DWORD *)(a1 + 704);
if ( v6 > 0 )
NewsPopup::rebuildPage(a1, v6 - 1, a3, a4, a5, a6);
}
else
{
FLAlertLayer::keyDown(a1, a2);
}
}