//
// cocos2d::extension::CCTableView::reloadData from 0x7afbd4 to 0x7afcc4 (240 bytes)
//
// 1 xrefs:
// > cocos2d::extension::CCTableView::setVerticalFillOrder @ 0x7afce8
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:00:06 +0000
//
int __fastcall cocos2d::extension::CCTableView::reloadData(cocos2d::extension::CCTableView *this)
{
int v2; // r3
int v3; // r5
cocos2d::CCArray *v4; // r5
_DWORD *v5; // r3
cocos2d::CCObject **v6; // r6
cocos2d::CCObject **v7; // r7
cocos2d::CCObject *v8; // r5
cocos2d::CCObject *v9; // t1
int result; // r0
int v11; // r0
int v12; // r8
int Container; // r0
*((_DWORD *)this + 123) = -1;
v2 = *((_DWORD *)this + 119);
if ( v2 )
{
v5 = *(_DWORD **)(v2 + 52);
if ( *v5 )
{
v6 = (cocos2d::CCObject **)v5[3];
v7 = &v6[*v5] + 0x3FFFFFFF;
while ( v6 <= v7 )
{
v9 = *v6++;
v8 = v9;
if ( !v9 )
break;
v11 = *((_DWORD *)this + 122);
if ( v11 )
(*(void (__fastcall **)(int, cocos2d::extension::CCTableView *, cocos2d::CCObject *))(*(_DWORD *)v11 + 28))(
v11,
this,
v8);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 120), v8);
cocos2d::extension::CCTableViewCell::reset(v8);
v12 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)v8 + 256))(v8);
if ( v12 == cocos2d::extension::CCScrollView::getContainer(this) )
{
Container = cocos2d::extension::CCScrollView::getContainer(this);
(*(void (__fastcall **)(int, cocos2d::CCObject *, int))(*(_DWORD *)Container + 276))(Container, v8, 1);
}
}
}
}
v3 = *((_DWORD *)this + 115);
std::__tree::destroy(v3, *(_DWORD **)(v3 + 4));
*(_DWORD *)(v3 + 8) = 0;
*(_DWORD *)v3 = v3 + 4;
*(_DWORD *)(v3 + 4) = 0;
cocos2d::CCObject::release(*((cocos2d::CCObject **)this + 119));
v4 = (cocos2d::CCArray *)operator new(0x38u);
cocos2d::CCArray::CCArray(v4);
*(_DWORD *)v4 = &off_D015C8;
*((_DWORD *)this + 119) = v4;
cocos2d::extension::CCTableView::_updateCellPositions(this);
cocos2d::extension::CCTableView::_updateContentSize(this);
result = (*(int (__fastcall **)(_DWORD, cocos2d::extension::CCTableView *))(**((_DWORD **)this + 121) + 20))(
*((_DWORD *)this + 121),
this);
if ( result )
return (*(int (__fastcall **)(cocos2d::extension::CCTableView *, cocos2d::extension::CCTableView *))(*(_DWORD *)this + 580))(
this,
this);
return result;
}