//
// GameManager::reloadAllStep5 from 0x7148c0 to 0x71491c (92 bytes)
//
// 3 xrefs:
// > ??> @ 0x70360
// > GameManager::reloadAllStep4 @ 0x7146f0
// > ??> @ 0x1542cd0
//
// 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:52:15 +0000
//
__int64 __fastcall GameManager::reloadAllStep5(GameManager *this)
{
cocos2d::CCDirector *v1; // x0
cocos2d::CCDirector *v2; // x19
cocos2d::CCScene *v3; // x1
v1 = (cocos2d::CCDirector *)*((unsigned __int8 *)this + 420);
if ( (_DWORD)v1 )
{
v2 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v1);
v3 = (cocos2d::CCScene *)LoadingLayer::scene((LoadingLayer *)((char *)&dword_0 + 1));
}
else
{
v2 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v1);
v3 = (cocos2d::CCScene *)MenuLayer::scene((MenuLayer *)((char *)&dword_0 + 1));
}
return cocos2d::CCDirector::replaceScene(v2, v3);
}