//
// cocos2d::extension::CCTableView::_offsetFromIndex from 0x10041a090 to 0x10041a157 (199 bytes)
//
// 5 xrefs:
// > cocos2d::extension::CCTableView::updateCellAtIndex @ 0x1004199a7
// > cocos2d::extension::CCTableView::_setIndexForCell @ 0x100419b60
// > cocos2d::extension::CCTableView::insertCellAtIndex @ 0x100419d55
// > cocos2d::extension::CCTableView::insertCellAtIndex @ 0x100419dcd
// > cocos2d::extension::CCTableView::removeCellAtIndex @ 0x100419fec
//
// 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:30:12 +0000
//
__int64 __fastcall cocos2d::extension::CCTableView::_offsetFromIndex(__int64 a1, __int64 a2, unsigned int a3)
{
float v4; // xmm1_4
float v5; // xmm0_4
__int64 Container; // rax
__int64 v7; // rax
__int64 v9; // [rsp+0h] [rbp-30h] BYREF
_QWORD v10[5]; // [rsp+8h] [rbp-28h] BYREF
sub_1002782A0((_QWORD *)a1);
sub_100278600(v10);
if ( *(_DWORD *)(a2 + 424) )
{
v4 = *(float *)(*(_QWORD *)(a2 + 600) + 4LL * a3);
v5 = 0.0;
}
else
{
v5 = *(float *)(*(_QWORD *)(a2 + 600) + 4LL * a3);
v4 = 0.0;
}
sub_100278250((float *)&v9, v5, v4);
sub_100278300((_QWORD *)a1, &v9);
(*(void (__fastcall **)(_QWORD *, _QWORD, __int64, _QWORD))(**(_QWORD **)(a2 + 640) + 16LL))(
v10,
*(_QWORD *)(a2 + 640),
a2,
a3);
if ( !*(_DWORD *)(a2 + 584) )
{
Container = cocos2d::extension::CCScrollView::getContainer(a2);
v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)Container + 328LL))(Container);
*(float *)(a1 + 4) = (float)(*(float *)(v7 + 4) - *(float *)(a1 + 4)) - *((float *)v10 + 1);
}
return a1;
}