//
// GameToolbox::strongColor from 0x1004edd70 to 0x1004ede10 (160 bytes)
//
// 3 xrefs:
// > SimplePlayer::updateColors @ 0x100357d4a
// > PlayerObject::updateGlowColor @ 0x100406ecf
// > PlayerObject::updateGlowColor @ 0x100406efe
//
// 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:31:23 +0000
//
__int64 __fastcall GameToolbox::strongColor(int a1)
{
unsigned int v1; // ecx
unsigned int v2; // eax
int v3; // edx
unsigned __int8 v4; // cl
float v5; // xmm0_4
v1 = (a1 & 0xFFFFFFu) >> 8;
v2 = (a1 & 0xFFFFFFu) >> 16;
if ( v2 != 255 && (unsigned __int8)a1 != 255 )
{
v3 = BYTE1(a1);
if ( BYTE1(a1) != 255 )
{
v4 = (a1 & 0xFFFFFFu) >> 16;
if ( BYTE1(a1) >= v2 )
v4 = BYTE1(a1);
if ( (unsigned __int8)a1 >= (unsigned int)v4 )
v4 = a1;
v5 = fminf(1.5, 255.0 / (float)v4);
a1 = (int)(float)((float)(unsigned __int8)a1 * v5);
v1 = (int)(float)((float)v3 * v5);
v2 = (int)(float)((float)(int)v2 * v5);
}
}
return ((unsigned __int8)v2 << 16) | ((unsigned __int8)v1 << 8) | (unsigned int)(unsigned __int8)a1;
}