//
// cocos2d::CCArray::createWithObject from 0x5c1ff8 to 0x5c202a (50 bytes)
//
// 33 xrefs:
// > LevelEditorLayer::forceShowSelectedObjects @ 0x367742
// > LevelEditorLayer::manualUpdateObjectColors @ 0x367b46
// > LevelEditorLayer::handleAction @ 0x371710
// > EditorUI::getSelectedObjects @ 0x37d8e8
// > EditorUI::onTargetIDChange @ 0x381166
// > EditorUI::transformObjectsActive @ 0x39eb54
// > EditorUI::transformObjectsReset @ 0x39ecac
// > EditorUI::transformObjectCall @ 0x39ffa2
// > GJTransformControl::loadValues @ 0x3a04a6
// > EditorUI::updateTransformControl @ 0x3a05fe
// > EditorUI::updateObjectInfoLabel @ 0x3a089a
// > EditorUI::selectObject @ 0x3a2e6c
// > EditorUI::ccTouchEnded @ 0x3a57dc
// > EditorUI::ccTouchEnded @ 0x3a58c8
// > EditorUI::onAssignNewGroupID @ 0x3a5d66
// > GJRewardItem::createWithObject @ 0x40e944
// > SFXSearchResult::updateObjects @ 0x45d82a
// > SFXSearchResult::updateObjects @ 0x45d892
// > SFXSearchResult::updateObjects @ 0x45d97c
// > ConfigureHSVWidget::getHSV @ 0x4b7afc
// > SetupObjectTogglePopup::valueDidChange @ 0x4bb74e
// > SetupSpawnPopup::addRemap @ 0x4bbf12
// > SetupSpawnPopup::onDeleteRemap @ 0x4bbfe0
// > SetupSpawnPopup::updateRemapButtons @ 0x4bc138
// > SetupRotatePopup::onClose @ 0x4f8c70
// > SetupObjectOptionsPopup::onDisableObject @ 0x508ab8
// > HSVLiveOverlay::hsvChanged @ 0x56432a
// > SetupKeyframePopup::refreshPreviewArt @ 0x5747e8
// > SetupKeyframePopup::onCustomButton @ 0x57491e
// > SetupKeyframePopup::onCustomButton @ 0x574a18
// > SetupSFXPopup::onClose @ 0x574f54
// > SetupStopTriggerPopup::onClose @ 0x5781fe
// > SetupEventLinkPopup::updateEventIDs @ 0x57ef76
//
// 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::createWithObject(cocos2d::CCArray *this, cocos2d::CCObject *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::initWithObject(v3, (cocos2d::_ccArray **)this) )
{
cocos2d::CCObject::autorelease(v3);
}
else
{
v4 = v3->__vftable;
v5 = v3;
v3 = nullptr;
v4->~CCArray_0(v5);
}
return v3;
}