//
// GJBaseGameLayer::getGroupParentsString from 0x5bcde8 to 0x5bcf10 (296 bytes)
//
// 1 xrefs:
// > GameObject::getSaveString @ 0x45d5c8
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:53:43 +0000
//
GJBaseGameLayer *__fastcall GJBaseGameLayer::getGroupParentsString(
GJBaseGameLayer *this,
cocos2d::CCDictionary **a2,
int a3)
{
cocos2d::CCArray *v6; // r0
cocos2d::CCArray *v7; // r9
int v8; // r8
unsigned int v9; // r6
int v10; // r7
cocos2d::CCArray *v11; // r0
cocos2d::CCArray *v12; // r8
const char *v13; // r0
const char *v14; // r6
size_t v15; // r0
unsigned int v17[3]; // [sp+1Ch] [bp-208h] BYREF
char v18; // [sp+28h] [bp-1FCh] BYREF
v6 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(a2[581], *(_DWORD *)(a3 + 780));
v7 = v6;
if ( v6 && cocos2d::CCArray::count(v6) )
{
v8 = 1;
v9 = 0;
v17[1] = 500;
v17[2] = (unsigned int)&v18;
v17[0] = 0;
while ( v9 < cocos2d::CCArray::count(v7) )
{
v10 = *(_DWORD *)(cocos2d::CCArray::objectAtIndex(v7, v9) + 52);
if ( v10 > 0 )
{
if ( !v8 )
fmt::BasicWriter::operator<<(v17, ".", 0);
v11 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(a2[580], v10);
v12 = v11;
if ( v11 && cocos2d::CCArray::count(v11) && a3 == cocos2d::CCArray::objectAtIndex(v12, 0) )
fmt::BasicWriter::operator<<(v17, "+", 0);
fmt::BasicWriter::operator<<(v17, v10);
v8 = 0;
}
++v9;
}
v13 = (const char *)fmt::BasicWriter::c_str((int *)v17);
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
v14 = v13;
*((_DWORD *)this + 2) = 0;
v15 = strlen(v13);
std::string::__init((int *)this, v14, v15);
fmt::internal::Array::free((int)v17);
}
else
{
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
*((_DWORD *)this + 2) = 0;
std::string::__init((int *)this, &unk_B6B226, 0);
}
return this;
}