//
// CreatorLayer::scene from 0x100281dc0 to 0x100281edc (284 bytes)
//
// 18 xrefs:
// > MapSelectLayer::onBack @ 0x100252655
// > MapSelectLayer::keyBackClicked @ 0x1002530b5
// > sub_1002530E0 @ 0x10025311a
// > GameManager::returnToLastScene @ 0x1003769e8
// > GameManager::returnToLastScene @ 0x100376bf4
// > MenuLayer::onCreator @ 0x10037c378
// > MultiplayerLayer::onBack @ 0x100384ae9
// > MultiplayerLayer::keyBackClicked @ 0x100384b29
// > sub_100384B50 @ 0x100384b74
// > SecretLayer2::onBack @ 0x1004973cf
// > SecretLayer2::keyBackClicked @ 0x10049c07f
// > sub_10049C0B0 @ 0x10049c0f7
// > GauntletSelectLayer::onBack @ 0x10059f1da
// > GauntletSelectLayer::keyBackClicked @ 0x1005a053a
// > sub_1005A0560 @ 0x1005a05b7
// > SecretRewardsLayer::onBack @ 0x10070ed55
// > SecretRewardsLayer::keyBackClicked @ 0x100716fc5
// > sub_100716FF0 @ 0x100717029
//
// This function is hookable on this platform (idp: pc, 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:27:43 +0000
//
_QWORD *__fastcall CreatorLayer::scene(__int64 a1, __int64 a2)
{
_QWORD *v2; // rbx
_QWORD *v3; // r14
char *v4; // rax
v2 = cocos2d::CCScene::create();
*(_QWORD *)(AppDelegate::get(a1, a2) + 72) = v2;
v3 = operator new(0x1E8u);
cocos2d::CCLayer::CCLayer(v3);
*v3 = off_100AFE290;
v3[40] = off_100AFE738;
v3[41] = &off_100AFE7A8;
v3[42] = off_100AFE7C0;
v3[43] = off_100AFE7E0;
v3[44] = off_100AFE808;
v3[51] = &off_100AFE838;
v3[52] = &off_100AFE850;
v3[53] = &off_100AFE868;
*((_OWORD *)v3 + 27) = 0;
*((_OWORD *)v3 + 28) = 0;
*((_OWORD *)v3 + 29) = 0;
v3[60] = 0xFFFFFFFFLL;
if ( (unsigned __int8)CreatorLayer::init(v3) )
{
cocos2d::CCObject::autorelease(v3);
}
else
{
(*(void (__fastcall **)(_QWORD *))(*v3 + 16LL))(v3);
v3 = nullptr;
}
(*(void (__fastcall **)(_QWORD *, _QWORD *))(*v2 + 456LL))(v2, v3);
v4 = (char *)(v3 + 51);
if ( !v3 )
v4 = nullptr;
v2[40] = v4;
return v2;
}