//
// cocos2d::extension::CCTableView::removeCellAtIndex from 0x7afdd4 to 0x7afe54 (128 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:00:06 +0000
//
int __fastcall cocos2d::extension::CCTableView::removeCellAtIndex(int this, unsigned int a2, unsigned int a3)
{
int v3; // r4
cocos2d::extension::CCTableViewCell *v4; // r5
unsigned int v5; // r6
int v6; // r2
unsigned int v7; // r5
cocos2d::extension::CCTableViewCell *v8; // r0
cocos2d::extension::CCTableViewCell *v9; // r7
int Idx; // r0
unsigned int v11[2]; // [sp+4h] [bp-8h] BYREF
v11[1] = a3;
v3 = this;
v11[0] = a2;
if ( a2 != -1 )
{
this = (*(int (__fastcall **)(_DWORD, int))(**(_DWORD **)(this + 484) + 20))(*(_DWORD *)(this + 484), this);
if ( this )
{
if ( v11[0] <= --this )
{
this = cocos2d::extension::CCTableView::cellAtIndex((cocos2d::extension::CCTableView *)v3, v11[0]);
v4 = (cocos2d::extension::CCTableViewCell *)this;
if ( this )
{
v5 = cocos2d::extension::CCArrayForObjectSorting::indexOfSortedObject(*(_DWORD *)(v3 + 476), this + 264);
cocos2d::extension::CCTableView::_moveCellOutOfSight((cocos2d::extension::CCTableView *)v3, v4, v6);
std::__tree::__erase_unique(*(void ***)(v3 + 460), v11);
cocos2d::extension::CCTableView::_updateCellPositions((cocos2d::extension::CCTableView *)v3);
this = cocos2d::CCArray::count(*(cocos2d::CCArray **)(v3 + 476));
v7 = this - 1;
while ( v7 > v5 )
{
v8 = (cocos2d::extension::CCTableViewCell *)cocos2d::CCArray::objectAtIndex(
*(cocos2d::CCArray **)(v3 + 476),
v7--);
v9 = v8;
Idx = cocos2d::extension::CCTableViewCell::getIdx(v8);
this = cocos2d::extension::CCTableView::_setIndexForCell(
(cocos2d::extension::CCTableView *)v3,
COERCE_FLOAT(Idx - 1),
v9);
}
}
}
}
}
return this;
}