//
// cocos2d::extension::CCTableView::_updateContentSize from 0x180015980 to 0x180015a61 (225 bytes)
//
// 5 xrefs:
// > cocos2d::extension::CCTableView::create @ 0x180014cae
// > cocos2d::extension::CCTableView::reloadData @ 0x1800151ec
// > cocos2d::extension::CCTableView::insertCellAtIndex @ 0x18001553f
// > ??> @ 0x18002fdf8
// > ??> @ 0x18004a83c
//
// 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 __fastcall cocos2d::extension::CCTableView::_updateContentSize(cocos2d::extension::CCTableView *this)
{
unsigned int v2; // eax
__int64 v3; // rdx
__int64 v4; // rax
float v5; // xmm1_4
float v6; // xmm2_4
__int64 v7; // rax
int v8; // eax
float v9; // xmm2_4
cocos2d::CCPoint *v10; // rcx
cocos2d::CCPoint *v11; // rax
float *v12; // rax
char v13; // [rsp+30h] [rbp+8h] BYREF
char v14; // [rsp+38h] [rbp+10h] BYREF
char v15; // [rsp+40h] [rbp+18h] BYREF
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v13, (const struct cocos2d::CCSize *)&unk_180048628);
v2 = (*(__int64 (__fastcall **)(_QWORD, cocos2d::extension::CCTableView *))(**((_QWORD **)this + 80) + 32LL))(
*((_QWORD *)this + 80),
this);
if ( v2 )
{
v3 = v2;
v4 = *((_QWORD *)this + 75);
v5 = *(float *)(v4 + 4 * v3);
if ( *((_DWORD *)this + 108) )
{
v6 = *(float *)(v4 + 4 * v3);
v5 = *((float *)this + 128);
}
else
{
v6 = *((float *)this + 129);
}
v7 = cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v14, v5, v6);
cocos2d::CCSize::operator=(&v13, v7);
}
(*(void (__fastcall **)(cocos2d::extension::CCTableView *, char *))(*(_QWORD *)this + 296LL))(this, &v13);
v8 = *((_DWORD *)this + 108);
if ( *((_DWORD *)this + 164) != v8 )
{
if ( v8 )
{
v11 = cocos2d::extension::CCScrollView::minContainerOffset((__int64)this, (cocos2d::CCPoint *)&v14);
v10 = (cocos2d::CCPoint *)&v15;
v9 = *((float *)v11 + 1);
}
else
{
v9 = 0.0;
v10 = (cocos2d::CCPoint *)&v14;
}
cocos2d::CCPoint::CCPoint(v10, 0.0, v9);
cocos2d::extension::CCScrollView::setContentOffset((__int64)this, v12, 0);
*((_DWORD *)this + 164) = *((_DWORD *)this + 108);
}
}