//
// MenuLayer::scene from 0x1002663a4 to 0x100266444 (160 bytes)
//
// 10 xrefs:
// > CreatorLayer::onBack @ 0x1000b6af4
// > LoadingLayer::loadingFinished @ 0x1001d6e58
// > GJGarageLayer::onBack @ 0x1003044d8
// > GameManager::returnToLastScene @ 0x10031d618
// > GameManager::returnToLastScene @ 0x10031d6fc
// > GameManager::safePopScene @ 0x10031d838
// > GameManager::reloadMenu @ 0x10031d8f8
// > GameManager::reloadAllStep5 @ 0x10031dbc0
// > SecretLayer::onBack @ 0x1003bddd8
// > LevelSelectLayer::onBack @ 0x100402378
//
// 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
//
cocos2d::CCScene *__fastcall MenuLayer::scene(bool a1)
{
_BOOL4 v1; // w21
cocos2d::CCScene *v2; // x19
cocos2d::CCNode *v3; // x20
cocos2d::CCDelayTime *v4; // x21
char v5; // w0
__int64 v6; // x1
__int64 v7; // x2
__int64 v8; // x3
__int64 v9; // x4
__int64 v10; // x5
__int64 v11; // x6
__int64 v12; // x7
cocos2d::CCSequence *v13; // x0
cocos2d::SEL_CallFunc v15; // 0:x1.16
v1 = a1;
v2 = cocos2d::CCScene::create();
v2->m_eObjType = MenuLayerObjectType;
AppDelegate::get()->m_resourceRootPath.m_data.m_long.longStorage = (char *)v2;
v3 = (cocos2d::CCNode *)sub_100266444();
((void (__fastcall *)(cocos2d::CCScene *, cocos2d::CCNode *))v2->addChild)(v2, v3);
if ( v1 )
{
v4 = cocos2d::CCDelayTime::create(0.0);
v15.ptr = (void (*)(void))MenuLayer::onOptionsInstant;
v15.adj = 0;
v5 = (unsigned __int8)cocos2d::CCCallFunc::create(v3, v15);
v13 = sub_10018A494(v4, v6, v7, v8, v9, v10, v11, v12, v5);
cocos2d::CCNode::runAction(v3, v13);
}
return v2;
}