//
// cocos2d::ccCArrayNew from 0x5ec9b0 to 0x5ec9d4 (36 bytes)
//
// 8 xrefs:
// > cocos2d::CCKeypadDispatcher::CCKeypadDispatcher @ 0x5cad18
// > cocos2d::CCKeypadDispatcher::CCKeypadDispatcher @ 0x5cad20
// > cocos2d::CCTMXLayer::initWithTilesetInfo @ 0x5f745e
// > cocos2d::CCTouchDispatcher::init @ 0x5fa638
// > cocos2d::CCKeyboardDispatcher::CCKeyboardDispatcher @ 0x5fb134
// > cocos2d::CCKeyboardDispatcher::CCKeyboardDispatcher @ 0x5fb13c
// > cocos2d::CCMouseDispatcher::CCMouseDispatcher @ 0x5fc08c
// > cocos2d::CCMouseDispatcher::CCMouseDispatcher @ 0x5fc094
//
// 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
//
_DWORD *__fastcall cocos2d::ccCArrayNew(cocos2d *this, unsigned int a2)
{
int v2; // r5
_DWORD *v3; // r4
void *v4; // r0
if ( this )
v2 = (int)this;
else
v2 = 1;
v3 = malloc(0x10u);
*v3 = 0;
v4 = malloc(4 * v2);
v3[1] = v2;
v3[3] = v4;
return v3;
}