// // cocos2d::extension::CCArrayForObjectSorting::objectWithObjectID from 0xaa934c to 0xaa945c (272 bytes) // // 3 xrefs: // > cocos2d::extension::CCTableView::cellAtIndex @ 0xaa75d8 // > cocos2d::extension::CCTableView::insertCellAtIndex @ 0xaa84b0 // > @ 0xb6298 // // 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 *v4; // x19 unsigned int v5; // w21 const void *v6; // x0 cocos2d::extension::CCSortableObject *v7; // x19 if ( !(unsigned int)cocos2d::CCArray::count(a1) ) return nullptr; v4 = (cocos2d::CCObject *)operator new(0x48u); cocos2d::CCObject::CCObject(v4); v4[1].m_uID = 0; v4->__vftable = (cocos2d::CCObject_vtbl *)&off_11FA200; v4[1].__vftable = (cocos2d::CCObject_vtbl *)off_11FA270; `non-virtual thunk to'cocos2d::extension::CCSortedObject::setObjectID( (cocos2d::extension::CCSortedObject *)&v4[1], a2); v5 = cocos2d::extension::CCArrayForObjectSorting::indexOfSortedObject( a1, (cocos2d::extension::CCSortableObject *)&v4[1]); cocos2d::CCObject::release(v4); if ( v5 >= (unsigned int)cocos2d::CCArray::count(a1) || v5 == -1 ) return nullptr; v6 = (const void *)cocos2d::CCArray::objectAtIndex(a1, v5); if ( !v6 ) { __break(0x3E8u); return nullptr; } v7 = (cocos2d::extension::CCSortableObject *)_dynamic_cast( v6, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::extension::CCSortableObject, -2); if ( a2 == v7->getObjectID(v7) ) return v7; else return nullptr; }
GD Web Decomp Icon

GD Web Decomp

Raw Source