//
// cocos2d::extension::CCTableView::_offsetFromIndex from 0x5a9b04 to 0x5a9b6c (104 bytes)
//
// 1 xrefs:
// > cocos2d::extension::CCTableView::_setIndexForCell @ 0x5a9caa
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
cocos2d::CCPoint *cocos2d::extension::CCTableView::_offsetFromIndex(
cocos2d::CCPoint *__return_ptr retstr,
cocos2d::extension::CCTableView *a2,
unsigned int a3)
{
cocos2d::CCNode *Container; // r0
int v7; // r0
cocos2d::extension::CCTableView *v10; // [sp+4h] [bp-Ch] BYREF
unsigned int v11; // [sp+8h] [bp-8h]
v10 = a2;
v11 = a3;
cocos2d::extension::CCTableView::__offsetFromIndex(retstr, a2, a3);
(*(void (__fastcall **)(cocos2d::extension::CCTableView **, int, cocos2d::extension::CCTableView *, unsigned int, cocos2d::CCPoint *))(*(_DWORD *)a2[1].m_uUnknown + 8))(
&v10,
a2[1].m_uUnknown,
a2,
a3,
retstr);
if ( !a2[1].m_uID )
{
Container = cocos2d::extension::CCScrollView::getContainer(a2);
v7 = (int)Container->getContentSize(Container);
retstr->y = (float)(*(float *)(v7 + 4) - retstr->y) - *(float *)&v11;
}
return retstr;
}