//
// cocos2d::extension::CCTableView::_updateCellPositions from 0x7afa50 to 0x7afb28 (216 bytes)
//
// 4 xrefs:
// > cocos2d::extension::CCTableView::create @ 0x7afb74
// > cocos2d::extension::CCTableView::reloadData @ 0x7afc44
// > cocos2d::extension::CCTableView::removeCellAtIndex @ 0x7afe20
// > cocos2d::extension::CCTableView::insertCellAtIndex @ 0x7b0186
//
// 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
//
void __fastcall cocos2d::extension::CCTableView::_updateCellPositions(cocos2d::extension::CCTableView *this)
{
int v2; // r0
int v3; // r2
unsigned int v4; // r3
int v5; // r1
int v6; // r7
int v7; // r2
int v8; // r3
float v9; // s16
int v10; // r6
float v11; // s15
float v12[2]; // [sp+4h] [bp-18h] BYREF
_DWORD v13[2]; // [sp+Ch] [bp-10h] BYREF
v2 = (*(int (__fastcall **)(_DWORD, cocos2d::extension::CCTableView *))(**((_DWORD **)this + 121) + 20))(
*((_DWORD *)this + 121),
this);
v3 = *((_DWORD *)this + 116);
v13[0] = 0;
v4 = (*((_DWORD *)this + 117) - v3) >> 2;
v5 = v2 + 1;
v6 = v2;
if ( v4 >= v2 + 1 )
{
if ( v4 > v2 + 1 )
{
v7 = v3 + 4 * v5;
while ( 1 )
{
v8 = *((_DWORD *)this + 117);
if ( v7 == v8 )
break;
*((_DWORD *)this + 117) = v8 - 4;
}
}
}
else
{
std::vector::__append((int)this + 464, v5 - v4, v13);
}
if ( v6 > 0 )
{
v9 = 0.0;
v10 = 0;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v12);
do
{
*(float *)(*((_DWORD *)this + 116) + 4 * v10) = v9;
(*(void (__fastcall **)(_DWORD *, _DWORD, cocos2d::extension::CCTableView *, int))(**((_DWORD **)this + 121) + 8))(
v13,
*((_DWORD *)this + 121),
this,
v10);
cocos2d::CCSize::operator=(v12, v13);
if ( *((_DWORD *)this + 83) )
v11 = v12[1];
else
v11 = v12[0];
++v10;
v9 = v9 + v11;
}
while ( v10 != v6 );
*(float *)(*((_DWORD *)this + 116) + 4 * v10) = v9;
}
}