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