//
// ObjectManager::setup from 0x10024d5e8 to 0x10024d7ac (452 bytes)
//
// 1 xrefs:
// > LoadingLayer::loadAssets @ 0x1001d6dac
//
// 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
//
void __fastcall ObjectManager::setup(ObjectManager *a1)
{
cocos2d::CCArray *v1; // x19
unsigned int v2; // w20
cocos2d::CCString *v3; // x0
char *CString; // x0
char *v5; // x1
void *v6; // x0
__int64 v7; // x8
void **v8; // x25
char *v9; // x26
void **v10; // x0
char *v11; // x0
_BOOL4 v14; // w25
char *v15; // x1
void *v16[2]; // [xsp+0h] [xbp-A0h] BYREF
char v17; // [xsp+17h] [xbp-89h]
void *__p[2]; // [xsp+18h] [xbp-88h] BYREF
char v19; // [xsp+2Fh] [xbp-71h]
void *v20[2]; // [xsp+30h] [xbp-70h] BYREF
char v21; // [xsp+47h] [xbp-59h]
void *v22[2]; // [xsp+48h] [xbp-58h] BYREF
char v23; // [xsp+5Fh] [xbp-41h]
v1 = cocos2d::CCDictionary::allKeys(a1->m_objectDefinitions);
if ( (unsigned int)sub_10024A36C((__int64)v1) )
{
v2 = 0;
while ( 1 )
{
v3 = (cocos2d::CCString *)sub_10024A388((__int64)v1, v2);
CString = (char *)cocos2d::CCString::getCString(v3);
sub_100009900(v22, CString);
v5 = v23 >= 0 ? (char *)v22 : (char *)v22[0];
sub_100009900(v20, v5);
sub_100009900(__p, "GlobalAnimations");
if ( sub_1000045BC(v20, __p) )
break;
v7 = v23;
if ( v23 >= 0LL )
v8 = v22;
else
v8 = (void **)v22[0];
if ( v23 < 0 )
v7 = (__int64)v22[1];
v9 = (char *)v8 + v7;
if ( v7 >= 3 )
{
v10 = v8;
do
{
v11 = (char *)memchr(v10, 120, v7 - 2);
if ( !v11 )
break;
if ( *(_WORD *)v11 == 31096 && v11[2] == 122 )
goto LABEL_25;
v10 = (void **)(v11 + 1);
v7 = v9 - (char *)v10;
}
while ( v9 - (char *)v10 > 2 );
}
v11 = v9;
LABEL_25:
v14 = v11 == v9 || v11 - (char *)v8 == -1;
if ( v19 < 0 )
operator delete(__p[0]);
if ( (v21 & 0x80000000) == 0 )
{
if ( !v14 )
goto LABEL_43;
LABEL_37:
if ( v23 >= 0 )
v15 = (char *)v22;
else
v15 = (char *)v22[0];
sub_100009900(v16, v15);
SpriteAnimationManager::createAnimations(v16);
if ( (v17 & 0x80000000) == 0 )
goto LABEL_43;
v6 = v16[0];
LABEL_42:
operator delete(v6);
goto LABEL_43;
}
operator delete(v20[0]);
if ( v14 )
goto LABEL_37;
LABEL_43:
if ( v23 < 0 )
operator delete(v22[0]);
if ( ++v2 >= (unsigned int)sub_10024A36C((__int64)v1) )
return;
}
if ( v19 < 0 )
operator delete(__p[0]);
if ( (v21 & 0x80000000) == 0 )
goto LABEL_43;
v6 = v20[0];
goto LABEL_42;
}
}