//
// cocos2d::ccArrayDoubleCapacity from 0x7f7548 to 0x7f755e (22 bytes)
//
// 3 xrefs:
// > cocos2d::CCActionManager::actionAllocWithHashElement @ 0x7bfc7c
// > cocos2d::ccArrayEnsureExtraCapacity @ 0x7f7570
// > cocos2d::ccCArrayDoubleCapacity @ 0x7f7a1a
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:01:10 +0000
//
void *__fastcall cocos2d::ccArrayDoubleCapacity(int a1)
{
int v2; // r1
void *result; // r0
v2 = *(_DWORD *)(a1 + 4);
*(_DWORD *)(a1 + 4) = 2 * v2;
result = realloc(*(void **)(a1 + 12), 8 * v2);
*(_DWORD *)(a1 + 12) = result;
return result;
}