//
// TableView::isDuplicateInVisibleCellArray from 0x140087900 to 0x14008798a (138 bytes)
//
// 4 xrefs:
// > TableView::checkBoundaryOfContent @ 0x140088f57
// > TableView::checkFirstCell @ 0x140089444
// > TableView::checkLastCell @ 0x1400896ea
// > ??> @ 0x1409125b4
//
// 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 11:25:57 +0000
//
struct cocos2d::CCObject *__fastcall TableView::isDuplicateInVisibleCellArray(__int64 a1, __int64 a2)
{
cocos2d::CCArray *v4; // rcx
unsigned int v5; // ebx
struct cocos2d::CCObject *result; // rax
v4 = *(cocos2d::CCArray **)(a1 + 584);
if ( !v4 )
return nullptr;
if ( !cocos2d::CCArray::count(v4) )
return nullptr;
v5 = 0;
if ( !cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 584)) )
return nullptr;
while ( 1 )
{
result = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 584), v5);
if ( *((_DWORD *)result + 121) == *(_DWORD *)(a2 + 60) && *((_DWORD *)result + 120) == *(_DWORD *)(a2 + 56) )
break;
if ( ++v5 >= cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 584)) )
return nullptr;
}
return result;
}