//
// LevelEditorLayer::pasteAttributeState from 0x100363c38 to 0x100363d10 (216 bytes)
//
// 2 xrefs:
// > SetGroupIDLayer::onPaste @ 0x10003e3a4
// > EditorUI::onPasteState @ 0x1003e57b4
//
// 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::pasteAttributeState(LevelEditorLayer *a1, GameObject *a2, cocos2d::CCArray *a3)
{
GameManager *v6; // x0
cocos2d::ccArray *data; // x9
__int64 num; // x8
GameObject **arr; // x23
unsigned __int64 v10; // x24
GameObject *v11; // x22
if ( a1->m_copyStateObject )
{
if ( a2 )
{
GameObject::duplicateAttributes(a2);
a2->m_updateParents = 1;
}
else if ( a3 )
{
data = a3->data;
num = data->num;
if ( (_DWORD)num )
{
arr = (GameObject **)data->arr;
v10 = (unsigned __int64)&arr[num - 1];
do
{
v11 = *arr;
if ( !*arr )
break;
GameObject::duplicateAttributes(*arr);
v11->m_updateParents = 1;
++arr;
}
while ( (unsigned __int64)arr <= v10 );
}
}
v6 = GameManager::sharedState();
if ( !GameManager::getGameVariable(v6, "0156") )
LevelEditorLayer::pasteGroupState(a1, a2, a3);
}
}