//
// SecretLayer::scene from 0x1005fa790 to 0x1005fa896 (262 bytes)
//
// 1 xrefs:
// > OptionsLayer::onSecretVault @ 0x10079af2f
//
// 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 SecretLayer::scene()
{
cocos2d::CCScene *v0; // rbx
char *v1; // r14
v0 = cocos2d::CCScene::create();
AppDelegate::get()->m_runningScene = v0;
v1 = (char *)operator new(0x1E8u);
cocos2d::CCLayer::CCLayer((__int64)v1);
*(_QWORD *)v1 = off_10097CDC8;
*((_QWORD *)v1 + 40) = off_10097D268;
*((_QWORD *)v1 + 41) = &off_10097D2D8;
*((_QWORD *)v1 + 42) = off_10097D2F0;
*((_QWORD *)v1 + 43) = off_10097D310;
*((_QWORD *)v1 + 44) = off_10097D330;
*((_QWORD *)v1 + 51) = off_10097D358;
*((_QWORD *)v1 + 52) = &off_10097D3A0;
*((_DWORD *)v1 + 106) = -1;
*((_QWORD *)v1 + 59) = 0;
*(_OWORD *)(v1 + 428) = 0;
*((_OWORD *)v1 + 28) = 0;
*((_DWORD *)v1 + 120) = -1;
if ( SecretLayer::init((SecretLayer *)v1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v1);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v1 + 16LL))(v1);
v1 = nullptr;
}
((void (__fastcall *)(cocos2d::CCScene *, char *))v0->addChild)(v0, v1);
return v0;
}