//
// cocos2d::extension::CCTableView::reloadData from 0x1004196b0 to 0x100419826 (374 bytes)
//
// 1 xrefs:
// > cocos2d::extension::CCTableView::setVerticalFillOrder @ 0x1004196a0
//
// 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
//
__int64 __fastcall cocos2d::extension::CCTableView::reloadData(__int64 a1)
{
__int64 v2; // rax
unsigned int *v3; // rax
_QWORD *v4; // r12
unsigned __int64 v5; // r13
__int64 v6; // r14
__int64 v7; // rdi
__int64 v8; // r15
__int64 Container; // rax
__int64 v10; // r14
_QWORD *v11; // r14
__int64 result; // rax
*(_DWORD *)(a1 + 656) = -1;
v2 = *(_QWORD *)(a1 + 624);
if ( v2 )
{
v3 = *(unsigned int **)(v2 + 56);
if ( *v3 )
{
v4 = *((_QWORD **)v3 + 2);
v5 = (unsigned __int64)&v4[*v3 - 1];
do
{
v6 = *v4;
if ( !*v4 )
break;
v7 = *(_QWORD *)(a1 + 648);
if ( v7 )
(*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)v7 + 56LL))(v7, a1, *v4);
sub_1007FEBF0(*(_QWORD *)(a1 + 632), v6);
cocos2d::extension::CCTableViewCell::reset(v6);
v8 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 512LL))(v6);
if ( v8 == cocos2d::extension::CCScrollView::getContainer(a1) )
{
Container = cocos2d::extension::CCScrollView::getContainer(a1);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)Container + 552LL))(Container, v6, 1);
}
++v4;
}
while ( (unsigned __int64)v4 <= v5 );
}
}
v10 = *(_QWORD *)(a1 + 592);
sub_10001ADF0(v10, *(_QWORD **)(v10 + 8));
*(_QWORD *)v10 = v10 + 8;
*(_OWORD *)(v10 + 8) = 0;
cocos2d::CCObject::release(*(_QWORD *)(a1 + 624));
v11 = operator new(0x40u);
sub_1007FE720(v11);
*v11 = off_100B3F880;
*(_QWORD *)(a1 + 624) = v11;
cocos2d::extension::CCTableView::_updateCellPositions(a1);
cocos2d::extension::CCTableView::_updateContentSize(a1);
result = (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 640) + 40LL))(*(_QWORD *)(a1 + 640), a1);
if ( (_DWORD)result )
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1160LL))(a1, a1);
return result;
}