//
// PlayLayer::getRelativeModNew from 0x6f5930 to 0x6f5980 (80 bytes)
//
// 3 xrefs:
// > PlayLayer::applyEnterEffect @ 0x6f59ec
// > PlayLayer::updateVisibility @ 0x7017d4
// > ??> @ 0x4ed60
//
// 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
//
__int64 __fastcall PlayLayer::getRelativeModNew(float *a1, float *a2, float a3, float a4, __int64 a5, char a6)
{
float v6; // s0
if ( a6 )
v6 = (float)((float)((float)(a1[301] + a1[3167]) - *a2) + a4) / a3;
else
v6 = (float)((float)(*a2 - a1[301]) - a4) / a3;
return cocos2d::clampf((cocos2d *)a1, v6, 0.0, 1.0);
}