//
// cocos2d::CCArray::createWithCapacity from 0x7c8fc2 to 0x7c8ff4 (50 bytes)
//
// 31 xrefs:
// > PlayerObject::pushButton @ 0x44a1f8
// > PlayerObject::pushButton @ 0x44a200
// > LevelEditorLayer::removeAllObjects @ 0x464444
// > DrawGridLayer::loadTimeMarkers @ 0x469e3c
// > VideoOptionsLayer::init @ 0x530d30
// > MusicDownloadManager::getAllMusicObjects @ 0x56be9c
// > MusicDownloadManager::getAllMusicArtists @ 0x56cda4
// > MusicDownloadManager::getAllMusicTags @ 0x56d2c4
// > SFXSearchResult::updateObjects @ 0x571620
// > SFXSearchResult::updateObjects @ 0x571652
// > GJBaseGameLayer::groupStickyObjects @ 0x592c0e
// > GJBaseGameLayer::init @ 0x5b517a
// > EditorUI::alignObjectsOnAxis @ 0x70f088
// > EditorUI::alignObjects @ 0x70f37c
// > SelectFontLayer2::init @ 0x7a1d9a
// > cocos2d::extension::CCControl::dispatchListforControlEvent @ 0x7a6838
// > cocos2d::extension::CCControl::sendActionsForControlEvents @ 0x7a6af6
// > cocos2d::CCScheduler::scheduleScriptFunc @ 0x7b5c30
// > cocos2d::CCAnimate::reverse @ 0x7bfad0
// > cocos2d::CCNode::childrenAlloc @ 0x7c487e
// > cocos2d::CCDictionary::allKeys @ 0x7c65f8
// > cocos2d::CCLayerMultiplex::initWithLayers @ 0x7d82d0
// > cocos2d::CCLayerMultiplex::initWithArray @ 0x7d838e
// > cocos2d::CCAnimationCache::parseVersion1 @ 0x7f02ae
// > cocos2d::CCAnimationCache::parseVersion2 @ 0x7f044a
// > cocos2d::CCNotificationCenter::CCNotificationCenter @ 0x7f594c
// > cocos2d::CCNotificationCenter::postNotification @ 0x7f5d60
// > cocos2d::CCTMXMapInfo::internalInit @ 0x805e2c
// > cocos2d::CCTouchDispatcher::init @ 0x807c5c
// > cocos2d::CCTouchDispatcher::init @ 0x807c68
// > cocos2d::CCTouchDispatcher::init @ 0x807c74
//
// 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:00:28 +0000
//
cocos2d::CCArray *__fastcall cocos2d::CCArray::createWithCapacity(cocos2d::CCArray *this, unsigned int a2)
{
cocos2d::CCArray *v3; // r4
int v4; // r3
cocos2d::CCArray *v5; // r0
v3 = (cocos2d::CCArray *)operator new(0x38u);
cocos2d::CCArray::CCArray(v3);
if ( cocos2d::CCArray::initWithCapacity(v3, this) )
{
cocos2d::CCObject::autorelease(v3);
}
else
{
v4 = *(_DWORD *)v3;
v5 = v3;
v3 = nullptr;
(*(void (__fastcall **)(cocos2d::CCArray *))(v4 + 8))(v5);
}
return v3;
}