//
// cocos2d::CCLayer::keyDown from 0xd5c83c to 0xd5c878 (60 bytes)
//
// 135 xrefs:
// > FLAlertLayer::keyDown @ 0x69adb8
// > MenuLayer::keyDown @ 0x6eca9c
// > AchievementsLayer::keyDown @ 0x733070
// > LevelSearchLayer::keyDown @ 0x7e4c0c
// > LevelInfoLayer::keyDown @ 0x7ed078
// > EditLevelLayer::keyDown @ 0x7f1d98
// > LevelBrowserLayer::keyDown @ 0x7fcfc8
// > LevelSelectLayer::keyDown @ 0x8c8518
// > EndLevelLayer::keyDown @ 0x8fb20c
// > RetryLevelLayer::keyDown @ 0x918708
// > SetupObjectOptionsPopup::keyDown @ 0xac0ed4
// > SetupTriggerPopup::keyDown @ 0xb2507c
// > `non-virtual thunk to'cocos2d::CCLayer::keyDown @ 0xd5c87c
// > ??> @ 0x4c630
// > ??> @ 0x1411cc8
// > ??> @ 0x1412328
// > ??> @ 0x14128b8
// > ??> @ 0x1412ed8
// > ??> @ 0x1413498
// > ??> @ 0x14146c8
// > ??> @ 0x14158d8
// > ??> @ 0x1416568
// > ??> @ 0x1418198
// > ??> @ 0x1418768
// > ??> @ 0x1418e38
// > ??> @ 0x1419498
// > ??> @ 0x141ae18
// > ??> @ 0x141d558
// > ??> @ 0x141e1c8
// > ??> @ 0x141e858
// > ??> @ 0x141ee08
// > ??> @ 0x141f8a8
// > ??> @ 0x141fee8
// > ??> @ 0x1422748
// > ??> @ 0x1423088
// > ??> @ 0x1425038
// > ??> @ 0x14257a8
// > ??> @ 0x1427638
// > ??> @ 0x14288a8
// > ??> @ 0x142ae88
// > ??> @ 0x142b4e8
// > ??> @ 0x142ba78
// > ??> @ 0x142c008
// > ??> @ 0x142c598
// > ??> @ 0x142cb28
// > ??> @ 0x142d0b8
// > ??> @ 0x142d698
// > ??> @ 0x142dcd8
// > ??> @ 0x142e2b8
// > ??> @ 0x142e848
// > ??> @ 0x142edd8
// > ??> @ 0x142f3a8
// > ??> @ 0x142f958
// > ??> @ 0x142fee8
// > ??> @ 0x1430478
// > ??> @ 0x1430a08
// > ??> @ 0x1430f98
// > ??> @ 0x1431a28
// > ??> @ 0x1431fd8
// > ??> @ 0x14325d8
// > ??> @ 0x1432b68
// > ??> @ 0x14330f8
// > ??> @ 0x1435e08
// > ??> @ 0x1436678
// > ??> @ 0x1439768
// > ??> @ 0x1439db8
// > ??> @ 0x1441cf8
// > ??> @ 0x145a2e8
// > ??> @ 0x145ab58
// > ??> @ 0x145d2e8
// > ??> @ 0x145d8b8
// > ??> @ 0x145e8d8
// > ??> @ 0x145f1e8
// > ??> @ 0x145f778
// > ??> @ 0x14636f8
// > ??> @ 0x1463e38
// > ??> @ 0x1464d18
// > ??> @ 0x1465c28
// > ??> @ 0x1468808
// > ??> @ 0x1468db8
// > ??> @ 0x1469368
// > ??> @ 0x146a4d8
// > ??> @ 0x1472dc8
// > ??> @ 0x1473588
// > ??> @ 0x14756d8
// > ??> @ 0x14761f8
// > ??> @ 0x1476938
// > ??> @ 0x147c6c8
// > ??> @ 0x1484b98
// > ??> @ 0x148ede8
// > ??> @ 0x1491718
// > ??> @ 0x14936c8
// > ??> @ 0x1494478
// > ??> @ 0x14963a8
// > ??> @ 0x1499c98
// > ??> @ 0x149a2c8
// > ??> @ 0x149a858
// > ??> @ 0x149b1f8
// > ??> @ 0x14a3288
// > ??> @ 0x14ab1d8
// > ??> @ 0x14af468
// > ??> @ 0x14b09e8
// > ??> @ 0x14b6ff8
// > ??> @ 0x14c2578
// > ??> @ 0x14c2b28
// > ??> @ 0x14c3578
// > ??> @ 0x14d92c8
// > ??> @ 0x14dfea8
// > ??> @ 0x14e0508
// > ??> @ 0x14e0a98
// > ??> @ 0x14e1dc8
// > ??> @ 0x14e2358
// > ??> @ 0x14e28e8
// > ??> @ 0x14e2e98
// > ??> @ 0x14e4628
// > ??> @ 0x14fe5c8
// > ??> @ 0x1507b98
// > ??> @ 0x150a158
// > ??> @ 0x150a8d8
// > ??> @ 0x150b0a8
// > ??> @ 0x150b7b8
// > ??> @ 0x150bed8
// > ??> @ 0x150c5f8
// > ??> @ 0x150d358
// > ??> @ 0x150e038
// > ??> @ 0x150e738
// > ??> @ 0x150ee78
// > ??> @ 0x150f508
// > ??> @ 0x1510058
// > ??> @ 0x1519568
// > ??> @ 0x1519af8
// > ??> @ 0x151a178
// > ??> @ 0x151a848
// > ??> @ 0x151af88
// > ??> @ 0x15243a8
//
// 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:07:48 +0000
//
cocos2d::CCDirector *__fastcall cocos2d::CCLayer::keyDown(cocos2d::CCDirector *result, int a2)
{
__int64 v2; // x0
__int64 v3; // x0
if ( a2 == 27 || a2 == 1003 )
{
v2 = cocos2d::CCDirector::sharedDirector(result);
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 176LL))(v2);
return (cocos2d::CCDirector *)cocos2d::CCKeypadDispatcher::dispatchKeypadMSG(v3, 1);
}
return result;
}