; ; cocos2d::extension::CCArrayForObjectSorting::removeSortedObject from 0x1800141e0 to 0x180014331 (337 bytes) ; ; 5 xrefs: ; > cocos2d::extension::CCTableView::_moveCellOutOfSight @ 0x180015944 ; > @ 0x180031148 ; > @ 0x180031188 ; > @ 0x180032408 ; > @ 0x18004c578 ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 12:15:41 +0000 ; push r12 ; +0x0, 0x1800141e0 push r14 ; +0x2, 0x1800141e2 sub rsp, 48h ; +0x4, 0x1800141e4 mov r12, rdx ; +0x8, 0x1800141e8 mov r14, rcx ; +0xb, 0x1800141eb call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xe, 0x1800141ee test eax, eax ; +0x14, 0x1800141f4 jz loc_180014328 ; +0x16, 0x1800141f6 mov [rsp+58h+arg_10], rsi ; +0x1c, 0x1800141fc mov [rsp+58h+var_20], r13 ; +0x21, 0x180014201 xor r13d, r13d ; +0x26, 0x180014206 mov [rsp+58h+arg_0], rbx ; +0x29, 0x180014209 mov esi, r13d ; +0x2e, 0x18001420e mov [rsp+58h+arg_8], rbp ; +0x31, 0x180014211 mov [rsp+58h+var_18], rdi ; +0x36, 0x180014216 mov [rsp+58h+var_28], r15 ; +0x3b, 0x18001421b test r12, r12 ; +0x40, 0x180014220 jz short loc_18001429D ; +0x43, 0x180014223 mov rax, [r12] ; +0x45, 0x180014225 mov rcx, r12 ; +0x49, 0x180014229 mov ebp, r13d ; +0x4c, 0x18001422c call qword ptr [rax+10h] ; +0x4f, 0x18001422f mov edi, eax ; +0x52, 0x180014232 test r14, r14 ; +0x54, 0x180014234 jz short loc_1800142A2 ; +0x57, 0x180014237 mov rbx, [r14+38h] ; +0x59, 0x180014239 mov eax, [rbx] ; +0x5d, 0x18001423d test eax, eax ; +0x5f, 0x18001423f jz short loc_1800142A2 ; +0x61, 0x180014241 mov rbx, [rbx+10h] ; +0x63, 0x180014243 lea r15, [rax-1] ; +0x67, 0x180014247 lea r15, [rbx+r15*8] ; +0x6b, 0x18001424b cmp rbx, r15 ; +0x6f, 0x18001424f ja short loc_1800142A2 ; +0x72, 0x180014252 mov rcx, [rbx] ; +0x74, 0x180014254 test rcx, rcx ; +0x77, 0x180014257 jz short loc_1800142A2 ; +0x7a, 0x18001425a lea r9, ??_R0?AVCCSortableObject@extension@cocos2d@@@8; cocos2d::extension::CCSortableObject `RTTI Type Descriptor' ; +0x7c, 0x18001425c mov [rsp+58h+var_38], r13d ; +0x83, 0x180014263 lea r8, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0x88, 0x180014268 xor edx, edx ; +0x8f, 0x18001426f call __RTDynamicCast ; +0x91, 0x180014271 mov rcx, [rax] ; +0x96, 0x180014276 mov rdx, [rcx+10h] ; +0x99, 0x180014279 mov rcx, rax ; +0x9d, 0x18001427d call rdx ; +0xa0, 0x180014280 cmp edi, eax ; +0xa2, 0x180014282 jz short loc_1800142A2 ; +0xa4, 0x180014284 cmp edi, ebp ; +0xa6, 0x180014286 jb short loc_18001428E ; +0xa8, 0x180014288 cmp edi, eax ; +0xaa, 0x18001428a jb short loc_1800142A2 ; +0xac, 0x18001428c inc esi ; +0xae, 0x18001428e add rbx, 8 ; +0xb0, 0x180014290 mov ebp, eax ; +0xb4, 0x180014294 cmp rbx, r15 ; +0xb6, 0x180014296 jbe short loc_180014254 ; +0xb9, 0x180014299 jmp short loc_1800142A2 ; +0xbb, 0x18001429b mov esi, 0FFFFFFFFh ; +0xbd, 0x18001429d mov rcx, r14 ; +0xc2, 0x1800142a2 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xc5, 0x1800142a5 mov r15, [rsp+58h+var_28] ; +0xcb, 0x1800142ab mov rbp, [rsp+58h+arg_8] ; +0xd0, 0x1800142b0 cmp esi, eax ; +0xd5, 0x1800142b5 jnb short loc_180014314 ; +0xd7, 0x1800142b7 cmp esi, 0FFFFFFFFh ; +0xd9, 0x1800142b9 jz short loc_180014314 ; +0xdc, 0x1800142bc mov edx, esi ; +0xde, 0x1800142be mov rcx, r14 ; +0xe0, 0x1800142c0 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xe3, 0x1800142c3 lea r9, ??_R0?AVCCSortableObject@extension@cocos2d@@@8; cocos2d::extension::CCSortableObject `RTTI Type Descriptor' ; +0xe9, 0x1800142c9 mov [rsp+58h+var_38], r13d ; +0xf0, 0x1800142d0 mov rcx, rax ; +0xf5, 0x1800142d5 lea r8, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0xf8, 0x1800142d8 xor edx, edx ; +0xff, 0x1800142df call __RTDynamicCast ; +0x101, 0x1800142e1 mov rcx, [rax] ; +0x106, 0x1800142e6 mov r8, [rcx+10h] ; +0x109, 0x1800142e9 mov rcx, [r12] ; +0x10d, 0x1800142ed mov rdi, [rcx+10h] ; +0x111, 0x1800142f1 mov rcx, rax ; +0x115, 0x1800142f5 call r8 ; +0x118, 0x1800142f8 mov rcx, r12 ; +0x11b, 0x1800142fb mov ebx, eax ; +0x11e, 0x1800142fe call rdi ; +0x120, 0x180014300 cmp ebx, eax ; +0x122, 0x180014302 jnz short loc_180014314 ; +0x124, 0x180014304 mov r8b, 1 ; +0x126, 0x180014306 mov edx, esi ; +0x129, 0x180014309 mov rcx, r14 ; +0x12b, 0x18001430b call cs:?removeObjectAtIndex@CCArray@cocos2d@@QEAAXI_N@Z; cocos2d::CCArray::removeObjectAtIndex(uint,bool) ; +0x12e, 0x18001430e mov rdi, [rsp+58h+var_18] ; +0x134, 0x180014314 mov rbx, [rsp+58h+arg_0] ; +0x139, 0x180014319 mov rsi, [rsp+58h+arg_10] ; +0x13e, 0x18001431e mov r13, [rsp+58h+var_20] ; +0x143, 0x180014323 add rsp, 48h ; +0x148, 0x180014328 pop r14 ; +0x14c, 0x18001432c pop r12 ; +0x14e, 0x18001432e retn ; +0x150, 0x180014330