//
// GameToolbox::strongColor from 0x100045a48 to 0x100045ae0 (152 bytes)
//
// 3 xrefs:
// > PlayerObject::updateGlowColor @ 0x10022c35c
// > PlayerObject::updateGlowColor @ 0x10022c37c
// > SimplePlayer::updateColors @ 0x100306118
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// local variable allocation has failed, the output may be wrong!
cocos2d::ccColor3B __fastcall GameToolbox::strongColor(cocos2d::ccColor3B a1)
{
__int64 v1; // x8
__int64 v2; // x9
unsigned int b; // w10
unsigned int g; // w12
float v5; // s0
v1 = *(_QWORD *)&a1.r >> 8;
v2 = *(_QWORD *)&a1.r >> 16;
b = a1.b;
if ( a1.b != 255 && a1.r != 255 )
{
g = a1.g;
if ( a1.g != 255 )
{
if ( a1.g < (unsigned int)a1.b )
LOBYTE(v1) = a1.b;
if ( a1.r >= (unsigned int)(unsigned __int8)v1 )
LOBYTE(v1) = a1.r;
v5 = 255.0 / (float)(unsigned __int8)v1;
if ( v5 > 1.5 )
v5 = 1.5;
*(_DWORD *)&a1.r = (int)(float)(v5 * (float)a1.r);
LODWORD(v1) = (int)(float)(v5 * (float)g);
LODWORD(v2) = (int)(float)(v5 * (float)b);
}
}
return (cocos2d::ccColor3B)(((unsigned __int8)v1 << 8) | ((_DWORD)v2 << 16) | a1.r);
}