// // cocos2d::extension::CCArrayForObjectSorting::indexOfSortedObject from 0x7b0484 to 0x7b04f2 (110 bytes) // // 6 xrefs: // > cocos2d::extension::CCTableView::removeCellAtIndex @ 0x7afe06 // > cocos2d::extension::CCTableView::insertCellAtIndex @ 0x7b019e // > cocos2d::extension::CCArrayForObjectSorting::insertSortedObject @ 0x7b0524 // > cocos2d::extension::CCArrayForObjectSorting::removeSortedObject @ 0x7b0550 // > cocos2d::extension::CCArrayForObjectSorting::setObjectID_ofSortedObject @ 0x7b05c4 // > cocos2d::extension::CCArrayForObjectSorting::objectWithObjectID @ 0x7b06b0 // // 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::indexOfSortedObject(int a1, int a2) { unsigned int v3; // r6 int *v4; // r3 const void **v5; // r5 int v6; // r3 unsigned int v7; // r7 const void **v8; // r8 const void *v9; // r0 const void *v10; // t1 void *v11; // r0 unsigned int v12; // r0 if ( !a2 ) return -1; v3 = (*(int (__fastcall **)(int))(*(_DWORD *)a2 + 12))(a2); if ( a1 ) { v4 = *(int **)(a1 + 52); a1 = *v4; if ( *v4 ) { v5 = (const void **)v4[3]; v6 = a1 + 0x3FFFFFFF; v7 = 0; a1 = 0; v8 = &v5[v6]; while ( v5 <= v8 ) { v10 = *v5++; 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; ++a1; v7 = v12; } } } return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source