//
// cocos2d::CCArray::createWithCapacity from 0xad3fb8 to 0xad402c (116 bytes)
//
// 31 xrefs:
// > GJSongBrowser::loadPage @ 0x5beeb8
// > PlayerObject::pushButton @ 0x63c9ec
// > PlayerObject::pushButton @ 0x63c9f8
// > LevelEditorLayer::removeAllObjects @ 0x66595c
// > DrawGridLayer::loadTimeMarkers @ 0x66bc00
// > EditorUI::alignObjects @ 0x6b5cf8
// > VideoOptionsLayer::init @ 0x7cccec
// > MusicDownloadManager::getAllMusicObjects @ 0x82a884
// > MusicDownloadManager::getAllMusicTags @ 0x82a930
// > MusicDownloadManager::getAllMusicArtists @ 0x82aad8
// > SFXSearchResult::updateObjects @ 0x8325fc
// > SFXSearchResult::updateObjects @ 0x832abc
// > GJBaseGameLayer::groupStickyObjects @ 0x8607e8
// > GJBaseGameLayer::init @ 0x893d00
// > cocos2d::extension::CCControl::dispatchListforControlEvent @ 0xa99928
// > cocos2d::extension::CCControl::sendActionsForControlEvents @ 0xa99fe8
// > cocos2d::CCScheduler::scheduleScriptFunc @ 0xab2e88
// > cocos2d::CCAnimate::reverse @ 0xac48ac
// > cocos2d::CCNode::childrenAlloc @ 0xacc90c
// > cocos2d::CCDictionary::allKeys @ 0xacf3ac
// > cocos2d::CCLayerMultiplex::initWithLayers @ 0xaebfe0
// > cocos2d::CCLayerMultiplex::initWithArray @ 0xaec210
// > cocos2d::CCAnimationCache::parseVersion1 @ 0xb13c78
// > cocos2d::CCAnimationCache::parseVersion2 @ 0xb13f74
// > cocos2d::CCNotificationCenter::CCNotificationCenter @ 0xb1dda0
// > cocos2d::CCNotificationCenter::postNotification @ 0xb1e53c
// > cocos2d::CCTMXMapInfo::internalInit @ 0xb3bc78
// > cocos2d::CCTouchDispatcher::init @ 0xb3e86c
// > cocos2d::CCTouchDispatcher::init @ 0xb3e87c
// > cocos2d::CCTouchDispatcher::init @ 0xb3e88c
// > ??> @ 0xc6e88
//
// 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
//
cocos2d::CCArray *__fastcall cocos2d::CCArray::createWithCapacity(cocos2d::CCArray *this)
{
cocos2d::CCArray *v1; // x19
cocos2d::_ccArray **v3; // [xsp+28h] [xbp+28h]
v3 = (cocos2d::_ccArray **)(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
{
v1->~CCArray_0(v1);
return nullptr;
}
}