//
// OpacityEffectAction::step from 0x9f8dc0 to 0x9f8e30 (112 bytes)
//
// 3 xrefs:
// > LevelEditorLayer::activateTriggerEffect @ 0x795b60
// > GJEffectManager::updateOpacityEffects @ 0xa02df4
// > ??> @ 0x60268
//
// 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:59:15 +0000
//
float __fastcall OpacityEffectAction::step(OpacityEffectAction *this, float result)
{
float v2; // s0
float v3; // s2
float v4; // s1
float v5; // s4
float v6; // s3
float v7; // s0
if ( !*((_BYTE *)this + 12) && !*((_BYTE *)this + 13) )
{
v2 = result + *((float *)this + 4);
v3 = *(float *)this;
v4 = v2 + *((float *)this + 9);
*((float *)this + 4) = v2;
if ( v4 < v3 )
{
if ( v4 <= 0.0 )
v5 = 0.0;
else
v5 = v4 / v3;
}
else
{
v5 = 1.0;
}
v6 = *((float *)this + 1);
v7 = *((float *)this + 2) - v6;
*((_BYTE *)this + 12) = v4 >= v3;
result = v6 + (float)(v7 * v5);
*((float *)this + 6) = result;
}
return result;
}