//
// cocos2d::CCArray::createWithCapacity from 0xd46dd8 to 0xd46e4c (116 bytes)
//
// 32 xrefs:
// > PlayerObject::pushButton @ 0x76ac80
// > PlayerObject::pushButton @ 0x76ac8c
// > LevelEditorLayer::removeAllObjects @ 0x7908f8
// > DrawGridLayer::loadTimeMarkers @ 0x7997e8
// > VideoOptionsLayer::init @ 0x8f4ad8
// > MusicDownloadManager::getAllMusicObjects @ 0x95ca5c
// > MusicDownloadManager::getAllMusicArtists @ 0x95dfec
// > MusicDownloadManager::getAllMusicTags @ 0x95e544
// > SFXSearchResult::updateObjects @ 0x96abdc
// > SFXSearchResult::updateObjects @ 0x96b130
// > GJBaseGameLayer::groupStickyObjects @ 0x9a3bc0
// > GJBaseGameLayer::init @ 0x9bd3e8
// > EditorUI::alignObjectsOnAxis @ 0xc02b1c
// > EditorUI::alignObjects @ 0xc0300c
// > SelectFontLayer2::init @ 0xd03404
// > cocos2d::extension::CCControl::dispatchListforControlEvent @ 0xd0b648
// > cocos2d::extension::CCControl::sendActionsForControlEvents @ 0xd0bc6c
// > cocos2d::CCScheduler::scheduleScriptFunc @ 0xd24990
// > cocos2d::CCAnimate::reverse @ 0xd36848
// > cocos2d::CCNode::childrenAlloc @ 0xd3e87c
// > cocos2d::CCDictionary::allKeys @ 0xd41818
// > cocos2d::CCLayerMultiplex::initWithLayers @ 0xd5dd40
// > cocos2d::CCLayerMultiplex::initWithArray @ 0xd5df70
// > cocos2d::CCAnimationCache::parseVersion1 @ 0xd85490
// > cocos2d::CCAnimationCache::parseVersion2 @ 0xd85710
// > cocos2d::CCNotificationCenter::CCNotificationCenter @ 0xd8e7f0
// > cocos2d::CCNotificationCenter::postNotification @ 0xd8eff4
// > cocos2d::CCTMXMapInfo::internalInit @ 0xdae720
// > cocos2d::CCTouchDispatcher::init @ 0xdb12c8
// > cocos2d::CCTouchDispatcher::init @ 0xdb12d8
// > cocos2d::CCTouchDispatcher::init @ 0xdb12e8
// > ??> @ 0x102ce8
//
// 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:07:35 +0000
//
cocos2d::CCArray *__fastcall cocos2d::CCArray::createWithCapacity(cocos2d::CCArray *this)
{
cocos2d::CCArray *v1; // x19
unsigned int v3; // [xsp+28h] [xbp+28h]
v3 = (unsigned int)this;
v1 = (cocos2d::CCArray *)operator new(0x40u);
cocos2d::CCArray::CCArray(v1);
if ( (unsigned __int8)cocos2d::CCArray::initWithCapacity(v1, v3) )
{
cocos2d::CCObject::autorelease(v1);
return v1;
}
else
{
(*(void (__fastcall **)(cocos2d::CCArray *))(*(_QWORD *)v1 + 16LL))(v1);
return nullptr;
}
}