//
// cocos2d::ccCArrayNew from 0xd92458 to 0xd924b4 (92 bytes)
//
// 9 xrefs:
// > cocos2d::CCKeypadDispatcher::CCKeypadDispatcher @ 0xd53f20
// > cocos2d::CCKeypadDispatcher::CCKeypadDispatcher @ 0xd53f2c
// > cocos2d::CCTMXLayer::initWithTilesetInfo @ 0xdab538
// > cocos2d::CCTouchDispatcher::init @ 0xdb12f8
// > cocos2d::CCKeyboardDispatcher::CCKeyboardDispatcher @ 0xdb2c1c
// > cocos2d::CCKeyboardDispatcher::CCKeyboardDispatcher @ 0xdb2c28
// > cocos2d::CCMouseDispatcher::CCMouseDispatcher @ 0xdb41f8
// > cocos2d::CCMouseDispatcher::CCMouseDispatcher @ 0xdb4204
// > ??> @ 0xf6fd0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:08:19 +0000
//
_DWORD *__fastcall cocos2d::ccCArrayNew(cocos2d *this)
{
int v1; // w20
size_t v2; // x21
_DWORD *v3; // x19
void *v4; // x0
v1 = (int)this;
if ( (_DWORD)this )
{
v2 = 8LL * (unsigned int)this;
}
else
{
v2 = 8;
v1 = 1;
}
v3 = malloc(0x18u);
*v3 = 0;
v4 = malloc(v2);
v3[1] = v1;
*((_QWORD *)v3 + 2) = v4;
return v3;
}