//
// TableView::deleteTableViewCell from 0x2e9430 to 0x2e95a4 (372 bytes)
//
// 1 xrefs:
// > CustomSongCell::onDelete @ 0x32f4d2
//
// 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 TableView::deleteTableViewCell(TableView *a1, TableViewCell *a2)
{
const cocos2d::CCSize *v4; // r0
unsigned int m_row; // r9
float height; // s16
int v7; // s16
_DWORD *v8; // r6
const cocos2d::CCPoint *v9; // r0
void (__fastcall *v10)(_DWORD *, CCIndexPath *); // r10
int v11; // r11
int v12; // r6
TableViewDataSource *m_dataSource; // r0
_DWORD *v14; // [sp+4h] [bp-D0h]
cocos2d::CCPoint v15; // [sp+10h] [bp-C4h] BYREF
CCIndexPath v16; // [sp+18h] [bp-BCh] BYREF
CCIndexPath v17; // [sp+54h] [bp-80h] BYREF
CCIndexPath v18; // [sp+90h] [bp-44h] BYREF
if ( a2 )
{
a2->getContentSize(a2);
v4 = a2->getContentSize(a2);
m_row = a2->m_indexPath.m_row;
height = v4->height;
cocos2d::CCObject::CCObject(&v16);
v16.__vftable = (CCIndexPath_vtbl *)&off_A3E680;
v7 = (int)height;
v16.m_section = a2->m_indexPath.m_section;
v16.m_row = a2->m_indexPath.m_row;
TableView::removeIndexPathFromPathAddedArray(a1, &a2->m_indexPath);
a1->m_contentLayer->removeChild_0(a1->m_contentLayer, a2, 1);
cocos2d::CCArray::removeObject(a1->m_cellArray, a2, 1);
while ( m_row < cocos2d::CCArray::count(a1->m_cellArray) )
{
v8 = (_DWORD *)cocos2d::CCArray::objectAtIndex(a1->m_cellArray, m_row);
v9 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(_DWORD *))(*v8 + 96))(v8);
cocos2d::CCPoint::CCPoint(&v15, v9);
v10 = *(void (__fastcall **)(_DWORD *, CCIndexPath *))(*v8 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v18, v15.x, (float)v7 + v15.y);
v10(v8, &v18);
v14 = v8 + 81;
cocos2d::CCObject::CCObject(&v17);
v11 = v8[95];
v12 = v8[94];
v17.__vftable = (CCIndexPath_vtbl *)&off_A3E680;
v17.m_section = v11;
v17.m_row = v12;
cocos2d::CCObject::CCObject(&v18);
v18.m_row = v12 - 1;
v18.__vftable = (CCIndexPath_vtbl *)&off_A3E680;
++m_row;
v18.m_section = v11;
CCIndexPath::operator=(v14, &v18);
CCIndexPath::~CCIndexPath(&v18);
CCIndexPath::~CCIndexPath(&v17);
}
m_dataSource = a1->m_dataSource;
if ( m_dataSource )
m_dataSource->TableViewCommitCellEditingStyleForRowAtIndexPath(
m_dataSource,
a1,
(TableViewCellEditingStyle)1,
&v16);
CCIndexPath::~CCIndexPath(&v16);
}
}