{"type": "func", "start": 6442783040, "end": 6442783186, "name": "cocos2d::CCLayerMultiplex::switchToAndReleaseMe", "pseudocode": "// \n// cocos2d::CCLayerMultiplex::switchToAndReleaseMe from 0x180051140 to 0x1800511d2 (146 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b21a8\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::switchToAndReleaseMe(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  cocos2d::CCArray::replaceObjectAtIndex(*((cocos2d::CCArray **)this + 52), *((_DWORD *)this + 102), nullptr);\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::switchToAndReleaseMe from 0x180051140 to 0x1800511d2 (146 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b21a8\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, 0x180051140\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180051145\npush    rdi                                                            ; +0xa, 0x18005114a\nsub     rsp, 20h                                                       ; +0xb, 0x18005114b\nmov     rsi, rcx                                                       ; +0xf, 0x18005114f\nmov     edi, edx                                                       ; +0x12, 0x180051152\nmov     rcx, [rcx+1A0h]; this                                          ; +0x14, 0x180051154\ncall    ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1b, 0x18005115b\nmov     edx, [rsi+198h]; unsigned int                                  ; +0x20, 0x180051160\nmov     rcx, [rsi+1A0h]; this                                          ; +0x26, 0x180051166\nmov     rbx, [rsi]                                                     ; +0x2d, 0x18005116d\ncall    ?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0x30, 0x180051170\nmov     rdx, rax                                                       ; +0x35, 0x180051175\nmov     r8b, 1                                                         ; +0x38, 0x180051178\nmov     rcx, rsi                                                       ; +0x3b, 0x18005117b\ncall    qword ptr [rbx+208h]                                           ; +0x3e, 0x18005117e\nmov     edx, [rsi+198h]; unsigned int                                  ; +0x44, 0x180051184\nmov     r9b, 1; bool                                                   ; +0x4a, 0x18005118a\nmov     rcx, [rsi+1A0h]; this                                          ; +0x4d, 0x18005118d\nxor     r8d, r8d; struct cocos2d::CCObject *                           ; +0x54, 0x180051194\ncall    ?replaceObjectAtIndex@CCArray@cocos2d@@QEAAXIPEAVCCObject@2@_N@Z; cocos2d::CCArray::replaceObjectAtIndex(uint,cocos2d::CCObject *,bool) ; +0x57, 0x180051197\nmov     rcx, [rsi+1A0h]; this                                          ; +0x5c, 0x18005119c\nmov     edx, edi; unsigned int                                         ; +0x63, 0x1800511a3\nmov     rbx, [rsi]                                                     ; +0x65, 0x1800511a5\nmov     [rsi+198h], edi                                                ; +0x68, 0x1800511a8\ncall    ?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0x6e, 0x1800511ae\nmov     rdx, rax                                                       ; +0x73, 0x1800511b3\nmov     rcx, rsi                                                       ; +0x76, 0x1800511b6\nmov     rax, [rbx+1C0h]                                                ; +0x79, 0x1800511b9\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x80, 0x1800511c0\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x85, 0x1800511c5\nadd     rsp, 20h                                                       ; +0x8a, 0x1800511ca\npop     rdi                                                            ; +0x8e, 0x1800511ce\njmp     rax                                                            ; +0x8f, 0x1800511cf", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b21a8"], "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"}