//
// cocos2d::extension::CCArrayForObjectSorting::objectWithObjectID from 0x5aaa0c to 0x5aaaa8 (156 bytes)
//
// 2 xrefs:
// > cocos2d::extension::CCTableView::cellAtIndex @ 0x5a9e54
// > cocos2d::extension::CCTableView::insertCellAtIndex @ 0x5aa474
//
// 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
//
cocos2d::extension::CCSortableObject *cocos2d::extension::CCArrayForObjectSorting::objectWithObjectID(
cocos2d::extension::CCArrayForObjectSorting *a1,
unsigned int a2)
{
cocos2d::CCObject *v5; // r4
unsigned int v6; // r5
const void *v7; // r0
cocos2d::extension::CCSortableObject *v8; // r4
if ( !cocos2d::CCArray::count(a1) )
return nullptr;
v5 = (cocos2d::CCObject *)operator new(0x3Cu);
cocos2d::CCObject::CCObject(v5);
v5->__vftable = (cocos2d::CCObject_vtbl *)&off_A9E440;
v5[1].__vftable = (cocos2d::CCObject_vtbl *)&off_A9E478;
v5[1].m_uID = 0;
`non-virtual thunk to'cocos2d::extension::CCSortedObject::setObjectID(
(cocos2d::extension::CCSortedObject *)&v5[1],
a2);
v6 = cocos2d::extension::CCArrayForObjectSorting::indexOfSortedObject(
a1,
(cocos2d::extension::CCSortableObject *)&v5[1]);
cocos2d::CCObject::release(v5);
if ( v6 >= cocos2d::CCArray::count(a1) || v6 == -1 )
return nullptr;
v7 = (const void *)cocos2d::CCArray::objectAtIndex(a1, v6);
if ( !v7 )
__und(0xFFu);
v8 = (cocos2d::extension::CCSortableObject *)_dynamic_cast(
v7,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
(const struct __class_type_info *)&`typeinfo for'cocos2d::extension::CCSortableObject,
-2);
if ( v8->getObjectID(v8) == a2 )
return v8;
else
return nullptr;
}