{"type": "func", "start": 5370323984, "end": 5370324153, "name": "GameManager::reloadAll", "pseudocode": "// \n// GameManager::reloadAll from 0x14018a410 to 0x14018a4b9 (169 bytes)\n// \n// 2 xrefs:\n// > GraphicsReloadLayer::performReload @ 0x14037c6a1\n// > <???> @ 0x1406cb6e8\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid GameManager::reloadAll(GameManager *a1, bool a2, bool a3, bool a4, bool a5, bool a6)\n{\n  cocos2d::CCDirector *v7; // rax\n  __int64 v8; // rcx\n  struct cocos2d::CCScene *v9; // rbx\n  __int64 v10; // rcx\n  cocos2d::CCDirector *v11; // rax\n  __int64 v12; // rbx\n  struct cocos2d::CCDelayTime *v13; // rax\n  struct cocos2d::CCSequence *v14; // rax\n\n  a1->m_fix = a5;\n  a1->m_switchModes = a2;\n  a1->m_toFullscreen = a3;\n  a1->m_reloading = a4;\n  a1->m_reloadTextures = 1;\n  v7 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(a1);\n  cocos2d::CCDirector::popToRootScene(v7);\n  v9 = (struct cocos2d::CCScene *)cocos2d::CCScene::create(v8);\n  v11 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v10);\n  cocos2d::CCDirector::replaceScene(v11, v9);\n  v12 = cocos2d::CCCallFunc::create(a1, GameManager::reloadAllStep2);\n  v13 = cocos2d::CCDelayTime::create(0.0);\n  v14 = cocos2d::CCSequence::create(v13, v12, 0);\n  cocos2d::CCActionManager::addAction((GameManager *)a1->m_pActionManager, v14, a1, 0, a5, a6);\n}", "assembly": "; \n; GameManager::reloadAll from 0x14018a410 to 0x14018a4b9 (169 bytes)\n; \n; 2 xrefs:\n; > GraphicsReloadLayer::performReload @ 0x14037c6a1\n; > <???> @ 0x1406cb6e8\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14018a410\npush    rdi                                                            ; +0x5, 0x14018a415\nsub     rsp, 20h                                                       ; +0x6, 0x14018a416\nmovzx   eax, [rsp+28h+arg_20]                                          ; +0xa, 0x14018a41a\nmov     rdi, rcx                                                       ; +0xf, 0x14018a41f\nmov     [rcx+193h], al                                                 ; +0x12, 0x14018a422\nmov     [rcx+190h], dl                                                 ; +0x18, 0x14018a428\nmov     [rcx+191h], r8b                                                ; +0x1e, 0x14018a42e\nmov     [rcx+192h], r9b                                                ; +0x25, 0x14018a435\nmov     byte ptr [rcx+194h], 1                                         ; +0x2c, 0x14018a43c\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x33, 0x14018a443\nmov     rcx, rax                                                       ; +0x39, 0x14018a449\ncall    cs:?popToRootScene@CCDirector@cocos2d@@QEAAXXZ; cocos2d::CCDirector::popToRootScene(void) ; +0x3c, 0x14018a44c\ncall    cs:?create@CCScene@cocos2d@@SAPEAV12@XZ; cocos2d::CCScene::create(void) ; +0x42, 0x14018a452\nmov     rbx, rax                                                       ; +0x48, 0x14018a458\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x4b, 0x14018a45b\nmov     rcx, rax                                                       ; +0x51, 0x14018a461\nmov     rdx, rbx                                                       ; +0x54, 0x14018a464\ncall    cs:?replaceScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::replaceScene(cocos2d::CCScene *) ; +0x57, 0x14018a467\nlea     rdx, GameManager__reloadAllStep2                               ; +0x5d, 0x14018a46d\nmov     rcx, rdi                                                       ; +0x64, 0x14018a474\ncall    cs:?create@CCCallFunc@cocos2d@@SAPEAV12@PEAVCCObject@2@P832@EAAXXZ@Z; cocos2d::CCCallFunc::create(cocos2d::CCObject *,void (cocos2d::CCObject::*)(void)) ; +0x67, 0x14018a477\nxorps   xmm0, xmm0                                                     ; +0x6d, 0x14018a47d\nmov     rbx, rax                                                       ; +0x70, 0x14018a480\ncall    cs:?create@CCDelayTime@cocos2d@@SAPEAV12@M@Z; cocos2d::CCDelayTime::create(float) ; +0x73, 0x14018a483\nxor     r8d, r8d                                                       ; +0x79, 0x14018a489\nmov     rdx, rbx                                                       ; +0x7c, 0x14018a48c\nmov     rcx, rax                                                       ; +0x7f, 0x14018a48f\ncall    cs:?create@CCSequence@cocos2d@@SAPEAV12@PEAVCCFiniteTimeAction@2@ZZ; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0x82, 0x14018a492\nmov     rcx, [rdi+108h]                                                ; +0x88, 0x14018a498\nxor     r9d, r9d                                                       ; +0x8f, 0x14018a49f\nmov     rdx, rax                                                       ; +0x92, 0x14018a4a2\nmov     r8, rdi                                                        ; +0x95, 0x14018a4a5\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x98, 0x14018a4a8\nadd     rsp, 20h                                                       ; +0x9d, 0x14018a4ad\npop     rdi                                                            ; +0xa1, 0x14018a4b1\njmp     cs:?addAction@CCActionManager@cocos2d@@QEAAXPEAVCCAction@2@PEAVCCNode@2@_N@Z; cocos2d::CCActionManager::addAction(cocos2d::CCAction *,cocos2d::CCNode *,bool) ; +0xa2, 0x14018a4b2", "xrefs": ["GraphicsReloadLayer::performReload @ 0x14037c6a1", "<???> @ 0x1406cb6e8"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}