{"type": "func", "start": 6442790640, "end": 6442790762, "name": "cocos2d::CCLayerMultiplex::switchTo", "pseudocode": "// \n// cocos2d::CCLayerMultiplex::switchTo from 0x180052ef0 to 0x180052f6a (122 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bc430\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 11:21:46 +0000\n// \n\nvoid __fastcall cocos2d::CCLayerMultiplex::switchTo(cocos2d::CCLayerMultiplex *this, unsigned int a2)\n{\n  cocos2d::CCArray *v4; // rbx\n  struct cocos2d::CCString *v5; // rax\n  __int64 v6; // r8\n  cocos2d::CCArray *v7; // rcx\n  cocos2d::CCArray *v8; // rbx\n  struct cocos2d::CCString *v9; // rax\n\n  cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 52));\n  v4 = *(cocos2d::CCArray **)this;\n  v5 = cocos2d::CCArray::stringAtIndex(*((cocos2d::CCArray **)this + 52), *((_DWORD *)this + 102));\n  LOBYTE(v6) = 1;\n  (*((void (__fastcall **)(cocos2d::CCLayerMultiplex *, struct cocos2d::CCString *, __int64))v4 + 67))(this, v5, v6);\n  v7 = *((cocos2d::CCArray **)this + 52);\n  v8 = *(cocos2d::CCArray **)this;\n  *((_DWORD *)this + 102) = a2;\n  v9 = cocos2d::CCArray::stringAtIndex(v7, a2);\n  (*((void (__fastcall **)(cocos2d::CCLayerMultiplex *, struct cocos2d::CCString *))v8 + 58))(this, v9);\n}", "assembly": "; \n; cocos2d::CCLayerMultiplex::switchTo from 0x180052ef0 to 0x180052f6a (122 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bc430\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 11:21:46 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180052ef0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180052ef5\npush    rdi                                                            ; +0xa, 0x180052efa\nsub     rsp, 20h                                                       ; +0xb, 0x180052efb\nmov     rsi, rcx                                                       ; +0xf, 0x180052eff\nmov     edi, edx                                                       ; +0x12, 0x180052f02\nmov     rcx, [rcx+1A0h]; this                                          ; +0x14, 0x180052f04\ncall    ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1b, 0x180052f0b\nmov     edx, [rsi+198h]; unsigned int                                  ; +0x20, 0x180052f10\nmov     rcx, [rsi+1A0h]; this                                          ; +0x26, 0x180052f16\nmov     rbx, [rsi]                                                     ; +0x2d, 0x180052f1d\ncall    ?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0x30, 0x180052f20\nmov     rdx, rax                                                       ; +0x35, 0x180052f25\nmov     r8b, 1                                                         ; +0x38, 0x180052f28\nmov     rcx, rsi                                                       ; +0x3b, 0x180052f2b\ncall    qword ptr [rbx+218h]                                           ; +0x3e, 0x180052f2e\nmov     rcx, [rsi+1A0h]; this                                          ; +0x44, 0x180052f34\nmov     edx, edi; unsigned int                                         ; +0x4b, 0x180052f3b\nmov     rbx, [rsi]                                                     ; +0x4d, 0x180052f3d\nmov     [rsi+198h], edi                                                ; +0x50, 0x180052f40\ncall    ?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0x56, 0x180052f46\nmov     rdx, rax                                                       ; +0x5b, 0x180052f4b\nmov     rcx, rsi                                                       ; +0x5e, 0x180052f4e\nmov     rax, [rbx+1D0h]                                                ; +0x61, 0x180052f51\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x68, 0x180052f58\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x6d, 0x180052f5d\nadd     rsp, 20h                                                       ; +0x72, 0x180052f62\npop     rdi                                                            ; +0x76, 0x180052f66\njmp     rax                                                            ; +0x77, 0x180052f67", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801bc430"], "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"}