//
// GJEffectManager::addAllInheritedColorActions from 0x9f9ca8 to 0x9f9d18 (112 bytes)
//
// 1 xrefs:
// > ??> @ 0x52ed0
//
// 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:15 +0000
//
__int64 __fastcall GJEffectManager::addAllInheritedColorActions(GJEffectManager *this, cocos2d::CCArray *a2)
{
__int64 result; // x0
__int64 i; // x19
unsigned int *v5; // x1
cocos2d::CCArray *v6; // x0
unsigned int *v7; // [xsp+28h] [xbp+28h]
result = *((_QWORD *)this + 41);
if ( result )
{
result = *(_QWORD *)(result + 56);
if ( result )
{
for ( i = *(_QWORD *)(result + 288); ; i = *(_QWORD *)(i + 288) )
{
v5 = *(unsigned int **)(result + 264);
result = v5[30];
if ( (int)result > 0 )
{
if ( !a2 )
{
v7 = v5;
v6 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)result);
v5 = v7;
a2 = v6;
}
result = cocos2d::CCArray::addObject(a2, (cocos2d::CCObject *)v5);
}
if ( !i )
break;
result = i;
}
}
}
return result;
}