//
// cocos2d::extension::CCArrayForObjectSorting::insertSortedObject from 0x7b04fc to 0x7b0536 (58 bytes)
//
// 2 xrefs:
// > cocos2d::extension::CCTableView::_addCellIfNecessary @ 0x7afe94
// > cocos2d::extension::CCArrayForObjectSorting::setObjectID_ofSortedObject @ 0x7b064a
//
// 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
//
int __fastcall cocos2d::extension::CCArrayForObjectSorting::insertSortedObject(cocos2d::CCArray *a1, void *lpsrc)
{
cocos2d::CCObject *v4; // r5
unsigned int v5; // r0
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((int)a1, (int)lpsrc);
return cocos2d::CCArray::insertObject(a1, v4, v5);
}