; ; cocos2d::extension::CCTableView::insertCellAtIndex from 0x180014f10 to 0x1800150d6 (454 bytes) ; ; 4 xrefs: ; > @ 0x180031344 ; > @ 0x180031384 ; > @ 0x180032408 ; > @ 0x18004c6a4 ; ; 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 ; cmp edx, 0FFFFFFFFh ; +0x0, 0x180014f10 jz locret_1800150D5 ; +0x3, 0x180014f13 push rdi ; +0x9, 0x180014f19 push r12 ; +0xa, 0x180014f1a sub rsp, 48h ; +0xc, 0x180014f1c mov rdi, rcx ; +0x10, 0x180014f20 mov r12d, edx ; +0x13, 0x180014f23 mov rcx, [rcx+280h] ; +0x16, 0x180014f26 mov rdx, rdi ; +0x1d, 0x180014f2d mov rax, [rcx] ; +0x20, 0x180014f30 call qword ptr [rax+20h] ; +0x23, 0x180014f33 test eax, eax ; +0x26, 0x180014f36 jz loc_1800150CE ; +0x28, 0x180014f38 dec eax ; +0x2e, 0x180014f3e cmp r12d, eax ; +0x30, 0x180014f40 ja loc_1800150CE ; +0x33, 0x180014f43 mov rcx, [rdi+270h]; this ; +0x39, 0x180014f49 mov edx, r12d; unsigned int ; +0x40, 0x180014f50 mov [rsp+58h+arg_0], rbx ; +0x43, 0x180014f53 mov [rsp+58h+var_18], r13 ; +0x48, 0x180014f58 call ?objectWithObjectID@CCArrayForObjectSorting@extension@cocos2d@@QEAAPEAVCCSortableObject@23@I@Z; cocos2d::extension::CCArrayForObjectSorting::objectWithObjectID(uint) ; +0x4d, 0x180014f5d xor r13d, r13d ; +0x52, 0x180014f62 test rax, rax ; +0x55, 0x180014f65 lea rcx, [rax-140h] ; +0x58, 0x180014f68 cmovz rcx, r13 ; +0x5f, 0x180014f6f test rcx, rcx ; +0x63, 0x180014f73 jz loc_180015085 ; +0x66, 0x180014f76 mov [rsp+58h+arg_10], rsi ; +0x6c, 0x180014f7c mov ebx, r13d ; +0x71, 0x180014f81 mov rsi, [rdi+270h] ; +0x74, 0x180014f84 mov [rsp+58h+arg_8], rbp ; +0x7b, 0x180014f8b mov [rsp+58h+var_20], r14 ; +0x80, 0x180014f90 mov [rsp+58h+var_28], r15 ; +0x85, 0x180014f95 add rcx, 140h ; +0x8a, 0x180014f9a jz short loc_18001501B ; +0x91, 0x180014fa1 mov rax, [rcx] ; +0x93, 0x180014fa3 mov r14d, r13d ; +0x96, 0x180014fa6 call qword ptr [rax+10h] ; +0x99, 0x180014fa9 mov ebp, eax ; +0x9c, 0x180014fac test rsi, rsi ; +0x9e, 0x180014fae jz short loc_180015020 ; +0xa1, 0x180014fb1 mov rsi, [rsi+38h] ; +0xa3, 0x180014fb3 mov eax, [rsi] ; +0xa7, 0x180014fb7 test eax, eax ; +0xa9, 0x180014fb9 jz short loc_180015020 ; +0xab, 0x180014fbb mov rsi, [rsi+10h] ; +0xad, 0x180014fbd lea r15, [rax-1] ; +0xb1, 0x180014fc1 lea r15, [rsi+r15*8] ; +0xb5, 0x180014fc5 cmp rsi, r15 ; +0xb9, 0x180014fc9 ja short loc_180015020 ; +0xbc, 0x180014fcc xchg ax, ax ; +0xbe, 0x180014fce mov rcx, [rsi] ; +0xc0, 0x180014fd0 test rcx, rcx ; +0xc3, 0x180014fd3 jz short loc_180015020 ; +0xc6, 0x180014fd6 lea r9, ??_R0?AVCCSortableObject@extension@cocos2d@@@8; cocos2d::extension::CCSortableObject `RTTI Type Descriptor' ; +0xc8, 0x180014fd8 mov [rsp+58h+var_38], r13d ; +0xcf, 0x180014fdf lea r8, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0xd4, 0x180014fe4 xor edx, edx ; +0xdb, 0x180014feb call __RTDynamicCast ; +0xdd, 0x180014fed mov rcx, [rax] ; +0xe2, 0x180014ff2 mov rdx, [rcx+10h] ; +0xe5, 0x180014ff5 mov rcx, rax ; +0xe9, 0x180014ff9 call rdx ; +0xec, 0x180014ffc cmp ebp, eax ; +0xee, 0x180014ffe jz short loc_180015020 ; +0xf0, 0x180015000 cmp ebp, r14d ; +0xf2, 0x180015002 jb short loc_18001500B ; +0xf5, 0x180015005 cmp ebp, eax ; +0xf7, 0x180015007 jb short loc_180015020 ; +0xf9, 0x180015009 inc ebx ; +0xfb, 0x18001500b add rsi, 8 ; +0xfd, 0x18001500d mov r14d, eax ; +0x101, 0x180015011 cmp rsi, r15 ; +0x104, 0x180015014 jbe short loc_180014FD0 ; +0x107, 0x180015017 jmp short loc_180015020 ; +0x109, 0x180015019 mov ebx, 0FFFFFFFFh ; +0x10b, 0x18001501b mov rcx, [rdi+270h] ; +0x110, 0x180015020 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x117, 0x180015027 mov r15, [rsp+58h+var_28] ; +0x11d, 0x18001502d mov r14, [rsp+58h+var_20] ; +0x122, 0x180015032 mov rsi, [rsp+58h+arg_10] ; +0x127, 0x180015037 mov rbp, [rsp+58h+arg_8] ; +0x12c, 0x18001503c cmp ebx, eax ; +0x131, 0x180015041 jnb short loc_180015085 ; +0x133, 0x180015043 nop word ptr [rax+rax+00000000h] ; +0x135, 0x180015045 mov rcx, [rdi+270h] ; +0x140, 0x180015050 mov edx, ebx ; +0x147, 0x180015057 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x149, 0x180015059 mov r8, rax; struct cocos2d::extension::CCTableViewCell * ; +0x14f, 0x18001505f mov rcx, rdi; this ; +0x152, 0x180015062 mov edx, [rax+148h] ; +0x155, 0x180015065 inc edx; unsigned int ; +0x15b, 0x18001506b call ?_setIndexForCell@CCTableView@extension@cocos2d@@IEAAXIPEAVCCTableViewCell@23@@Z; cocos2d::extension::CCTableView::_setIndexForCell(uint,cocos2d::extension::CCTableViewCell *) ; +0x15d, 0x18001506d mov rcx, [rdi+270h] ; +0x162, 0x180015072 inc ebx ; +0x169, 0x180015079 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x16b, 0x18001507b cmp ebx, eax ; +0x171, 0x180015081 jb short loc_180015050 ; +0x173, 0x180015083 mov rcx, [rdi+280h] ; +0x175, 0x180015085 mov r8d, r12d ; +0x17c, 0x18001508c mov rdx, rdi ; +0x17f, 0x18001508f mov rax, [rcx] ; +0x182, 0x180015092 call qword ptr [rax+18h] ; +0x185, 0x180015095 mov edx, r12d; unsigned int ; +0x188, 0x180015098 mov rcx, rdi; this ; +0x18b, 0x18001509b mov r8, rax; struct cocos2d::extension::CCTableViewCell * ; +0x18e, 0x18001509e mov rbx, rax ; +0x191, 0x1800150a1 call ?_setIndexForCell@CCTableView@extension@cocos2d@@IEAAXIPEAVCCTableViewCell@23@@Z; cocos2d::extension::CCTableView::_setIndexForCell(uint,cocos2d::extension::CCTableViewCell *) ; +0x194, 0x1800150a4 mov rdx, rbx; struct cocos2d::extension::CCTableViewCell * ; +0x199, 0x1800150a9 mov rcx, rdi; this ; +0x19c, 0x1800150ac call ?_addCellIfNecessary@CCTableView@extension@cocos2d@@IEAAXPEAVCCTableViewCell@23@@Z; cocos2d::extension::CCTableView::_addCellIfNecessary(cocos2d::extension::CCTableViewCell *) ; +0x19f, 0x1800150af mov rcx, rdi; this ; +0x1a4, 0x1800150b4 call ?_updateCellPositions@CCTableView@extension@cocos2d@@IEAAXXZ; cocos2d::extension::CCTableView::_updateCellPositions(void) ; +0x1a7, 0x1800150b7 mov rcx, rdi; this ; +0x1ac, 0x1800150bc call ?_updateContentSize@CCTableView@extension@cocos2d@@QEAAXXZ; cocos2d::extension::CCTableView::_updateContentSize(void) ; +0x1af, 0x1800150bf mov r13, [rsp+58h+var_18] ; +0x1b4, 0x1800150c4 mov rbx, [rsp+58h+arg_0] ; +0x1b9, 0x1800150c9 add rsp, 48h ; +0x1be, 0x1800150ce pop r12 ; +0x1c2, 0x1800150d2 pop rdi ; +0x1c4, 0x1800150d4 retn ; +0x1c5, 0x1800150d5