//
// PlayLayer::getRelativeModNew from 0x40141c to 0x401462 (70 bytes)
//
// 2 xrefs:
// > PlayLayer::applyEnterEffect @ 0x4014a4
// > PlayLayer::updateVisibility @ 0x4072d2
//
// 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:47:24 +0000
//
int __fastcall PlayLayer::getRelativeModNew(int a1, float *a2, float a3, float a4, int a5, char a6)
{
float v6; // s13
float v7; // s14
float v8; // s15
v6 = *(float *)(a1 + 996);
v7 = *a2;
if ( a6 )
v8 = (float)((float)(v6 + *(float *)(a1 + 10884)) - v7) + a4;
else
v8 = (float)(v7 - v6) - a4;
return cocos2d::clampf(COERCE_COCOS2D_(v8 / a3), 0.0, 1.0, COERCE_FLOAT(a6));
}