//
// cocos2d::ccArrayEnsureExtraCapacity from 0x5ec53a to 0x5ec554 (26 bytes)
//
// 9 xrefs:
// > cocos2d::CCScheduler::scheduleSelector @ 0x5ae60a
// > cocos2d::ccArrayAppendObjectWithResize @ 0x5ec5fe
// > cocos2d::ccArrayAppendObjectWithResizeNew @ 0x5ec616
// > cocos2d::ccArrayAppendObjectWithResizeBatch @ 0x5ec62e
// > cocos2d::ccArrayAppendArrayWithResize @ 0x5ec666
// > cocos2d::ccArrayInsertObjectAtIndex @ 0x5ec680
// > cocos2d::ccArrayInsertObjectAtIndexBatch @ 0x5ec6ba
// > cocos2d::ccArrayAppendObjectWithResizeChild @ 0x5ec7dc
// > cocos2d::ccCArrayEnsureExtraCapacity @ 0x5ec9d8
//
// 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
//
_DWORD *__fastcall cocos2d::ccArrayEnsureExtraCapacity(_DWORD *result, int a2)
{
_DWORD *i; // r4
for ( i = result; i[1] < (unsigned int)(*i + a2); result = cocos2d::ccArrayDoubleCapacity((int)i) )
;
return result;
}