//
// PlayLayer::getRelativeMod from 0x6f5ed8 to 0x6f5f48 (112 bytes)
//
// 2 xrefs:
// > PlayLayer::updateVisibility @ 0x701400
// > ??> @ 0x77fb0
//
// 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:51:50 +0000
//
float __fastcall PlayLayer::getRelativeMod(__int64 a1, float *a2, float a3, float a4, float a5)
{
float v5; // s6
float v6; // s3
float v7; // s5
float v8; // s3
float result; // s0
v5 = *(float *)(a1 + 1204);
v6 = *(float *)(a1 + 12680);
v7 = *a2;
if ( *a2 > (float)(v6 + v5) )
{
v8 = (float)(v6 - (float)((float)((float)(v7 - a5) - v5) - v6)) * a3;
if ( v8 >= 0.0 )
goto LABEL_3;
return 0.0;
}
v8 = (float)(v6 - (float)((float)((float)(v6 + v5) - v7) - a5)) * a4;
if ( v8 < 0.0 )
return 0.0;
LABEL_3:
result = 1.0;
if ( v8 <= 1.0 )
return v8;
return result;
}