//
// cocos2d::CCArray::createWithObject from 0xad432c to 0xad439c (112 bytes)
//
// 33 xrefs:
// > LevelEditorLayer::forceShowSelectedObjects @ 0x65f6dc
// > LevelEditorLayer::manualUpdateObjectColors @ 0x65fcb4
// > LevelEditorLayer::handleAction @ 0x67289c
// > EditorUI::getSelectedObjects @ 0x689160
// > EditorUI::onTargetIDChange @ 0x68f11c
// > EditorUI::transformObjectsActive @ 0x6b839c
// > EditorUI::transformObjectsReset @ 0x6b8528
// > EditorUI::transformObjectCall @ 0x6ba03c
// > GJTransformControl::loadValues @ 0x6ba68c
// > EditorUI::updateTransformControl @ 0x6ba824
// > EditorUI::updateObjectInfoLabel @ 0x6bb7b0
// > EditorUI::selectObject @ 0x6be4ec
// > EditorUI::ccTouchEnded @ 0x6c2d30
// > EditorUI::onAssignNewGroupID @ 0x6c365c
// > GJRewardItem::createWithObject @ 0x7a71a0
// > SFXSearchResult::updateObjects @ 0x83246c
// > SFXSearchResult::updateObjects @ 0x8324e8
// > SFXSearchResult::updateObjects @ 0x832720
// > ConfigureHSVWidget::getHSV @ 0x8e27a4
// > SetupObjectTogglePopup::valueDidChange @ 0x8e9290
// > SetupSpawnPopup::addRemap @ 0x8ea2e4
// > SetupSpawnPopup::onDeleteRemap @ 0x8ea434
// > SetupSpawnPopup::updateRemapButtons @ 0x8ea620
// > SetupRotatePopup::onClose @ 0x95849c
// > SetupObjectOptionsPopup::onDisableObject @ 0x974b28
// > HSVLiveOverlay::hsvChanged @ 0xa239e4
// > SetupKeyframePopup::refreshPreviewArt @ 0xa3cfb8
// > SetupKeyframePopup::onCustomButton @ 0xa3d1e8
// > SetupKeyframePopup::onCustomButton @ 0xa3d28c
// > SetupSFXPopup::onClose @ 0xa3db54
// > SetupStopTriggerPopup::onClose @ 0xa43f74
// > SetupEventLinkPopup::updateEventIDs @ 0xa542f4
// > ??> @ 0xadfd0
//
// 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 *v2; // x19
v2 = (cocos2d::CCArray *)operator new(0x40u);
cocos2d::CCArray::CCArray(v2);
if ( (unsigned __int8)cocos2d::CCArray::initWithObject(v2, (cocos2d::_ccArray **)this) )
{
cocos2d::CCObject::autorelease(v2);
return v2;
}
else
{
v2->~CCArray_0(v2);
return nullptr;
}
}