//
// cocos2d::extension::CCArrayForObjectSorting::removeSortedObject from 0xaa913c to 0xaa920c (208 bytes)
//
// 2 xrefs:
// > cocos2d::extension::CCTableView::_moveCellOutOfSight @ 0xaa8690
// > ??> @ 0xb1798
//
// 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
//
void cocos2d::extension::CCArrayForObjectSorting::removeSortedObject(
cocos2d::extension::CCArrayForObjectSorting *a1,
cocos2d::extension::CCSortableObject *a2)
{
unsigned int v4; // w21
const void *v5; // x0
cocos2d::extension::CCSortableObject *v6; // x2
void *v7; // x0
int v8; // w22
if ( (unsigned int)cocos2d::CCArray::count(a1) )
{
v4 = cocos2d::extension::CCArrayForObjectSorting::indexOfSortedObject(a1, a2);
if ( v4 < (unsigned int)cocos2d::CCArray::count(a1) && v4 != -1 )
{
v5 = (const void *)cocos2d::CCArray::objectAtIndex(a1, v4);
if ( v5 )
{
v7 = _dynamic_cast(
v5,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
(const struct __class_type_info *)&`typeinfo for'cocos2d::extension::CCSortableObject,
-2);
v8 = (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v7 + 24LL))(v7);
if ( v8 == a2->getObjectID(a2) )
cocos2d::CCArray::removeObjectAtIndex(a1, v4, 1);
}
else
{
__break(0x3E8u);
cocos2d::extension::CCArrayForObjectSorting::setObjectID_ofSortedObject(
(cocos2d::extension::CCArrayForObjectSorting *)0x10102464C457FLL,
0,
v6);
}
}
}
}