//
// LevelEditorLayer::pasteGroupState from 0x78d638 to 0x78d6e0 (168 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::pasteAttributeState @ 0x78d75c
// > ??> @ 0xb4f58
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:53:27 +0000
//
__int64 __fastcall LevelEditorLayer::pasteGroupState(__int64 this, GameObject *a2, cocos2d::CCArray *a3)
{
GameObject **v4; // x20
GameObject *v5; // x2
unsigned int *v6; // x1
GameObject **v7; // x19
char *v8; // x21
GameObject *v9; // x1
GameObject **v10; // x19
GameObject *v11; // x1
v4 = (GameObject **)this;
v5 = *(GameObject **)(this + 14120);
if ( v5 )
{
if ( a2 )
{
return LevelEditorLayer::applyGroupState((LevelEditorLayer *)this, a2, v5);
}
else if ( a3 )
{
v6 = *((unsigned int **)a3 + 7);
this = *v6;
if ( (_DWORD)this )
{
v7 = *((GameObject ***)v6 + 2);
this = 8LL * (unsigned int)this - 8;
v8 = (char *)v7 + this;
if ( v7 <= (GameObject **)((char *)v7 + this) )
{
v9 = *v7;
if ( *v7 )
{
v10 = v7 + 1;
for ( this = LevelEditorLayer::applyGroupState((LevelEditorLayer *)v4, v9, v5);
v8 >= (char *)v10;
this = LevelEditorLayer::applyGroupState((LevelEditorLayer *)v4, v11, v4[1765]) )
{
v11 = *v10;
if ( !*v10 )
break;
++v10;
}
}
}
}
}
}
return this;
}