//
// GJEffectManager::traverseInheritanceChain from 0x8c0dd0 to 0x8c0e6c (156 bytes)
//
// 2 xrefs:
// > GJEffectManager::processInheritedColors @ 0x8c1044
// > ??> @ 0x73188
//
// 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 GJEffectManager::traverseInheritanceChain(GJEffectManager *a1, InheritanceNode *a2)
{
InheritanceNode *i; // x19
cocos2d::CCArray *m_unkArray430; // x0
cocos2d::ccArray *data; // x2
unsigned __int64 arr; // x21
__int64 v7; // x1
__int64 *v8; // x19
__int64 v9; // x2
for ( i = a2; i; i = i->m_inheritanceNode )
cocos2d::CCArray::addObject(a1->m_unkArray430, i);
m_unkArray430 = a1->m_unkArray430;
if ( m_unkArray430 )
{
data = m_unkArray430->data;
if ( data->num )
{
arr = (unsigned __int64)data->arr;
v7 = 8LL * data->num - 8;
v8 = (__int64 *)(arr + v7);
if ( arr <= arr + v7 )
{
v9 = *(_QWORD *)(arr + v7);
if ( v9 )
{
do
{
--v8;
GJEffectManager::calculateInheritedColor(a1, *(_DWORD *)(v9 + 56), *(ColorAction **)(v9 + 72));
if ( arr > (unsigned __int64)v8 )
break;
v9 = *v8;
}
while ( *v8 );
m_unkArray430 = a1->m_unkArray430;
}
}
}
}
cocos2d::CCArray::removeAllObjects(m_unkArray430);
}