//
// NewThreadPopup::keyDown from 0x1400f0510 to 0x1400f0593 (131 bytes)
//
// 2 xrefs:
// > ??> @ 0x14072a0c0
// > ??> @ 0x140915074
//
// 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:26:36 +0000
//
void __fastcall NewThreadPopup::keyDown(__int64 a1, int a2)
{
__int64 v4; // rax
__int64 v5; // rax
if ( a2 == 13
&& (v4 = *(_QWORD *)(a1 + 560)) != 0
&& *(_BYTE *)(v4 + 468)
&& (v5 = cocos2d::CCDirector::sharedDirector(a1),
!*(_BYTE *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 176LL))(v5) + 152)) )
{
NewThreadPopup::onSend(a1 - 344, 0);
}
else
{
FLAlertLayer::keyDown(a1, a2);
}
}