//
// cocos2d::CCArray::createWithCapacity from 0x5c1e76 to 0x5c1ea8 (50 bytes)
//
// 30 xrefs:
// > GJSongBrowser::loadPage @ 0x3082a6
// > PlayerObject::pushButton @ 0x34e9da
// > PlayerObject::pushButton @ 0x34e9e2
// > LevelEditorLayer::removeAllObjects @ 0x36ac62
// > DrawGridLayer::loadTimeMarkers @ 0x36f82c
// > EditorUI::alignObjects @ 0x39d2ce
// > VideoOptionsLayer::init @ 0x424ad2
// > MusicDownloadManager::getAllMusicObjects @ 0x458596
// > MusicDownloadManager::getAllMusicTags @ 0x458600
// > MusicDownloadManager::getAllMusicArtists @ 0x45869e
// > SFXSearchResult::updateObjects @ 0x45d8a4
// > SFXSearchResult::updateObjects @ 0x45da00
// > GJBaseGameLayer::groupStickyObjects @ 0x473160
// > GJBaseGameLayer::init @ 0x490cba
// > cocos2d::extension::CCControl::dispatchListforControlEvent @ 0x5a0b14
// > cocos2d::extension::CCControl::sendActionsForControlEvents @ 0x5a0e4e
// > cocos2d::CCScheduler::scheduleScriptFunc @ 0x5af624
// > cocos2d::CCAnimate::reverse @ 0x5b91c4
// > cocos2d::CCNode::childrenAlloc @ 0x5bde3e
// > cocos2d::CCDictionary::allKeys @ 0x5bf970
// > cocos2d::CCLayerMultiplex::initWithLayers @ 0x5d0140
// > cocos2d::CCLayerMultiplex::initWithArray @ 0x5d01fe
// > cocos2d::CCAnimationCache::parseVersion1 @ 0x5e5a5a
// > cocos2d::CCAnimationCache::parseVersion2 @ 0x5e5be4
// > cocos2d::CCNotificationCenter::CCNotificationCenter @ 0x5eab4c
// > cocos2d::CCNotificationCenter::postNotification @ 0x5eaef8
// > cocos2d::CCTMXMapInfo::internalInit @ 0x5f8ce0
// > cocos2d::CCTouchDispatcher::init @ 0x5fa614
// > cocos2d::CCTouchDispatcher::init @ 0x5fa620
// > cocos2d::CCTouchDispatcher::init @ 0x5fa62c
//
// 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, unsigned int a2)
{
cocos2d::CCArray *v3; // r4
cocos2d::CCArray_vtbl *v4; // r3
cocos2d::CCArray *v5; // r0
v3 = (cocos2d::CCArray *)operator new(0x38u);
cocos2d::CCArray::CCArray(v3);
if ( cocos2d::CCArray::initWithCapacity(v3, (cocos2d::_ccArray **)this) )
{
cocos2d::CCObject::autorelease(v3);
}
else
{
v4 = v3->__vftable;
v5 = v3;
v3 = nullptr;
v4->~CCArray_0(v5);
}
return v3;
}