//
// GameManager::reloadAll from 0x1003bb5c0 to 0x1003bb664 (164 bytes)
//
// 1 xrefs:
// > VideoOptionsLayer::onApply @ 0x100114e38
//
// 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 11:03:59 +0000
//
__int64 __fastcall GameManager::reloadAll(__int64 a1, char a2, char a3, char a4, char a5)
{
__int64 v6; // x0
__int64 v7; // x20
_QWORD *v8; // x0
__int64 v9; // x20
float *v10; // x21
char v11; // w0
__int64 v12; // x1
__int64 v13; // x2
__int64 v14; // x3
__int64 v15; // x4
__int64 v16; // x5
__int64 v17; // x6
__int64 v18; // x7
__int64 v19; // x1
*(_BYTE *)(a1 + 416) = a2;
*(_BYTE *)(a1 + 417) = a3;
*(_BYTE *)(a1 + 418) = a4;
*(_BYTE *)(a1 + 419) = a5;
*(_BYTE *)(a1 + 420) = 1;
v6 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::popToRootScene(v6);
v7 = cocos2d::CCDirector::sharedDirector();
v8 = cocos2d::CCScene::create();
cocos2d::CCDirector::replaceScene(v7, v8);
v9 = *(_QWORD *)(a1 + 264);
v10 = cocos2d::CCDelayTime::create(0.0);
v11 = (unsigned __int8)cocos2d::CCCallFunc::create(a1, (__int64)GameManager::reloadAllStep2, 0);
v19 = sub_10021D420((__int64)v10, v12, v13, v14, v15, v16, v17, v18, v11);
return cocos2d::CCActionManager::addAction(v9, v19, a1, 0);
}