//
// InfoLayer::keyDown from 0x90db7c to 0x90dcdc (352 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'InfoLayer::keyDown @ 0x90dce0
// > ??> @ 0xc3a78
// > ??> @ 0x1466448
//
// 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 12:57:14 +0000
//
FLAlertLayer *__fastcall InfoLayer::keyDown(InfoLayer *a1, int a2)
{
_BOOL8 v3; // x0
int v4; // w1
__int64 v6; // x0
cocos2d::CCDirector *v7; // x0
__int64 v8; // x0
cocos2d::CCArray *v9; // x0
int v10; // w0
__int64 v11; // x0
cocos2d::CCDirector *v12; // x0
__int64 v13; // x0
char v14; // w0
__int64 v15; // x0
__int64 v16; // x0
__int64 v17; // x0
__int64 v18; // x0
v3 = InfoLayer::canBulkDelete((_BOOL8)a1);
v4 = a2;
if ( v3 && a2 == 65 )
{
v6 = cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)v3);
v7 = (cocos2d::CCDirector *)*(unsigned __int8 *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 192LL))(v6)
+ 129);
v4 = 65;
if ( (_DWORD)v7
|| (v15 = cocos2d::CCDirector::sharedDirector(v7),
v16 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v15 + 192LL))(v15),
v4 = 65,
*(_BYTE *)(v16 + 131)) )
{
v8 = *((_QWORD *)a1 + 112);
if ( v8 )
{
v9 = *(cocos2d::CCArray **)(v8 + 432);
if ( v9 )
{
v10 = cocos2d::CCArray::count(v9);
v4 = 65;
if ( v10 )
return (FLAlertLayer *)InfoLayer::onBulkSelectAll(a1, nullptr);
}
}
}
return FLAlertLayer::keyDown(a1, v4);
}
if ( a2 != 82 )
return FLAlertLayer::keyDown(a1, v4);
v11 = cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)v3);
v12 = (cocos2d::CCDirector *)*(unsigned __int8 *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v11 + 192LL))(v11)
+ 129);
v4 = 82;
if ( !(_DWORD)v12 )
{
v17 = cocos2d::CCDirector::sharedDirector(v12);
v18 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v17 + 192LL))(v17);
v4 = 82;
if ( !*(_BYTE *)(v18 + 131) )
return FLAlertLayer::keyDown(a1, v4);
}
v13 = *((_QWORD *)a1 + 106);
if ( !v13 )
return FLAlertLayer::keyDown(a1, v4);
v14 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v13 + 352LL))(v13);
v4 = 82;
if ( !v14 )
return FLAlertLayer::keyDown(a1, v4);
return (FLAlertLayer *)InfoLayer::onRefreshComments(a1, nullptr);
}