//
// cocos2d::ccArrayDoubleCapacity from 0xd919bc to 0xd919f4 (56 bytes)
//
// 4 xrefs:
// > cocos2d::CCActionManager::actionAllocWithHashElement @ 0xd36b94
// > cocos2d::ccArrayEnsureExtraCapacity @ 0xd91a10
// > cocos2d::ccCArrayDoubleCapacity @ 0xd924b4
// > ??> @ 0x80278
//
// 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
//
void *__fastcall cocos2d::ccArrayDoubleCapacity(__int64 a1)
{
int v2; // w1
void *v3; // x0
__int64 v4; // x1
void *result; // x0
v2 = *(_DWORD *)(a1 + 4);
v3 = *(void **)(a1 + 16);
v4 = (unsigned int)(2 * v2);
*(_DWORD *)(a1 + 4) = v4;
result = realloc(v3, 8 * v4);
*(_QWORD *)(a1 + 16) = result;
return result;
}