//
// LevelEditorLayer::pasteAttributeState from 0x368b7c to 0x368be8 (108 bytes)
//
// 2 xrefs:
// > EditorUI::onPasteState @ 0x3a5c04
// > SetGroupIDLayer::onPaste @ 0x50a12a
//
// 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 LevelEditorLayer::pasteAttributeState(LevelEditorLayer *a1, GameObject *a2, cocos2d::CCArray *a3)
{
GameObject *m_copyStateObject; // r2
cocos2d::ccArray *data; // r2
cocos2d::CCObject **arr; // r5
GameObject **p_m_copyStateObject; // r9
cocos2d::CCObject **v10; // r4
GameObject *v11; // r1
GameObject *v12; // t1
GameManager *v13; // r0
m_copyStateObject = a1->m_copyStateObject;
if ( m_copyStateObject )
{
if ( a2 )
{
LevelEditorLayer::applyAttributeState(a1, a2, m_copyStateObject);
}
else if ( a3 )
{
data = a3->data;
if ( data->num )
{
arr = data->arr;
p_m_copyStateObject = &a1->m_copyStateObject;
v10 = &arr[data->num] + 0x3FFFFFFF;
while ( arr <= v10 )
{
v12 = (GameObject *)*arr++;
v11 = v12;
if ( !v12 )
break;
LevelEditorLayer::applyAttributeState(a1, v11, *p_m_copyStateObject);
}
}
}
v13 = GameManager::sharedState();
if ( !GameManager::getGameVariable(v13, "0156") )
LevelEditorLayer::pasteGroupState(a1, a2, a3);
}
}