//
// GJEffectManager::traverseInheritanceChain from 0x1002c9b50 to 0x1002c9be7 (151 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 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:28:09 +0000
//
__int64 __fastcall GJEffectManager::traverseInheritanceChain(__int64 a1, __int64 a2)
{
__int64 v3; // r14
__int64 v4; // rdi
unsigned int *v5; // rax
unsigned __int64 v6; // r14
unsigned __int64 v7; // r15
if ( a2 )
{
v3 = a2;
do
{
a2 = v3;
sub_1007FEBF0(*(_QWORD *)(a1 + 1000), v3);
v3 = *(_QWORD *)(v3 + 64);
}
while ( v3 );
}
v4 = *(_QWORD *)(a1 + 1000);
if ( !v4 )
{
v4 = 0;
return sub_1007FF190(v4);
}
v5 = *(unsigned int **)(v4 + 56);
if ( !*v5 )
return sub_1007FF190(v4);
v6 = *((_QWORD *)v5 + 2);
v7 = v6 + 8LL * *v5 - 8;
do
{
if ( !*(_QWORD *)v7 )
break;
GJEffectManager::calculateInheritedColor(a1, a2, *(_QWORD *)(*(_QWORD *)v7 + 72LL));
v7 -= 8LL;
}
while ( v7 >= v6 );
return sub_1007FF190(*(_QWORD *)(a1 + 1000));
}