//
// CreatorLayer::scene from 0x7dd928 to 0x7dd980 (88 bytes)
//
// 9 xrefs:
// > MenuLayer::onCreator @ 0x6eb018
// > GameManager::returnToLastScene @ 0x71e424
// > GameManager::returnToLastScene @ 0x71e5a8
// > GauntletSelectLayer::onBack @ 0xa71b98
// > SecretLayer2::onBack @ 0xa8a4c4
// > MapSelectLayer::onBack @ 0xac1684
// > MultiplayerLayer::onBack @ 0xaf1388
// > SecretRewardsLayer::onBack @ 0xb9a828
// > ??> @ 0xfbc20
//
// 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:54:24 +0000
//
AppDelegate *__fastcall CreatorLayer::scene(CreatorLayer *this)
{
AppDelegate *v1; // x19
CreatorLayer *v2; // x0
cocos2d::CCLayer *v3; // x20
char *v4; // x1
v1 = (AppDelegate *)cocos2d::CCScene::create(this);
v2 = (CreatorLayer *)AppDelegate::get(v1);
*((_QWORD *)v2 + 3) = v1;
v3 = CreatorLayer::create(v2);
(*(void (__fastcall **)(AppDelegate *, cocos2d::CCLayer *))(*(_QWORD *)v1 + 456LL))(v1, v3);
v4 = (char *)v3 + 408;
if ( !v3 )
v4 = nullptr;
*((_QWORD *)v1 + 40) = v4;
return v1;
}