//
// InfoLayer::keyDown from 0x1403d4430 to 0x1403d4567 (311 bytes)
//
// 2 xrefs:
// > ??> @ 0x140785308
// > ??> @ 0x1409248d8
//
// 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:31:36 +0000
//
void __fastcall InfoLayer::keyDown(__int64 a1, int a2)
{
__int64 v4; // rcx
__int64 v5; // rax
__int64 v6; // rcx
__int64 v7; // rax
__int64 v8; // rax
cocos2d::CCArray *v9; // rcx
__int64 v10; // rax
__int64 v11; // rcx
__int64 v12; // rax
__int64 v13; // rcx
if ( InfoLayer::canBulkDelete(a1 - 344) && a2 == 65 )
{
v5 = cocos2d::CCDirector::sharedDirector(v4);
if ( *(_BYTE *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 176LL))(v5) + 153)
|| (v7 = cocos2d::CCDirector::sharedDirector(v6),
*(_BYTE *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 176LL))(v7) + 155)) )
{
v8 = *(_QWORD *)(a1 + 560);
if ( v8 )
{
v9 = *(cocos2d::CCArray **)(v8 + 432);
if ( v9 )
{
if ( cocos2d::CCArray::count(v9) )
{
InfoLayer::onBulkSelectAll(a1 - 344);
return;
}
}
}
}
}
else if ( a2 == 82 )
{
v10 = cocos2d::CCDirector::sharedDirector(v4);
if ( *(_BYTE *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 176LL))(v10) + 153)
|| (v12 = cocos2d::CCDirector::sharedDirector(v11),
*(_BYTE *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v12 + 176LL))(v12) + 155)) )
{
v13 = *(_QWORD *)(a1 + 512);
if ( v13 )
{
if ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v13 + 344LL))(v13) )
{
InfoLayer::onRefreshComments(a1 - 344);
return;
}
}
}
}
FLAlertLayer::keyDown(a1, a2);
}