//
// EditorUI::copyObjectsDetailed from 0x1005b7b30 to 0x1005b7c97 (359 bytes)
//
// 1 xrefs:
// > EditorUI::addObjectsToSmartTemplate @ 0x10001384a
//
// This function is hookable on this platform (idp: pc, 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:32:42 +0000
//
std::string *__fastcall EditorUI::copyObjectsDetailed(std::string *this, __int64 a2, __int64 a3)
{
unsigned int *v4; // rax
_QWORD *v5; // r15
unsigned __int64 v6; // r14
_DWORD *v7; // r13
_QWORD *v8; // rsi
unsigned __int64 *v9; // rax
const std::string::value_type *v10; // rsi
std::string::size_type v11; // rdx
unsigned __int64 v13; // [rsp+8h] [rbp-58h] BYREF
__int64 v14; // [rsp+10h] [rbp-50h] BYREF
__int64 v15; // [rsp+18h] [rbp-48h]
double v16[2]; // [rsp+20h] [rbp-40h] BYREF
void *__p; // [rsp+30h] [rbp-30h]
qsort(*(void **)(*(_QWORD *)(a3 + 56) + 16LL), **(unsigned int **)(a3 + 56), 8u, sub_100603CB0);
v15 = a2;
EditorUI::getGroupCenter(&v13, a2, a3, 0);
*(_WORD *)&this->__r_.__value_.__l.0 = 0;
v4 = *(unsigned int **)(a3 + 56);
if ( *v4 )
{
v5 = *((_QWORD **)v4 + 2);
v6 = (unsigned __int64)&v5[*v4 - 1];
do
{
v7 = (_DWORD *)*v5;
if ( !*v5 )
break;
if ( v7[257] != 749 )
{
v8 = (_QWORD *)(*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v7 + 192LL))(*v5);
sub_1002782D0(&v14, v8);
v9 = (unsigned __int64 *)(*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)v7 + 192LL))(v7);
sub_100278370(v16, v9, &v13);
(*(void (__fastcall **)(_DWORD *, double *))(*(_QWORD *)v7 + 184LL))(v7, v16);
(*(void (__fastcall **)(double *, _DWORD *, _QWORD))(*(_QWORD *)v7 + 1392LL))(v16, v7, *(_QWORD *)(v15 + 1440));
(*(void (__fastcall **)(_DWORD *, __int64 *))(*(_QWORD *)v7 + 184LL))(v7, &v14);
if ( (LOBYTE(v16[0]) & 1) != 0 )
{
v10 = (const std::string::value_type *)__p;
v11 = *(_QWORD *)&v16[1];
}
else
{
v11 = LOBYTE(v16[0]) >> 1;
v10 = (char *)v16 + 1;
}
std::string::append(this, v10, v11);
std::string::append(this, ";");
if ( (LOBYTE(v16[0]) & 1) != 0 )
operator delete(__p);
}
++v5;
}
while ( (unsigned __int64)v5 <= v6 );
}
return this;
}