//
// sub_1002EA62C from 0x1002ea62c to 0x1002ea804 (472 bytes)
//
// 1 xrefs:
// > ObjectManager::init @ 0x1002ea3f8
//
// This function is hookable on this platform (idp: arm, 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:02:52 +0000
//
__int64 __fastcall sub_1002EA62C(__int64 a1)
{
__int64 v2; // x20
__int64 result; // x0
unsigned int i; // w21
__int64 v5; // x25
__int64 v6; // x26
char *CString; // x0
__int64 v8; // x26
__int64 v9; // x28
__int64 v10; // x0
__int64 v11; // x27
__int64 v12; // x26
char *v13; // x0
__int64 v14; // x0
__int64 v15; // x26
__int64 v16; // x27
char *v17; // x0
void *__p[2]; // [xsp+8h] [xbp-68h] BYREF
char v19; // [xsp+1Fh] [xbp-51h]
v2 = cocos2d::CCDictionary::allKeys(*(_QWORD *)(a1 + 320));
result = sub_1002E757C(v2);
if ( (_DWORD)result )
{
for ( i = 0; i < (unsigned int)result; ++i )
{
v5 = sub_1002E75A0(v2, i);
v6 = *(_QWORD *)(a1 + 320);
CString = (char *)cocos2d::CCString::getCString(v5);
sub_100009900(__p, CString);
v8 = cocos2d::CCDictionary::objectForKey(v6, __p);
if ( v19 < 0 )
operator delete(__p[0]);
sub_100009900(__p, "copy");
v9 = cocos2d::CCDictionary::objectForKey(v8, __p);
if ( v19 < 0 )
operator delete(__p[0]);
sub_100009900(__p, "replaceTag");
v10 = cocos2d::CCDictionary::objectForKey(v8, __p);
v11 = v10;
if ( v19 < 0 )
{
operator delete(__p[0]);
if ( v11 )
{
LABEL_11:
if ( v9 )
{
v12 = *(_QWORD *)(a1 + 320);
v13 = (char *)cocos2d::CCString::getCString(v9);
sub_100009900(__p, v13);
v8 = cocos2d::CCDictionary::objectForKey(v12, __p);
if ( v19 < 0 )
operator delete(__p[0]);
}
sub_100009900(__p, "xyz");
v14 = sub_1003064AC(__p);
v15 = sub_1002EAAEC(v14, v11, v8);
if ( v19 < 0 )
operator delete(__p[0]);
v16 = *(_QWORD *)(a1 + 320);
v17 = (char *)cocos2d::CCString::getCString(v5);
sub_100009900(__p, v17);
cocos2d::CCDictionary::setObject(v16, v15, __p);
if ( v19 < 0 )
operator delete(__p[0]);
}
}
else if ( v10 )
{
goto LABEL_11;
}
result = sub_1002E757C(v2);
}
}
return result;
}