// // cocos2d::ccArrayGetIndexOfObject from 0xb20f4c to 0xb20f98 (76 bytes) // // 8 xrefs: // > cocos2d::CCActionManager::removeAction @ 0xac5a5c // > cocos2d::CCArray::indexOfObject @ 0xad4048 // > cocos2d::CCArray::exchangeObject @ 0xad467c // > cocos2d::CCArray::exchangeObject @ 0xad4698 // > cocos2d::ccArrayContainsObject @ 0xb20fa0 // > cocos2d::ccArrayFastRemoveObject @ 0xb21748 // > cocos2d::ccArrayRemoveObject @ 0xb21788 // > @ 0xb0ef8 // // 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 // __int64 __fastcall cocos2d::ccArrayGetIndexOfObject(int *a1, __int64 a2) { int v2; // w4 _QWORD *v3; // x2 __int64 result; // x0 v2 = *a1; v3 = *((_QWORD **)a1 + 2); if ( *a1 ) { if ( *v3 == a2 ) return 0; LODWORD(result) = 0; while ( 1 ) { result = (unsigned int)(result + 1); ++v3; if ( (_DWORD)result == v2 ) break; if ( *v3 == a2 ) return result; } } return 0xFFFFFFFFLL; }
GD Web Decomp Icon

GD Web Decomp

Raw Source