// // cocos2d::extension::CCArrayForObjectSorting::indexOfSortedObject from 0x5aa820 to 0x5aa88e (110 bytes) // // 6 xrefs: // > cocos2d::extension::CCTableView::insertCellAtIndex @ 0x5aa4b8 // > cocos2d::extension::CCTableView::removeCellAtIndex @ 0x5aa51c // > cocos2d::extension::CCArrayForObjectSorting::insertSortedObject @ 0x5aa8c0 // > cocos2d::extension::CCArrayForObjectSorting::removeSortedObject @ 0x5aa8ec // > cocos2d::extension::CCArrayForObjectSorting::setObjectID_ofSortedObject @ 0x5aa960 // > cocos2d::extension::CCArrayForObjectSorting::objectWithObjectID @ 0x5aaa4c // // 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 // unsigned int cocos2d::extension::CCArrayForObjectSorting::indexOfSortedObject( cocos2d::extension::CCArrayForObjectSorting *num, cocos2d::extension::CCSortableObject *a2) { unsigned int v3; // r6 cocos2d::ccArray *data; // r3 cocos2d::CCObject **arr; // r5 char *v6; // r3 unsigned int v7; // r7 cocos2d::CCObject **v8; // r8 const void *v9; // r0 const void *v10; // t1 void *v11; // r0 unsigned int v12; // r0 if ( !a2 ) return -1; v3 = a2->getObjectID(a2); if ( num ) { data = num->data; num = (cocos2d::extension::CCArrayForObjectSorting *)data->num; if ( data->num ) { arr = data->arr; v6 = (char *)&num[19173961].m_uID + 3; v7 = 0; num = nullptr; v8 = &arr[(_DWORD)v6]; while ( arr <= v8 ) { v10 = *arr++; v9 = v10; if ( !v10 ) break; v11 = _dynamic_cast( v9, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::extension::CCSortableObject, -2); v12 = (*(int (__fastcall **)(void *))(*(_DWORD *)v11 + 12))(v11); if ( v3 == v12 || v3 >= v7 && v3 < v12 ) break; num = (cocos2d::extension::CCArrayForObjectSorting *)((char *)num + 1); v7 = v12; } } } return (unsigned int)num; }
GD Web Decomp Icon

GD Web Decomp

Raw Source