//
// LevelSelectLayer::keyDown from 0x5140a0 to 0x514100 (96 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'LevelSelectLayer::keyDown @ 0x514104
//
// 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:51:35 +0000
//
cocos2d::CCArray **__fastcall LevelSelectLayer::keyDown(LevelSelectLayer *a1, int a2)
{
bool v2; // zf
if ( a2 == 39 )
return LevelSelectLayer::onNext(a1, nullptr);
if ( a2 <= 39 )
{
if ( a2 != 32 )
{
if ( a2 != 37 )
{
v2 = a2 == 13;
goto LABEL_9;
}
return LevelSelectLayer::onPrev(a1, nullptr);
}
return (cocos2d::CCArray **)LevelSelectLayer::onPlay((int)a1, nullptr);
}
if ( a2 == 1009 )
return (cocos2d::CCArray **)LevelSelectLayer::onPlay((int)a1, nullptr);
if ( a2 > 1009 )
{
if ( a2 == 1025 )
return LevelSelectLayer::onPrev(a1, nullptr);
if ( a2 != 1027 )
return (cocos2d::CCArray **)cocos2d::CCLayer::keyDown(a1);
return LevelSelectLayer::onNext(a1, nullptr);
}
v2 = a2 == 1001;
LABEL_9:
if ( v2 )
return (cocos2d::CCArray **)LevelSelectLayer::onPlay((int)a1, nullptr);
return (cocos2d::CCArray **)cocos2d::CCLayer::keyDown(a1);
}