//
// GJBaseGameLayer::getGroupParentsString from 0x1001f2ab4 to 0x1001f2c3c (392 bytes)
//
// 1 xrefs:
// > GameObject::getSaveString @ 0x100260138
//
// 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 GJBaseGameLayer::getGroupParentsString(__int64 a1@, __int64 a2@, _QWORD *a3@)
{
cocos2d::CCObject *v4; // x0
cocos2d::CCObject *v5; // x20
__int64 v6; // x21
char v7; // w25
__int64 v8; // x23
__int64 v9; // x20
int v10; // [xsp+Ch] [xbp-264h] BYREF
__int128 v11; // [xsp+10h] [xbp-260h] BYREF
void *__p; // [xsp+20h] [xbp-250h]
_BYTE v13[512]; // [xsp+28h] [xbp-248h] BYREF
v4 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 3704), *(unsigned int *)(a2 + 916));
if ( v4 && (v5 = v4, (unsigned int)sub_10024A36C(v4)) )
{
v6 = 0;
v11 = xmmword_1006350E0;
__p = v13;
v7 = 1;
while ( (unsigned int)v6 < (unsigned int)sub_10024A36C(v5) )
{
v8 = *(unsigned int *)(sub_10024A388(v5, v6) + 56);
if ( (int)v8 >= 1 )
{
if ( (v7 & 1) == 0 )
sub_10000CB18((__int64 *)&v11, ".", 0);
v10 = v8;
sub_100009A40((int)&v11, v8, (int)&v10);
v7 = 0;
}
v6 = (unsigned int)(v6 + 1);
}
v9 = v11;
if ( *((_QWORD *)&v11 + 1) < (unsigned __int64)(v11 + 1) )
sub_100009ED4((__int64)&v11, v11 + 1);
*((_BYTE *)__p + v9) = 0;
sub_100009900(a3, (char *)__p);
if ( __p != v13 && __p )
operator delete[](__p);
}
else
{
sub_100009900(a3, "");
}
}