//
// TableView::deleteTableViewCell from 0x696648 to 0x696914 (716 bytes)
//
// 2 xrefs:
// > CustomSongCell::onDelete @ 0x7359b0
// > ??> @ 0xc6e98
//
// This function is hookable on this platform (idp: arm, 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:50:37 +0000
//
__int64 __fastcall TableView::deleteTableViewCell(TableView *this, TableViewCell *a2)
{
__int64 v4; // x0
unsigned int v5; // w22
int v6; // w4
int v7; // w2
_DWORD *v8; // x19
const cocos2d::CCPoint *v9; // x0
void (__fastcall *v10)(_DWORD *, __int64 (__fastcall ***)(cocos2d::CCCopying *__hidden, cocos2d::CCZone *)); // x23
int v11; // w2
int v12; // w25
__int64 v13; // x0
int v15; // [xsp+6Ch] [xbp+6Ch]
float v16[2]; // [xsp+70h] [xbp+70h] BYREF
_QWORD v17[7]; // [xsp+78h] [xbp+78h] BYREF
int v18; // [xsp+B0h] [xbp+B0h]
int v19; // [xsp+B4h] [xbp+B4h]
_QWORD v20[7]; // [xsp+B8h] [xbp+B8h] BYREF
int v21; // [xsp+F0h] [xbp+F0h]
int v22; // [xsp+F4h] [xbp+F4h]
__int64 (__fastcall **v23)(cocos2d::CCCopying *__hidden, cocos2d::CCZone *); // [xsp+F8h] [xbp+F8h] BYREF
int v24; // [xsp+100h] [xbp+100h]
int v25; // [xsp+104h] [xbp+104h]
int v26; // [xsp+108h] [xbp+108h]
int v27; // [xsp+10Ch] [xbp+10Ch]
int v28; // [xsp+110h] [xbp+110h]
int v29; // [xsp+114h] [xbp+114h]
int v30; // [xsp+118h] [xbp+118h]
int v31; // [xsp+11Ch] [xbp+11Ch]
int v32; // [xsp+120h] [xbp+120h]
int v33; // [xsp+124h] [xbp+124h]
int v34; // [xsp+128h] [xbp+128h]
int v35; // [xsp+12Ch] [xbp+12Ch]
int v36; // [xsp+130h] [xbp+130h]
int v37; // [xsp+134h] [xbp+134h]
if ( !a2 )
return 0;
(*(void (__fastcall **)(TableViewCell *))(*(_QWORD *)a2 + 328LL))(a2);
v4 = (*(__int64 (__fastcall **)(TableViewCell *))(*(_QWORD *)a2 + 328LL))(a2);
v5 = *((_DWORD *)a2 + 120);
v15 = (int)*(float *)(v4 + 4);
cocos2d::CCObject::CCObject((cocos2d::CCObject *)v17);
v6 = *((_DWORD *)a2 + 121);
v7 = *((_DWORD *)a2 + 120);
v17[0] = &off_1418970;
v19 = v6;
v18 = v7;
TableView::removeIndexPathFromPathAddedArray((__int64)this, (__int64)a2 + 424);
(*(void (__fastcall **)(_QWORD, TableViewCell *, __int64))(**((_QWORD **)this + 61) + 552LL))(
*((_QWORD *)this + 61),
a2,
1);
cocos2d::CCArray::removeObject(*((cocos2d::CCArray **)this + 74), a2, 1);
while ( v5 < (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 74)) )
{
v8 = (_DWORD *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 74), v5);
v9 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)v8 + 192LL))(v8);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, v9);
v10 = *(void (__fastcall **)(_DWORD *, __int64 (__fastcall ***)(cocos2d::CCCopying *__hidden, cocos2d::CCZone *)))(*(_QWORD *)v8 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v23, v16[0], (float)v15 + v16[1]);
v10(v8, &v23);
cocos2d::CCObject::CCObject((cocos2d::CCObject *)v20);
v8 += 106;
v11 = v8[14];
v22 = v8[15];
LODWORD(v10) = v22;
v12 = v11 - 1;
v20[0] = &off_1418970;
v21 = v11;
cocos2d::CCObject::CCObject((cocos2d::CCObject *)&v23);
++v5;
v36 = v12;
v37 = (int)v10;
v23 = &off_1418970;
v8[2] = v24;
v8[3] = v25;
v8[4] = v26;
v8[5] = v27;
v8[6] = v28;
v8[7] = v29;
v8[8] = v30;
v8[9] = v31;
v8[10] = v32;
v8[11] = v33;
v8[12] = v34;
v8[13] = v35;
v8[14] = v12;
v8[15] = (_DWORD)v10;
cocos2d::CCObject::~CCObject((cocos2d::CCObject *)&v23);
v20[0] = &off_1418970;
cocos2d::CCObject::~CCObject((cocos2d::CCObject *)v20);
}
v13 = *((_QWORD *)this + 78);
if ( v13 )
(*(void (__fastcall **)(__int64, TableView *, __int64, _QWORD *))(*(_QWORD *)v13 + 16LL))(v13, this, 1, v17);
v17[0] = &off_1418970;
cocos2d::CCObject::~CCObject((cocos2d::CCObject *)v17);
return 1;
}