{"type": "func", "start": 6442790768, "end": 6442790914, "name": "cocos2d::CCLayerMultiplex::switchToAndReleaseMe", "pseudocode": "// \n// cocos2d::CCLayerMultiplex::switchToAndReleaseMe from 0x180052f70 to 0x180053002 (146 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bc43c\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::switchToAndReleaseMe(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  cocos2d::CCArray::replaceObjectAtIndex(*((cocos2d::CCArray **)this + 52), *((_DWORD *)this + 102), nullptr);\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::switchToAndReleaseMe from 0x180052f70 to 0x180053002 (146 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bc43c\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, 0x180052f70\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180052f75\npush    rdi                                                            ; +0xa, 0x180052f7a\nsub     rsp, 20h                                                       ; +0xb, 0x180052f7b\nmov     rsi, rcx                                                       ; +0xf, 0x180052f7f\nmov     edi, edx                                                       ; +0x12, 0x180052f82\nmov     rcx, [rcx+1A0h]; this                                          ; +0x14, 0x180052f84\ncall    ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1b, 0x180052f8b\nmov     edx, [rsi+198h]; unsigned int                                  ; +0x20, 0x180052f90\nmov     rcx, [rsi+1A0h]; this                                          ; +0x26, 0x180052f96\nmov     rbx, [rsi]                                                     ; +0x2d, 0x180052f9d\ncall    ?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0x30, 0x180052fa0\nmov     rdx, rax                                                       ; +0x35, 0x180052fa5\nmov     r8b, 1                                                         ; +0x38, 0x180052fa8\nmov     rcx, rsi                                                       ; +0x3b, 0x180052fab\ncall    qword ptr [rbx+218h]                                           ; +0x3e, 0x180052fae\nmov     edx, [rsi+198h]; unsigned int                                  ; +0x44, 0x180052fb4\nmov     r9b, 1; bool                                                   ; +0x4a, 0x180052fba\nmov     rcx, [rsi+1A0h]; this                                          ; +0x4d, 0x180052fbd\nxor     r8d, r8d; struct cocos2d::CCObject *                           ; +0x54, 0x180052fc4\ncall    ?replaceObjectAtIndex@CCArray@cocos2d@@QEAAXIPEAVCCObject@2@_N@Z; cocos2d::CCArray::replaceObjectAtIndex(uint,cocos2d::CCObject *,bool) ; +0x57, 0x180052fc7\nmov     rcx, [rsi+1A0h]; this                                          ; +0x5c, 0x180052fcc\nmov     edx, edi; unsigned int                                         ; +0x63, 0x180052fd3\nmov     rbx, [rsi]                                                     ; +0x65, 0x180052fd5\nmov     [rsi+198h], edi                                                ; +0x68, 0x180052fd8\ncall    ?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0x6e, 0x180052fde\nmov     rdx, rax                                                       ; +0x73, 0x180052fe3\nmov     rcx, rsi                                                       ; +0x76, 0x180052fe6\nmov     rax, [rbx+1D0h]                                                ; +0x79, 0x180052fe9\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x80, 0x180052ff0\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x85, 0x180052ff5\nadd     rsp, 20h                                                       ; +0x8a, 0x180052ffa\npop     rdi                                                            ; +0x8e, 0x180052ffe\njmp     rax                                                            ; +0x8f, 0x180052fff", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801bc43c"], "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"}