//
// OpacityEffectAction::step from 0x5c263c to 0x5c26aa (110 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::activateTriggerEffect @ 0x467b22
// > GJEffectManager::updateOpacityEffects @ 0x5c4a36
//
// 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:53:50 +0000
//
int __fastcall OpacityEffectAction::step(int this, float a2)
{
float v2; // s13
float v3; // s15
float v4; // s14
float v5; // s15
float v6; // s12
float v7; // s14
float v8; // s11
if ( !*(_BYTE *)(this + 12) && !*(_BYTE *)(this + 13) )
{
v2 = *(float *)this;
v3 = a2 + *(float *)(this + 16);
v4 = *(float *)(this + 36);
*(float *)(this + 16) = v3;
v5 = v3 + v4;
if ( v5 >= v2 )
{
v6 = 1.0;
}
else if ( v5 <= 0.0 )
{
v6 = 0.0;
}
else
{
v6 = v5 / v2;
}
v7 = *(float *)(this + 4);
v8 = *(float *)(this + 8) - v7;
*(_BYTE *)(this + 12) = v5 >= v2;
*(float *)(this + 24) = v7 + (float)(v8 * v6);
}
return this;
}