; ; cocos2d::extension::CCArrayForObjectSorting::removeSortedObject from 0x180014640 to 0x180014789 (329 bytes) ; ; 5 xrefs: ; > cocos2d::extension::CCTableView::_moveCellOutOfSight @ 0x180015d44 ; > @ 0x18002ebb4 ; > @ 0x18002ebf0 ; > @ 0x18002fdf8 ; > @ 0x18004a644 ; ; 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 ; push r12 ; +0x0, 0x180014640 push r14 ; +0x2, 0x180014642 sub rsp, 48h ; +0x4, 0x180014644 mov r12, rdx ; +0x8, 0x180014648 mov r14, rcx ; +0xb, 0x18001464b call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xe, 0x18001464e test eax, eax ; +0x14, 0x180014654 jz loc_180014780 ; +0x16, 0x180014656 mov [rsp+58h+var_18], rdi ; +0x1c, 0x18001465c mov [rsp+58h+var_20], r13 ; +0x21, 0x180014661 xor r13d, r13d ; +0x26, 0x180014666 mov [rsp+58h+arg_0], rbx ; +0x29, 0x180014669 mov edi, r13d ; +0x2e, 0x18001466e mov [rsp+58h+arg_8], rbp ; +0x31, 0x180014671 mov [rsp+58h+arg_10], rsi ; +0x36, 0x180014676 mov [rsp+58h+var_28], r15 ; +0x3b, 0x18001467b test r12, r12 ; +0x40, 0x180014680 jz short loc_1800146FA ; +0x43, 0x180014683 mov rax, [r12] ; +0x45, 0x180014685 mov rcx, r12 ; +0x49, 0x180014689 mov ebp, r13d ; +0x4c, 0x18001468c call qword ptr [rax+10h] ; +0x4f, 0x18001468f mov esi, eax ; +0x52, 0x180014692 test r14, r14 ; +0x54, 0x180014694 jz short loc_1800146FF ; +0x57, 0x180014697 mov rbx, [r14+38h] ; +0x59, 0x180014699 mov eax, [rbx] ; +0x5d, 0x18001469d test eax, eax ; +0x5f, 0x18001469f jz short loc_1800146FF ; +0x61, 0x1800146a1 mov rbx, [rbx+10h] ; +0x63, 0x1800146a3 lea r15, [rax-1] ; +0x67, 0x1800146a7 lea r15, [rbx+r15*8] ; +0x6b, 0x1800146ab cmp rbx, r15 ; +0x6f, 0x1800146af ja short loc_1800146FF ; +0x72, 0x1800146b2 mov rcx, [rbx] ; +0x74, 0x1800146b4 test rcx, rcx ; +0x77, 0x1800146b7 jz short loc_1800146FF ; +0x7a, 0x1800146ba lea r9, ??_R0?AVCCSortableObject@extension@cocos2d@@@8; cocos2d::extension::CCSortableObject `RTTI Type Descriptor' ; +0x7c, 0x1800146bc mov [rsp+58h+var_38], r13d ; +0x83, 0x1800146c3 lea r8, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0x88, 0x1800146c8 xor edx, edx ; +0x8f, 0x1800146cf call __RTDynamicCast ; +0x91, 0x1800146d1 mov rcx, rax ; +0x96, 0x1800146d6 mov rdx, [rax] ; +0x99, 0x1800146d9 call qword ptr [rdx+10h] ; +0x9c, 0x1800146dc cmp esi, eax ; +0x9f, 0x1800146df jz short loc_1800146FF ; +0xa1, 0x1800146e1 cmp esi, ebp ; +0xa3, 0x1800146e3 jb short loc_1800146EB ; +0xa5, 0x1800146e5 cmp esi, eax ; +0xa7, 0x1800146e7 jb short loc_1800146FF ; +0xa9, 0x1800146e9 inc edi ; +0xab, 0x1800146eb add rbx, 8 ; +0xad, 0x1800146ed mov ebp, eax ; +0xb1, 0x1800146f1 cmp rbx, r15 ; +0xb3, 0x1800146f3 jbe short loc_1800146B4 ; +0xb6, 0x1800146f6 jmp short loc_1800146FF ; +0xb8, 0x1800146f8 mov edi, 0FFFFFFFFh ; +0xba, 0x1800146fa mov rcx, r14 ; +0xbf, 0x1800146ff call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xc2, 0x180014702 mov r15, [rsp+58h+var_28] ; +0xc8, 0x180014708 mov rsi, [rsp+58h+arg_10] ; +0xcd, 0x18001470d mov rbp, [rsp+58h+arg_8] ; +0xd2, 0x180014712 cmp edi, eax ; +0xd7, 0x180014717 jnb short loc_180014771 ; +0xd9, 0x180014719 cmp edi, 0FFFFFFFFh ; +0xdb, 0x18001471b jz short loc_180014771 ; +0xde, 0x18001471e mov edx, edi ; +0xe0, 0x180014720 mov rcx, r14 ; +0xe2, 0x180014722 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xe5, 0x180014725 lea r9, ??_R0?AVCCSortableObject@extension@cocos2d@@@8; cocos2d::extension::CCSortableObject `RTTI Type Descriptor' ; +0xeb, 0x18001472b mov [rsp+58h+var_38], r13d ; +0xf2, 0x180014732 mov rcx, rax ; +0xf7, 0x180014737 lea r8, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0xfa, 0x18001473a xor edx, edx ; +0x101, 0x180014741 call __RTDynamicCast ; +0x103, 0x180014743 mov rcx, rax ; +0x108, 0x180014748 mov r8, [rax] ; +0x10b, 0x18001474b call qword ptr [r8+10h] ; +0x10e, 0x18001474e mov r8, [r12] ; +0x112, 0x180014752 mov rcx, r12 ; +0x116, 0x180014756 mov ebx, eax ; +0x119, 0x180014759 call qword ptr [r8+10h] ; +0x11b, 0x18001475b cmp ebx, eax ; +0x11f, 0x18001475f jnz short loc_180014771 ; +0x121, 0x180014761 mov r8b, 1 ; +0x123, 0x180014763 mov edx, edi ; +0x126, 0x180014766 mov rcx, r14 ; +0x128, 0x180014768 call cs:?removeObjectAtIndex@CCArray@cocos2d@@QEAAXI_N@Z; cocos2d::CCArray::removeObjectAtIndex(uint,bool) ; +0x12b, 0x18001476b mov rbx, [rsp+58h+arg_0] ; +0x131, 0x180014771 mov rdi, [rsp+58h+var_18] ; +0x136, 0x180014776 mov r13, [rsp+58h+var_20] ; +0x13b, 0x18001477b add rsp, 48h ; +0x140, 0x180014780 pop r14 ; +0x144, 0x180014784 pop r12 ; +0x146, 0x180014786 retn ; +0x148, 0x180014788