; ; cocos2d::CCLayerMultiplex::switchToAndReleaseMe from 0x180051140 to 0x1800511d2 (146 bytes) ; ; 2 xrefs: ; > @ 0x1801438a8 ; > @ 0x1801b21a8 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; mov [rsp+arg_0], rbx ; +0x0, 0x180051140 mov [rsp+arg_8], rsi ; +0x5, 0x180051145 push rdi ; +0xa, 0x18005114a sub rsp, 20h ; +0xb, 0x18005114b mov rsi, rcx ; +0xf, 0x18005114f mov edi, edx ; +0x12, 0x180051152 mov rcx, [rcx+1A0h]; this ; +0x14, 0x180051154 call ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1b, 0x18005115b mov edx, [rsi+198h]; unsigned int ; +0x20, 0x180051160 mov rcx, [rsi+1A0h]; this ; +0x26, 0x180051166 mov rbx, [rsi] ; +0x2d, 0x18005116d call ?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0x30, 0x180051170 mov rdx, rax ; +0x35, 0x180051175 mov r8b, 1 ; +0x38, 0x180051178 mov rcx, rsi ; +0x3b, 0x18005117b call qword ptr [rbx+208h] ; +0x3e, 0x18005117e mov edx, [rsi+198h]; unsigned int ; +0x44, 0x180051184 mov r9b, 1; bool ; +0x4a, 0x18005118a mov rcx, [rsi+1A0h]; this ; +0x4d, 0x18005118d xor r8d, r8d; struct cocos2d::CCObject * ; +0x54, 0x180051194 call ?replaceObjectAtIndex@CCArray@cocos2d@@QEAAXIPEAVCCObject@2@_N@Z; cocos2d::CCArray::replaceObjectAtIndex(uint,cocos2d::CCObject *,bool) ; +0x57, 0x180051197 mov rcx, [rsi+1A0h]; this ; +0x5c, 0x18005119c mov edx, edi; unsigned int ; +0x63, 0x1800511a3 mov rbx, [rsi] ; +0x65, 0x1800511a5 mov [rsi+198h], edi ; +0x68, 0x1800511a8 call ?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0x6e, 0x1800511ae mov rdx, rax ; +0x73, 0x1800511b3 mov rcx, rsi ; +0x76, 0x1800511b6 mov rax, [rbx+1C0h] ; +0x79, 0x1800511b9 mov rbx, [rsp+28h+arg_0] ; +0x80, 0x1800511c0 mov rsi, [rsp+28h+arg_8] ; +0x85, 0x1800511c5 add rsp, 20h ; +0x8a, 0x1800511ca pop rdi ; +0x8e, 0x1800511ce jmp rax ; +0x8f, 0x1800511cf