//
// cocos2d::extension::CCArrayForObjectSorting::insertSortedObject from 0xd1afa4 to 0xd1b010 (108 bytes)
//
// 3 xrefs:
// > cocos2d::extension::CCTableView::_addCellIfNecessary @ 0xd1a50c
// > cocos2d::extension::CCArrayForObjectSorting::setObjectID_ofSortedObject @ 0xd1b218
// > ??> @ 0xc4eb8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:07:08 +0000
//
__int64 __fastcall cocos2d::extension::CCArrayForObjectSorting::insertSortedObject(cocos2d::CCArray *a1, void *lpsrc)
{
cocos2d::CCObject *v4; // x21
unsigned int v5; // w0
if ( lpsrc )
v4 = (cocos2d::CCObject *)_dynamic_cast(
lpsrc,
(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((__int64)a1, (__int64)lpsrc);
return cocos2d::CCArray::insertObject(a1, v4, v5);
}