//
// cocos2d::extension::CCTableView::_setIndexForCell from 0xd19494 to 0xd19544 (176 bytes)
//
// 5 xrefs:
// > cocos2d::extension::CCTableView::removeCellAtIndex @ 0xd1a484
// > cocos2d::extension::CCTableView::updateCellAtIndex @ 0xd1a6a4
// > cocos2d::extension::CCTableView::insertCellAtIndex @ 0xd1aa1c
// > cocos2d::extension::CCTableView::insertCellAtIndex @ 0xd1aa64
// > ??> @ 0x6dcd8
//
// 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 13:07:07 +0000
//
__int64 __fastcall cocos2d::extension::CCTableView::_setIndexForCell(
cocos2d::extension::CCTableView *this,
unsigned int a2,
cocos2d::extension::CCTableViewCell *a3)
{
void (__fastcall *v6)(cocos2d::extension::CCTableViewCell *, float *); // x24
cocos2d::extension::CCTableView *v7; // x0
void (__fastcall *v8)(cocos2d::extension::CCTableViewCell *, float *); // x23
float v10; // [xsp+40h] [xbp+40h] BYREF
v6 = *(void (__fastcall **)(cocos2d::extension::CCTableViewCell *, float *))(*(_QWORD *)a3 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v10, 0.0, 0.0);
v6(a3, &v10);
v7 = this;
v8 = *(void (__fastcall **)(cocos2d::extension::CCTableViewCell *, float *))(*(_QWORD *)a3 + 184LL);
cocos2d::extension::CCTableView::_offsetFromIndex(v7, a2, &v10);
v8(a3, &v10);
cocos2d::extension::CCTableViewCell::setIdx(a3, a2);
return _stack_chk_guard;
}