//
// GJEffectManager::traverseInheritanceChain from 0x5c3cf4 to 0x5c3d48 (84 bytes)
//
// 1 xrefs:
// > GJEffectManager::processInheritedColors @ 0x5c3ed4
//
// 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:53:51 +0000
//
int __fastcall GJEffectManager::traverseInheritanceChain(cocos2d::CCArray **this, InheritanceNode *a2)
{
int v4; // r3
_DWORD *v6; // r3
unsigned int v7; // r6
int *v8; // r4
int v9; // r3
int v10; // t1
while ( a2 )
{
cocos2d::CCArray::addObject(*(this + 151), a2);
a2 = *((InheritanceNode **)a2 + 14);
}
v4 = (int)*(this + 151);
if ( v4 )
{
v6 = *(_DWORD **)(v4 + 52);
if ( *v6 )
{
v7 = v6[3];
v8 = (int *)(v7 + 4 * (*v6 + 0x3FFFFFFF));
while ( (unsigned int)v8 >= v7 )
{
v10 = *v8--;
v9 = v10;
if ( !v10 )
break;
GJEffectManager::calculateInheritedColor(*(float *)&this, *(_DWORD *)(v9 + 52), *(ColorAction **)(v9 + 60));
}
}
}
return cocos2d::CCArray::removeAllObjects(*(this + 151));
}