//
// cocos2d::clampf from 0x1001aea10 to 0x1001aea30 (32 bytes)
//
// 21 xrefs:
// > ConfigureHSVWidget::updateSliders @ 0x1001001a0
// > ConfigureHSVWidget::updateSliders @ 0x1001001d4
// > ConfigureHSVWidget::updateSliders @ 0x100100204
// > PlayLayer::updateVisibility @ 0x10011cc74
// > PlayLayer::applyEnterEffect @ 0x10011d8a8
// > cocos2d::CCParticleSystem::initParticle @ 0x100194980
// > cocos2d::CCParticleSystem::initParticle @ 0x1001949a4
// > cocos2d::CCParticleSystem::initParticle @ 0x1001949e4
// > cocos2d::CCParticleSystem::initParticle @ 0x100194a1c
// > cocos2d::CCParticleSystem::initParticle @ 0x100194a54
// > cocos2d::CCParticleSystem::initParticle @ 0x100194a90
// > cocos2d::CCParticleSystem::initParticle @ 0x100194ab4
// > cocos2d::CCParticleSystem::initParticle @ 0x100194af4
// > cocos2d::CCParticleSystem::initParticle @ 0x100194b2c
// > cocos2d::CCParticleSystem::initParticle @ 0x100194b64
// > GJBaseGameLayer::updateStaticCameraPos @ 0x1001e6fd4
// > GJBaseGameLayer::exitStaticCamera @ 0x100203fa0
// > PlayerObject::updateMove @ 0x10021c5a8
// > ShaderLayer::triggerLensCircle @ 0x100271c6c
// > ForceBlockGameObject::calculateForceToTarget @ 0x100396fc0
// > cocos2d::CCProgressTimer::setPercentage @ 0x1003fd704
//
// 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 __fastcall cocos2d::clampf(float a1, float a2, float a3)
{
float v3; // s3
float v4; // s2
if ( a2 <= a3 )
v3 = a3;
else
v3 = a2;
if ( a2 > a3 )
a2 = a3;
if ( v3 <= a1 )
v4 = v3;
else
v4 = a1;
if ( a2 <= a1 )
return v4;
else
return a2;
}