//
// NewThreadPopup::keyDown from 0x7552dc to 0x755322 (70 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'NewThreadPopup::keyDown @ 0x755326
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:58:54 +0000
//
FLAlertLayer *__fastcall NewThreadPopup::keyDown(FLAlertLayer *a1, int a2)
{
int v4; // r3
int v5; // r0
int v6; // r0
if ( a2 == 13
&& (v4 = *((_DWORD *)a1 + 159)) != 0
&& *(_BYTE *)(v4 + 344)
&& (v5 = cocos2d::CCDirector::sharedDirector(a1),
v6 = (*(int (__fastcall **)(int))(*(_DWORD *)v5 + 96))(v5),
!*(_BYTE *)(v6 + 88)) )
{
return (FLAlertLayer *)NewThreadPopup::onSend((int)a1, (cocos2d::CCObject *)*(unsigned __int8 *)(v6 + 88));
}
else
{
return FLAlertLayer::keyDown(a1, a2);
}
}