//
// cocos2d::extension::CCTableView::_updateContentSize from 0x180015500 to 0x180015665 (357 bytes)
//
// 7 xrefs:
// > cocos2d::extension::CCTableView::create @ 0x18001487e
// > cocos2d::extension::CCTableView::reloadData @ 0x180014d6c
// > cocos2d::extension::CCTableView::insertCellAtIndex @ 0x1800150bf
// > ??> @ 0x180031470
// > ??> @ 0x180031480
// > ??> @ 0x180032408
// > ??> @ 0x18004c758
//
// This function is hookable on this platform (idp: pc, 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 12:15:41 +0000
//
void __fastcall cocos2d::extension::CCTableView::_updateContentSize(cocos2d::extension::CCTableView *this)
{
unsigned int v2; // eax
float v3; // xmm1_4
float v4; // xmm2_4
__int64 v5; // rax
int v6; // eax
float v7; // xmm2_4
cocos2d::CCPoint *v8; // rcx
cocos2d::CCPoint *v9; // rax
float *v10; // rax
float *v11; // rdi
float v12; // xmm1_4
__int64 v13; // rcx
char v14; // [rsp+20h] [rbp-28h] BYREF
char v15; // [rsp+50h] [rbp+8h] BYREF
float v16; // [rsp+58h] [rbp+10h] BYREF
float v17; // [rsp+5Ch] [rbp+14h]
float v18; // [rsp+60h] [rbp+18h] BYREF
float v19; // [rsp+64h] [rbp+1Ch]
char v20; // [rsp+68h] [rbp+20h] BYREF
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v15, (const struct cocos2d::CCSize *)&unk_18004A618);
v2 = (*(__int64 (__fastcall **)(_QWORD, cocos2d::extension::CCTableView *))(**((_QWORD **)this + 80) + 32LL))(
*((_QWORD *)this + 80),
this);
if ( v2 )
{
v3 = *(float *)(*((_QWORD *)this + 75) + 4LL * v2);
if ( *((_DWORD *)this + 108) )
{
v4 = *(float *)(*((_QWORD *)this + 75) + 4LL * v2);
v3 = *((float *)this + 128);
}
else
{
v4 = *((float *)this + 129);
}
v5 = cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v16, v3, v4);
cocos2d::CCSize::operator=(&v15, v5);
}
(*(void (__fastcall **)(cocos2d::extension::CCTableView *, char *))(*(_QWORD *)this + 312LL))(this, &v15);
v6 = *((_DWORD *)this + 108);
if ( *((_DWORD *)this + 164) != v6 )
{
if ( v6 )
{
v9 = cocos2d::extension::CCScrollView::minContainerOffset((__int64)this, (cocos2d::CCPoint *)&v20);
v8 = (cocos2d::CCPoint *)&v14;
v7 = *((float *)v9 + 1);
}
else
{
v7 = 0.0;
v8 = (cocos2d::CCPoint *)&v20;
}
cocos2d::CCPoint::CCPoint(v8, 0.0, v7);
v11 = v10;
if ( !*((_BYTE *)this + 476) )
{
cocos2d::extension::CCScrollView::minContainerOffset((__int64)this, (cocos2d::CCPoint *)&v18);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v16, 0.0, 0.0);
v12 = v17;
*v11 = fmaxf(v18, fminf(v16, *v11));
v11[1] = fmaxf(v19, fminf(v12, v11[1]));
}
(*(void (__fastcall **)(_QWORD, float *))(**((_QWORD **)this + 56) + 184LL))(*((_QWORD *)this + 56), v11);
v13 = *((_QWORD *)this + 53);
if ( v13 )
(*(void (__fastcall **)(__int64, cocos2d::extension::CCTableView *))(*(_QWORD *)v13 + 8LL))(v13, this);
*((_DWORD *)this + 164) = *((_DWORD *)this + 108);
}
}