//
// cocos2d::CCProgressTimer::setPercentage from 0xd6a1a0 to 0xd6a1e8 (72 bytes)
//
// 15 xrefs:
// > CCCountdown::init @ 0x68f870
// > CCCountdown::lapFinished @ 0x68fa50
// > LevelInfoLayer::loadLevelStep @ 0x7e50f0
// > LevelInfoLayer::onPlay @ 0x7e8060
// > cocos2d::extension::CCControlPotentiometer::setValue @ 0xd150b4
// > cocos2d::CCProgressTo::update @ 0xd3832c
// > cocos2d::CCProgressFromTo::update @ 0xd38344
// > cocos2d::CCTransitionProgressRadialCCW::progressTimerNodeWithRenderTexture @ 0xd626a4
// > cocos2d::CCTransitionProgressRadialCW::progressTimerNodeWithRenderTexture @ 0xd627a0
// > cocos2d::CCTransitionProgressHorizontal::progressTimerNodeWithRenderTexture @ 0xd628d4
// > cocos2d::CCTransitionProgressVertical::progressTimerNodeWithRenderTexture @ 0xd62a08
// > cocos2d::CCTransitionProgressInOut::progressTimerNodeWithRenderTexture @ 0xd62b3c
// > cocos2d::CCTransitionProgressOutIn::progressTimerNodeWithRenderTexture @ 0xd62c6c
// > cocos2d::CCProgressTimer::initWithSprite @ 0xd6a220
// > ??> @ 0x58b70
//
// 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:07:56 +0000
//
float *__fastcall cocos2d::CCProgressTimer::setPercentage(float *this, float a2)
{
float *v2; // x19
int v3; // s0
if ( *(this + 86) != a2 )
{
v2 = this;
cocos2d::clampf((cocos2d *)this, a2, 0.0, 100.0);
*((_DWORD *)v2 + 86) = v3;
return (float *)cocos2d::CCProgressTimer::updateProgress((cocos2d::CCProgressTimer *)v2);
}
return this;
}