//
// PlayLayer::getRelativeModNew from 0x311f60 to 0x311fae (78 bytes)
//
// 2 xrefs:
// > PlayLayer::applyEnterEffect @ 0x311fec
// > PlayLayer::updateVisibility @ 0x315e42
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
float PlayLayer::getRelativeModNew(PlayLayer *a1, cocos2d::CCPoint a2, float a3, float a4, bool a5, bool a6)
{
cocos2d::CCPoint *p_m_cameraPosition2; // r3
float v8; // s14
float v9; // s15
p_m_cameraPosition2 = &a1->m_gameState.m_cameraPosition2;
v8 = *(float *)LODWORD(a2.x);
if ( a5 )
v9 = (float)((float)(p_m_cameraPosition2->x + a1->m_cameraWidth) - v8) + a3;
else
v9 = (float)(v8 - p_m_cameraPosition2->x) - a3;
return cocos2d::clampf(v9 / a2.y, 0.0, 1.0);
}