//
// cocos2d::extension::CCTableView::_moveCellOutOfSight from 0x5a9f08 to 0x5a9f9a (146 bytes)
//
// 4 xrefs:
// > cocos2d::extension::CCTableView::updateCellAtIndex @ 0x5a9fcc
// > cocos2d::extension::CCTableView::scrollViewDidScroll @ 0x5aa134
// > cocos2d::extension::CCTableView::scrollViewDidScroll @ 0x5aa154
// > cocos2d::extension::CCTableView::removeCellAtIndex @ 0x5aa526
//
// 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
//
void cocos2d::extension::CCTableView::_moveCellOutOfSight(
cocos2d::extension::CCTableView *a1,
cocos2d::extension::CCTableViewCell *a2)
{
int m_unknown2; // r0
cocos2d::extension::CCSortableObject *v5; // r1
_DWORD *m_nLuaID; // r7
cocos2d::CCNode *v7; // r7
cocos2d::CCNode *Container; // r0
cocos2d::extension::CCTableView *Idx; // [sp+0h] [bp-Ch] BYREF
cocos2d::extension::CCTableViewCell *v10; // [sp+4h] [bp-8h]
int v11; // [sp+8h] [bp-4h]
Idx = a1;
v10 = a2;
m_unknown2 = a1[1].m_unknown2;
if ( m_unknown2 )
(*(void (__fastcall **)(int, cocos2d::extension::CCTableView *, cocos2d::extension::CCTableViewCell *, _DWORD, cocos2d::extension::CCTableView *, cocos2d::extension::CCTableViewCell *, int))(*(_DWORD *)m_unknown2 + 28))(
m_unknown2,
a1,
a2,
*(_DWORD *)(*(_DWORD *)m_unknown2 + 28),
Idx,
v10,
v11);
cocos2d::CCArray::addObject((cocos2d::CCArray *)a1[1].m_uIndexInArray, a2);
if ( a2 )
v5 = &a2->cocos2d::extension::CCSortableObject;
else
v5 = nullptr;
cocos2d::extension::CCArrayForObjectSorting::removeSortedObject(
(cocos2d::extension::CCArrayForObjectSorting *)a1[1].m_eObjType,
v5);
m_nLuaID = (_DWORD *)a1[1].m_nLuaID;
Idx = (cocos2d::extension::CCTableView *)cocos2d::extension::CCTableViewCell::getIdx(a2);
std::_Rb_tree,std::less,std::allocator>::erase(
m_nLuaID,
(unsigned int *)&Idx);
cocos2d::extension::CCTableViewCell::reset(a2);
v7 = a2->getParent(a2);
if ( v7 == cocos2d::extension::CCScrollView::getContainer(a1) )
{
Container = cocos2d::extension::CCScrollView::getContainer(a1);
Container->removeChild_0(Container, a2, 1);
}
}