//
// RetryLevelLayer::keyDown from 0x54760c to 0x54764c (64 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'RetryLevelLayer::keyDown @ 0x547650
//
// 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:52:24 +0000
//
int __fastcall RetryLevelLayer::keyDown(RetryLevelLayer *a1, int a2)
{
bool v2; // zf
if ( a2 == 1001 )
return RetryLevelLayer::onReplay(a1, nullptr);
if ( a2 > 1001 )
{
if ( a2 != 1003 )
{
v2 = a2 == 1009;
LABEL_7:
if ( !v2 )
return cocos2d::CCLayer::keyDown(a1);
return RetryLevelLayer::onReplay(a1, nullptr);
}
}
else if ( a2 != 27 )
{
v2 = a2 == 32;
goto LABEL_7;
}
return RetryLevelLayer::onMenu(a1, nullptr);
}