//
// cocos2d::CCProgressTimer::setPercentage from 0x10047e058 to 0x10047e09c (68 bytes)
//
// 3 xrefs:
// > LevelInfoLayer::onPlay @ 0x10002a474
// > LevelInfoLayer::loadLevelStep @ 0x10002df3c
// > cocos2d::CCProgressTimer::initWithSprite @ 0x10047dfa4
//
// 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 11:05:45 +0000
//
__int64 __fastcall cocos2d::CCProgressTimer::setPercentage(__int64 result, float a2)
{
__int64 v2; // x19
if ( *(float *)(result + 344) != a2 )
{
v2 = result;
*(float *)(result + 344) = cocos2d::clampf(a2, 0.0, 100.0);
return cocos2d::CCProgressTimer::updateProgress(v2);
}
return result;
}