//
// cocos2d::extension::CCTableView::cellAtIndex from 0x100419850 to 0x1004198b3 (99 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 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 12:30:12 +0000
//
char *__fastcall cocos2d::extension::CCTableView::cellAtIndex(__int64 a1, unsigned int a2)
{
__int64 v2; // rax
__int64 v3; // rcx
__int64 v4; // rax
__int64 v5; // rdx
char *result; // rax
char *v7; // rcx
v2 = *(_QWORD *)(a1 + 592);
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 = (char *)cocos2d::extension::CCArrayForObjectSorting::objectWithObjectID(*(_QWORD *)(a1 + 624), a2);
result = v7 - 320;
if ( !v7 )
return nullptr;
return result;
}