//
// ShaderLayer::triggerShockWave from 0xb2f36c to 0xb2f5b0 (580 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::triggerShaderCommand @ 0x99fd48
// > ??> @ 0xcb140
//
// 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:42 +0000
//
_BYTE *__fastcall ShaderLayer::triggerShockWave(
ShaderLayer *this,
float a2,
float a3,
float a4,
float a5,
float a6,
float a7,
float a8,
char a9,
float a10,
int a11,
char a12,
char a13,
char a14,
char a15,
int a16,
float a17,
float a18,
float a19,
float a20,
float a21,
float a22)
{
double v27; // d1
float v28; // s17
float v29; // s16
double v31; // d17
if ( a15 )
{
v27 = *((double *)this + 61);
v28 = v27;
*(float *)&v27 = v27 - *((float *)this + 134);
v29 = *((float *)this + 135) + (float)(*((float *)this + 137) * *(float *)&v27);
}
else
{
v29 = 0.0;
*((_BYTE *)this + 572) = a9;
v31 = *((double *)this + 61);
*((_DWORD *)this + 146) = a11;
*((_BYTE *)this + 588) = a12;
*((_BYTE *)this + 589) = a13;
v28 = v31;
*((_BYTE *)this + 604) = 1;
*((_BYTE *)this + 590) = a14;
a21 = 0.0;
}
*((float *)this + 135) = v29;
*((float *)this + 134) = v28;
ShaderLayer::tweenValueAuto(this, a2, 50, a21, a16, a22);
ShaderLayer::tweenValueAuto(this, a3, 51, a21, a16, a22);
ShaderLayer::tweenValueAuto(this, a4, 52, a21, a16, a22);
ShaderLayer::tweenValueAuto(this, a5, 53, a21, a16, a22);
ShaderLayer::tweenValueAuto(this, a6, 54, a21, a16, a22);
ShaderLayer::tweenValueAuto(this, a7, 55, a21, a16, a22);
ShaderLayer::tweenValueAuto(this, a10, 56, a21, a16, a22);
ShaderLayer::tweenValueAuto(this, a17, 57, a21, a16, a22);
ShaderLayer::tweenValueAuto(this, a18, 58, a21, a16, a22);
ShaderLayer::tweenValueAuto(this, a19, 59, a21, a16, a22);
ShaderLayer::tweenValueAuto(this, a20, 60, a21, a16, a22);
return ShaderLayer::tweenValueAuto(this, a8, 61, a21, a16, a22);
}