//
// LevelEditorLayer::runColorEffect from 0x1403fc300 to 0x1403fc496 (406 bytes)
//
// 3 xrefs:
// > LevelEditorLayer::activateTriggerEffect @ 0x1403fb9fe
// > LevelEditorLayer::activateTriggerEffect @ 0x1403fba41
// > ??> @ 0x1409256dc
//
// 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:31:52 +0000
//
__int64 __fastcall LevelEditorLayer::runColorEffect(
__int64 *a1,
__int64 a2,
unsigned int a3,
float a4,
int a5,
char a6)
{
bool v9; // di
char *ColorAction; // rax
float v11; // xmm2_4
__int64 result; // rax
__int64 v13; // r10
__int64 v14; // rcx
v9 = *(float *)(a2 + 1468) <= 0.0;
ColorAction = GJEffectManager::getColorAction(a1[301], a3);
v11 = *((float *)ColorAction + 40);
if ( v11 != 0.0 )
{
if ( !v9 && a6 && (*((float *)ColorAction + 17) == 0.0 || ColorAction[56]) && *((int *)ColorAction + 30) > 0 )
return 0;
*((_DWORD *)ColorAction + 41) = 0;
*((_DWORD *)ColorAction + 17) = 0;
ColorAction::step((__int64)ColorAction, a4 - v11);
if ( !*(_DWORD *)(v13 + 120) )
{
v14 = *(_QWORD *)(v13 + 144);
*(_WORD *)(v14 + 324) = *(_WORD *)(v13 + 58);
*(_BYTE *)(v14 + 326) = *(_BYTE *)(v13 + 60);
*(float *)(v14 + 320) = *(float *)(v13 + 64) * 255.0;
}
}
result = (*(__int64 (__fastcall **)(__int64 *, __int64, _QWORD, _QWORD, _BYTE, _DWORD, __int64, _DWORD, _BYTE, __int64, _DWORD, _DWORD))(*a1 + 1112))(
a1,
a2 + 1465,
*(_QWORD *)(*a1 + 1112),
a3,
*(_BYTE *)(a2 + 1503),
*(_DWORD *)(a2 + 1472),
a2 + 1628,
*(_DWORD *)(a2 + 1644),
*(_BYTE *)(a2 + 1648),
a2,
*(_DWORD *)(a2 + 924),
*(_DWORD *)(a2 + 1688));
*(float *)(result + 160) = a4;
*(_DWORD *)(result + 164) = a5;
return result;
}