//
// ThreadViewPopup::keyDown from 0xc89d24 to 0xc89d98 (116 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'ThreadViewPopup::keyDown @ 0xc89d9c
// > ??> @ 0xa6d98
// > ??> @ 0x14ec978
//
// 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 13:05:43 +0000
//
FLAlertLayer *__fastcall ThreadViewPopup::keyDown(__int64 a1, int a2)
{
__int64 v4; // x0
cocos2d::CCDirector *v5; // x0
__int64 v6; // x0
__int64 v7; // x0
int v8; // [xsp+38h] [xbp+38h]
if ( a2 == 13
&& (v4 = *(_QWORD *)(a1 + 928)) != 0
&& (v5 = (cocos2d::CCDirector *)*(unsigned __int8 *)(v4 + 460), (_DWORD)v5)
&& (v8 = a2,
v6 = cocos2d::CCDirector::sharedDirector(v5),
v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 192LL))(v6),
a2 = v8,
!*(_BYTE *)(v7 + 128)) )
{
return (FLAlertLayer *)ThreadViewPopup::onSend((cocos2d::CCArray **)a1, nullptr);
}
else
{
return FLAlertLayer::keyDown((FLAlertLayer *)a1, a2);
}
}