//
// LevelAreaInnerLayer::onOnlineVault from 0x1402c84c0 to 0x1402c869f (479 bytes)
//
// 2 xrefs:
// > LevelAreaInnerLayer::init @ 0x1402c704f
// > ??> @ 0x1406d2bd0
//
// 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
void LevelAreaInnerLayer::onOnlineVault(LevelAreaInnerLayer *a1, cocos2d::CCObject *a2)
{
struct cocos2d::CCScene *v2; // rdi
__int64 v3; // rdx
__int64 v4; // rcx
char *v5; // rbx
bool (*v6)(SecretLayer5 *); // rdx
bool v7; // al
struct cocos2d::CCTransitionFade *v8; // rbx
__int64 v9; // rcx
cocos2d::CCDirector *v10; // rax
v2 = (struct cocos2d::CCScene *)cocos2d::CCScene::create(a1);
*(_QWORD *)(cocos2d::CCApplication::sharedApplication(v4, v3) + 224) = v2;
v5 = (char *)operator new(0x290u);
cocos2d::CCLayer::CCLayer((cocos2d::CCLayer *)v5);
*(_QWORD *)v5 = &SecretLayer5::`vftable';
*((_QWORD *)v5 + 40) = &SecretLayer5::`vftable';
*((_QWORD *)v5 + 41) = &SecretLayer5::`vftable';
*((_QWORD *)v5 + 42) = &SecretLayer5::`vftable';
*((_QWORD *)v5 + 43) = &SecretLayer5::`vftable';
*((_QWORD *)v5 + 44) = &SecretLayer5::`vftable';
*((_QWORD *)v5 + 51) = &SecretLayer5::`vftable';
*((_QWORD *)v5 + 52) = &SecretLayer5::`vftable';
*((_QWORD *)v5 + 53) = &SecretLayer5::`vftable';
*((_QWORD *)v5 + 54) = &SecretLayer5::`vftable';
*((_QWORD *)v5 + 55) = -1;
*((_QWORD *)v5 + 56) = 0;
*((_DWORD *)v5 + 114) = 0;
*((_DWORD *)v5 + 115) = -1;
*((_QWORD *)v5 + 58) = 0;
*((_QWORD *)v5 + 59) = 0;
v5[488] = 0;
*((_QWORD *)v5 + 63) = 0;
v5[512] = 0;
*((_DWORD *)v5 + 129) = 0;
*(_OWORD *)(v5 + 520) = 0;
*((_QWORD *)v5 + 67) = 0;
*((_QWORD *)v5 + 68) = 15;
v5[520] = 0;
v5[552] = 0;
*((_QWORD *)v5 + 75) = 0;
*((_QWORD *)v5 + 76) = 0;
*((_QWORD *)v5 + 77) = 0;
*((_DWORD *)v5 + 156) = -1;
v6 = *(bool (**)(SecretLayer5 *))(*(_QWORD *)v5 + 72LL);
if ( v6 == SecretLayer5::init )
v7 = SecretLayer5::init((SecretLayer5 *)v5);
else
v7 = v6((SecretLayer5 *)v5);
if ( v7 )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v5);
}
else
{
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v5 + 8LL))(v5, 1);
v5 = nullptr;
}
v2->addChild_1(v2, (cocos2d::CCNode *)v5);
v8 = cocos2d::CCTransitionFade::create(1.0, v2);
v10 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v9);
cocos2d::CCDirector::replaceScene(v10, v8);
}