//
// GameManager::reloadAllStep5 from 0x140287b90 to 0x140287bc8 (56 bytes)
//
// 2 xrefs:
// > GameManager::reloadAllStep4 @ 0x140287b34
// > ??> @ 0x14091d198
//
// 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:29:03 +0000
//
bool __fastcall GameManager::reloadAllStep5(__int64 a1)
{
bool v1; // zf
__int64 v2; // rax
__int64 v3; // rcx
struct cocos2d::CCScene *v4; // rbx
cocos2d::CCDirector *v5; // rax
v1 = *(_BYTE *)(a1 + 428) == 0;
LOBYTE(a1) = 1;
if ( v1 )
v2 = MenuLayer::scene(a1);
else
v2 = LoadingLayer::scene(a1);
v4 = (struct cocos2d::CCScene *)v2;
v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v3);
return cocos2d::CCDirector::replaceScene(v5, v4);
}