//
// GameManager::reloadAllStep5 from 0x100377130 to 0x10037716d (61 bytes)
//
// 1 xrefs:
// > GameManager::reloadAllStep4 @ 0x1003770ef
//
// 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 12:29:04 +0000
//
__int64 __fastcall GameManager::reloadAllStep5(__int64 a1, __int64 a2)
{
char v2; // r14
__int64 v3; // rbx
__int64 v4; // rax
v2 = *(_BYTE *)(a1 + 420);
v3 = cocos2d::CCDirector::sharedDirector(a1, a2);
if ( v2 == 1 )
v4 = LoadingLayer::scene(1);
else
v4 = MenuLayer::scene(1);
return cocos2d::CCDirector::replaceScene(v3, v4);
}