//
// cocos2d::ccpClamp from 0xb1f108 to 0xb1f17c (116 bytes)
//
// 2 xrefs:
// > cocos2d::CCProgressTimer::setMidpoint @ 0xaf7f74
// > ??> @ 0x4b4f8
//
// 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
//
cocos2d::CCPoint cocos2d::ccpClamp(const cocos2d::CCPoint *a1, const cocos2d::CCPoint *a2, const cocos2d::CCPoint *a3)
{
cocos2d::CCPoint *v3; // x8
cocos2d::CCPoint *v4; // x19
float v5; // s8
float v6; // s0
cocos2d::CCPoint result; // 0:s0.4,4:s1.4
v4 = v3;
v5 = cocos2d::clampf(a1->x, a2->x, a3->x);
v6 = cocos2d::clampf(a1->y, a2->y, a3->y);
cocos2d::CCPoint::CCPoint(v4, v5, v6);
return result;
}