//
// GJEffectManager::init from 0x5d25cc to 0x5d275c (400 bytes)
//
// 1 xrefs:
// > GJEffectManager::create @ 0x5c2ea8
//
// 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:54:06 +0000
//
cocos2d::CCDictionary *__fastcall GJEffectManager::init(void **this)
{
cocos2d::CCDictionary *v2; // r0
cocos2d::CCDictionary *v3; // r5
cocos2d::CCObject *v4; // r0
cocos2d::CCDictionary *v5; // r0
cocos2d::CCObject *v6; // r0
cocos2d::CCArray *v7; // r0
cocos2d::CCObject *v8; // r0
cocos2d::CCDictionary *v9; // r0
cocos2d::CCObject *v10; // r0
cocos2d::CCDictionary *v11; // r0
cocos2d::CCObject *v12; // r0
int v13; // r3
unsigned int v14; // r1
int v15; // r3
int v16; // r2
int v17; // r3
unsigned int v18; // r1
int v19; // r3
int v20; // r2
int v21; // r3
unsigned int v22; // r1
int v23; // r3
int v24; // r2
unsigned int i; // r3
int v26; // r1
unsigned int v27; // r2
int j; // r3
v2 = (cocos2d::CCDictionary *)cocos2d::CCNode::init((cocos2d::CCNode *)this);
v3 = v2;
if ( v2 )
{
v4 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v2);
*(this + 67) = v4;
v5 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v4);
v6 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v5);
*(this + 68) = v6;
v7 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v6);
v8 = (cocos2d::CCObject *)cocos2d::CCArray::create(v7);
*(this + 151) = v8;
v9 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v8);
v10 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v9);
*(this + 97) = v10;
v11 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v10);
v12 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v11);
*(this + 96) = v12;
cocos2d::CCObject::retain(v12);
v13 = (int)*(this + 109);
v14 = ((int)*(this + 110) - v13) >> 2;
if ( v14 > 0x44D )
{
if ( v14 != 1102 )
{
v15 = v13 + 4408;
while ( 1 )
{
v16 = (int)*(this + 110);
if ( v15 == v16 )
break;
*(this + 110) = (void *)(v16 - 4);
}
}
}
else
{
std::vector::__append(this + 109, 1102 - v14);
}
v17 = (int)*(this + 106);
v18 = ((int)*(this + 107) - v17) >> 2;
if ( v18 > 0x44D )
{
if ( v18 != 1102 )
{
v19 = v17 + 4408;
while ( 1 )
{
v20 = (int)*(this + 107);
if ( v19 == v20 )
break;
*(this + 107) = (void *)(v20 - 4);
}
}
}
else
{
std::vector::__append((int)(this + 106), 1102 - v18);
}
std::vector::resize(this + 152, 0x2710u, 0);
v21 = (int)*(this + 98);
v22 = ((int)*(this + 99) - v21) >> 2;
if ( v22 > 0x270F )
{
if ( v22 != 10000 )
{
v23 = v21 + 40000;
while ( 1 )
{
v24 = (int)*(this + 99);
if ( v23 == v24 )
break;
*(this + 99) = (void *)(v24 - 4);
}
}
}
else
{
std::vector::__append((int)(this + 98), 10000 - v22);
}
std::vector::resize(this + 112, 0x2710u, 0);
for ( i = 0; i != 10000; ++i )
{
v26 = 1 << (i & 0x1F);
*((_DWORD *)*(this + 98) + i) = 0;
v27 = i >> 5;
*((_DWORD *)*(this + 112) + v27) &= ~v26;
*((_DWORD *)*(this + 152) + v27) |= v26;
}
for ( j = 0; j != 4408; j += 4 )
{
*(_DWORD *)((char *)*(this + 109) + j) = 0;
*(_DWORD *)((char *)*(this + 106) + j) = 0;
}
}
return v3;
}