//
// cocos2d::extension::CCTableView::reloadData from 0xd19fd0 to 0xd1a174 (420 bytes)
//
// 2 xrefs:
// > cocos2d::extension::CCTableView::setVerticalFillOrder @ 0xd1a1b8
// > ??> @ 0x77740
//
// 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::reloadData(cocos2d::extension::CCTableView *this)
{
__int64 v2; // x0
unsigned int *v3; // x1
cocos2d::CCObject **v4; // x21
cocos2d::CCObject **i; // x23
cocos2d::CCObject *v6; // x20
__int64 v7; // x0
__int64 v8; // x22
_QWORD *v9; // x20
_QWORD **v10; // x21
cocos2d::CCArray *v11; // x20
__int64 result; // x0
__int64 Container; // x0
v2 = *((_QWORD *)this + 78);
*((_DWORD *)this + 164) = -1;
if ( v2 )
{
v3 = *(unsigned int **)(v2 + 56);
if ( *v3 )
{
v4 = *((cocos2d::CCObject ***)v3 + 2);
for ( i = &v4[*v3 - 1]; i >= v4; ++v4 )
{
v6 = *v4;
if ( !*v4 )
break;
v7 = *((_QWORD *)this + 81);
if ( v7 )
(*(void (__fastcall **)(__int64, cocos2d::extension::CCTableView *, cocos2d::CCObject *))(*(_QWORD *)v7 + 56LL))(
v7,
this,
*v4);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 79), v6);
cocos2d::extension::CCTableViewCell::reset(v6);
v8 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v6 + 512LL))(v6);
if ( v8 == cocos2d::extension::CCScrollView::getContainer(this) )
{
Container = cocos2d::extension::CCScrollView::getContainer(this);
(*(void (__fastcall **)(__int64, cocos2d::CCObject *, __int64))(*(_QWORD *)Container + 552LL))(
Container,
v6,
1);
}
}
}
}
v9 = *((_QWORD **)this + 74);
v10 = (_QWORD **)v9[1];
if ( v10 )
{
std::__tree::destroy(*((_QWORD *)this + 74), *v10);
std::__tree::destroy((__int64)v9, v10[1]);
operator delete(v10);
}
v9[2] = 0;
v9[1] = 0;
*v9 = v9 + 1;
cocos2d::CCObject::release(*((cocos2d::CCObject **)this + 78));
v11 = (cocos2d::CCArray *)operator new(0x40u);
cocos2d::CCArray::CCArray(v11);
*(_QWORD *)v11 = &off_150F040;
*((_QWORD *)this + 78) = v11;
cocos2d::extension::CCTableView::_updateCellPositions(this);
cocos2d::extension::CCTableView::_updateContentSize(this);
result = (*(__int64 (__fastcall **)(_QWORD, cocos2d::extension::CCTableView *))(**((_QWORD **)this + 80) + 40LL))(
*((_QWORD *)this + 80),
this);
if ( (_DWORD)result )
return (*(__int64 (__fastcall **)(cocos2d::extension::CCTableView *, cocos2d::extension::CCTableView *))(*(_QWORD *)this + 1160LL))(
this,
this);
return result;
}