//
// cocos2d::CCProgressTimer::setPercentage from 0x5d7d7c to 0x5d7dac (48 bytes)
//
// 14 xrefs:
// > CCCountdown::init @ 0x2e5478
// > CCCountdown::lapFinished @ 0x2e55fe
// > LevelInfoLayer::loadLevelStep @ 0x3b10cc
// > LevelInfoLayer::onPlay @ 0x3b26be
// > cocos2d::extension::CCControlPotentiometer::setValue @ 0x5a6ec4
// > cocos2d::CCProgressTo::update @ 0x5ba1a6
// > cocos2d::CCProgressFromTo::update @ 0x5ba1c4
// > cocos2d::CCTransitionProgressRadialCCW::progressTimerNodeWithRenderTexture @ 0x5d31b6
// > cocos2d::CCTransitionProgressRadialCW::progressTimerNodeWithRenderTexture @ 0x5d326a
// > cocos2d::CCTransitionProgressHorizontal::progressTimerNodeWithRenderTexture @ 0x5d3346
// > cocos2d::CCTransitionProgressVertical::progressTimerNodeWithRenderTexture @ 0x5d3420
// > cocos2d::CCTransitionProgressInOut::progressTimerNodeWithRenderTexture @ 0x5d34fa
// > cocos2d::CCTransitionProgressOutIn::progressTimerNodeWithRenderTexture @ 0x5d35d2
// > cocos2d::CCProgressTimer::initWithSprite @ 0x5d7dc8
//
// 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
//
void cocos2d::CCProgressTimer::setPercentage(cocos2d::CCProgressTimer *a1, float a2)
{
if ( a1->m_fPercentage != a2 )
{
a1->m_fPercentage = cocos2d::clampf(a2, 0.0, 100.0);
cocos2d::CCProgressTimer::updateProgress(a1);
}
}