//
// GJBaseGameLayer::getEnterEasingValue from 0x58ca24 to 0x58ca8c (104 bytes)
//
// 7 xrefs:
// > PlayLayer::applyCustomEnterEffect @ 0x400fde
// > PlayLayer::applyCustomEnterEffect @ 0x40103c
// > PlayLayer::applyCustomEnterEffect @ 0x4010d8
// > PlayLayer::applyCustomEnterEffect @ 0x401144
// > PlayLayer::applyCustomEnterEffect @ 0x401198
// > GJBaseGameLayer::getEasedAreaValue @ 0x593c38
// > EnterEffectInstance::updateTransitions @ 0x6d0b76
//
// 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:03 +0000
//
float __fastcall GJBaseGameLayer::getEnterEasingValue(
GJBaseGameLayer *this,
GameToolbox *a2,
float a3,
float a4,
int a5)
{
int v6; // r3
float *v7; // r2
if ( a5 == -1 )
return *(float *)&a2;
if ( a5 == -2 )
return GameToolbox::getEasedValue(a2, a3, a4, a4);
v6 = (int)(float)(*(float *)&a2 * 100.0);
v7 = (float *)(*((_DWORD *)this + 2636) + 4 * (a5 + v6));
return *v7 + (float)((float)((float)(v7[1] - *v7) * (float)(*(float *)&a2 - (float)((float)v6 * 0.01))) * 100.0);
}