//
// PlayLayer::getRelativeModNew from 0x100085730 to 0x10008577a (74 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 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:20:04 +0000
//
float __fastcall PlayLayer::getRelativeModNew(__int64 a1, float *a2, float a3, float a4, __int64 a5, int a6)
{
float v6; // xmm3_4
if ( a6 )
v6 = (float)((float)(*(float *)(a1 + 1204) + *(float *)(a1 + 12668)) - *a2) + a4;
else
v6 = (float)(*a2 - *(float *)(a1 + 1204)) - a4;
return cocos2d::clampf(v6 / a3, 0.0, 1.0);
}