//
// MenuLayer::onCreator from 0x140335d30 to 0x140335dbd (141 bytes)
//
// 3 xrefs:
// > MenuLayer::keyDown @ 0x140336385
// > MenuLayer::init @ 0x140333f00
// > ??> @ 0x1406d51d4
//
// 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 MenuLayer::onCreator(MenuLayer *a1, cocos2d::CCObject *a2)
{
__int64 v2; // rax
struct cocos2d::CCScene *v3; // rax
struct cocos2d::CCTransitionFade *v4; // rbx
__int64 v5; // rcx
cocos2d::CCDirector *v6; // rax
void *v7; // [rsp+30h] [rbp+8h]
if ( !a1->m_showingTOS )
{
MenuLayer::willClose(a1);
v2 = qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v7 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v7);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v2 = qword_1406C2ED8;
}
*(_BYTE *)(v2 + 920) = 1;
v3 = CreatorLayer::scene();
v4 = cocos2d::CCTransitionFade::create(0.5, v3);
v6 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v5);
cocos2d::CCDirector::replaceScene(v6, v4);
}
}