//
// ShaderLayer::triggerInvertColor from 0xb3018c to 0xb30284 (248 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::triggerShaderCommand @ 0x9a0110
// > ??> @ 0x767c8
//
// 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 13:01:43 +0000
//
_BYTE *__fastcall ShaderLayer::triggerInvertColor(
ShaderLayer *this,
float a2,
float a3,
float a4,
float a5,
float a6,
char a7,
char a8,
char a9,
int a10,
float a11)
{
float v15; // s5
float v16; // s2
int v19; // [xsp+50h] [xbp+50h]
float v20; // [xsp+50h] [xbp+50h]
float v21; // [xsp+60h] [xbp+60h]
int v22; // [xsp+60h] [xbp+60h]
if ( a7 )
{
*((_BYTE *)this + 1016) = a9;
if ( a8 )
{
v19 = a10;
v21 = a11;
ShaderLayer::tweenValueAuto(this, a4, 35, a2, a10, a11);
ShaderLayer::tweenValueAuto(this, a5, 36, a2, v19, v21);
v15 = v21;
v16 = v21;
v22 = v19;
v20 = v15;
ShaderLayer::tweenValueAuto(this, a6, 37, a2, v22, v16);
a10 = v22;
a11 = v20;
}
else
{
*((float *)this + 251) = a4;
*((float *)this + 252) = a5;
*((float *)this + 253) = a6;
}
}
return ShaderLayer::tweenValueAuto(this, a3, 34, a2, a10, a11);
}