//
// cocos2d::CCProgressTimer::updateColor from 0x180060c50 to 0x180060cb0 (96 bytes)
//
// 4 xrefs:
// > cocos2d::CCProgressTimer::setColor @ 0x1800601c5
// > cocos2d::CCProgressTimer::setOpacity @ 0x180060256
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bd5ac
//
// This function is hookable on this platform (idp: pc, 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:21:50 +0000
//
void __fastcall cocos2d::CCProgressTimer::updateColor(cocos2d::CCProgressTimer *this)
{
__int64 v1; // rax
unsigned __int64 v2; // r9
int v3; // eax
unsigned __int64 v4; // r9
__int64 v5; // rdx
v1 = *((_QWORD *)this + 44);
if ( v1 )
{
if ( *((_QWORD *)this + 46) )
{
v2 = *(_QWORD *)(v1 + 468);
v3 = 0;
v4 = HIDWORD(v2);
if ( *((int *)this + 90) > 0 )
{
v5 = 0;
do
{
v5 += 20;
++v3;
*(_DWORD *)(*((_QWORD *)this + 46) + v5 - 12) = v4;
}
while ( v3 < *((_DWORD *)this + 90) );
}
}
}
}