//
// cocos2d::CCProgressTimer::setPercentage from 0xaf90e4 to 0xaf912c (72 bytes)
//
// 15 xrefs:
// > CCCountdown::init @ 0x57437c
// > CCCountdown::lapFinished @ 0x57455c
// > LevelInfoLayer::loadLevelStep @ 0x6d55e8
// > LevelInfoLayer::onPlay @ 0x6d8f28
// > cocos2d::extension::CCControlPotentiometer::setValue @ 0xaa3654
// > cocos2d::CCProgressTo::update @ 0xac642c
// > cocos2d::CCProgressFromTo::update @ 0xac6444
// > cocos2d::CCTransitionProgressRadialCCW::progressTimerNodeWithRenderTexture @ 0xaf0944
// > cocos2d::CCTransitionProgressRadialCW::progressTimerNodeWithRenderTexture @ 0xaf0a40
// > cocos2d::CCTransitionProgressHorizontal::progressTimerNodeWithRenderTexture @ 0xaf0b74
// > cocos2d::CCTransitionProgressVertical::progressTimerNodeWithRenderTexture @ 0xaf0ca8
// > cocos2d::CCTransitionProgressInOut::progressTimerNodeWithRenderTexture @ 0xaf0ddc
// > cocos2d::CCTransitionProgressOutIn::progressTimerNodeWithRenderTexture @ 0xaf0f0c
// > cocos2d::CCProgressTimer::initWithSprite @ 0xaf9164
// > ??> @ 0x3d530
//
// 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);
}
}