//
// cocos2d::extension::CCTableView::_offsetFromIndex from 0x7af6dc to 0x7af744 (104 bytes)
//
// 1 xrefs:
// > cocos2d::extension::CCTableView::_setIndexForCell @ 0x7af882
//
// 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 12:00:05 +0000
//
cocos2d::extension::CCTableView *__fastcall cocos2d::extension::CCTableView::_offsetFromIndex(
cocos2d::extension::CCTableView *this,
unsigned int a2,
float a3,
int a4)
{
int Container; // r0
int v8; // r0
unsigned int v11; // [sp+4h] [bp-Ch] BYREF
float v12; // [sp+8h] [bp-8h]
int v13; // [sp+Ch] [bp-4h]
v11 = a2;
v12 = a3;
v13 = a4;
cocos2d::extension::CCTableView::__offsetFromIndex(this, a2, SLODWORD(a3));
(*(void (__fastcall **)(unsigned int *, _DWORD, unsigned int, float, cocos2d::extension::CCTableView *))(**(_DWORD **)(a2 + 484) + 8))(
&v11,
*(_DWORD *)(a2 + 484),
a2,
COERCE_FLOAT(LODWORD(a3)),
this);
if ( !*(_DWORD *)(a2 + 456) )
{
Container = cocos2d::extension::CCScrollView::getContainer((cocos2d::extension::CCScrollView *)a2);
v8 = (*(int (__fastcall **)(int))(*(_DWORD *)Container + 164))(Container);
*((float *)this + 1) = (float)(*(float *)(v8 + 4) - *((float *)this + 1)) - v12;
}
return this;
}