//
// cocos2d::CCTMXTiledMap::objectGroupNamed from 0x8053f0 to 0x8054cc (220 bytes)
//
// 0 xrefs:
//
// 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 12:01:23 +0000
//
int __fastcall cocos2d::CCTMXTiledMap::objectGroupNamed(cocos2d::CCTMXTiledMap *this, const char *a2)
{
size_t v4; // r0
cocos2d::CCArray *v5; // r0
int v6; // r3
int *v7; // r3
int v8; // r0
int *v9; // r3
size_t v10; // r10
char *v11; // r8
unsigned int v12; // r5
int v13; // r7
int v14; // r9
int *v15; // r11
int v16; // r4
int v18; // t1
const char *v19; // r1
size_t v20; // r0
size_t v21; // r2
const char *v22; // [sp+4h] [bp-18h]
int v23; // [sp+8h] [bp-14h] BYREF
size_t v24; // [sp+Ch] [bp-10h]
void *v25; // [sp+10h] [bp-Ch]
v23 = 0;
v24 = 0;
v25 = nullptr;
v4 = strlen(a2);
std::string::__init(&v23, a2, v4);
v5 = *((cocos2d::CCArray **)this + 71);
if ( v5 )
{
if ( cocos2d::CCArray::count(v5) )
{
v6 = *((_DWORD *)this + 71);
if ( v6 )
{
v7 = *(int **)(v6 + 52);
v8 = *v7;
if ( *v7 )
{
v9 = (int *)v7[3];
v10 = v24;
v11 = (char *)&v23 + 1;
v12 = (unsigned int)&v9[v8 - 1];
v13 = v23 & 1;
v14 = (int)(unsigned __int8)v23 >> 1;
v15 = v9;
if ( v13 )
v11 = (char *)v25;
while ( 1 )
{
while ( 1 )
{
if ( (unsigned int)v15 > v12 )
goto LABEL_8;
v18 = *v15++;
v16 = v18;
if ( !v18 )
goto LABEL_8;
v19 = (*(_BYTE *)(v16 + 68) & 1) != 0 ? *(const char **)(v16 + 76) : (const char *)(v16 + 69);
v22 = v19;
v20 = strlen(v19);
if ( !v13 )
break;
if ( v20 == v10 )
{
v21 = v10;
LABEL_19:
if ( v21 >= v20 )
v21 = v20;
if ( !v21 || !memcmp(v11, v22, v21) )
goto LABEL_9;
}
}
if ( v20 == v14 )
{
v21 = v14;
goto LABEL_19;
}
}
}
}
}
}
LABEL_8:
v16 = 0;
LABEL_9:
if ( (v23 & 1) != 0 )
operator delete(v25);
return v16;
}