//
// LevelEditorLayer::pasteColorState from 0x100363ba4 to 0x100363c38 (148 bytes)
//
// 2 xrefs:
// > CustomizeObjectLayer::onPaste @ 0x100050000
// > EditorUI::onPasteColor @ 0x1003e5808
//
// 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
//
void __fastcall LevelEditorLayer::pasteColorState(LevelEditorLayer *a1, GameObject *a2, cocos2d::CCArray *a3)
{
cocos2d::ccArray *data; // x9
__int64 num; // x8
GameObject **arr; // x21
unsigned __int64 v7; // x22
GameObject *v8; // x20
if ( a1->m_copyStateObject )
{
if ( a2 )
{
GameObject::duplicateColorMode(a2);
a2->m_updateParents = 1;
}
else if ( a3 )
{
data = a3->data;
num = data->num;
if ( (_DWORD)num )
{
arr = (GameObject **)data->arr;
v7 = (unsigned __int64)&arr[num - 1];
do
{
v8 = *arr;
if ( !*arr )
break;
GameObject::duplicateColorMode(*arr);
v8->m_updateParents = 1;
++arr;
}
while ( (unsigned __int64)arr <= v7 );
}
}
}
}