//
// cocos2d::CCTMXObjectGroup::objectNamed from 0x100495930 to 0x100495a41 (273 bytes)
//
// 0 xrefs:
//
// 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 12:30:48 +0000
//
__int64 __fastcall cocos2d::CCTMXObjectGroup::objectNamed(__int64 a1, const char *a2)
{
__int64 v3; // rdi
__int64 v4; // rax
unsigned int *v5; // rax
__int64 *v6; // r13
__int64 *v7; // r15
__int64 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 + 72);
if ( v3 )
{
if ( (unsigned int)sub_1007FEF90(v3) )
{
v4 = *(_QWORD *)(a1 + 72);
if ( v4 )
{
v5 = *(unsigned int **)(v4 + 56);
if ( *v5 )
{
v6 = *((__int64 **)v5 + 2);
v7 = &v6[*v5 - 1];
do
{
v8 = *v6;
if ( !*v6 )
return 0;
v14 = 8;
strcpy(v15, "name");
v9 = cocos2d::CCDictionary::objectForKey(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_100056810();
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 0;
}