//
// GJBaseGameLayer::getGroupParentsString from 0x14032ccd0 to 0x14032cea8 (472 bytes)
//
// 2 xrefs:
// > GameObject::getSaveString @ 0x14029cd88
// > ??> @ 0x14091f3ac
//
// This function is hookable on this platform (idp: pc, 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:30:30 +0000
//
// Hidden C++ exception states: #wind=1
_QWORD *__fastcall GJBaseGameLayer::getGroupParentsString(__int64 a1, _QWORD *a2, unsigned int *a3)
{
_QWORD *v4; // rdi
cocos2d::CCArray *v6; // rax
cocos2d::CCArray *v7; // r14
char v8; // bl
unsigned int v9; // esi
__int64 v10; // rbp
cocos2d::CCArray *v11; // rax
cocos2d::CCArray *v12; // rbx
_BYTE *v13; // rax
size_t v14; // r8
_QWORD v17[2]; // [rsp+30h] [rbp-278h] BYREF
_QWORD v18[2]; // [rsp+40h] [rbp-268h] BYREF
_BYTE v19[528]; // [rsp+50h] [rbp-258h] BYREF
v4 = a2;
v17[0] = a2;
v6 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 3976), a3[231]);
v7 = v6;
if ( v6 && cocos2d::CCArray::count(v6) )
{
fmt::BasicWriter::BasicWriter(v19);
v8 = 1;
v9 = 0;
if ( cocos2d::CCArray::count(v7) )
{
do
{
v10 = *((int *)cocos2d::CCArray::objectAtIndex(v7, v9) + 14);
if ( (int)v10 > 0 )
{
if ( !v8 )
{
v17[0] = ".";
v17[1] = 0;
fmt::BasicWriter::operator<<(v19, v17);
}
v11 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 3968), v10);
v12 = v11;
if ( v11
&& cocos2d::CCArray::count(v11)
&& cocos2d::CCArray::objectAtIndex(v12, 0) == (struct cocos2d::CCObject *)a3 )
{
v18[0] = "+";
v18[1] = 0;
fmt::BasicWriter::operator<<(v19, v18);
}
fmt::BasicWriter::operator<<(v19, (unsigned int)v10);
v8 = 0;
}
++v9;
}
while ( v9 < cocos2d::CCArray::count(v7) );
v4 = a2;
}
v13 = (_BYTE *)fmt::BasicWriter::c_str(v19);
*(_OWORD *)v4 = 0;
v4[2] = 0;
v4[3] = 0;
v14 = -1;
do
++v14;
while ( v13[v14] );
sub_14003D230(v4, v13, v14);
fmt::BasicWriter::~BasicWriter(v19);
}
else
{
*(_OWORD *)v4 = 0;
v4[2] = 0;
v4[3] = 15;
*(_BYTE *)v4 = 0;
}
return v4;
}