//
// MenuLayer::scene from 0x100303744 to 0x1003037e4 (160 bytes)
//
// 10 xrefs:
// > CreatorLayer::onBack @ 0x1000dc5dc
// > LoadingLayer::loadingFinished @ 0x10026f3bc
// > GJGarageLayer::onBack @ 0x1003a11e8
// > GameManager::returnToLastScene @ 0x1003bb2b4
// > GameManager::returnToLastScene @ 0x1003bb398
// > GameManager::safePopScene @ 0x1003bb4d4
// > sub_1003BB580 @ 0x1003bb59c
// > GameManager::reloadAllStep5 @ 0x1003bb870
// > sub_100464ABC @ 0x100464b08
// > sub_100482C34 @ 0x100482c5c
//
// 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 11:03:06 +0000
//
_DWORD *__fastcall MenuLayer::scene(int a1)
{
_DWORD *v2; // x19
__int64 v3; // x20
float *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
__int64 v13; // x0
v2 = cocos2d::CCScene::create();
v2[7] = 15;
*(_QWORD *)(AppDelegate::get(v2) + 24) = v2;
v3 = sub_1003037E4();
(*(void (__fastcall **)(_DWORD *, __int64))(*(_QWORD *)v2 + 456LL))(v2, v3);
if ( a1 )
{
v4 = cocos2d::CCDelayTime::create(0.0);
v5 = (unsigned __int8)cocos2d::CCCallFunc::create(v3, (__int64)MenuLayer::onOptionsInstant, 0);
v13 = sub_10021D420((__int64)v4, v6, v7, v8, v9, v10, v11, v12, v5);
cocos2d::CCNode::runAction(v3, v13);
}
return v2;
}