//
// GJBaseGameLayer::getGroupParentsString from 0x48def4 to 0x48dfc8 (212 bytes)
//
// 1 xrefs:
// > GameObject::getSaveString @ 0x363d9e
//
// 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
//
GJBaseGameLayer *__fastcall GJBaseGameLayer::getGroupParentsString(GJBaseGameLayer *this, GameObject *a2, int a3)
{
cocos2d::CCArray *v4; // r0
cocos2d::CCArray *v5; // r9
int v6; // r8
unsigned int v7; // r5
int v8; // r10
char *v9; // r0
unsigned int v11[3]; // [sp+14h] [bp-208h] BYREF
char v12; // [sp+20h] [bp-1FCh] BYREF
v4 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(
(cocos2d::CCDictionary *)LODWORD(a2[2].m_sInverse.b),
*(_DWORD *)(a3 + 772));
v5 = v4;
if ( v4 && cocos2d::CCArray::count(v4) )
{
v6 = 1;
v11[1] = 500;
v11[2] = (unsigned int)&v12;
v7 = 0;
v11[0] = 0;
while ( v7 < cocos2d::CCArray::count(v5) )
{
v8 = *(_DWORD *)(cocos2d::CCArray::objectAtIndex(v5, v7) + 52);
if ( v8 > 0 )
{
if ( !v6 )
fmt::BasicWriter::operator<<(v11, ".", 0);
fmt::BasicWriter::operator<<(v11, v8);
v6 = 0;
}
++v7;
}
v9 = (char *)fmt::BasicWriter::c_str((int *)v11);
sub_776584((int)this, v9);
fmt::internal::Array::free((int)v11);
}
else
{
sub_776584((int)this, (char *)&unk_939830);
}
return this;
}