//
// MenuLayer::onCreator from 0x6eafe0 to 0x6eb038 (88 bytes)
//
// 4 xrefs:
// > MenuLayer::keyDown @ 0x6ecad0
// > ??> @ 0x42160
// > MenuLayer::init @ 0x6eb6d8
// > ??> @ 0x15412e0
//
// 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:51:45 +0000
//
MenuLayer *__fastcall MenuLayer::onCreator(MenuLayer *this, cocos2d::CCObject *a2)
{
GameManager *v2; // x0
cocos2d::CCDirector *v3; // x0
CreatorLayer *v4; // x19
cocos2d::CCTransitionFade *v5; // x0
cocos2d::CCScene *v6; // x1
cocos2d::CCScene *v7; // x0
if ( !*((_BYTE *)this + 432) )
{
v2 = (GameManager *)MenuLayer::willClose(this);
v3 = (cocos2d::CCDirector *)GameManager::sharedState(v2);
*((_BYTE *)v3 + 928) = 1;
v4 = (CreatorLayer *)cocos2d::CCDirector::sharedDirector(v3);
v5 = (cocos2d::CCTransitionFade *)CreatorLayer::scene(v4);
v7 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create(v5, 0.5, v6);
return (MenuLayer *)cocos2d::CCDirector::replaceScene(v4, v7);
}
return this;
}