//
// GameToolbox::multipliedColorValue from 0x69d2c0 to 0x69d394 (212 bytes)
//
// 16 xrefs:
// > GameToolbox::colorToSepia @ 0x69d4a0
// > PlayLayer::applyCustomEnterEffect @ 0x6f582c
// > PlayLayer::applyCustomEnterEffect @ 0x6f5860
// > PlayerObject::update @ 0x768e50
// > PlayerObject::update @ 0x768e98
// > GJBaseGameLayer::processAreaTintGroupAction @ 0x9a5710
// > GJBaseGameLayer::processAreaTintGroupAction @ 0x9a5afc
// > GJBaseGameLayer::processAreaTintGroupAction @ 0x9a5b7c
// > GJBaseGameLayer::processAreaTintGroupAction @ 0x9a5bd8
// > ColorAction::step @ 0x9f91b4
// > GJEffectManager::colorForPulseEffect @ 0xa198bc
// > GJEffectManager::colorForPulseEffect @ 0xa19974
// > GJEffectManager::calculateInheritedColor @ 0xa1b2ec
// > SecretRewardsLayer::scrollLayerMoved @ 0xb9a478
// > ColorAction2::step @ 0xba297c
// > ??> @ 0xa8220
//
// This function is hookable on this platform (idp: arm, 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:50:41 +0000
//
unsigned __int64 __fastcall GameToolbox::multipliedColorValue(int a1, int a2, float a3)
{
int v3; // w5
int v4; // w4
int v5; // w3
int v6; // w2
int v7; // w0
int v8; // w1
unsigned __int8 v10; // [xsp+18h] [xbp-8h]
unsigned __int8 v11; // [xsp+19h] [xbp-7h]
unsigned __int8 v12; // [xsp+1Ah] [xbp-6h]
v3 = (unsigned __int8)a1;
v4 = BYTE1(a1);
v5 = (unsigned __int8)a2;
v6 = BYTE1(a2);
v7 = BYTE2(a1);
v8 = BYTE2(a2);
if ( a3 >= 1.0 )
goto LABEL_2;
if ( a3 <= 0.0 )
{
v10 = v3;
v11 = v4;
v12 = v7;
return v10 | (unsigned __int64)(unsigned __int16)(v11 << 8) | ((unsigned __int64)v12 << 16);
}
if ( a3 == 1.0 )
{
LABEL_2:
v10 = v5;
v11 = v6;
v12 = v8;
}
else
{
v10 = (unsigned int)(float)((float)v3 + (float)(a3 * (float)(v5 - v3)));
v11 = (int)(float)((float)v4 + (float)(a3 * (float)(v6 - v4)));
v12 = (int)(float)((float)v7 + (float)(a3 * (float)(v8 - v7)));
}
return v10 | (unsigned __int64)(unsigned __int16)(v11 << 8) | ((unsigned __int64)v12 << 16);
}