//
// sub_1004C3990 from 0x1004c3990 to 0x1004c39d7 (71 bytes)
//
// 1 xrefs:
// > ??> @ 0x10094f470
//
// 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
//
void __fastcall sub_1004C3990(__int64 a1, cocos2d::CCObject *a2, double a3)
{
EndLevelLayer *v3; // rdi
v3 = (EndLevelLayer *)(a1 - 344);
if ( (int)a2 <= 1000 )
{
if ( (_DWORD)a2 != 27 )
{
if ( (_DWORD)a2 == 32 )
goto LABEL_5;
LABEL_8:
cocos2d::CCLayer::keyDown(v3, (cocos2d::enumKeyCodes)a2, a3);
return;
}
}
else
{
if ( (_DWORD)a2 == 1009 )
{
LABEL_5:
EndLevelLayer::onReplay(v3, a2);
return;
}
if ( (_DWORD)a2 != 1003 )
{
if ( (_DWORD)a2 == 1001 )
goto LABEL_5;
goto LABEL_8;
}
}
EndLevelLayer::onMenu(v3, a2);
}