//
// LoadingLayer::loadingFinished from 0x3fafc6 to 0x3faff8 (50 bytes)
//
// 1 xrefs:
// > LoadingLayer::loadAssets @ 0x3fc04e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:47:20 +0000
//
int __fastcall LoadingLayer::loadingFinished(LoadingLayer *this)
{
MenuLayer *v1; // r4
cocos2d::CCDirector *v2; // r5
bool v3; // r1
int v4; // r2
AppDelegate *v5; // r1
cocos2d::CCDirector *v6; // r0
cocos2d::CCDirector *v7; // r4
bool v8; // r1
int v9; // r2
v1 = (MenuLayer *)*((unsigned __int8 *)this + 344);
if ( *((_BYTE *)this + 344) )
{
v7 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(this);
v5 = MenuLayer::scene((MenuLayer *)((char *)&dword_0 + 1), v8, v9);
v6 = v7;
}
else
{
v2 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(this);
v5 = MenuLayer::scene(v1, v3, v4);
v6 = v2;
}
return cocos2d::CCDirector::replaceScene(v6, v5);
}