; ; cocos2d::extension::CCArrayForObjectSorting::indexOfSortedObject from 0x180014a80 to 0x180014b48 (200 bytes) ; ; 5 xrefs: ; > @ 0x18002ec88 ; > @ 0x18002ecc4 ; > @ 0x18002ecd4 ; > @ 0x18002fdf8 ; > @ 0x18004a6b0 ; ; 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 rbx ; +0x0, 0x180014a80 push rdi ; +0x2, 0x180014a82 push r15 ; +0x3, 0x180014a83 sub rsp, 30h ; +0x5, 0x180014a85 xor r15d, r15d ; +0x9, 0x180014a89 mov rdi, rcx ; +0xc, 0x180014a8c mov ebx, r15d ; +0xf, 0x180014a8f test rdx, rdx ; +0x12, 0x180014a92 jz loc_180014B3A ; +0x15, 0x180014a95 mov rax, [rdx] ; +0x1b, 0x180014a9b mov rcx, rdx ; +0x1e, 0x180014a9e mov [rsp+48h+arg_0], rbp ; +0x21, 0x180014aa1 mov ebp, r15d ; +0x26, 0x180014aa6 mov [rsp+48h+arg_8], rsi ; +0x29, 0x180014aa9 call qword ptr [rax+10h] ; +0x2e, 0x180014aae mov esi, eax ; +0x31, 0x180014ab1 test rdi, rdi ; +0x33, 0x180014ab3 jz short loc_180014B36 ; +0x36, 0x180014ab6 mov rdi, [rdi+38h] ; +0x38, 0x180014ab8 mov eax, [rdi] ; +0x3c, 0x180014abc test eax, eax ; +0x3e, 0x180014abe jz short loc_180014B36 ; +0x40, 0x180014ac0 mov rdi, [rdi+10h] ; +0x42, 0x180014ac2 mov [rsp+48h+arg_10], r14 ; +0x46, 0x180014ac6 lea r14, [rax-1] ; +0x4b, 0x180014acb lea r14, [rdi+r14*8] ; +0x4f, 0x180014acf cmp rdi, r14 ; +0x53, 0x180014ad3 ja short loc_180014B1C ; +0x56, 0x180014ad6 mov rcx, [rdi] ; +0x58, 0x180014ad8 test rcx, rcx ; +0x5b, 0x180014adb jz short loc_180014B1C ; +0x5e, 0x180014ade lea r9, ??_R0?AVCCSortableObject@extension@cocos2d@@@8; cocos2d::extension::CCSortableObject `RTTI Type Descriptor' ; +0x60, 0x180014ae0 mov [rsp+48h+var_28], r15d ; +0x67, 0x180014ae7 lea r8, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0x6c, 0x180014aec xor edx, edx ; +0x73, 0x180014af3 call __RTDynamicCast ; +0x75, 0x180014af5 mov rcx, rax ; +0x7a, 0x180014afa mov rdx, [rax] ; +0x7d, 0x180014afd call qword ptr [rdx+10h] ; +0x80, 0x180014b00 cmp esi, eax ; +0x83, 0x180014b03 jz short loc_180014B1C ; +0x85, 0x180014b05 cmp esi, ebp ; +0x87, 0x180014b07 jb short loc_180014B0F ; +0x89, 0x180014b09 cmp esi, eax ; +0x8b, 0x180014b0b jb short loc_180014B1C ; +0x8d, 0x180014b0d inc ebx ; +0x8f, 0x180014b0f add rdi, 8 ; +0x91, 0x180014b11 mov ebp, eax ; +0x95, 0x180014b15 cmp rdi, r14 ; +0x97, 0x180014b17 jbe short loc_180014AD8 ; +0x9a, 0x180014b1a mov r14, [rsp+48h+arg_10] ; +0x9c, 0x180014b1c mov eax, ebx ; +0xa1, 0x180014b21 mov rbp, [rsp+48h+arg_0] ; +0xa3, 0x180014b23 mov rsi, [rsp+48h+arg_8] ; +0xa8, 0x180014b28 add rsp, 30h ; +0xad, 0x180014b2d pop r15 ; +0xb1, 0x180014b31 pop rdi ; +0xb3, 0x180014b33 pop rbx ; +0xb4, 0x180014b34 retn ; +0xb5, 0x180014b35 mov eax, ebx ; +0xb6, 0x180014b36 jmp short loc_180014B23 ; +0xb8, 0x180014b38 mov eax, 0FFFFFFFFh ; +0xba, 0x180014b3a add rsp, 30h ; +0xbf, 0x180014b3f pop r15 ; +0xc3, 0x180014b43 pop rdi ; +0xc5, 0x180014b45 pop rbx ; +0xc6, 0x180014b46 retn ; +0xc7, 0x180014b47