//
// LoadingLayer::loadingFinished from 0x6ecb70 to 0x6ecbcc (92 bytes)
//
// 2 xrefs:
// > LoadingLayer::loadAssets @ 0x6edea4
// > ??> @ 0xdd308
//
// This function is hookable on this platform (idp: arm, 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:51:46 +0000
//
__int64 __fastcall LoadingLayer::loadingFinished(LoadingLayer *this)
{
cocos2d::CCDirector *v1; // x0
cocos2d::CCDirector *v2; // x19
cocos2d::CCScene *v3; // x1
v1 = (cocos2d::CCDirector *)*((unsigned __int8 *)this + 448);
if ( (_DWORD)v1 )
{
v2 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v1);
v3 = (cocos2d::CCScene *)MenuLayer::scene((MenuLayer *)((char *)&dword_0 + 1));
}
else
{
v2 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v1);
v3 = (cocos2d::CCScene *)MenuLayer::scene(nullptr);
}
return cocos2d::CCDirector::replaceScene(v2, v3);
}