//
// InfoLayer::keyDown from 0x1008983f0 to 0x100898521 (305 bytes)
//
// 2 xrefs:
// > sub_100898530 @ 0x10089853c
// > ??> @ 0x100ba8078
//
// 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:37:07 +0000
//
void __fastcall InfoLayer::keyDown(__int64 a1, __int64 a2, double a3, __m128d a4)
{
__int64 v5; // rax
__int64 v6; // rax
__int64 v7; // rax
__int64 v8; // rax
__int64 v9; // rdi
__int64 v10; // rax
__int64 v11; // rax
__int64 v12; // rdi
if ( *(_QWORD *)(a1 + 704) && *(_BYTE *)(a1 + 880)
|| (v5 = GameManager::sharedState(), (_DWORD)a2 != 65)
|| *(_DWORD *)(v5 + 1032) - *(_DWORD *)(v5 + 1036) != 2 )
{
if ( (_DWORD)a2 == 82 )
{
v10 = cocos2d::CCDirector::sharedDirector();
if ( *(_BYTE *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 192LL))(v10) + 129)
|| (v11 = cocos2d::CCDirector::sharedDirector(),
*(_BYTE *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v11 + 192LL))(v11) + 131) == 1) )
{
v12 = *(_QWORD *)(a1 + 848);
if ( v12 )
{
if ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v12 + 352LL))(v12) )
{
InfoLayer::onRefreshComments((_DWORD *)a1, a3, a4);
return;
}
}
}
}
}
else
{
v6 = cocos2d::CCDirector::sharedDirector();
if ( *(_BYTE *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 192LL))(v6) + 129)
|| (v7 = cocos2d::CCDirector::sharedDirector(),
*(_BYTE *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 192LL))(v7) + 131) == 1) )
{
v8 = *(_QWORD *)(a1 + 896);
if ( v8 )
{
v9 = *(_QWORD *)(v8 + 432);
if ( v9 )
{
if ( (unsigned int)sub_1007FEF90(v9) )
{
sub_1008977C0((_QWORD *)a1, a2, a3);
return;
}
}
}
}
}
FLAlertLayer::keyDown(a1, a2);
}