//
// cocos2d::ccArrayDoubleCapacity from 0xb20e74 to 0xb20eac (56 bytes)
//
// 4 xrefs:
// > cocos2d::CCActionManager::actionAllocWithHashElement @ 0xac4d7c
// > cocos2d::ccArrayEnsureExtraCapacity @ 0xb20ec8
// > cocos2d::ccCArrayDoubleCapacity @ 0xb21910
// > ??> @ 0x5da98
//
// 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
//
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;
}