//
// cocos2d::ccArrayNew from 0xb20e10 to 0xb20e74 (100 bytes)
//
// 5 xrefs:
// > cocos2d::CCScheduler::scheduleSelector @ 0xab14dc
// > cocos2d::CCActionManager::actionAllocWithHashElement @ 0xac4d88
// > cocos2d::CCArray::initWithCapacity @ 0xad3eb8
// > cocos2d::CCParallaxNode::CCParallaxNode @ 0xb38144
// > ??> @ 0xb7420
//
// 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
//
_QWORD *__fastcall cocos2d::ccArrayNew(cocos2d *this)
{
int v1; // w20
size_t v2; // x21
_QWORD *v3; // x19
v1 = (int)this;
v2 = (unsigned int)this;
if ( !(_DWORD)this )
{
v2 = 1;
v1 = 1;
}
v3 = malloc(0x18u);
*(_DWORD *)v3 = 0;
v3[2] = calloc(v2, 8u);
*((_DWORD *)v3 + 1) = v1;
*((_DWORD *)v3 + 2) = -1;
return v3;
}