//
// cocos2d::CCTMXObjectGroup::objectNamed from 0x10049c960 to 0x10049ca71 (273 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::CCDictionary *__fastcall cocos2d::CCTMXObjectGroup::objectNamed(cocos2d::CCTMXObjectGroup *a1, const char *a2)
{
__int64 v3; // rdi
__int64 v4; // rax
unsigned int *v5; // rax
cocos2d::CCDictionary **v6; // r13
cocos2d::CCDictionary **v7; // r15
cocos2d::CCDictionary *v8; // r14
__int64 v9; // r12
size_t v10; // rax
unsigned int v11; // ecx
const void *v12; // r12
char v14; // [rsp+0h] [rbp-40h] BYREF
char v15[15]; // [rsp+1h] [rbp-3Fh] BYREF
void *__p; // [rsp+10h] [rbp-30h]
v3 = *(_QWORD *)&a1[1].m_nTag;
if ( v3 )
{
if ( (unsigned int)sub_100720070(v3) )
{
v4 = *(_QWORD *)&a1[1].m_nTag;
if ( v4 )
{
v5 = *(unsigned int **)(v4 + 56);
if ( *v5 )
{
v6 = *((cocos2d::CCDictionary ***)v5 + 2);
v7 = &v6[*v5 - 1];
do
{
v8 = *v6;
if ( !*v6 )
return nullptr;
v14 = 8;
strcpy(v15, "name");
v9 = cocos2d::CCDictionary::objectForKey_1((__int64)v8, &v14);
if ( (v14 & 1) != 0 )
operator delete(__p);
if ( v9 )
{
v10 = strlen(a2);
v11 = *(unsigned __int8 *)(v9 + 56);
if ( (v11 & 1) != 0 )
{
if ( v10 == *(_QWORD *)(v9 + 64) )
{
if ( v10 == -1 )
sub_1000547C0();
v12 = *(const void **)(v9 + 72);
LABEL_6:
if ( !memcmp(v12, a2, v10) )
return v8;
}
}
else if ( v10 == v11 >> 1 )
{
v12 = (const void *)(v9 + 57);
goto LABEL_6;
}
}
++v6;
}
while ( v6 <= v7 );
}
}
}
}
return nullptr;
}