{"type": "func", "start": 6442782912, "end": 6442783034, "name": "cocos2d::CCLayerMultiplex::switchTo", "pseudocode": "// \n// cocos2d::CCLayerMultiplex::switchTo from 0x1800510c0 to 0x18005113a (122 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b219c\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 cocos2d::CCLayerMultiplex::switchTo(cocos2d::CCLayerMultiplex *this, int a2)\n{\n  cocos2d::CCLayerMultiplex_vtbl *v4; // rbx\n  struct cocos2d::CCString *v5; // rax\n  __int64 v6; // r8\n  cocos2d::CCArray *v7; // rcx\n  cocos2d::CCLayerMultiplex_vtbl *v8; // rbx\n  struct cocos2d::CCString *v9; // rax\n\n  cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 52));\n  v4 = this->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\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->removeChild)(this, v5, v6);\n  v7 = *((cocos2d::CCArray **)this + 52);\n  v8 = this->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  *((_DWORD *)this + 102) = a2;\n  v9 = cocos2d::CCArray::stringAtIndex(v7, a2);\n  ((void (__fastcall *)(cocos2d::CCLayerMultiplex *, struct cocos2d::CCString *))v8->addChild_1)(this, v9);\n}", "assembly": "; \n; cocos2d::CCLayerMultiplex::switchTo from 0x1800510c0 to 0x18005113a (122 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b219c\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, 0x1800510c0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1800510c5\npush    rdi                                                            ; +0xa, 0x1800510ca\nsub     rsp, 20h                                                       ; +0xb, 0x1800510cb\nmov     rsi, rcx                                                       ; +0xf, 0x1800510cf\nmov     edi, edx                                                       ; +0x12, 0x1800510d2\nmov     rcx, [rcx+1A0h]; this                                          ; +0x14, 0x1800510d4\ncall    ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1b, 0x1800510db\nmov     edx, [rsi+198h]; unsigned int                                  ; +0x20, 0x1800510e0\nmov     rcx, [rsi+1A0h]; this                                          ; +0x26, 0x1800510e6\nmov     rbx, [rsi]                                                     ; +0x2d, 0x1800510ed\ncall    ?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0x30, 0x1800510f0\nmov     rdx, rax                                                       ; +0x35, 0x1800510f5\nmov     r8b, 1                                                         ; +0x38, 0x1800510f8\nmov     rcx, rsi                                                       ; +0x3b, 0x1800510fb\ncall    qword ptr [rbx+208h]                                           ; +0x3e, 0x1800510fe\nmov     rcx, [rsi+1A0h]; this                                          ; +0x44, 0x180051104\nmov     edx, edi; unsigned int                                         ; +0x4b, 0x18005110b\nmov     rbx, [rsi]                                                     ; +0x4d, 0x18005110d\nmov     [rsi+198h], edi                                                ; +0x50, 0x180051110\ncall    ?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0x56, 0x180051116\nmov     rdx, rax                                                       ; +0x5b, 0x18005111b\nmov     rcx, rsi                                                       ; +0x5e, 0x18005111e\nmov     rax, [rbx+1C0h]                                                ; +0x61, 0x180051121\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x68, 0x180051128\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x6d, 0x18005112d\nadd     rsp, 20h                                                       ; +0x72, 0x180051132\npop     rdi                                                            ; +0x76, 0x180051136\njmp     rax                                                            ; +0x77, 0x180051137", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b219c"], "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"}