//
// cocos2d::extension::CCTableView::~CCTableView from 0x180014eb0 to 0x180015038 (392 bytes)
//
// 5 xrefs:
// > sub_180016C20 @ 0x180016c7e
// > sub_180016C20 @ 0x180016c3c
// > ??> @ 0x18002fdf8
// > ??> @ 0x18004a728
// > ??> @ 0x18004a734
//
// 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::~CCTableView(cocos2d::extension::CCTableView *this)
{
void **v2; // rsi
_QWORD *v3; // rdi
void *v4; // rcx
cocos2d::CCObject *v5; // rcx
cocos2d::CCObject *v6; // rcx
_QWORD *v7; // rcx
*(_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';
v2 = *((void ***)this + 74);
if ( v2 )
{
v3 = *((_QWORD **)*v2 + 1);
while ( !*((_BYTE *)v3 + 25) )
{
sub_1800169B0(v2, v2, v3[2]);
v4 = v3;
v3 = (_QWORD *)*v3;
j_j_free(v4);
}
j_j_free(*v2);
j_j_free(v2);
*((_QWORD *)this + 74) = 0;
}
v5 = *((cocos2d::CCObject **)this + 78);
if ( v5 )
cocos2d::CCObject::release(v5);
v6 = *((cocos2d::CCObject **)this + 79);
if ( v6 )
cocos2d::CCObject::release(v6);
cocos2d::extension::CCTableView::unregisterAllScriptHandler(this);
v7 = *((_QWORD **)this + 75);
if ( v7 )
{
if ( ((*((_QWORD *)this + 77) - (_QWORD)v7) & 0xFFFFFFFFFFFFFFFCuLL) >= 0x1000 )
{
if ( (unsigned __int64)v7 - *(v7 - 1) - 8 > 0x1F )
invalid_parameter_noinfo_noreturn();
v7 = (_QWORD *)*(v7 - 1);
}
j_j_free(v7);
*((_QWORD *)this + 75) = 0;
*((_QWORD *)this + 76) = 0;
*((_QWORD *)this + 77) = 0;
}
*((_QWORD *)this + 71) = &cocos2d::extension::CCScrollViewDelegate::`vftable';
cocos2d::extension::CCScrollView::~CCScrollView(this);
}