; ; cocos2d::CCParticleBatchNode::reorderChild from 0x180061af0 to 0x180061d04 (532 bytes) ; ; 5 xrefs: ; > @ 0x1800fa2c8 ; > @ 0x180139978 ; > @ 0x1801399c0 ; > @ 0x1801438a8 ; > @ 0x1801b36d8 ; ; 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_10], r8d ; +0x0, 0x180061af0 push rbx ; +0x5, 0x180061af5 push rsi ; +0x6, 0x180061af6 push rdi ; +0x7, 0x180061af7 sub rsp, 50h ; +0x8, 0x180061af8 mov rdi, rdx ; +0xc, 0x180061afc lea r9, ??_R0?AVCCParticleSystem@cocos2d@@@8; cocos2d::CCParticleSystem `RTTI Type Descriptor' ; +0xf, 0x180061aff mov rsi, rcx ; +0x16, 0x180061b06 lea r8, ??_R0?AVCCNode@cocos2d@@@8; cocos2d::CCNode `RTTI Type Descriptor' ; +0x19, 0x180061b09 xor ebx, ebx ; +0x20, 0x180061b10 mov rcx, rdi ; +0x22, 0x180061b12 xor edx, edx ; +0x25, 0x180061b15 mov [rsp+68h+var_48], ebx ; +0x27, 0x180061b17 call __RTDynamicCast ; +0x2b, 0x180061b1b mov rcx, [rsi+0D0h]; this ; +0x30, 0x180061b20 mov rdx, rdi; struct cocos2d::CCObject * ; +0x37, 0x180061b27 call ?containsObject@CCArray@cocos2d@@QEBA_NPEAVCCObject@2@@Z; cocos2d::CCArray::containsObject(cocos2d::CCObject *) ; +0x3a, 0x180061b2a mov rax, [rdi] ; +0x3f, 0x180061b2f mov rcx, rdi ; +0x42, 0x180061b32 call qword ptr [rax+60h] ; +0x45, 0x180061b35 cmp [rsp+68h+arg_10], eax ; +0x48, 0x180061b38 jz loc_180061CFC ; +0x4f, 0x180061b3f mov rcx, [rsi+0D0h]; this ; +0x55, 0x180061b45 call ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x5c, 0x180061b4c cmp eax, 1 ; +0x61, 0x180061b51 jbe loc_180061CEC ; +0x64, 0x180061b54 mov rcx, [rsi+0D0h]; this ; +0x6a, 0x180061b5a mov [rsp+68h+arg_18], rbp ; +0x71, 0x180061b61 xor bpl, bpl ; +0x79, 0x180061b69 mov [rsp+68h+var_20], r12 ; +0x7c, 0x180061b6c xor r12b, r12b ; +0x81, 0x180061b71 mov [rsp+68h+var_28], r13 ; +0x84, 0x180061b74 mov [rsp+68h+var_30], r14 ; +0x89, 0x180061b79 mov r14d, ebx ; +0x8e, 0x180061b7e mov [rsp+68h+var_38], r15 ; +0x91, 0x180061b81 mov r15d, ebx ; +0x96, 0x180061b86 mov [rsp+68h+arg_0], ebx ; +0x99, 0x180061b89 mov [rsp+68h+arg_8], ebx ; +0x9d, 0x180061b8d call ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xa1, 0x180061b91 mov r13d, eax ; +0xa6, 0x180061b96 test eax, eax ; +0xa9, 0x180061b99 jz short loc_180061BFD ; +0xab, 0x180061b9b nop dword ptr [rax] ; +0xad, 0x180061b9d mov rcx, [rsi+0D0h]; this ; +0xb0, 0x180061ba0 mov edx, ebx; unsigned int ; +0xb7, 0x180061ba7 call ?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0xb9, 0x180061ba9 mov rcx, rax ; +0xbe, 0x180061bae mov r14, rax ; +0xc1, 0x180061bb1 mov rdx, [rax] ; +0xc4, 0x180061bb4 call qword ptr [rdx+60h] ; +0xc7, 0x180061bb7 cmp eax, [rsp+68h+arg_10] ; +0xca, 0x180061bba jle short loc_180061BD3 ; +0xd1, 0x180061bc1 test bpl, bpl ; +0xd3, 0x180061bc3 jnz short loc_180061BD3 ; +0xd6, 0x180061bc6 mov r15d, ebx ; +0xd8, 0x180061bc8 mov bpl, 1 ; +0xdb, 0x180061bcb test r12b, r12b ; +0xde, 0x180061bce jnz short loc_180061C02 ; +0xe1, 0x180061bd1 cmp rdi, r14 ; +0xe3, 0x180061bd3 jnz short loc_180061BEC ; +0xe6, 0x180061bd6 mov [rsp+68h+arg_0], ebx ; +0xe8, 0x180061bd8 mov r12b, 1 ; +0xec, 0x180061bdc test bpl, bpl ; +0xef, 0x180061bdf jnz short loc_180061C09 ; +0xf2, 0x180061be2 mov [rsp+68h+arg_8], 0FFFFFFFFh ; +0xf4, 0x180061be4 inc ebx ; +0xfc, 0x180061bec cmp ebx, r13d ; +0xfe, 0x180061bee jb short loc_180061BA0 ; +0x101, 0x180061bf1 mov r14d, [rsp+68h+arg_0] ; +0x103, 0x180061bf3 test bpl, bpl ; +0x108, 0x180061bf8 jnz short loc_180061C0C ; +0x10b, 0x180061bfb mov r15d, r13d ; +0x10d, 0x180061bfd jmp short loc_180061C0C ; +0x110, 0x180061c00 mov r14d, [rsp+68h+arg_0] ; +0x112, 0x180061c02 jmp short loc_180061C0C ; +0x117, 0x180061c07 mov r14d, ebx ; +0x119, 0x180061c09 add r15d, [rsp+68h+arg_8] ; +0x11c, 0x180061c0c mov r13, [rsp+68h+var_28] ; +0x121, 0x180061c11 mov r12, [rsp+68h+var_20] ; +0x126, 0x180061c16 cmp r14d, r15d ; +0x12b, 0x180061c1b jz loc_180061CDA ; +0x12e, 0x180061c1e mov rcx, rdi; this ; +0x134, 0x180061c24 call ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x137, 0x180061c27 mov rcx, [rsi+0D0h]; this ; +0x13c, 0x180061c2c mov r8b, 1; bool ; +0x143, 0x180061c33 mov edx, r14d; unsigned int ; +0x146, 0x180061c36 call ?removeObjectAtIndex@CCArray@cocos2d@@QEAAXI_N@Z; cocos2d::CCArray::removeObjectAtIndex(uint,bool) ; +0x149, 0x180061c39 mov rcx, [rsi+0D0h]; this ; +0x14e, 0x180061c3e mov r8d, r15d; unsigned int ; +0x155, 0x180061c45 mov rdx, rdi; struct cocos2d::CCObject * ; +0x158, 0x180061c48 call ?insertObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@I@Z; cocos2d::CCArray::insertObject(cocos2d::CCObject *,uint) ; +0x15b, 0x180061c4b mov rcx, rdi; this ; +0x160, 0x180061c50 call ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x163, 0x180061c53 mov r14d, [rdi+1C0h] ; +0x168, 0x180061c58 mov rcx, rsi; this ; +0x16f, 0x180061c5f call ?updateAllAtlasIndexes@CCParticleBatchNode@cocos2d@@AEAAXXZ; cocos2d::CCParticleBatchNode::updateAllAtlasIndexes(void) ; +0x172, 0x180061c62 mov rcx, [rsi+0D0h]; this ; +0x177, 0x180061c67 xor ebp, ebp ; +0x17e, 0x180061c6e mov ebx, ebp ; +0x180, 0x180061c70 call ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x182, 0x180061c72 test eax, eax ; +0x187, 0x180061c77 jz short loc_180061CAD ; +0x189, 0x180061c79 nop dword ptr [rax+rax+00h] ; +0x18b, 0x180061c7b mov rcx, [rsi+0D0h]; this ; +0x190, 0x180061c80 mov edx, ebx; unsigned int ; +0x197, 0x180061c87 call ?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0x199, 0x180061c89 cmp rax, rdi ; +0x19e, 0x180061c8e jz short loc_180061CA7 ; +0x1a1, 0x180061c91 mov rcx, [rsi+0D0h]; this ; +0x1a3, 0x180061c93 inc ebx ; +0x1aa, 0x180061c9a call ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1ac, 0x180061c9c cmp ebx, eax ; +0x1b1, 0x180061ca1 jb short loc_180061C80 ; +0x1b3, 0x180061ca3 jmp short loc_180061CAD ; +0x1b5, 0x180061ca5 mov ebp, [rdi+1C0h] ; +0x1b7, 0x180061ca7 mov rax, [rdi] ; +0x1bd, 0x180061cad mov rcx, rdi ; +0x1c0, 0x180061cb0 call qword ptr [rax+5C0h] ; +0x1c3, 0x180061cb3 mov rcx, [rsi+148h]; this ; +0x1c9, 0x180061cb9 mov r9d, ebp; unsigned int ; +0x1d0, 0x180061cc0 mov r8d, eax; unsigned int ; +0x1d3, 0x180061cc3 mov edx, r14d; unsigned int ; +0x1d6, 0x180061cc6 call ?moveQuadsFromIndex@CCTextureAtlas@cocos2d@@QEAAXIII@Z; cocos2d::CCTextureAtlas::moveQuadsFromIndex(uint,uint,uint) ; +0x1d9, 0x180061cc9 mov rax, [rdi] ; +0x1de, 0x180061cce mov rcx, rdi ; +0x1e1, 0x180061cd1 call qword ptr [rax+628h] ; +0x1e4, 0x180061cd4 mov r14, [rsp+68h+var_30] ; +0x1ea, 0x180061cda mov rbp, [rsp+68h+arg_18] ; +0x1ef, 0x180061cdf mov r15, [rsp+68h+var_38] ; +0x1f7, 0x180061ce7 mov rax, [rdi] ; +0x1fc, 0x180061cec mov rcx, rdi ; +0x1ff, 0x180061cef mov edx, [rsp+68h+arg_10] ; +0x202, 0x180061cf2 call qword ptr [rax+58h] ; +0x209, 0x180061cf9 add rsp, 50h ; +0x20c, 0x180061cfc pop rdi ; +0x210, 0x180061d00 pop rsi ; +0x211, 0x180061d01 pop rbx ; +0x212, 0x180061d02 retn ; +0x213, 0x180061d03