{"type": "func", "start": 4298687520, "end": 4298687694, "name": "GameManager::reloadAll", "pseudocode": "// \n// GameManager::reloadAll from 0x10038c420 to 0x10038c4ce (174 bytes)\n// \n// 2 xrefs:\n// > VideoOptionsLayer::onApply @ 0x1007a059b\n// > GraphicsReloadLayer::performReload @ 0x1007a5309\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 __fastcall GameManager::reloadAll(GameManager *a1, bool a2, bool a3, bool a4, bool a5, bool a6)\n{\n  __m128i inserted; // xmm0\n  __m128i v7; // xmm0\n  cocos2d::CCDirector *v8; // rax\n  cocos2d::CCDirector *v9; // r14\n  cocos2d::CCScene *v10; // rax\n  cocos2d::CCActionManager *m_pActionManager; // r14\n  unsigned int v12; // r15d\n  unsigned int v13; // eax\n  int v14; // ecx\n  int v15; // r8d\n  int v16; // r9d\n  cocos2d::CCAction *v17; // rax\n\n  inserted = _mm_insert_epi32(_mm_insert_epi32(_mm_insert_epi32(_mm_cvtsi32_si128(a2), a3, 1), a4, 2), a5, 3);\n  v7 = _mm_packus_epi32(inserted, inserted);\n  *(_DWORD *)&a1->m_switchModes = _mm_cvtsi128_si32(_mm_packus_epi16(v7, v7));\n  a1->m_reloadTextures = 1;\n  v8 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::popToRootScene(v8);\n  v9 = cocos2d::CCDirector::sharedDirector();\n  v10 = cocos2d::CCScene::create();\n  cocos2d::CCDirector::replaceScene(v9, v10);\n  m_pActionManager = a1->m_pActionManager;\n  v12 = (unsigned int)cocos2d::CCDelayTime::create(0.0);\n  v13 = (unsigned int)cocos2d::CCCallFunc::create(\n                        a1,\n                        (cocos2d::SEL_CallFunc)(unsigned __int64)GameManager::reloadAllStep2);\n  v17 = (cocos2d::CCAction *)sub_1003B5760(v12, v13, 0, v14, v15, v16);\n  cocos2d::CCActionManager::addAction(m_pActionManager, v17, a1, 0);\n}", "assembly": "; \n; GameManager::reloadAll from 0x10038c420 to 0x10038c4ce (174 bytes)\n; \n; 2 xrefs:\n; > VideoOptionsLayer::onApply @ 0x1007a059b\n; > GraphicsReloadLayer::performReload @ 0x1007a5309\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\npush    rbp                                                            ; +0x0, 0x10038c420\nmov     rbp, rsp                                                       ; +0x1, 0x10038c421\npush    r15                                                            ; +0x4, 0x10038c424\npush    r14                                                            ; +0x6, 0x10038c426\npush    rbx                                                            ; +0x8, 0x10038c428\npush    rax                                                            ; +0x9, 0x10038c429\nmov     rbx, rdi                                                       ; +0xa, 0x10038c42a\nmovd    xmm0, esi                                                      ; +0xd, 0x10038c42d\npinsrd  xmm0, edx, 1                                                   ; +0x11, 0x10038c431\npinsrd  xmm0, ecx, 2                                                   ; +0x17, 0x10038c437\npinsrd  xmm0, r8d, 3                                                   ; +0x1d, 0x10038c43d\npackusdw xmm0, xmm0                                                    ; +0x24, 0x10038c444\npackuswb xmm0, xmm0                                                    ; +0x29, 0x10038c449\nmovd    dword ptr [rdi+188h], xmm0                                     ; +0x2d, 0x10038c44d\nmov     byte ptr [rdi+18Ch], 1                                         ; +0x35, 0x10038c455\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x3c, 0x10038c45c\nmov     rdi, rax                                                       ; +0x41, 0x10038c461\ncall    cocos2d__CCDirector__popToRootScene                            ; +0x44, 0x10038c464\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x49, 0x10038c469\nmov     r14, rax                                                       ; +0x4e, 0x10038c46e\ncall    cocos2d__CCScene__create                                       ; +0x51, 0x10038c471\nmov     rdi, r14                                                       ; +0x56, 0x10038c476\nmov     rsi, rax                                                       ; +0x59, 0x10038c479\ncall    cocos2d__CCDirector__replaceScene                              ; +0x5c, 0x10038c47c\nmov     r14, [rbx+108h]                                                ; +0x61, 0x10038c481\npxor    xmm0, xmm0                                                     ; +0x68, 0x10038c488\ncall    cocos2d__CCDelayTime__create                                   ; +0x6c, 0x10038c48c\nmov     r15, rax                                                       ; +0x71, 0x10038c491\nlea     rsi, GameManager__reloadAllStep2                               ; +0x74, 0x10038c494\nmov     rdi, rbx                                                       ; +0x7b, 0x10038c49b\nxor     edx, edx                                                       ; +0x7e, 0x10038c49e\ncall    cocos2d__CCCallFunc__create                                    ; +0x80, 0x10038c4a0\nmov     rdi, r15                                                       ; +0x85, 0x10038c4a5\nmov     rsi, rax                                                       ; +0x88, 0x10038c4a8\nxor     edx, edx                                                       ; +0x8b, 0x10038c4ab\nxor     eax, eax                                                       ; +0x8d, 0x10038c4ad\ncall    sub_1003B5760                                                  ; +0x8f, 0x10038c4af\nmov     rdi, r14                                                       ; +0x94, 0x10038c4b4\nmov     rsi, rax                                                       ; +0x97, 0x10038c4b7\nmov     rdx, rbx                                                       ; +0x9a, 0x10038c4ba\nxor     ecx, ecx                                                       ; +0x9d, 0x10038c4bd\nadd     rsp, 8                                                         ; +0x9f, 0x10038c4bf\npop     rbx                                                            ; +0xa3, 0x10038c4c3\npop     r14                                                            ; +0xa4, 0x10038c4c4\npop     r15                                                            ; +0xa6, 0x10038c4c6\npop     rbp                                                            ; +0xa8, 0x10038c4c8\njmp     cocos2d__CCActionManager__addAction                            ; +0xa9, 0x10038c4c9", "xrefs": ["VideoOptionsLayer::onApply @ 0x1007a059b", "GraphicsReloadLayer::performReload @ 0x1007a5309"], "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"}