//
// NewThreadPopup::keyDown from 0xc7be38 to 0xc7beac (116 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'NewThreadPopup::keyDown @ 0xc7beb0
// > ??> @ 0xd0fd8
// > ??> @ 0x14efad8
//
// 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:36 +0000
//
FLAlertLayer *__fastcall NewThreadPopup::keyDown(NewThreadPopup *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 + 111)) != 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 *)NewThreadPopup::onSend(a1, nullptr);
}
else
{
return FLAlertLayer::keyDown(a1, a2);
}
}