//
// MenuLayer::onCreator from 0x3f9a94 to 0x3f9acc (56 bytes)
//
// 1 xrefs:
// > MenuLayer::keyDown @ 0x3faf38
//
// 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:47:19 +0000
//
MenuLayer *__fastcall MenuLayer::onCreator(MenuLayer *this, cocos2d::CCObject *a2)
{
GameManager *v2; // r0
cocos2d::CCDirector *v3; // r0
CreatorLayer *v4; // r4
float v5; // r0
cocos2d::CCScene *v6; // r2
cocos2d::CCScene *v7; // r1
if ( !*((_BYTE *)this + 328) )
{
v2 = (GameManager *)MenuLayer::willClose(this);
v3 = (cocos2d::CCDirector *)GameManager::sharedState(v2);
*((_BYTE *)v3 + 728) = 1;
v4 = (CreatorLayer *)cocos2d::CCDirector::sharedDirector(v3);
v5 = COERCE_FLOAT(CreatorLayer::scene(v4));
v7 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create((cocos2d::CCTransitionFade *)0x3F000000, v5, v6);
return (MenuLayer *)cocos2d::CCDirector::replaceScene(v4, v7);
}
return this;
}