//
// MenuLayer::keyDown from 0x100268294 to 0x100268358 (196 bytes)
//
// 2 xrefs:
// > sub_100268358 @ 0x10026835c
// > ??> @ 0x1007d1d30
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// local variable allocation has failed, the output may be wrong!
void __fastcall MenuLayer::keyDown(MenuLayer *a1, cocos2d::enumKeyCodes a2, double a3)
{
OptionsLayer *v4; // x20
if ( a2 <= (KEY_OEM102|KEY_Clear|0x300) )
{
if ( a2 != KEY_Enter && a2 != KEY_Space )
{
if ( a2 == CONTROLLER_Y )
{
MenuLayer::onCreator(a1, *(cocos2d::CCObject **)&a2);
return;
}
goto LABEL_11;
}
goto LABEL_9;
}
if ( a2 == CONTROLLER_X )
{
MenuLayer::onGarage(a1, *(cocos2d::CCObject **)&a2);
return;
}
if ( a2 != CONTROLLER_Down )
{
if ( a2 != CONTROLLER_Start )
{
LABEL_11:
cocos2d::CCLayer::keyDown(a1, a2, a3);
return;
}
LABEL_9:
MenuLayer::onPlay(a1, *(cocos2d::CCObject **)&a2);
return;
}
v4 = OptionsLayer::create();
((void (__fastcall *)(MenuLayer *, OptionsLayer *, __int64))a1->addChild_0)(a1, v4, 100);
((void (__fastcall *)(OptionsLayer *, _QWORD))v4->showLayer)(v4, 0);
}