//
// LevelEditorLayer::pasteGroupState from 0x100363d10 to 0x100363d94 (132 bytes)
//
// 1 xrefs:
// > LevelEditorLayer::pasteAttributeState @ 0x100363cc4
//
// 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::pasteGroupState(LevelEditorLayer *a1, GameObject *a2, cocos2d::CCArray *a3)
{
cocos2d::ccArray *data; // x9
__int64 num; // x8
GameObject **arr; // x20
unsigned __int64 v7; // x21
if ( a1->m_copyStateObject )
{
if ( a2 )
{
LevelEditorLayer::applyGroupState(a1, a2, a1->m_copyStateObject);
}
else if ( a3 )
{
data = a3->data;
num = data->num;
if ( (_DWORD)num )
{
arr = (GameObject **)data->arr;
v7 = (unsigned __int64)&arr[num - 1];
do
{
if ( !*arr )
break;
LevelEditorLayer::applyGroupState(a1, *arr++, a1->m_copyStateObject);
}
while ( (unsigned __int64)arr <= v7 );
}
}
}
}