// // cocos2d::ccArrayInsertObjectAtIndex from 0xb21190 to 0xb21214 (132 bytes) // // 3 xrefs: // > cocos2d::CCArray::insertObject @ 0xad45fc // > cocos2d::CCArray::replaceObjectAtIndex @ 0xad46f0 // > @ 0xc5670 // // 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::ccArrayInsertObjectAtIndex(int *a1, cocos2d::CCObject *a2, unsigned int a3) { int v5; // w0 __int64 result; // x0 cocos2d::ccArrayEnsureExtraCapacity(a1, 1); if ( *a1 != a3 ) memmove( (void *)(*((_QWORD *)a1 + 2) + 8LL * (a3 + 1)), (const void *)(*((_QWORD *)a1 + 2) + 8LL * a3), 8LL * (*a1 - a3)); cocos2d::CCObject::retain(a2); v5 = *a1; *(_QWORD *)(*((_QWORD *)a1 + 2) + 8LL * a3) = a2; result = (unsigned int)(v5 + 1); *a1 = result; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source