//
// GameObject::loadGroupsFromString from 0x10025d864 to 0x10025d9d4 (368 bytes)
//
// 1 xrefs:
// > GameObject::objectFromVector @ 0x10025e5e8
//
// 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 __fastcall GameObject::loadGroupsFromString(__int64 a1, std::string *this)
{
std::string::size_type size; // x8
size_t v5; // x21
std::string *v6; // x9
unsigned int v7; // w22
std::string::value_type v8; // t1
size_t v9; // x0
void *v10; // x0
std::string::size_type v11; // x21
std::string::size_type v12; // x22
std::string *v13; // x0
std::string __p; // [xsp+0h] [xbp-50h] BYREF
std::allocator __a; // [xsp+1Fh] [xbp-31h] BYREF
size = SHIBYTE(this->__r_.__value_.__r.__words[2]);
if ( (size & 0x8000000000000000LL) != 0 )
{
if ( !this->__r_.__value_.__l.__size_ )
return;
}
else if ( !*((_BYTE *)&this->__r_.__value_.__s + 23) )
{
return;
}
if ( !*(_QWORD *)(a1 + 1160) )
{
if ( (*(_BYTE *)(a1 + 649) & 1) != 0 )
{
v5 = 20;
LABEL_21:
v10 = operator new[](v5);
*(_QWORD *)(a1 + 1160) = v10;
LABEL_22:
bzero(v10, v5);
goto LABEL_23;
}
if ( (size & 0x80000000) != 0 )
{
v6 = (std::string *)this->__r_.__value_.__r.__words[0];
size = this->__r_.__value_.__l.__size_;
if ( size )
goto LABEL_10;
}
else
{
v6 = this;
if ( *((_BYTE *)&this->__r_.__value_.__s + 23) )
{
LABEL_10:
v7 = 0;
do
{
v8 = v6->__r_.__value_.__s.__data_[0];
v6 = (std::string *)((char *)v6 + 1);
if ( v8 == 46 )
++v7;
--size;
}
while ( size );
v5 = 2LL * (v7 + 1);
if ( (int)(v7 + 1) < 0 )
v9 = -1;
else
v9 = 2LL * (v7 + 1);
v10 = operator new[](v9);
*(_QWORD *)(a1 + 1160) = v10;
if ( v7 >= 0x7FFFFFFF )
goto LABEL_23;
goto LABEL_22;
}
}
v5 = 2;
goto LABEL_21;
}
LABEL_23:
v11 = std::string::find(this, 46, 0);
v12 = 0;
while ( 1 )
{
std::string::basic_string(&__p, this, v12, v11 - v12, &__a);
v13 = (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL
? &__p
: (std::string *)__p.__r_.__value_.__r.__words[0];
*(_WORD *)(*(_QWORD *)(a1 + 1160) + 2LL * *(__int16 *)(a1 + 1168)) = atoi((const char *)v13);
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
++*(_WORD *)(a1 + 1168);
if ( v11 == -1 )
break;
v12 = v11 + 1;
v11 = std::string::find(this, 46, v11 + 1);
}
}