//
// GJBaseGameLayer::getGroupParentsString from 0x88fbc0 to 0x88fd88 (456 bytes)
//
// 2 xrefs:
// > GameObject::getSaveString @ 0x657750
// > ??> @ 0xc3768
//
// 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
//
__int64 *__usercall GJBaseGameLayer::getGroupParentsString@(
__int64 *__return_ptr a1@,
GJBaseGameLayer *this@,
GameObject *a3@)
{
cocos2d::CCArray *v4; // x0
cocos2d::CCArray *v5; // x22
unsigned int v6; // w19
int v7; // w24
signed int v8; // w20
size_t v9; // x28
size_t v10; // x24
size_t v12; // x19
size_t v13; // [xsp+68h] [xbp+68h] BYREF
unsigned __int64 v14; // [xsp+70h] [xbp+70h]
char *v15; // [xsp+78h] [xbp+78h]
_BYTE v16[504]; // [xsp+80h] [xbp+80h] BYREF
v4 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(this->m_parentGroupIDs, (unsigned int)a3->m_uniqueID);
v5 = v4;
if ( v4 && (unsigned int)cocos2d::CCArray::count(v4) )
{
v6 = 0;
v7 = 1;
v13 = 0;
v14 = 500;
v15 = v16;
while ( v6 < (unsigned int)cocos2d::CCArray::count(v5) )
{
v8 = *(_DWORD *)(cocos2d::CCArray::objectAtIndex(v5, v6) + 56);
if ( v8 > 0 )
{
if ( !v7 )
{
v9 = v13;
v10 = v13 + 1;
if ( v13 + 1 > v14 )
fmt::internal::Array::grow(&v13, v13 + 1);
v13 = v10;
v15[v9] = 46;
}
fmt::BasicWriter::FormatInt,char>>(&v13, v8);
v7 = 0;
}
++v6;
}
v12 = v13;
if ( v13 + 1 > v14 )
fmt::internal::Array::grow(&v13, v13 + 1);
v15[v12] = 0;
sub_D153B8((int)a1, v15);
if ( v15 != v16 && v15 )
operator delete[](v15);
}
else
{
sub_D153B8((int)a1, &byte_F288A0);
}
return a1;
}