//
// cocos2d::extension::CCTableView::updateCellAtIndex from 0xd1a604 to 0xd1a6c0 (188 bytes)
//
// 2 xrefs:
// > cocos2d::extension::CCTableView::scrollViewDidScroll @ 0xd1a85c
// > ??> @ 0x5b120
//
// This function is hookable on this platform (idp: arm, 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 13:07:08 +0000
//
__int64 __fastcall cocos2d::extension::CCTableView::updateCellAtIndex(__int64 this, unsigned int a2)
{
cocos2d::extension::CCTableView *v2; // x19
cocos2d::extension::CCTableViewCell *v4; // x1
cocos2d::extension::CCTableViewCell *v5; // x21
if ( a2 != -1 )
{
v2 = (cocos2d::extension::CCTableView *)this;
this = (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(this + 640) + 40LL))(
*(_QWORD *)(this + 640),
this);
if ( (_DWORD)this )
{
this = (unsigned int)(this - 1);
if ( a2 <= (unsigned int)this )
{
v4 = (cocos2d::extension::CCTableViewCell *)cocos2d::extension::CCTableView::cellAtIndex(v2, a2);
if ( v4 )
cocos2d::extension::CCTableView::_moveCellOutOfSight(v2, v4);
v5 = (cocos2d::extension::CCTableViewCell *)(*(__int64 (__fastcall **)(_QWORD *, cocos2d::extension::CCTableView *, _QWORD))(**((_QWORD **)v2 + 80) + 32LL))(
*((_QWORD **)v2 + 80),
v2,
a2);
cocos2d::extension::CCTableView::_setIndexForCell(v2, a2, v5);
return cocos2d::extension::CCTableView::_addCellIfNecessary(v2, v5);
}
}
}
return this;
}