//
// GameToolbox::strongColor from 0x3cdecc to 0x3cdf88 (188 bytes)
//
// 3 xrefs:
// > PlayerObject::updateGlowColor @ 0x43842c
// > PlayerObject::updateGlowColor @ 0x438458
// > SimplePlayer::updateColors @ 0x50b480
//
// 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:46:39 +0000
//
int __fastcall GameToolbox::strongColor(int a1)
{
int v1; // r2
int v2; // r3
bool v3; // zf
int v4; // r0
int v5; // r1
float v6; // s14
unsigned __int8 v8; // [sp+Ch] [bp-4h]
unsigned __int8 v9; // [sp+Dh] [bp-3h]
unsigned __int8 v10; // [sp+Eh] [bp-2h]
v1 = (unsigned __int8)a1;
v2 = BYTE1(a1);
v3 = (unsigned __int8)a1 == 255;
v4 = BYTE2(a1);
if ( v3 || v2 == 255 || v4 == 255 )
{
v8 = v1;
v9 = v2;
v10 = v4;
}
else
{
v5 = v4;
if ( v4 < (unsigned int)v2 )
v5 = v2;
if ( v5 < v1 )
v5 = v1;
v6 = 255.0 / (float)v5;
if ( v6 > 1.5 )
v6 = 1.5;
v8 = (unsigned int)(float)((float)v1 * v6);
v9 = (unsigned int)(float)((float)v2 * v6);
v10 = (unsigned int)(float)((float)v4 * v6);
}
return v8 | (unsigned __int16)(v9 << 8) | (v10 << 16);
}