//
// cocos2d::CCTMXTiledMap::objectGroupNamed from 0x5f8798 to 0x5f880e (118 bytes)
//
// 0 xrefs:
//
// 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
//
cocos2d::CCTMXObjectGroup *cocos2d::CCTMXTiledMap::objectGroupNamed(cocos2d::CCTMXTiledMap *a1, const char *a2)
{
cocos2d::CCArray *m_uAutoReleaseCount; // r0
unsigned int v4; // r3
_DWORD *v5; // r2
int *v6; // r7
int *v7; // r4
int v8; // r5
int v10; // t1
_BYTE v11[4]; // [sp+8h] [bp-8h] BYREF
sub_776584((int)v11, (char *)a2);
m_uAutoReleaseCount = (cocos2d::CCArray *)a1[1].m_uAutoReleaseCount;
if ( m_uAutoReleaseCount )
{
if ( cocos2d::CCArray::count(m_uAutoReleaseCount) )
{
v4 = a1[1].m_uAutoReleaseCount;
if ( v4 )
{
v5 = *(_DWORD **)(v4 + 52);
if ( *v5 )
{
v6 = (int *)v5[3];
v7 = &v6[*v5 - 1];
while ( v6 <= v7 )
{
v10 = *v6++;
v8 = v10;
if ( !v10 )
break;
if ( !sub_774E98((int)v11, *(char **)(v8 + 68)) )
goto LABEL_8;
}
}
}
}
}
v8 = 0;
LABEL_8:
sub_774008(v11);
return (cocos2d::CCTMXObjectGroup *)v8;
}