//
// cocos2d::ccCArrayNew from 0x7f79f6 to 0x7f7a1a (36 bytes)
//
// 8 xrefs:
// > cocos2d::CCKeypadDispatcher::CCKeypadDispatcher @ 0x7d2028
// > cocos2d::CCKeypadDispatcher::CCKeypadDispatcher @ 0x7d2030
// > cocos2d::CCTMXLayer::initWithTilesetInfo @ 0x80473e
// > cocos2d::CCTouchDispatcher::init @ 0x807c80
// > cocos2d::CCKeyboardDispatcher::CCKeyboardDispatcher @ 0x808964
// > cocos2d::CCKeyboardDispatcher::CCKeyboardDispatcher @ 0x80896c
// > cocos2d::CCMouseDispatcher::CCMouseDispatcher @ 0x809db0
// > cocos2d::CCMouseDispatcher::CCMouseDispatcher @ 0x809db8
//
// 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:11 +0000
//
_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;
}