//
// ShaderLayer::triggerChromaticGlitch from 0x686778 to 0x686862 (234 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::triggerShaderCommand @ 0x59018e
//
// 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:56:05 +0000
//
_BYTE *__fastcall ShaderLayer::triggerChromaticGlitch(
ShaderLayer *this,
bool a2,
float a3,
float a4,
float a5,
float a6,
float a7,
float a8,
float a9,
int a10,
float a11,
bool a12,
bool a13)
{
double v15; // d6
float v16; // s15
float v17; // s14
float v18; // s12
float v19; // s15
_BYTE *result; // r0
v15 = *((double *)this + 45);
if ( !*((_BYTE *)this + 640) )
{
v16 = v15;
*((float *)this + 152) = v16;
*((float *)this + 153) = v16;
}
*((_BYTE *)this + 640) = a2;
v17 = v15 - *((float *)this + 152);
v18 = v15;
*((float *)this + 153) = *((float *)this + 153) + (float)(v17 * *((float *)this + 154));
*((float *)this + 152) = v18;
ShaderLayer::tweenValueAuto(this, a4, 8u, a3, a10, a11);
if ( a9 < 0.1 )
v19 = 10.0;
else
v19 = 1.0 / a9;
ShaderLayer::tweenValueAuto(this, v19, 7u, a3, a10, a11);
ShaderLayer::tweenValueAuto(this, a5, 4u, a3, a10, a11);
ShaderLayer::tweenValueAuto(this, a7, 5u, a3, a10, a11);
ShaderLayer::tweenValueAuto(this, a8, 6u, a3, a10, a11);
result = ShaderLayer::tweenValueAuto(this, a6, 3u, a3, a10, a11);
*((_BYTE *)this + 642) = a12;
*((_BYTE *)this + 643) = a13;
return result;
}