//
// TableView::isDuplicateIndexPath from 0x1002fea20 to 0x1002feab4 (148 bytes)
//
// 7 xrefs:
// > TableView::reloadData @ 0x1002ff124
// > TableView::checkBoundaryOfContent @ 0x1002ff808
// > TableView::checkBoundaryOfContent @ 0x1002ffabc
// > TableView::checkBoundaryOfContent @ 0x1002ffae4
// > TableView::checkLastCell @ 0x1003001a0
// > TableView::checkLastCell @ 0x1003003d8
// > TableView::checkFirstCell @ 0x10030066c
//
// 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::isDuplicateIndexPath(TableView *a1, CCIndexPath *a2)
{
cocos2d::CCArray *m_indexPathArray; // x0
unsigned int v5; // w21
__int64 v6; // x0
m_indexPathArray = a1->m_indexPathArray;
if ( m_indexPathArray )
{
LODWORD(m_indexPathArray) = sub_10024A36C((__int64)m_indexPathArray);
if ( (_DWORD)m_indexPathArray )
{
LODWORD(m_indexPathArray) = sub_10024A36C((__int64)a1->m_indexPathArray);
if ( (_DWORD)m_indexPathArray )
{
v5 = 0;
while ( 1 )
{
v6 = sub_10024A388((__int64)a1->m_indexPathArray, v5);
if ( *(_DWORD *)(v6 + 60) == a2->m_section && *(_DWORD *)(v6 + 56) == a2->m_row )
break;
if ( ++v5 >= (unsigned int)sub_10024A36C((__int64)a1->m_indexPathArray) )
{
LOBYTE(m_indexPathArray) = 0;
return (char)m_indexPathArray;
}
}
LOBYTE(m_indexPathArray) = 1;
}
}
}
return (char)m_indexPathArray;
}