// // cocos2d::extension::CCArrayForObjectSorting::setObjectID_ofSortedObject from 0xaa920c to 0xaa934c (320 bytes) // // 2 xrefs: // > cocos2d::extension::CCArrayForObjectSorting::removeSortedObject @ 0xaa9208 // > @ 0x57678 // // 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::setObjectID_ofSortedObject( cocos2d::extension::CCArrayForObjectSorting *a1, unsigned int a2, cocos2d::extension::CCSortableObject *a3) { cocos2d::CCObject *v3; // x22 cocos2d::extension::CCSortableObject *v4; // x24 unsigned int v8; // w19 const void *v9; // x0 cocos2d::extension::CCSortableObject *v10; // x0 unsigned int v11; // w23 v8 = cocos2d::extension::CCArrayForObjectSorting::indexOfSortedObject(a1, a3); if ( v8 < (unsigned int)cocos2d::CCArray::count(a1) && v8 != -1 ) { v9 = (const void *)cocos2d::CCArray::objectAtIndex(a1, v8); if ( v9 && (v3 = (cocos2d::CCObject *)&`typeinfo for'cocos2d::CCObject, v10 = (cocos2d::extension::CCSortableObject *)_dynamic_cast( v9, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::extension::CCSortableObject, -2), (v4 = v10) != nullptr) ) { v3 = (cocos2d::CCObject *)_dynamic_cast( v10, (const struct __class_type_info *)&`typeinfo for'cocos2d::extension::CCSortableObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, -2); cocos2d::CCObject::retain(v3); v11 = v4->getObjectID(v4); if ( v11 != a3->getObjectID(a3) ) { LABEL_6: cocos2d::CCObject::release(v3); return; } } else { cocos2d::CCObject::retain(nullptr); __break(0x3E8u); } cocos2d::CCArray::removeObjectAtIndex(a1, v8, 1); v4->setObjectID(v4, a2); cocos2d::extension::CCArrayForObjectSorting::insertSortedObject(a1, v4); goto LABEL_6; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source