//
// GJBaseGameLayer::loadGroupParentsFromString from 0x10028ebb0 to 0x10028ed0c (348 bytes)
//
// 1 xrefs:
// > sub_1002FB254 @ 0x1002fb954
//
// This function is hookable on this platform (idp: arm, 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 11:02:02 +0000
//
void __fastcall GJBaseGameLayer::loadGroupParentsFromString(__int64 a1, _DWORD *a2, std::string *this)
{
std::string::size_type v6; // x22
std::string::size_type v7; // x23
std::string::size_type v8; // x9
int v9; // w10
_BOOL4 v10; // w24
std::string *v11; // x0
std::string::size_type v12; // x24
bool v13; // zf
std::allocator __a[4]; // [xsp+4h] [xbp-5Ch] BYREF
std::string v15; // [xsp+8h] [xbp-58h] BYREF
if ( (SHIBYTE(this->__r_.__value_.__r.__words[2]) & 0x8000000000000000LL) != 0 )
{
if ( !this->__r_.__value_.__l.__size_ )
return;
goto LABEL_5;
}
if ( *((_BYTE *)&this->__r_.__value_.__s + 23) )
{
LABEL_5:
v6 = std::string::find(this, 46, 0);
v7 = 0;
while ( 1 )
{
std::string::basic_string(&v15, this, v7, v6 - v7, __a);
if ( SHIBYTE(v15.__r_.__value_.__r.__words[2]) < 0 )
break;
if ( *((_BYTE *)&v15.__r_.__value_.__s + 23) )
{
v8 = v15.__r_.__value_.__r.__words[0];
v9 = (unsigned __int8)v15.__r_.__value_.__s.__data_[0];
goto LABEL_11;
}
v10 = 0;
v11 = &v15;
LABEL_16:
*(_DWORD *)&__a[0].std::__non_trivial_if = atoi((const char *)v11);
GJBaseGameLayer::setGroupParent(a1, (__int64)a2, *(int *)&__a[0].std::__non_trivial_if);
if ( v10 && !sub_100019268((_QWORD *)(a1 + 3712), (int *)__a) )
GJBaseGameLayer::promoteGroupParent(a1, a2, *(int *)&__a[0].std::__non_trivial_if);
if ( v6 == -1 )
{
v12 = -1;
}
else
{
v7 = v6 + 1;
v12 = std::string::find(this, 46, v6 + 1);
}
if ( SHIBYTE(v15.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v15.__r_.__value_.__l.__data_);
v13 = v6 == -1;
v6 = v12;
if ( v13 )
return;
}
v8 = v15.__r_.__value_.__r.__words[0];
if ( v15.__r_.__value_.__l.__size_ )
{
v9 = (unsigned __int8)*v15.__r_.__value_.__l.__data_;
LABEL_11:
v10 = v9 == 43;
}
else
{
v10 = 0;
}
if ( (v15.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v11 = &v15;
else
v11 = (std::string *)v8;
goto LABEL_16;
}
}