//
// GJEffectManager::getAllColorActions from 0x1403655d0 to 0x14036563f (111 bytes)
//
// 3 xrefs:
// > LevelEditorLayer::transferDefaultColors @ 0x1403fa64b
// > PlayLayer::loadDefaultColors @ 0x140510736
// > ??> @ 0x1409215fc
//
// 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 11:30:54 +0000
//
__int64 __fastcall GJEffectManager::getAllColorActions(__int64 a1)
{
__int64 result; // rax
__int64 v3; // rdx
cocos2d::CCArray *v4; // rdi
__int64 v5; // rdx
__int64 i; // rbx
result = cocos2d::CCArray::create(a1);
v3 = *(_QWORD *)(a1 + 328);
v4 = (cocos2d::CCArray *)result;
if ( v3 )
{
v5 = *(_QWORD *)(v3 + 56);
if ( v5 )
{
for ( i = *(_QWORD *)(v5 + 288); ; i = *(_QWORD *)(i + 288) )
{
cocos2d::CCArray::addObject(v4, *(struct cocos2d::CCObject **)(v5 + 264));
v5 = i;
if ( !i )
break;
}
return (__int64)v4;
}
}
return result;
}