//
// cocos2d::extension::CCTableView::cellAtIndex from 0x10042cbe0 to 0x10042cc43 (99 bytes)
//
// 0 xrefs:
//
// 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::extension::CCTableViewCell *__fastcall cocos2d::extension::CCTableView::cellAtIndex(
cocos2d::extension::CCTableView *a1,
unsigned int a2)
{
__int64 v2; // rax
__int64 v3; // rcx
__int64 v4; // rax
__int64 v5; // rdx
cocos2d::extension::CCTableViewCell *result; // rax
cocos2d::extension::CCSortableObject *v7; // rcx
v2 = *(_QWORD *)&a1[1].m_nTag;
v3 = *(_QWORD *)(v2 + 8);
if ( !v3 )
return nullptr;
v4 = v2 + 8;
v5 = v4;
do
{
if ( *(_DWORD *)(v3 + 28) >= a2 )
v5 = v3;
v3 = *(_QWORD *)(v3 + 8LL * (*(_DWORD *)(v3 + 28) < a2));
}
while ( v3 );
if ( v5 == v4 || *(_DWORD *)(v5 + 28) > a2 )
return nullptr;
v7 = cocos2d::extension::CCArrayForObjectSorting::objectWithObjectID(
*(cocos2d::extension::CCArrayForObjectSorting **)&a1[1].m_uOrderOfArrival,
a2);
result = (cocos2d::extension::CCTableViewCell *)&v7[-40];
if ( !v7 )
return nullptr;
return result;
}