//
// SecretLayer2::scene from 0x1403e2160 to 0x1403e22d7 (375 bytes)
//
// 4 xrefs:
// > CreatorLayer::onSecretVault @ 0x14009e610
// > GameManager::returnToLastScene @ 0x14018a074
// > SecretLayer3::onBack @ 0x1403ef750
// > ??> @ 0x1406d7f1c
//
// 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
//
// Hidden C++ exception states: #wind=1
cocos2d::CCScene *SecretLayer2::scene()
{
__int64 v0; // rcx
cocos2d::CCScene *v1; // rdi
__int64 v2; // rcx
SecretLayer2 *v3; // rbx
v1 = (cocos2d::CCScene *)cocos2d::CCScene::create(v0);
*(_QWORD *)(cocos2d::CCApplication::sharedApplication(v2) + 224) = v1;
v3 = (SecretLayer2 *)operator new(0x208u);
cocos2d::CCLayer::CCLayer(v3);
v3->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (SecretLayer2_vtbl *)&SecretLayer2::`vftable';
v3->cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&SecretLayer2::`vftable';
v3->cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&SecretLayer2::`vftable';
v3->cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&SecretLayer2::`vftable';
v3->cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&SecretLayer2::`vftable';
v3->cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&SecretLayer2::`vftable';
v3->TextInputDelegate::__vftable = (TextInputDelegate_vtbl *)&SecretLayer2::`vftable';
v3->FLAlertLayerProtocol::__vftable = (FLAlertLayerProtocol_vtbl *)&SecretLayer2::`vftable';
v3->DialogDelegate::__vftable = (DialogDelegate_vtbl *)&SecretLayer2::`vftable';
*(_QWORD *)&v3->m_threadTag = -1;
*(_QWORD *)&v3->m_selectedThread = 0;
v3->m_basicMessageCount = 0;
v3->m_errorMessageIndex = -1;
v3->m_searchInput = nullptr;
v3->m_messageLabel = nullptr;
v3->m_messageThreads = nullptr;
v3->m_exiting = 0;
v3->m_doorDialogIndex = -1;
v3->m_secretLevelButton = nullptr;
v3->m_secretLevelLabels = nullptr;
v3->m_secretDoorButton = nullptr;
if ( SecretLayer2::init(v3) )
{
cocos2d::CCObject::autorelease(v3);
}
else
{
((void (__fastcall *)(SecretLayer2 *, __int64))v3->~SecretLayer2)(v3, 1);
v3 = nullptr;
}
v1->addChild_1(v1, v3);
return v1;
}