//
// EffectGameObject::updateSpecialColor from 0x10019b6b0 to 0x10019b70d (93 bytes)
//
// 3 xrefs:
// > LevelEditorLayer::addSpecial @ 0x1000af78e
// > SetupObjectTogglePopup::valueDidChange @ 0x10035fb8e
// > EditorUI::getCreateBtn @ 0x10063810d
//
// 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:25:57 +0000
//
__int64 __fastcall EffectGameObject::updateSpecialColor(__int64 a1)
{
__int64 result; // rax
int v2; // edx
int v3; // [rsp-14h] [rbp-14h] BYREF
if ( *(_DWORD *)(a1 + 1028) == 1049 )
{
v3 = HIDWORD(result);
result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 480LL))(a1, 998);
if ( result )
{
v2 = 4145151;
if ( *(_BYTE *)(a1 + 1637) )
v2 = 8388352;
LOWORD(v3) = v2;
BYTE2(v3) = BYTE2(v2);
return (*(__int64 (__fastcall **)(__int64, int *))(*(_QWORD *)result + 960LL))(result, &v3);
}
}
return result;
}