//
// GameManager::reloadAllStep5 from 0x41303e to 0x41306c (46 bytes)
//
// 0 xrefs:
//
// 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:38 +0000
//
int __fastcall GameManager::reloadAllStep5(GameManager *this)
{
cocos2d::CCDirector *v1; // r4
bool v2; // r1
cocos2d::CCScene *v3; // r0
bool v4; // r1
int v5; // r2
if ( *((_BYTE *)this + 316) )
{
v1 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(this);
v3 = (cocos2d::CCScene *)LoadingLayer::scene((LoadingLayer *)((char *)&dword_0 + 1), v2);
}
else
{
v1 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(this);
v3 = MenuLayer::scene((MenuLayer *)((char *)&dword_0 + 1), v4, v5);
}
return cocos2d::CCDirector::replaceScene(v1, v3);
}