//
// GameManager::reloadAll from 0x1402877b0 to 0x140287866 (182 bytes)
//
// 3 xrefs:
// > GraphicsReloadLayer::performReload @ 0x1404d63db
// > ??> @ 0x14091d15c
// > ??> @ 0x14091d168
//
// 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:02 +0000
//
void __fastcall GameManager::reloadAll(__int64 a1, char a2, char a3, char a4, char a5)
{
cocos2d::CCDirector *v6; // rax
__int64 v7; // rdx
__int64 v8; // rcx
__int64 v9; // r8
__int64 v10; // r9
struct cocos2d::CCScene *v11; // rbx
__int64 v12; // rcx
cocos2d::CCDirector *v13; // rax
cocos2d::CCActionManager *v14; // rdi
__int64 v15; // rbx
struct cocos2d::CCFiniteTimeAction *v16; // rax
struct cocos2d::CCAction *v17; // rax
*(_BYTE *)(a1 + 427) = a5;
*(_BYTE *)(a1 + 424) = a2;
*(_BYTE *)(a1 + 425) = a3;
*(_BYTE *)(a1 + 426) = a4;
*(_BYTE *)(a1 + 428) = 1;
v6 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(a1);
cocos2d::CCDirector::popToRootScene(v6);
v11 = (struct cocos2d::CCScene *)cocos2d::CCScene::create(v8, v7, v9, v10);
v13 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v12);
cocos2d::CCDirector::replaceScene(v13, v11);
v14 = *(cocos2d::CCActionManager **)(a1 + 264);
v15 = cocos2d::CCCallFunc::create(a1, GameManager::reloadAllStep2);
v16 = cocos2d::CCDelayTime::create(0.0);
v17 = cocos2d::CCSequence::create(v16, v15, 0);
cocos2d::CCActionManager::addAction(v14, v17, (struct cocos2d::CCNode *)a1, 0);
}