{"type": "func", "start": 4298599920, "end": 4298600079, "name": "GameManager::switchScreenMode", "pseudocode": "// \n// GameManager::switchScreenMode from 0x100376df0 to 0x100376e8f (159 bytes)\n// \n// 1 xrefs:\n// > GraphicsReloadLayer::performReload @ 0x1008883d2\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:29:04 +0000\n// \n\n__int64 __fastcall GameManager::switchScreenMode(__int64 a1, __int64 a2, char a3, char a4)\n{\n  __int64 v5; // rdi\n  __int64 v6; // r14\n  _BYTE *v7; // rax\n  __int64 v8; // r14\n  int v9; // r15d\n  int v10; // eax\n  int v11; // ecx\n  int v12; // r8d\n  int v13; // r9d\n  __int64 v14; // rax\n\n  *(_BYTE *)(a1 + 416) = 1;\n  *(_BYTE *)(a1 + 417) = a2;\n  *(_BYTE *)(a1 + 418) = a3;\n  *(_BYTE *)(a1 + 419) = a4;\n  *(_BYTE *)(a1 + 420) = 1;\n  v5 = cocos2d::CCDirector::sharedDirector(a1, a2);\n  cocos2d::CCDirector::popToRootScene(v5);\n  v6 = cocos2d::CCDirector::sharedDirector(v5, a2);\n  v7 = cocos2d::CCScene::create();\n  cocos2d::CCDirector::replaceScene(v6, v7);\n  v8 = *(_QWORD *)(a1 + 264);\n  v9 = cocos2d::CCDelayTime::create(0.0);\n  v10 = cocos2d::CCCallFunc::create(a1, GameManager::reloadAllStep2, 0);\n  v14 = sub_10039EB60(v9, v10, 0, v11, v12, v13);\n  return cocos2d::CCActionManager::addAction(v8, v14, a1, 0);\n}", "assembly": "; \n; GameManager::switchScreenMode from 0x100376df0 to 0x100376e8f (159 bytes)\n; \n; 1 xrefs:\n; > GraphicsReloadLayer::performReload @ 0x1008883d2\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:29:04 +0000\n; \npush    rbp                                                            ; +0x0, 0x100376df0\nmov     rbp, rsp                                                       ; +0x1, 0x100376df1\npush    r15                                                            ; +0x4, 0x100376df4\npush    r14                                                            ; +0x6, 0x100376df6\npush    rbx                                                            ; +0x8, 0x100376df8\npush    rax                                                            ; +0x9, 0x100376df9\nmov     rbx, rdi                                                       ; +0xa, 0x100376dfa\nmov     byte ptr [rdi+1A0h], 1                                         ; +0xd, 0x100376dfd\nmov     [rdi+1A1h], sil                                                ; +0x14, 0x100376e04\nmov     [rdi+1A2h], dl                                                 ; +0x1b, 0x100376e0b\nmov     [rdi+1A3h], cl                                                 ; +0x21, 0x100376e11\nmov     byte ptr [rdi+1A4h], 1                                         ; +0x27, 0x100376e17\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x2e, 0x100376e1e\nmov     rdi, rax                                                       ; +0x33, 0x100376e23\ncall    cocos2d__CCDirector__popToRootScene                            ; +0x36, 0x100376e26\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x3b, 0x100376e2b\nmov     r14, rax                                                       ; +0x40, 0x100376e30\ncall    cocos2d__CCScene__create                                       ; +0x43, 0x100376e33\nmov     rdi, r14                                                       ; +0x48, 0x100376e38\nmov     rsi, rax                                                       ; +0x4b, 0x100376e3b\ncall    cocos2d__CCDirector__replaceScene                              ; +0x4e, 0x100376e3e\nmov     r14, [rbx+108h]                                                ; +0x53, 0x100376e43\nxorps   xmm0, xmm0                                                     ; +0x5a, 0x100376e4a\ncall    cocos2d__CCDelayTime__create                                   ; +0x5d, 0x100376e4d\nmov     r15, rax                                                       ; +0x62, 0x100376e52\nlea     rsi, GameManager__reloadAllStep2                               ; +0x65, 0x100376e55\nmov     rdi, rbx                                                       ; +0x6c, 0x100376e5c\nxor     edx, edx                                                       ; +0x6f, 0x100376e5f\ncall    cocos2d__CCCallFunc__create                                    ; +0x71, 0x100376e61\nmov     rdi, r15                                                       ; +0x76, 0x100376e66\nmov     rsi, rax                                                       ; +0x79, 0x100376e69\nxor     edx, edx                                                       ; +0x7c, 0x100376e6c\nxor     eax, eax                                                       ; +0x7e, 0x100376e6e\ncall    sub_10039EB60                                                  ; +0x80, 0x100376e70\nmov     rdi, r14                                                       ; +0x85, 0x100376e75\nmov     rsi, rax                                                       ; +0x88, 0x100376e78\nmov     rdx, rbx                                                       ; +0x8b, 0x100376e7b\nxor     ecx, ecx                                                       ; +0x8e, 0x100376e7e\nadd     rsp, 8                                                         ; +0x90, 0x100376e80\npop     rbx                                                            ; +0x94, 0x100376e84\npop     r14                                                            ; +0x95, 0x100376e85\npop     r15                                                            ; +0x97, 0x100376e87\npop     rbp                                                            ; +0x99, 0x100376e89\njmp     cocos2d__CCActionManager__addAction                            ; +0x9a, 0x100376e8a", "xrefs": ["GraphicsReloadLayer::performReload @ 0x1008883d2"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}