//
// LevelEditorLayer::pasteAttributeState from 0x1000f3c20 to 0x1000f3cef (207 bytes)
//
// 2 xrefs:
// > EditorUI::onPasteState @ 0x10002c38d
// > SetGroupIDLayer::onPaste @ 0x10031673b
//
// 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 *v3; // rax
cocos2d::ccArray *data; // rax
GameObject **arr; // r13
GameObject **v6; // rbx
GameObject *v7; // r12
if ( a1->m_copyStateObject )
{
if ( a2 )
{
GameObject::duplicateAttributes(a2);
a2->m_updateParents = 1;
}
else if ( a3 )
{
data = a3->data;
if ( data->num )
{
arr = (GameObject **)data->arr;
v6 = &arr[data->num - 1];
do
{
v7 = *arr;
if ( !*arr )
break;
GameObject::duplicateAttributes(*arr);
v7->m_updateParents = 1;
++arr;
}
while ( arr <= v6 );
}
}
v3 = GameManager::sharedState();
if ( !GameManager::getGameVariable(v3, "0156") )
LevelEditorLayer::pasteGroupState(a1, a2, a3);
}
}