//
// cocos2d::extension::CCArrayForObjectSorting::removeSortedObject from 0x7b0540 to 0x7b05ae (110 bytes)
//
// 1 xrefs:
// > cocos2d::extension::CCTableView::_moveCellOutOfSight @ 0x7afd76
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:00:06 +0000
//
unsigned int __fastcall cocos2d::extension::CCArrayForObjectSorting::removeSortedObject(cocos2d::CCArray *a1, int a2)
{
unsigned int result; // r0
unsigned int v5; // r4
const void *v6; // r0
void *v7; // r0
int v8; // r7
result = cocos2d::CCArray::count(a1);
if ( result )
{
v5 = cocos2d::extension::CCArrayForObjectSorting::indexOfSortedObject((int)a1, a2);
result = cocos2d::CCArray::count(a1);
if ( v5 < result && v5 != -1 )
{
v6 = (const void *)cocos2d::CCArray::objectAtIndex(a1, v5);
if ( !v6 )
__und(0xFFu);
v7 = _dynamic_cast(
v6,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
(const struct __class_type_info *)&`typeinfo for'cocos2d::extension::CCSortableObject,
-2);
v8 = (*(int (__fastcall **)(void *))(*(_DWORD *)v7 + 12))(v7);
result = (*(int (__fastcall **)(int))(*(_DWORD *)a2 + 12))(a2);
if ( v8 == result )
return cocos2d::CCArray::removeObjectAtIndex(a1, v5, 1);
}
}
return result;
}