//
// cocos2d::extension::CCTableView::_updateContentSize from 0x7af5bc to 0x7af674 (184 bytes)
//
// 3 xrefs:
// > cocos2d::extension::CCTableView::create @ 0x7afb7a
// > cocos2d::extension::CCTableView::reloadData @ 0x7afc4a
// > cocos2d::extension::CCTableView::insertCellAtIndex @ 0x7b0190
//
// 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:05 +0000
//
int __fastcall cocos2d::extension::CCTableView::_updateContentSize(cocos2d::extension::CCTableView *this)
{
int v2; // r0
float v3; // r2
float v4; // r1
int result; // r0
int v6; // r6
_BYTE v7[8]; // [sp+4h] [bp-20h] BYREF
_BYTE v8[4]; // [sp+Ch] [bp-18h] BYREF
float v9; // [sp+10h] [bp-14h]
float v10[2]; // [sp+14h] [bp-10h] BYREF
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v7, (const cocos2d::CCSize *)&unk_D2EA0C);
v2 = (*(int (__fastcall **)(_DWORD, cocos2d::extension::CCTableView *))(**((_DWORD **)this + 121) + 20))(
*((_DWORD *)this + 121),
this);
if ( v2 )
{
v3 = *(float *)(*((_DWORD *)this + 116) + 4 * v2);
if ( *((_DWORD *)this + 83) )
{
v4 = *((float *)this + 100);
}
else
{
v4 = *(float *)(*((_DWORD *)this + 116) + 4 * v2);
v3 = *((float *)this + 101);
}
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v10, v4, v3);
cocos2d::CCSize::operator=(v7, v10);
}
result = (*(int (__fastcall **)(cocos2d::extension::CCTableView *, _BYTE *))(*(_DWORD *)this + 160))(this, v7);
v6 = *((_DWORD *)this + 83);
if ( *((_DWORD *)this + 123) != v6 )
{
if ( v6 )
{
cocos2d::extension::CCScrollView::minContainerOffset((cocos2d::extension::CCScrollView *)v8, (int)this);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, 0.0, v9);
}
else
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, 0.0, 0.0);
}
result = cocos2d::extension::CCScrollView::setContentOffset((int)this, v10, 0);
*((_DWORD *)this + 123) = *((_DWORD *)this + 83);
}
return result;
}