//
// EditorUI::copyObjectsDetailed from 0x1003ee8f8 to 0x1003eea70 (376 bytes)
//
// 1 xrefs:
// > EditorUI::addObjectsToSmartTemplate @ 0x1003f1408
//
// 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 __usercall EditorUI::copyObjectsDetailed(__int64 a1@, cocos2d::CCArray *a2@, std::string *a3@)
{
EditorUI *v6; // x0
cocos2d::ccArray *data; // x9
__int64 num; // x8
cocos2d::CCObject **arr; // x23
unsigned __int64 v10; // x24
cocos2d::CCObject *v11; // x22
__int64 *v12; // x0
float v13; // s0
float32x2_t *v14; // x0
double v15; // d0
void **v16; // x1
std::string::size_type v17; // x2
void *__p[2]; // [xsp+8h] [xbp-68h] BYREF
unsigned __int8 v19; // [xsp+1Fh] [xbp-51h]
__int64 v20; // [xsp+20h] [xbp-50h] BYREF
float32x2_t v21; // [xsp+28h] [xbp-48h] BYREF
qsort(a2->data->arr, a2->data->num, 8u, (int (__cdecl *)(const void *, const void *))sub_1003C4C10);
EditorUI::getGroupCenter(v6, a2, 0);
sub_100009900(a3, "");
data = a2->data;
num = data->num;
if ( (_DWORD)num )
{
arr = data->arr;
v10 = (unsigned __int64)&arr[num - 1];
do
{
v11 = *arr;
if ( !*arr )
break;
if ( v11[18].m_uReference != 749 )
{
v12 = (__int64 *)((__int64 (__fastcall *)(cocos2d::CCObject *))v11->__vftable[2].acceptVisitor)(*arr);
v13 = sub_1000229B8(&v20, v12);
v14 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCObject *, float))v11->__vftable[2].acceptVisitor)(
v11,
v13);
*(float32x2_t *)&v15 = sub_1000229F0(v14, &v21, (float32x2_t *)__p);
((void (__fastcall *)(cocos2d::CCObject *, void **, double))v11->__vftable[2].isEqual)(v11, __p, v15);
((void (__fastcall *)(void **__return_ptr, cocos2d::CCObject *, _QWORD))v11->__vftable[17].~CCObject_0)(
__p,
v11,
*(_QWORD *)(a1 + 1256));
((void (__fastcall *)(cocos2d::CCObject *, __int64 *))v11->__vftable[2].isEqual)(v11, &v20);
if ( (v19 & 0x80u) == 0 )
v16 = __p;
else
v16 = (void **)__p[0];
if ( (v19 & 0x80u) == 0 )
v17 = v19;
else
v17 = (std::string::size_type)__p[1];
std::string::append(a3, (const std::string::value_type *)v16, v17);
std::string::append(a3, ";");
if ( (char)v19 < 0 )
operator delete(__p[0]);
}
++arr;
}
while ( (unsigned __int64)arr <= v10 );
}
}