//
// cocos2d::extension::CCArrayForObjectSorting::insertSortedObject from 0x5aa898 to 0x5aa8d2 (58 bytes)
//
// 2 xrefs:
// > cocos2d::extension::CCTableView::_addCellIfNecessary @ 0x5a9968
// > cocos2d::extension::CCArrayForObjectSorting::setObjectID_ofSortedObject @ 0x5aa9e6
//
// 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::insertSortedObject(
cocos2d::extension::CCArrayForObjectSorting *a1,
cocos2d::extension::CCSortableObject *a2)
{
cocos2d::CCObject *v4; // r5
unsigned int v5; // r0
if ( a2 )
v4 = (cocos2d::CCObject *)_dynamic_cast(
a2,
(const struct __class_type_info *)&`typeinfo for'cocos2d::extension::CCSortableObject,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
-2);
else
v4 = nullptr;
v5 = cocos2d::extension::CCArrayForObjectSorting::indexOfSortedObject(a1, a2);
cocos2d::CCArray::insertObject(a1, v4, v5);
}