//
// RetryLevelLayer::keyDown from 0x140561660 to 0x1405616a7 (71 bytes)
//
// 1 xrefs:
// > ??> @ 0x1407daf68
//
// 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:34:15 +0000
//
__int64 __fastcall RetryLevelLayer::keyDown(__int64 a1, int a2)
{
__int64 v2; // r8
v2 = (unsigned int)(a2 - 27);
if ( a2 != 27 )
{
if ( a2 == 32 || a2 == 1001 )
return RetryLevelLayer::onReplay(a1 - 344);
v2 = (unsigned int)(a2 - 1003);
if ( a2 != 1003 )
{
if ( a2 != 1009 )
return cocos2d::CCLayer::keyDown(a1);
return RetryLevelLayer::onReplay(a1 - 344);
}
}
return RetryLevelLayer::onMenu(a1 - 344, 0, v2);
}