//
// TableView::isDuplicateInVisibleCellArray from 0x1002fe994 to 0x1002fea20 (140 bytes)
//
// 4 xrefs:
// > TableView::checkBoundaryOfContent @ 0x1002ff6dc
// > TableView::checkBoundaryOfContent @ 0x1002ff998
// > TableView::checkLastCell @ 0x1003000e8
// > TableView::checkFirstCell @ 0x100300538
//
// 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
//
bool __fastcall TableView::isDuplicateInVisibleCellArray(TableView *a1, CCIndexPath *a2)
{
__int64 m_cellArray; // x0
unsigned int v5; // w21
m_cellArray = (__int64)a1->m_cellArray;
if ( m_cellArray )
{
if ( (unsigned int)sub_10024A36C(m_cellArray) && (unsigned int)sub_10024A36C((__int64)a1->m_cellArray) )
{
v5 = 0;
while ( 1 )
{
m_cellArray = sub_10024A388((__int64)a1->m_cellArray, v5);
if ( *(_DWORD *)(m_cellArray + 484) == a2->m_section && *(_DWORD *)(m_cellArray + 480) == a2->m_row )
break;
if ( ++v5 >= (unsigned int)sub_10024A36C((__int64)a1->m_cellArray) )
goto LABEL_8;
}
}
else
{
LABEL_8:
LOBYTE(m_cellArray) = 0;
}
}
return m_cellArray;
}