//
// cocos2d::ccArrayEnsureExtraCapacity from 0xd919f4 to 0xd91a34 (64 bytes)
//
// 10 xrefs:
// > cocos2d::CCScheduler::scheduleSelector @ 0xd22d80
// > cocos2d::ccArrayAppendObjectWithResize @ 0xd91bf0
// > cocos2d::ccArrayAppendObjectWithResizeNew @ 0xd91c20
// > cocos2d::ccArrayAppendObjectWithResizeBatch @ 0xd91c50
// > cocos2d::ccArrayAppendArrayWithResize @ 0xd91cd4
// > cocos2d::ccArrayInsertObjectAtIndex @ 0xd91d0c
// > cocos2d::ccArrayInsertObjectAtIndexBatch @ 0xd91d90
// > cocos2d::ccArrayAppendObjectWithResizeChild @ 0xd91ffc
// > cocos2d::ccCArrayEnsureExtraCapacity @ 0xd924b8
// > ??> @ 0x8bb40
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:08:19 +0000
//
__int64 __fastcall cocos2d::ccArrayEnsureExtraCapacity(_DWORD *a1, int a2)
{
__int64 result; // x0
while ( 1 )
{
result = (unsigned int)(a2 + *a1);
if ( a1[1] >= (unsigned int)result )
break;
cocos2d::ccArrayDoubleCapacity((__int64)a1);
}
return result;
}