//
// RetryLevelLayer::keyDown from 0x9186ec to 0x91872c (64 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'RetryLevelLayer::keyDown @ 0x918730
// > ??> @ 0xe9a10
// > ??> @ 0x1469948
//
// 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 12:57:20 +0000
//
__int64 __fastcall RetryLevelLayer::keyDown(RetryLevelLayer *a1, int a2)
{
if ( a2 == 1001 )
return RetryLevelLayer::onReplay(a1, nullptr);
if ( a2 > 1001 )
{
if ( a2 == 1003 )
return RetryLevelLayer::onMenu(a1, nullptr);
if ( a2 != 1009 )
return cocos2d::CCLayer::keyDown(a1);
return RetryLevelLayer::onReplay(a1, nullptr);
}
if ( a2 != 27 )
{
if ( a2 != 32 )
return cocos2d::CCLayer::keyDown(a1);
return RetryLevelLayer::onReplay(a1, nullptr);
}
return RetryLevelLayer::onMenu(a1, nullptr);
}