//
// cocos2d::extension::CCTableView::reloadData from 0x5aa330 to 0x5aa422 (242 bytes)
//
// 1 xrefs:
// > cocos2d::extension::CCTableView::setVerticalFillOrder @ 0x5aa448
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void cocos2d::extension::CCTableView::reloadData(cocos2d::extension::CCTableView *a1)
{
cocos2d::CCObjectType m_eObjType; // r3
int m_nLuaID; // r5
cocos2d::CCArray *v4; // r5
_DWORD *v5; // r3
cocos2d::extension::CCTableViewCell **v6; // r6
cocos2d::extension::CCTableViewCell **v7; // r7
cocos2d::extension::CCTableViewCell *v8; // r5
cocos2d::extension::CCTableViewCell *v9; // t1
int m_unknown2; // r0
cocos2d::CCNode *v11; // r8
cocos2d::CCNode *Container; // r0
a1[1].m_nZOrder = -1;
m_eObjType = a1[1].m_eObjType;
if ( m_eObjType )
{
v5 = *(_DWORD **)(m_eObjType + 52);
if ( *v5 )
{
v6 = (cocos2d::extension::CCTableViewCell **)v5[3];
v7 = &v6[*v5] + 0x3FFFFFFF;
while ( v6 <= v7 )
{
v9 = *v6++;
v8 = v9;
if ( !v9 )
break;
m_unknown2 = a1[1].m_unknown2;
if ( m_unknown2 )
(*(void (__fastcall **)(int, cocos2d::extension::CCTableView *, cocos2d::extension::CCTableViewCell *))(*(_DWORD *)m_unknown2 + 28))(
m_unknown2,
a1,
v8);
cocos2d::CCArray::addObject((cocos2d::CCArray *)a1[1].m_uIndexInArray, v8);
cocos2d::extension::CCTableViewCell::reset(v8);
v11 = v8->getParent(v8);
if ( v11 == cocos2d::extension::CCScrollView::getContainer(a1) )
{
Container = cocos2d::extension::CCScrollView::getContainer(a1);
Container->removeChild_0(Container, v8, 1);
}
}
}
}
m_nLuaID = a1[1].m_nLuaID;
std::_Rb_tree,std::less,std::allocator>::_M_erase(
m_nLuaID,
*(_DWORD **)(m_nLuaID + 8));
*(_DWORD *)(m_nLuaID + 12) = m_nLuaID + 4;
*(_DWORD *)(m_nLuaID + 8) = 0;
*(_DWORD *)(m_nLuaID + 16) = m_nLuaID + 4;
*(_DWORD *)(m_nLuaID + 20) = 0;
cocos2d::CCObject::release((cocos2d::CCObject *)a1[1].m_eObjType);
v4 = (cocos2d::CCArray *)operator new(0x38u);
cocos2d::CCArray::CCArray(v4);
v4->__vftable = (cocos2d::CCArray_vtbl *)&off_A9DED0;
a1[1].m_eObjType = (cocos2d::CCObjectType)v4;
cocos2d::extension::CCTableView::_updateCellPositions(a1);
cocos2d::extension::CCTableView::_updateContentSize(a1);
if ( (*(int (__fastcall **)(int, cocos2d::extension::CCTableView *))(*(_DWORD *)a1[1].m_uUnknown + 20))(
a1[1].m_uUnknown,
a1) )
{
a1->scrollViewDidScroll(a1, a1);
}
}