//
// GJBaseGameLayer::loadGroupParentsFromString from 0x1001f2c64 to 0x1001f2d44 (224 bytes)
//
// 1 xrefs:
// > GameObject::objectFromVector @ 0x10025e708
//
// 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 GJBaseGameLayer::loadGroupParentsFromString(GJBaseGameLayer *a1, GameObject *a2, std::string *this)
{
std::string::size_type size; // x8
std::string::size_type v7; // x22
std::string::size_type v8; // x23
int v9; // w23
void *v10; // x24
std::string v11; // [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 )
size = this->__r_.__value_.__l.__size_;
if ( size )
{
v7 = std::string::find(this, 46, 0);
v8 = 0;
while ( 1 )
{
std::string::basic_string(&v11, this, v8, v7 - v8, &__a);
if ( SHIBYTE(v11.__r_.__value_.__r.__words[2]) < 0 )
{
v10 = (void *)v11.__r_.__value_.__r.__words[0];
v9 = atoi(v11.__r_.__value_.__l.__data_);
operator delete(v10);
}
else
{
v9 = atoi((const char *)&v11);
}
GJBaseGameLayer::setGroupParent(a1, a2, v9);
if ( v7 == -1 )
break;
v8 = v7 + 1;
v7 = std::string::find(this, 46, v7 + 1);
}
}
}