//
// cocos2d::extension::CCTableView::updateCellAtIndex from 0xaa8738 to 0xaa87f4 (188 bytes)
//
// 2 xrefs:
// > cocos2d::extension::CCTableView::scrollViewDidScroll @ 0xaa8a74
// > ??> @ 0x3f330
//
// 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::updateCellAtIndex(cocos2d::extension::CCTableView *a1, unsigned int a2)
{
int v4; // w0
cocos2d::extension::CCTableViewCell *v5; // x1
cocos2d::extension::CCTableViewCell *v6; // x21
if ( a2 != -1 )
{
v4 = (*(__int64 (__fastcall **)(_QWORD, cocos2d::extension::CCTableView *))(**(_QWORD **)&a1[1].m_fScaleX + 40LL))(
*(_QWORD *)&a1[1].m_fScaleX,
a1);
if ( v4 )
{
if ( a2 <= v4 - 1 )
{
v5 = cocos2d::extension::CCTableView::cellAtIndex(a1, a2);
if ( v5 )
cocos2d::extension::CCTableView::_moveCellOutOfSight(a1, v5);
v6 = (cocos2d::extension::CCTableViewCell *)(*(__int64 (__fastcall **)(_QWORD, cocos2d::extension::CCTableView *, _QWORD))(**(_QWORD **)&a1[1].m_fScaleX + 32LL))(
*(_QWORD *)&a1[1].m_fScaleX,
a1,
a2);
cocos2d::extension::CCTableView::_setIndexForCell(a1, a2, v6);
cocos2d::extension::CCTableView::_addCellIfNecessary(a1, v6);
}
}
}
}