//
// GJEffectManager::traverseInheritanceChain from 0xa1b4e4 to 0xa1b580 (156 bytes)
//
// 2 xrefs:
// > GJEffectManager::processInheritedColors @ 0xa1b788
// > ??> @ 0x9a960
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:59:36 +0000
//
__int64 __fastcall GJEffectManager::traverseInheritanceChain(cocos2d::CCArray **this, InheritanceNode *a2)
{
InheritanceNode *i; // x19
cocos2d::CCArray *v4; // x0
unsigned int *v5; // x2
unsigned __int64 v6; // x21
__int64 v7; // x1
__int64 *v8; // x19
__int64 v9; // x2
for ( i = a2; i; i = *((InheritanceNode **)i + 8) )
cocos2d::CCArray::addObject(*(this + 125), i);
v4 = *(this + 125);
if ( v4 )
{
v5 = *((unsigned int **)v4 + 7);
if ( *v5 )
{
v6 = *((_QWORD *)v5 + 2);
v7 = 8LL * *v5 - 8;
v8 = (__int64 *)(v6 + v7);
if ( v6 <= v6 + v7 )
{
v9 = *(_QWORD *)(v6 + v7);
if ( v9 )
{
do
{
--v8;
GJEffectManager::calculateInheritedColor(
(GJEffectManager *)this,
*(_DWORD *)(v9 + 56),
*(ColorAction **)(v9 + 72));
if ( v6 > (unsigned __int64)v8 )
break;
v9 = *v8;
}
while ( *v8 );
v4 = *(this + 125);
}
}
}
}
return cocos2d::CCArray::removeAllObjects(v4);
}