//
// cocos2d::extension::CCTableView::_moveCellOutOfSight from 0x7afd3c to 0x7afdce (146 bytes)
//
// 4 xrefs:
// > cocos2d::extension::CCTableView::removeCellAtIndex @ 0x7afe10
// > cocos2d::extension::CCTableView::updateCellAtIndex @ 0x7aff48
// > cocos2d::extension::CCTableView::scrollViewDidScroll @ 0x7b00b0
// > cocos2d::extension::CCTableView::scrollViewDidScroll @ 0x7b00d0
//
// 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::_moveCellOutOfSight(
cocos2d::extension::CCTableView *this,
cocos2d::extension::CCTableViewCell *a2,
int a3)
{
int v4; // r0
char *v6; // r1
void **v7; // r7
int v8; // r7
int result; // r0
int Container; // r0
cocos2d::extension::CCTableView *Idx; // [sp+0h] [bp-Ch] BYREF
cocos2d::extension::CCTableViewCell *v12; // [sp+4h] [bp-8h]
int v13; // [sp+8h] [bp-4h]
Idx = this;
v12 = a2;
v13 = a3;
v4 = *((_DWORD *)this + 122);
if ( v4 )
(*(void (__fastcall **)(int, cocos2d::extension::CCTableView *, cocos2d::extension::CCTableViewCell *, _DWORD, cocos2d::extension::CCTableView *, cocos2d::extension::CCTableViewCell *, int))(*(_DWORD *)v4 + 28))(
v4,
this,
a2,
*(_DWORD *)(*(_DWORD *)v4 + 28),
Idx,
v12,
v13);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 120), a2);
if ( a2 )
v6 = (char *)a2 + 264;
else
v6 = nullptr;
cocos2d::extension::CCArrayForObjectSorting::removeSortedObject(*((_DWORD *)this + 119), v6);
v7 = *((void ***)this + 115);
Idx = (cocos2d::extension::CCTableView *)cocos2d::extension::CCTableViewCell::getIdx(a2);
std::__tree::__erase_unique(v7, &Idx);
cocos2d::extension::CCTableViewCell::reset(a2);
v8 = (*(int (__fastcall **)(cocos2d::extension::CCTableViewCell *))(*(_DWORD *)a2 + 256))(a2);
result = cocos2d::extension::CCScrollView::getContainer(this);
if ( v8 == result )
{
Container = cocos2d::extension::CCScrollView::getContainer(this);
return (*(int (__fastcall **)(int, cocos2d::extension::CCTableViewCell *, int))(*(_DWORD *)Container + 276))(
Container,
a2,
1);
}
return result;
}