//
// cocos2d::clampf from 0xb1f0cc to 0xb1f108 (60 bytes)
//
// 33 xrefs:
// > PlayLayer::getRelativeModNew @ 0x5cdaac
// > PlayLayer::getRelativeModNew @ 0x5cdad4
// > PlayerObject::updateMove @ 0x62c034
// > ForceBlockGameObject::calculateForceToTarget @ 0x76ba90
// > ForceBlockGameObject::calculateForceToTarget @ 0x76bbc0
// > GJBaseGameLayer::updateStaticCameraPos @ 0x87fb30
// > GJBaseGameLayer::updateStaticCameraPos @ 0x87fbc8
// > GJBaseGameLayer::exitStaticCamera @ 0x880438
// > GJBaseGameLayer::exitStaticCamera @ 0x8804e4
// > ConfigureHSVWidget::updateSliders @ 0x8e0c48
// > ConfigureHSVWidget::updateSliders @ 0x8e0c7c
// > ConfigureHSVWidget::updateSliders @ 0x8e0cac
// > ConfigureHSVWidget::updateSliders @ 0x8e0ce0
// > ConfigureHSVWidget::updateSliders @ 0x8e0d14
// > ShaderLayer::triggerLensCircle @ 0x9f931c
// > cocos2d::CCFollow::step @ 0xab3de4
// > cocos2d::CCFollow::step @ 0xab3df8
// > cocos2d::CCProgressTimer::setPercentage @ 0xaf9114
// > cocos2d::CCParticleSystem::initParticle @ 0xafdcac
// > cocos2d::CCParticleSystem::initParticle @ 0xafdccc
// > cocos2d::CCParticleSystem::initParticle @ 0xafdce4
// > cocos2d::CCParticleSystem::initParticle @ 0xafdd38
// > cocos2d::CCParticleSystem::initParticle @ 0xafdd84
// > cocos2d::CCParticleSystem::initParticle @ 0xafdda4
// > cocos2d::CCParticleSystem::initParticle @ 0xafddbc
// > cocos2d::CCParticleSystem::initParticle @ 0xafde18
// > cocos2d::CCParticleSystem::initParticle @ 0xafe1cc
// > cocos2d::CCParticleSystem::initParticle @ 0xafe214
// > cocos2d::CCParticleSystem::initParticle @ 0xafe260
// > cocos2d::CCParticleSystem::initParticle @ 0xafe2a8
// > cocos2d::ccpClamp @ 0xb1f134
// > cocos2d::ccpClamp @ 0xb1f154
// > ??> @ 0x4a610
//
// 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 cocos2d::clampf(float a1, float a2, float a3)
{
float v3; // s3
if ( a2 > a3 )
{
v3 = a2;
a2 = a3;
a3 = v3;
}
if ( a2 <= a1 && (a2 = a1, a3 <= a1) )
return a3;
else
return a2;
}