//
// EndLevelLayer::keyDown from 0x8fb1f0 to 0x8fb230 (64 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'EndLevelLayer::keyDown @ 0x8fb234
// > ??> @ 0x42c28
// > ??> @ 0x1462b18
//
// 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:03 +0000
//
__int64 __fastcall EndLevelLayer::keyDown(EndLevelLayer *a1, int a2)
{
if ( a2 == 1001 )
return EndLevelLayer::onReplay(a1, nullptr);
if ( a2 > 1001 )
{
if ( a2 == 1003 )
return EndLevelLayer::onMenu(a1, nullptr);
if ( a2 != 1009 )
return cocos2d::CCLayer::keyDown(a1);
return EndLevelLayer::onReplay(a1, nullptr);
}
if ( a2 != 27 )
{
if ( a2 != 32 )
return cocos2d::CCLayer::keyDown(a1);
return EndLevelLayer::onReplay(a1, nullptr);
}
return EndLevelLayer::onMenu(a1, nullptr);
}