//
// cocos2d::extension::CCTableView::updateCellAtIndex from 0x180014e20 to 0x180014f02 (226 bytes)
//
// 5 xrefs:
// > cocos2d::extension::CCTableView::scrollViewDidScroll @ 0x180015f94
// > ??> @ 0x180031310
// > ??> @ 0x180031320
// > ??> @ 0x180032408
// > ??> @ 0x18004c680
//
// This function is hookable on this platform (idp: pc, 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 12:15:41 +0000
//
void __fastcall cocos2d::extension::CCTableView::updateCellAtIndex(
cocos2d::extension::CCTableView *this,
unsigned int a2)
{
int v4; // eax
__int64 *v5; // rax
__int64 *v6; // rdx
__int64 *i; // rcx
struct cocos2d::extension::CCSortableObject *v8; // rax
struct cocos2d::extension::CCTableViewCell *v9; // rbx
if ( a2 != -1 )
{
v4 = (*(__int64 (__fastcall **)(_QWORD, cocos2d::extension::CCTableView *))(**((_QWORD **)this + 80) + 32LL))(
*((_QWORD *)this + 80),
this);
if ( v4 )
{
if ( a2 <= v4 - 1 )
{
v5 = **((__int64 ***)this + 74);
v6 = v5;
for ( i = (__int64 *)v5[1]; !*((_BYTE *)i + 25); i = (__int64 *)*i )
{
if ( *((_DWORD *)i + 7) >= a2 )
v6 = i;
else
i += 2;
}
if ( !*((_BYTE *)v6 + 25) && a2 >= *((_DWORD *)v6 + 7) && v6 != v5 )
{
v8 = cocos2d::extension::CCArrayForObjectSorting::objectWithObjectID(
*((cocos2d::extension::CCArrayForObjectSorting **)this + 78),
a2);
if ( v8 )
{
if ( v8 != (struct cocos2d::extension::CCSortableObject *)320 )
cocos2d::extension::CCTableView::_moveCellOutOfSight(
this,
(struct cocos2d::extension::CCSortableObject *)((char *)v8 - 320));
}
}
v9 = (struct cocos2d::extension::CCTableViewCell *)(*(__int64 (__fastcall **)(_QWORD, cocos2d::extension::CCTableView *, _QWORD))(**((_QWORD **)this + 80) + 24LL))(
*((_QWORD *)this + 80),
this,
a2);
cocos2d::extension::CCTableView::_setIndexForCell(this, a2, v9);
cocos2d::extension::CCTableView::_addCellIfNecessary(this, v9);
}
}
}
}