//
// cocos2d::extension::CCTableView::cellAtIndex from 0xd18f4c to 0xd18fc4 (120 bytes)
//
// 4 xrefs:
// > cocos2d::extension::CCTableView::removeCellAtIndex @ 0xd1a410
// > cocos2d::extension::CCTableView::updateCellAtIndex @ 0xd1a664
// > cocos2d::extension::CCTableView::ccTouchBegan @ 0xd1acc8
// > ??> @ 0xfb638
//
// 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::cellAtIndex(cocos2d::extension::CCTableView *this, unsigned int a2)
{
_QWORD *v2; // x5
__int64 *v3; // x2
_QWORD *v4; // x4
__int64 v5; // x0
v2 = (_QWORD *)(*((_QWORD *)this + 74) + 8LL);
v3 = (__int64 *)*v2;
v4 = v2;
if ( !*v2 )
return 0;
do
{
while ( *((_DWORD *)v3 + 7) >= a2 )
{
v4 = v3;
v3 = (__int64 *)*v3;
if ( !v3 )
goto LABEL_4;
}
v3 = (__int64 *)v3[1];
}
while ( v3 );
LABEL_4:
if ( v2 != v4
&& *((_DWORD *)v4 + 7) <= a2
&& (v5 = cocos2d::extension::CCArrayForObjectSorting::objectWithObjectID(
*((cocos2d::extension::CCArrayForObjectSorting **)this + 78),
a2)) != 0 )
{
return v5 - 320;
}
else
{
return 0;
}
}