//
// GameToolbox::multipliedColorValue from 0x2ec9f8 to 0x2ecae4 (236 bytes)
//
// 15 xrefs:
// > GameToolbox::colorToSepia @ 0x2ecbf0
// > PlayLayer::applyCustomEnterEffect @ 0x311da4
// > PlayLayer::applyCustomEnterEffect @ 0x311f2c
// > PlayerObject::update @ 0x34f00e
// > PlayerObject::update @ 0x34f068
// > GJBaseGameLayer::processAreaTintGroupAction @ 0x4745ce
// > GJBaseGameLayer::processAreaTintGroupAction @ 0x474626
// > GJBaseGameLayer::processAreaTintGroupAction @ 0x4746bc
// > GJBaseGameLayer::processAreaTintGroupAction @ 0x474714
// > ColorAction::step @ 0x499860
// > GJEffectManager::colorForPulseEffect @ 0x49a2f2
// > GJEffectManager::colorForPulseEffect @ 0x49a3c2
// > GJEffectManager::calculateInheritedColor @ 0x49a534
// > SecretRewardsLayer::scrollLayerMoved @ 0x5852e2
// > ColorAction2::step @ 0x58a95e
//
// 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
//
cocos2d::ccColor3B GameToolbox::multipliedColorValue(cocos2d::ccColor3B a1, cocos2d::ccColor3B a2, float a3)
{
int g; // r3
int r; // r2
int b; // r1
int v7; // r5
int v8; // r4
int v9; // r0
unsigned __int8 v12; // [sp+Ch] [bp-8h]
unsigned __int8 v13; // [sp+Dh] [bp-7h]
unsigned __int8 v14; // [sp+Eh] [bp-6h]
g = a2.g;
r = a2.r;
b = a2.b;
v7 = a1.r;
v8 = a1.g;
v9 = a1.b;
if ( a3 >= 1.0 )
{
LABEL_8:
v12 = r;
v13 = g;
v14 = b;
return (cocos2d::ccColor3B)(v12 | (unsigned __int16)(v13 << 8) | (v14 << 16));
}
if ( a3 > 0.0 && a3 != 0.0 )
{
if ( a3 != 1.0 )
{
v12 = (unsigned int)(float)((float)v7 + (float)((float)(r - v7) * a3));
v13 = (int)(float)((float)v8 + (float)((float)(g - v8) * a3));
v14 = (int)(float)((float)v9 + (float)((float)(b - v9) * a3));
return (cocos2d::ccColor3B)(v12 | (unsigned __int16)(v13 << 8) | (v14 << 16));
}
goto LABEL_8;
}
v12 = v7;
v13 = v8;
v14 = v9;
return (cocos2d::ccColor3B)(v12 | (unsigned __int16)(v13 << 8) | (v14 << 16));
}