//
// cocos2d::clampf from 0x100341960 to 0x100341986 (38 bytes)
//
// 40 xrefs:
// > PlayLayer::updateVisibility @ 0x1000855be
// > PlayLayer::getRelativeModNew @ 0x100085775
// > PlayLayer::applyEnterEffect @ 0x100086419
// > GJBaseGameLayer::updateStaticCameraPos @ 0x100102d36
// > GJBaseGameLayer::updateStaticCameraPos @ 0x100102dd6
// > GJBaseGameLayer::exitStaticCamera @ 0x10013bcd0
// > GJBaseGameLayer::exitStaticCamera @ 0x10013be59
// > DashRingObject::customObjectSetup @ 0x10019585e
// > DashRingObject::customObjectSetup @ 0x1001958d6
// > ForceBlockGameObject::customObjectSetup @ 0x1001cddff
// > ForceBlockGameObject::customObjectSetup @ 0x1001cde77
// > ForceBlockGameObject::customObjectSetup @ 0x1001cdeed
// > ForceBlockGameObject::calculateForceToTarget @ 0x1001ce256
// > ShaderLayer::triggerLensCircle @ 0x1003b969c
// > PlayerObject::updateMove @ 0x1003ee6c2
// > ConfigureHSVWidget::init @ 0x10041da00
// > ConfigureHSVWidget::init @ 0x10041da46
// > ConfigureHSVWidget::init @ 0x10041da8c
// > ConfigureHSVWidget::updateSliders @ 0x10041e634
// > ConfigureHSVWidget::updateSliders @ 0x10041e67a
// > ConfigureHSVWidget::updateSliders @ 0x10041e6c0
// > ConfigureHSVWidget::textChanged @ 0x10041eb94
// > ConfigureHSVWidget::textChanged @ 0x10041ebda
// > ConfigureHSVWidget::textChanged @ 0x10041ec20
// > cocos2d::CCFollow::step @ 0x1006c7b93
// > cocos2d::CCFollow::step @ 0x1006c7bac
// > cocos2d::CCProgressTimer::initWithSprite @ 0x1006dbc2d
// > cocos2d::CCProgressTimer::setPercentage @ 0x1006dbdb3
// > cocos2d::CCParticleSystem::initParticle @ 0x1008b073d
// > cocos2d::CCParticleSystem::initParticle @ 0x1008b076c
// > cocos2d::CCParticleSystem::initParticle @ 0x1008b07e9
// > cocos2d::CCParticleSystem::initParticle @ 0x1008b0850
// > cocos2d::CCParticleSystem::initParticle @ 0x1008b08bf
// > cocos2d::CCParticleSystem::initParticle @ 0x1008b092f
// > cocos2d::CCParticleSystem::initParticle @ 0x1008b095b
// > cocos2d::CCParticleSystem::initParticle @ 0x1008b09d5
// > cocos2d::CCParticleSystem::initParticle @ 0x1008b0a3c
// > cocos2d::CCParticleSystem::initParticle @ 0x1008b0aab
// > sub_100924E00 @ 0x100924f2c
// > sub_100924E00 @ 0x100924f44
//
// This function is hookable on this platform (idp: pc, 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 12:28:43 +0000
//
__m128 __fastcall cocos2d::clampf(__m128 a1, float a2, __m128 a3)
{
float v3; // xmm3_4
__m128 v4; // xmm1
__m128 v5; // xmm0
v3 = fmaxf(a2, a3.f32[0]);
a3.f32[0] = fminf(a3.f32[0], a2);
v4 = a1;
v4.f32[0] = fminf(a1.f32[0], v3);
v5 = _mm_cmplt_ss(a1, a3);
return _mm_or_ps(_mm_andnot_ps(v5, v4), _mm_and_ps(a3, v5));
}