//
// EditorUI::copyObjectsDetailed from 0x6f2c00 to 0x6f2d26 (294 bytes)
//
// 1 xrefs:
// > EditorUI::addObjectsToSmartTemplate @ 0x48889c
//
// 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:57:36 +0000
//
EditorUI *__fastcall EditorUI::copyObjectsDetailed(EditorUI *this, cocos2d::CCArray *a2, size_t **a3)
{
size_t *v6; // r3
_DWORD *v7; // r6
_DWORD *v8; // r4
_DWORD *v9; // t1
const cocos2d::CCPoint *v10; // r0
int v11; // r0
char *v12; // r1
size_t v13; // r2
_DWORD *v15; // [sp+0h] [bp-3Ch]
void (__fastcall *v16)(_DWORD *, _BYTE *); // [sp+4h] [bp-38h]
_BYTE v17[8]; // [sp+10h] [bp-2Ch] BYREF
_BYTE v18[8]; // [sp+18h] [bp-24h] BYREF
_BYTE v19[8]; // [sp+20h] [bp-1Ch] BYREF
unsigned __int8 v20; // [sp+28h] [bp-14h] BYREF
char v21; // [sp+29h] [bp-13h] BYREF
size_t v22; // [sp+2Ch] [bp-10h]
char *v23; // [sp+30h] [bp-Ch]
qsort((void *)a3[13][3], *a3[13], 4u, mIDSort);
EditorUI::getGroupCenter((EditorUI *)v17, a2, (cocos2d::CCArray *)a3);
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
*((_DWORD *)this + 2) = 0;
std::string::__init((int *)this, &unk_B6B226, 0);
v6 = a3[13];
if ( *v6 )
{
v7 = (_DWORD *)v6[3];
v15 = &v7[*v6 - 1];
while ( v7 <= v15 )
{
v9 = (_DWORD *)*v7++;
v8 = v9;
if ( !v9 )
break;
if ( v8[223] != 749 )
{
v10 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(_DWORD *))(*v8 + 96))(v8);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, v10);
v16 = *(void (__fastcall **)(_DWORD *, _BYTE *))(*v8 + 92);
v11 = (*(int (__fastcall **)(_DWORD *))(*v8 + 96))(v8);
cocos2d::CCPoint::operator-(v19, v11, v17);
v16(v8, v19);
(*(void (__fastcall **)(unsigned __int8 *, _DWORD *, _DWORD))(*v8 + 696))(&v20, v8, *((_DWORD *)a2 + 236));
(*(void (__fastcall **)(_DWORD *, _BYTE *))(*v8 + 92))(v8, v18);
if ( (v20 & 1) != 0 )
{
v12 = v23;
v13 = v22;
}
else
{
v13 = (int)v20 >> 1;
v12 = &v21;
}
std::string::append(this, v12, v13);
std::string::append(this, ";");
std::string::~string((int)&v20);
}
}
}
return this;
}