//
// ObjectManager::setup from 0x3d6ccc to 0x3d6e54 (392 bytes)
//
// 1 xrefs:
// > LoadingLayer::loadAssets @ 0x3fbe5e
//
// 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 11:46:44 +0000
//
unsigned int __fastcall ObjectManager::setup(cocos2d::CCDictionary **this)
{
char *v1; // r8
unsigned int v2; // r5
cocos2d::CCArray *v3; // r9
unsigned int result; // r0
cocos2d::CCString *v5; // r0
const char *CString; // r0
const char *v7; // r6
size_t v8; // r0
const char *v9; // r1
char *v10; // r6
size_t v11; // r0
unsigned __int8 *v12; // r12
unsigned int v13; // r4
unsigned __int8 *v14; // r4
_BOOL4 v15; // r4
size_t v16; // r0
unsigned __int8 *v17; // [sp+1Ch] [bp-48h]
unsigned __int8 *v18; // [sp+24h] [bp-40h] BYREF
int v19; // [sp+2Ch] [bp-38h] BYREF
unsigned int v20; // [sp+30h] [bp-34h]
char *v21; // [sp+34h] [bp-30h]
int v22[3]; // [sp+38h] [bp-2Ch] BYREF
int v23[3]; // [sp+44h] [bp-20h] BYREF
int v24[3]; // [sp+50h] [bp-14h] BYREF
v2 = 0;
v3 = (cocos2d::CCArray *)cocos2d::CCDictionary::allKeys(*(this + 66));
while ( 1 )
{
result = cocos2d::CCArray::count(v3);
if ( v2 >= result )
break;
v5 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v3, v2);
CString = (const char *)cocos2d::CCString::getCString(v5);
v19 = 0;
v20 = 0;
v21 = nullptr;
v7 = CString;
v8 = strlen(CString);
v9 = v7;
v10 = (char *)v22;
std::string::__init(&v19, v9, v8);
v22[0] = 0;
v22[1] = 0;
if ( (v19 & 1) == 0 )
v1 = (char *)&v19 + 1;
v22[2] = 0;
if ( (v19 & 1) != 0 )
v1 = v21;
v11 = strlen(v1);
std::string::__init(v22, v1, v11);
v1 = (char *)v23;
memset(v23, 0, sizeof(v23));
std::string::__init(v23, "GlobalAnimations", 0x10u);
if ( sub_3D6880((unsigned __int8 *)v22, (unsigned __int8 *)v23) )
{
v15 = 0;
}
else
{
if ( (v19 & 1) != 0 )
{
v12 = (unsigned __int8 *)v21;
v13 = v20;
}
else
{
v13 = (int)(unsigned __int8)v19 >> 1;
v12 = (unsigned __int8 *)&v19 + 1;
}
v15 = v13 <= 2
|| (v14 = &v12[v13],
v17 = v12,
std::__search(
&v18,
v12,
v14,
"xyz",
(unsigned __int8 *)"",
(int (__fastcall *)(int, _DWORD))std::char_traits::eq),
v18 == v14)
|| v18 - v17 == -1;
}
std::string::~string((int)v23);
std::string::~string((int)v22);
if ( v15 )
{
if ( (v19 & 1) == 0 )
v10 = (char *)&v19 + 1;
v24[0] = 0;
if ( (v19 & 1) != 0 )
v10 = v21;
v24[1] = 0;
v24[2] = 0;
v16 = strlen(v10);
std::string::__init(v24, v10, v16);
SpriteAnimationManager::createAnimations(v24);
std::string::~string((int)v24);
}
++v2;
std::string::~string((int)&v19);
}
return result;
}