//
// cocos2d::extension::CCTableView::CCTableView from 0x18001c940 to 0x18001caba (378 bytes)
//
// 2 xrefs:
// > ??> @ 0x18002fdf8
// > ??> @ 0x18004af2c
//
// 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
//
// Hidden C++ exception states: #wind=2
cocos2d::extension::CCTableView *__fastcall cocos2d::extension::CCTableView::CCTableView(
cocos2d::extension::CCTableView *this,
const struct cocos2d::extension::CCTableView *a2)
{
void **v4; // r14
unsigned __int64 v5; // rdx
char *v6; // rdi
const void *v7; // rdx
signed __int64 v8; // rbx
cocos2d::extension::CCScrollView::CCScrollView(this, a2);
*(_QWORD *)this = &cocos2d::extension::CCTableView::`vftable'{for `cocos2d::CCNode'};
*((_QWORD *)this + 40) = &cocos2d::extension::CCTableView::`vftable'{for `cocos2d::CCTouchDelegate'};
*((_QWORD *)this + 41) = &cocos2d::extension::CCTableView::`vftable'{for `cocos2d::CCAccelerometerDelegate'};
*((_QWORD *)this + 42) = &cocos2d::extension::CCTableView::`vftable'{for `cocos2d::CCKeypadDelegate'};
*((_QWORD *)this + 43) = &cocos2d::extension::CCTableView::`vftable'{for `cocos2d::CCKeyboardDelegate'};
*((_QWORD *)this + 44) = &cocos2d::extension::CCTableView::`vftable'{for `cocos2d::CCMouseDelegate'};
*((_QWORD *)this + 71) = &cocos2d::extension::CCTableView::`vftable';
*((_QWORD *)this + 72) = *((_QWORD *)a2 + 72);
*((_DWORD *)this + 146) = *((_DWORD *)a2 + 146);
*((_QWORD *)this + 74) = *((_QWORD *)a2 + 74);
v4 = (void **)((char *)this + 600);
*((_QWORD *)this + 75) = 0;
*((_QWORD *)this + 76) = 0;
*((_QWORD *)this + 77) = 0;
v5 = (__int64)(*((_QWORD *)a2 + 76) - *((_QWORD *)a2 + 75)) >> 2;
if ( v5 )
{
if ( v5 > 0x3FFFFFFFFFFFFFFFLL )
sub_180003530();
sub_18001DE50((char *)this + 600);
v6 = (char *)*v4;
v7 = *((const void **)a2 + 75);
v8 = *((_QWORD *)a2 + 76) - (_QWORD)v7;
memmove(*v4, v7, v8);
*((_QWORD *)this + 76) = &v6[4 * (v8 >> 2)];
}
*((_QWORD *)this + 78) = *((_QWORD *)a2 + 78);
*((_QWORD *)this + 79) = *((_QWORD *)a2 + 79);
*((_QWORD *)this + 80) = *((_QWORD *)a2 + 80);
*((_QWORD *)this + 81) = *((_QWORD *)a2 + 81);
*((_DWORD *)this + 164) = *((_DWORD *)a2 + 164);
return this;
}