//
// cocos2d::extension::CCTableView::_updateContentSize from 0xd19030 to 0xd19168 (312 bytes)
//
// 4 xrefs:
// > cocos2d::extension::CCTableView::create @ 0xd19f24
// > cocos2d::extension::CCTableView::reloadData @ 0xd1a0f8
// > cocos2d::extension::CCTableView::insertCellAtIndex @ 0xd1aa8c
// > ??> @ 0x54448
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:07:07 +0000
//
__int64 __fastcall cocos2d::extension::CCTableView::_updateContentSize(cocos2d::extension::CCTableView *this)
{
unsigned int v2; // w0
long double v3; // q0
__int64 v4; // x2
float v5; // s1
float v6; // s0
int v7; // w0
float v8; // s1
_BYTE v10[8]; // [xsp+40h] [xbp+40h] BYREF
_BYTE v11[4]; // [xsp+48h] [xbp+48h] BYREF
float v12; // [xsp+4Ch] [xbp+4Ch]
float v13; // [xsp+50h] [xbp+50h] BYREF
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v10, (const cocos2d::CCSize *)&unk_155F970);
v2 = (*(__int64 (__fastcall **)(_QWORD, cocos2d::extension::CCTableView *))(**((_QWORD **)this + 80) + 40LL))(
*((_QWORD *)this + 80),
this);
if ( v2 )
{
v4 = *((_QWORD *)this + 75);
v5 = *(float *)(v4 + 4LL * v2);
if ( *((_DWORD *)this + 106) )
{
v6 = *((float *)this + 126);
}
else
{
v6 = *(float *)(v4 + 4LL * v2);
v5 = *((float *)this + 127);
}
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v13, v6, v5);
*(__n128 *)&v3 = cocos2d::CCSize::operator=(v10, &v13);
}
(*(void (__fastcall **)(cocos2d::extension::CCTableView *, _BYTE *, long double))(*(_QWORD *)this + 320LL))(
this,
v10,
v3);
v7 = *((_DWORD *)this + 106);
if ( *((_DWORD *)this + 164) != v7 )
{
if ( v7 )
{
cocos2d::extension::CCScrollView::minContainerOffset(this, (cocos2d::CCPoint *)v11);
v8 = v12;
}
else
{
v8 = 0.0;
}
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v13, 0.0, v8);
cocos2d::extension::CCScrollView::setContentOffset((__int64)this, &v13, 0);
*((_DWORD *)this + 164) = *((_DWORD *)this + 106);
}
return _stack_chk_guard;
}