//
// EffectGameObject::updateSpecialColor from 0x14064a0f0 to 0x14064a167 (119 bytes)
//
// 4 xrefs:
// > EditorUI::getCreateBtn @ 0x1401f162d
// > LevelEditorLayer::addSpecial @ 0x1403f4e99
// > SetupObjectTogglePopup::valueDidChange @ 0x1405bfab1
// > ??> @ 0x140931454
//
// 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:35:38 +0000
//
void __fastcall EffectGameObject::updateSpecialColor(__int64 a1)
{
__int64 v2; // rax
__int64 v3; // rcx
void (__fastcall **v4)(__int64, __int16 *); // rax
void (__fastcall **v5)(__int64, __int16 *); // rax
__int16 v6; // [rsp+30h] [rbp+8h] BYREF
char v7; // [rsp+32h] [rbp+Ah]
__int16 v8; // [rsp+38h] [rbp+10h] BYREF
char v9; // [rsp+3Ah] [rbp+12h]
if ( *(_DWORD *)(a1 + 1036) == 1049 )
{
v2 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 472LL))(a1, 998);
if ( v2 )
{
v3 = v2 + 320;
if ( *(_BYTE *)(a1 + 1653) )
{
v6 = -256;
v4 = *(void (__fastcall ***)(__int64, __int16 *))(v2 + 320);
v7 = 127;
(*v4)(v3, &v6);
}
else
{
v8 = 0x3FFF;
v5 = *(void (__fastcall ***)(__int64, __int16 *))(v2 + 320);
v9 = 63;
(*v5)(v3, &v8);
}
}
}
}