//
// cocos2d::extension::CCTableView::cellAtIndex from 0x180015230 to 0x18001529e (110 bytes)
//
// 2 xrefs:
// > ??> @ 0x18002fdf8
// > ??> @ 0x18004a758
//
// 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
//
struct cocos2d::extension::CCTableViewCell *__fastcall cocos2d::extension::CCTableView::cellAtIndex(
cocos2d::extension::CCTableView *this,
unsigned int a2)
{
__int64 *v2; // rax
__int64 *v3; // r9
__int64 *v4; // r8
struct cocos2d::extension::CCSortableObject *v5; // rax
v2 = **((__int64 ***)this + 74);
v3 = v2;
v4 = (__int64 *)v2[1];
while ( !*((_BYTE *)v4 + 25) )
{
if ( *((_DWORD *)v4 + 7) >= a2 )
{
v3 = v4;
v4 = (__int64 *)*v4;
}
else
{
v4 = (__int64 *)v4[2];
}
}
if ( *((_BYTE *)v3 + 25) )
return nullptr;
if ( a2 < *((_DWORD *)v3 + 7) )
return nullptr;
if ( v3 == v2 )
return nullptr;
v5 = cocos2d::extension::CCArrayForObjectSorting::objectWithObjectID(
*((cocos2d::extension::CCArrayForObjectSorting **)this + 78),
a2);
if ( !v5 )
return nullptr;
else
return (struct cocos2d::extension::CCSortableObject *)((char *)v5 - 320);
}