//
// EffectGameObject::updateSpecialColor from 0x4e8348 to 0x4e83b0 (104 bytes)
//
// 3 xrefs:
// > LevelEditorLayer::addSpecial @ 0x46e4ca
// > SetupObjectTogglePopup::valueDidChange @ 0x5ea198
// > EditorUI::getCreateBtn @ 0x6f81ce
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:51:06 +0000
//
_DWORD *__fastcall EffectGameObject::updateSpecialColor(_DWORD *this, int a2, int a3)
{
_DWORD *v3; // r5
int (__fastcall *v4)(_DWORD *, _DWORD *, _DWORD); // r2
char v5; // r3
_DWORD v6[3]; // [sp+0h] [bp-Ch] BYREF
v6[0] = this;
v6[1] = a2;
v6[2] = a3;
v3 = this;
if ( *(this + 223) == 1049 )
{
this = (_DWORD *)(*(int (__fastcall **)(_DWORD *, int))(*this + 240))(this, 998);
if ( this )
{
v4 = *(int (__fastcall **)(_DWORD *, _DWORD *, _DWORD))(*this + 480);
if ( *((_BYTE *)v3 + 1457) )
{
LOWORD(v6[0]) = -256;
v5 = 127;
}
else
{
LOWORD(v6[0]) = 0x3FFF;
v5 = 63;
}
BYTE2(v6[0]) = v5;
return (_DWORD *)v4(this, v6, v4);
}
}
return this;
}