//
// TableView::deleteTableViewCell from 0x3c986c to 0x3c99e0 (372 bytes)
//
// 1 xrefs:
// > CustomSongCell::onDelete @ 0x427180
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:46:36 +0000
//
int __fastcall TableView::deleteTableViewCell(TableView *this, TableViewCell *a2)
{
int v4; // r0
unsigned int v5; // r9
float v6; // s16
int v7; // s16
_DWORD *v8; // r6
const cocos2d::CCPoint *v9; // r0
void (__fastcall *v10)(_DWORD *, _DWORD *); // r10
int v11; // r11
int v12; // r6
int v13; // r0
_DWORD *v15; // [sp+4h] [bp-D0h]
float v16[2]; // [sp+10h] [bp-C4h] BYREF
_DWORD v17[15]; // [sp+18h] [bp-BCh] BYREF
_DWORD v18[15]; // [sp+54h] [bp-80h] BYREF
_DWORD v19[15]; // [sp+90h] [bp-44h] BYREF
if ( !a2 )
return 0;
(*(void (__fastcall **)(TableViewCell *))(*(_DWORD *)a2 + 164))(a2);
v4 = (*(int (__fastcall **)(TableViewCell *))(*(_DWORD *)a2 + 164))(a2);
v5 = *((_DWORD *)a2 + 94);
v6 = *(float *)(v4 + 4);
cocos2d::CCObject::CCObject((cocos2d::CCObject *)v17);
v17[0] = &off_C85EE0;
v7 = (int)v6;
v17[14] = *((_DWORD *)a2 + 95);
v17[13] = *((_DWORD *)a2 + 94);
TableView::removeIndexPathFromPathAddedArray((int)this, (int)a2 + 324);
(*(void (__fastcall **)(_DWORD, TableViewCell *, int))(**((_DWORD **)this + 91) + 276))(*((_DWORD *)this + 91), a2, 1);
cocos2d::CCArray::removeObject(*((cocos2d::CCArray **)this + 111), a2, 1);
while ( v5 < cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 111)) )
{
v8 = (_DWORD *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 111), v5);
v9 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(_DWORD *))(*v8 + 96))(v8);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, v9);
v10 = *(void (__fastcall **)(_DWORD *, _DWORD *))(*v8 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, v16[0], (float)v7 + v16[1]);
v10(v8, v19);
v15 = v8 + 81;
cocos2d::CCObject::CCObject((cocos2d::CCObject *)v18);
v11 = v8[95];
v12 = v8[94];
v18[0] = &off_C85EE0;
v18[14] = v11;
v18[13] = v12;
cocos2d::CCObject::CCObject((cocos2d::CCObject *)v19);
v19[13] = v12 - 1;
v19[0] = &off_C85EE0;
++v5;
v19[14] = v11;
CCIndexPath::operator=(v15, v19);
CCIndexPath::~CCIndexPath((CCIndexPath *)v19);
CCIndexPath::~CCIndexPath((CCIndexPath *)v18);
}
v13 = *((_DWORD *)this + 115);
if ( v13 )
(*(void (__fastcall **)(int, TableView *, int, _DWORD *))(*(_DWORD *)v13 + 8))(v13, this, 1, v17);
CCIndexPath::~CCIndexPath((CCIndexPath *)v17);
return 1;
}