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