//
// cocos2d::extension::CCTableView::_updateCellPositions from 0x5aa1b8 to 0x5aa284 (204 bytes)
//
// 4 xrefs:
// > cocos2d::extension::CCTableView::create @ 0x5aa2d0
// > cocos2d::extension::CCTableView::reloadData @ 0x5aa3a2
// > cocos2d::extension::CCTableView::insertCellAtIndex @ 0x5aa4a0
// > cocos2d::extension::CCTableView::removeCellAtIndex @ 0x5aa536
//
// 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::_updateCellPositions(cocos2d::extension::CCTableView *a1)
{
int v2; // r0
int *m_uReference; // r1
int m_nTag; // r5
unsigned int v5; // r2
int v6; // r3
int v7; // r7
float v8; // s16
int v9; // r5
int m_uUnknown; // r1
float height; // s15
cocos2d::CCSize v12; // [sp+4h] [bp-18h] BYREF
int v13[2]; // [sp+Ch] [bp-10h] BYREF
v2 = (*(int (__fastcall **)(int, cocos2d::extension::CCTableView *))(*(_DWORD *)a1[1].m_uUnknown + 20))(
a1[1].m_uUnknown,
a1);
m_uReference = (int *)a1[1].m_uReference;
m_nTag = a1[1].m_nTag;
v13[0] = 0;
v5 = ((int)m_uReference - m_nTag) >> 2;
v6 = v2 + 1;
v7 = v2;
if ( v2 + 1 <= v5 )
{
if ( v2 + 1 < v5 )
a1[1].m_uReference = m_nTag + 4 * v6;
}
else
{
std::vector::_M_fill_insert((int)&a1[1].m_nTag, m_uReference, v6 - v5, v13);
}
if ( v7 > 0 )
{
v8 = 0.0;
v9 = 0;
cocos2d::CCSize::CCSize(&v12);
do
{
m_uUnknown = a1[1].m_uUnknown;
*(float *)(a1[1].m_nTag + 4 * v9) = v8;
(*(void (__fastcall **)(int *, int, cocos2d::extension::CCTableView *, int))(*(_DWORD *)m_uUnknown + 8))(
v13,
m_uUnknown,
a1,
v9);
cocos2d::CCSize::operator=(&v12, v13);
if ( a1->m_eDirection )
height = v12.height;
else
height = v12.width;
++v9;
v8 = v8 + height;
}
while ( v9 != v7 );
*(float *)(a1[1].m_nTag + 4 * v9) = v8;
}
}