//
// GameManager::reloadAll from 0x71801c to 0x7180bc (160 bytes)
//
// 4 xrefs:
// > GameManager::switchScreenMode @ 0x7180dc
// > VideoOptionsLayer::onApply @ 0x8f0ee0
// > GraphicsReloadLayer::performReload @ 0x8f3114
// > ??> @ 0x94990
//
// 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:16 +0000
//
__int64 __fastcall GameManager::reloadAll(GameManager *this, char a2, char a3, char a4, char a5)
{
cocos2d::CCDirector *v6; // x0
cocos2d::CCDirector *v7; // x0
cocos2d::CCScene *v8; // x20
cocos2d::CCScene *v9; // x0
cocos2d::CCDelayTime *v10; // x0
cocos2d::CCActionManager *v11; // x20
cocos2d::CCSequence *v12; // x21
cocos2d::CCFiniteTimeAction *v13; // x0
cocos2d::CCAction *v14; // x0
*((_BYTE *)this + 418) = a4;
*((_BYTE *)this + 419) = a5;
*((_BYTE *)this + 417) = a3;
*((_BYTE *)this + 416) = a2;
*((_BYTE *)this + 420) = (unsigned __int8)&dword_0 + 1;
v6 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)((char *)&dword_0 + 1));
v7 = (cocos2d::CCDirector *)cocos2d::CCDirector::popToRootScene(v6);
v8 = (cocos2d::CCScene *)cocos2d::CCDirector::sharedDirector(v7);
v9 = (cocos2d::CCScene *)cocos2d::CCScene::create(v8);
v10 = (cocos2d::CCDelayTime *)cocos2d::CCDirector::replaceScene(v8, v9);
v11 = *((cocos2d::CCActionManager **)this + 33);
v12 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(v10, 0.0);
v13 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(this, GameManager::reloadAllStep2, 0);
v14 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v12, v13, 0);
return cocos2d::CCActionManager::addAction(v11, v14, this, 0);
}