//
// cocos2d::clampf from 0xd8fbec to 0xd8fc28 (60 bytes)
//
// 43 xrefs:
// > PlayLayer::getRelativeModNew @ 0x6f5954
// > PlayLayer::getRelativeModNew @ 0x6f597c
// > PlayerObject::updateMove @ 0x7585fc
// > ForceBlockGameObject::calculateForceToTarget @ 0x883de8
// > ForceBlockGameObject::calculateForceToTarget @ 0x883f0c
// > DashRingObject::customObjectSetup @ 0x8900bc
// > DashRingObject::customObjectSetup @ 0x890124
// > DashRingObject::customObjectSetup @ 0x89023c
// > ForceBlockGameObject::customObjectSetup @ 0x8949f0
// > ForceBlockGameObject::customObjectSetup @ 0x894a58
// > ForceBlockGameObject::customObjectSetup @ 0x894ac0
// > ForceBlockGameObject::customObjectSetup @ 0x894bb0
// > ForceBlockGameObject::customObjectSetup @ 0x894c1c
// > GJBaseGameLayer::updateStaticCameraPos @ 0x9e62b4
// > GJBaseGameLayer::updateStaticCameraPos @ 0x9e634c
// > GJBaseGameLayer::exitStaticCamera @ 0x9e68a0
// > GJBaseGameLayer::exitStaticCamera @ 0x9e694c
// > ConfigureHSVWidget::updateSliders @ 0xa3a268
// > ConfigureHSVWidget::updateSliders @ 0xa3a29c
// > ConfigureHSVWidget::updateSliders @ 0xa3a2cc
// > ConfigureHSVWidget::updateSliders @ 0xa3a300
// > ConfigureHSVWidget::updateSliders @ 0xa3a334
// > ShaderLayer::triggerLensCircle @ 0xb2fb54
// > LevelControlConfig::resolveSlot @ 0xcf2704
// > LevelControlConfig::resolveSlot @ 0xcf2718
// > cocos2d::CCFollow::step @ 0xd2591c
// > cocos2d::CCFollow::step @ 0xd25930
// > cocos2d::CCProgressTimer::setPercentage @ 0xd6a1d0
// > cocos2d::CCParticleSystem::initParticle @ 0xd6eacc
// > cocos2d::CCParticleSystem::initParticle @ 0xd6eaec
// > cocos2d::CCParticleSystem::initParticle @ 0xd6eb04
// > cocos2d::CCParticleSystem::initParticle @ 0xd6eb58
// > cocos2d::CCParticleSystem::initParticle @ 0xd6eba4
// > cocos2d::CCParticleSystem::initParticle @ 0xd6ebc4
// > cocos2d::CCParticleSystem::initParticle @ 0xd6ebdc
// > cocos2d::CCParticleSystem::initParticle @ 0xd6ec38
// > cocos2d::CCParticleSystem::initParticle @ 0xd6efec
// > cocos2d::CCParticleSystem::initParticle @ 0xd6f034
// > cocos2d::CCParticleSystem::initParticle @ 0xd6f080
// > cocos2d::CCParticleSystem::initParticle @ 0xd6f0c8
// > cocos2d::ccpClamp @ 0xd8fc54
// > cocos2d::ccpClamp @ 0xd8fc74
// > ??> @ 0x68d10
//
// This function is hookable on this platform (idp: arm, 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 13:08:18 +0000
//
float __fastcall cocos2d::clampf(cocos2d *this, float a2, float a3, float a4)
{
float v4; // s3
if ( a3 > a4 )
{
v4 = a3;
a3 = a4;
a4 = v4;
}
if ( a3 <= a2 && (a3 = a2, a4 <= a2) )
return a4;
else
return a3;
}