//
// LevelEditorLayer::pasteGroupState from 0x462502 to 0x46254a (72 bytes)
//
// 1 xrefs:
// > LevelEditorLayer::pasteAttributeState @ 0x4625b0
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:48:53 +0000
//
GameObject **__fastcall LevelEditorLayer::pasteGroupState(GameObject **this, GameObject *a2, cocos2d::CCArray *a3)
{
LevelEditorLayer *v4; // r6
GameObject *v5; // r2
_DWORD *v6; // r2
GameObject **v7; // r5
GameObject **v8; // r7
GameObject **v9; // r4
GameObject *v10; // r1
GameObject *v11; // t1
v4 = (LevelEditorLayer *)this;
v5 = *(this + 2942);
if ( v5 )
{
if ( a2 )
{
return (GameObject **)LevelEditorLayer::applyGroupState((LevelEditorLayer *)this, a2, v5);
}
else if ( a3 )
{
v6 = *((_DWORD **)a3 + 13);
if ( *v6 )
{
v7 = (GameObject **)v6[3];
v8 = this + 2942;
v9 = &v7[*v6] + 0x3FFFFFFF;
while ( v7 <= v9 )
{
v11 = *v7++;
v10 = v11;
if ( !v11 )
break;
this = (GameObject **)LevelEditorLayer::applyGroupState(v4, v10, *v8);
}
}
}
}
return this;
}