//
// cocos2d::clampf from 0x7f63ec to 0x7f6432 (70 bytes)
//
// 33 xrefs:
// > PlayLayer::getRelativeModNew @ 0x40145e
// > PlayerObject::updateMove @ 0x43e240
// > ForceBlockGameObject::calculateForceToTarget @ 0x4e981e
// > DashRingObject::customObjectSetup @ 0x4f055e
// > DashRingObject::customObjectSetup @ 0x4f05a2
// > ForceBlockGameObject::customObjectSetup @ 0x4f2e36
// > ForceBlockGameObject::customObjectSetup @ 0x4f2e7a
// > ForceBlockGameObject::customObjectSetup @ 0x4f2ebe
// > GJBaseGameLayer::updateStaticCameraPos @ 0x5b896e
// > GJBaseGameLayer::updateStaticCameraPos @ 0x5b89b0
// > GJBaseGameLayer::exitStaticCamera @ 0x5b8e46
// > GJBaseGameLayer::exitStaticCamera @ 0x5b8eaa
// > ConfigureHSVWidget::updateSliders @ 0x5e4b6e
// > ConfigureHSVWidget::updateSliders @ 0x5e4bae
// > ConfigureHSVWidget::updateSliders @ 0x5e4bee
// > ShaderLayer::triggerLensCircle @ 0x68690c
// > LevelControlConfig::resolveSlot @ 0x7987c2
// > LevelControlConfig::resolveSlot @ 0x7987ce
// > cocos2d::CCFollow::step @ 0x7b64b2
// > cocos2d::CCFollow::step @ 0x7b64c0
// > cocos2d::CCProgressTimer::setPercentage @ 0x7e0144
// > cocos2d::CCParticleSystem::initParticle @ 0x7e33b0
// > cocos2d::CCParticleSystem::initParticle @ 0x7e33d0
// > cocos2d::CCParticleSystem::initParticle @ 0x7e3410
// > cocos2d::CCParticleSystem::initParticle @ 0x7e3446
// > cocos2d::CCParticleSystem::initParticle @ 0x7e3484
// > cocos2d::CCParticleSystem::initParticle @ 0x7e34be
// > cocos2d::CCParticleSystem::initParticle @ 0x7e34de
// > cocos2d::CCParticleSystem::initParticle @ 0x7e351e
// > cocos2d::CCParticleSystem::initParticle @ 0x7e3554
// > cocos2d::CCParticleSystem::initParticle @ 0x7e358a
// > cocos2d::ccpClamp @ 0x7f6444
// > cocos2d::ccpClamp @ 0x7f6450
//
// 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 12:01:09 +0000
//
cocos2d *__fastcall cocos2d::clampf(cocos2d *this, float a2, float a3, float a4)
{
float v4; // s15
float v5; // s14
v4 = a2;
v5 = a3;
if ( a2 > a3 )
{
v4 = a3;
v5 = a2;
}
if ( *(float *)&this >= v4 )
{
if ( *(float *)&this < v5 )
v4 = *(float *)&this;
else
v4 = v5;
}
return (cocos2d *)LODWORD(v4);
}