//
// cocos2d::extension::CCTableView::_setIndexForCell from 0x180015a20 to 0x180015ad0 (176 bytes)
//
// 6 xrefs:
// > cocos2d::extension::CCTableView::updateCellAtIndex @ 0x180014ee2
// > cocos2d::extension::CCTableView::insertCellAtIndex @ 0x18001506d
// > cocos2d::extension::CCTableView::insertCellAtIndex @ 0x1800150a4
// > cocos2d::extension::CCTableView::removeCellAtIndex @ 0x18001533d
// > ??> @ 0x180032408
// > ??> @ 0x18004c7b8
//
// This function is hookable on this platform (idp: pc, 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:15:41 +0000
//
void __fastcall cocos2d::extension::CCTableView::_setIndexForCell(
cocos2d::extension::CCTableView *this,
unsigned int a2,
struct cocos2d::extension::CCTableViewCell *a3)
{
__int64 v3; // rbx
__int64 v7; // rax
__int64 v8; // rax
char v9; // [rsp+40h] [rbp+8h] BYREF
float v10; // [rsp+44h] [rbp+Ch]
char v11; // [rsp+50h] [rbp+18h] BYREF
float v12; // [rsp+54h] [rbp+1Ch]
v3 = *(_QWORD *)a3;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v9, 0.0, 0.0);
(*(void (__fastcall **)(struct cocos2d::extension::CCTableViewCell *, __int64))(v3 + 288))(a3, v7);
cocos2d::extension::CCTableView::__offsetFromIndex((__int64)this, (cocos2d::CCPoint *)&v9, a2);
(*(void (__fastcall **)(_QWORD, char *, cocos2d::extension::CCTableView *, _QWORD))(**((_QWORD **)this + 80) + 8LL))(
*((_QWORD *)this + 80),
&v11,
this,
a2);
if ( !*((_DWORD *)this + 146) )
{
v8 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 56) + 320LL))(*((_QWORD *)this + 56));
v10 = (float)(*(float *)(v8 + 4) - v10) - v12;
}
(*(void (__fastcall **)(struct cocos2d::extension::CCTableViewCell *, char *))(*(_QWORD *)a3 + 184LL))(a3, &v9);
*((_DWORD *)a3 + 82) = a2;
}