//
// cocos2d::extension::CCTableView::updateCellAtIndex from 0x1004198c0 to 0x1004199de (286 bytes)
//
// 1 xrefs:
// > cocos2d::extension::CCTableView::scrollViewDidScroll @ 0x10041a5e6
//
// 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:30:12 +0000
//
void __fastcall cocos2d::extension::CCTableView::updateCellAtIndex(__int64 a1, unsigned int a2)
{
int v2; // eax
__int64 v3; // rax
__int64 v4; // rcx
__int64 v5; // rax
__int64 v6; // rdx
char *v7; // rax
__int64 v8; // r15
float v9[12]; // [rsp-30h] [rbp-30h] BYREF
if ( a2 != -1 )
{
v2 = (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 640) + 40LL))(*(_QWORD *)(a1 + 640), a1);
if ( v2 != 0 && v2 - 1 >= a2 )
{
v3 = *(_QWORD *)(a1 + 592);
v4 = *(_QWORD *)(v3 + 8);
if ( v4 )
{
v5 = v3 + 8;
v6 = v5;
do
{
if ( *(_DWORD *)(v4 + 28) >= a2 )
v6 = v4;
v4 = *(_QWORD *)(v4 + 8LL * (*(_DWORD *)(v4 + 28) < a2));
}
while ( v4 );
if ( v6 != v5 && *(_DWORD *)(v6 + 28) <= a2 )
{
v7 = (char *)cocos2d::extension::CCArrayForObjectSorting::objectWithObjectID(*(_QWORD *)(a1 + 624), a2);
if ( v7 )
cocos2d::extension::CCTableView::_moveCellOutOfSight(a1, v7 - 320);
}
}
v8 = (*(__int64 (__fastcall **)(_QWORD, __int64, _QWORD))(**(_QWORD **)(a1 + 640) + 32LL))(
*(_QWORD *)(a1 + 640),
a1,
a2);
sub_100278250(v9, 0.0, 0.0);
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v8 + 296LL))(v8, v9);
cocos2d::extension::CCTableView::_offsetFromIndex(v9, a1, a2);
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v8 + 184LL))(v8, v9);
cocos2d::extension::CCTableViewCell::setIdx(v8, a2);
cocos2d::extension::CCTableView::_addCellIfNecessary(a1, v8);
}
}
}