//
// cocos2d::CCProgressTimer::updateColor from 0x10047e1d4 to 0x10047e21c (72 bytes)
//
// 7 xrefs:
// > cocos2d::CCProgressTimer::setColor @ 0x10047e1d0
// > sub_10047E21C @ 0x10047e248
// > cocos2d::CCProgressTimer::setOpacity @ 0x10047e288
// > sub_10047E28C @ 0x10047e2b8
// > cocos2d::CCProgressTimer::updateRadial @ 0x10047e600
// > cocos2d::CCProgressTimer::updateRadial @ 0x10047e628
// > cocos2d::CCProgressTimer::updateBar @ 0x10047ec44
//
// 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::updateColor(__int64 result)
{
__int64 v1; // x9
__int64 v2; // x8
int v3; // w9
__int64 v4; // x10
v1 = *(_QWORD *)(result + 352);
if ( v1 && *(_QWORD *)(result + 368) && *(int *)(result + 360) >= 1 )
{
v2 = 0;
v3 = *(_DWORD *)(v1 + 472);
v4 = 8;
do
{
*(_DWORD *)(*(_QWORD *)(result + 368) + v4) = v3;
++v2;
v4 += 20;
}
while ( v2 < *(int *)(result + 360) );
}
return result;
}