//
// cocos2d::CCProgressTimer::setOpacity from 0x1006dc210 to 0x1006dc284 (116 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b92380
//
// 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 12:35:43 +0000
//
__int64 __fastcall cocos2d::CCProgressTimer::setOpacity(__int64 a1)
{
__int64 result; // rax
__int64 v2; // rcx
__int64 v3; // rdx
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 352) + 912LL))(*(_QWORD *)(a1 + 352));
result = *(_QWORD *)(a1 + 352);
if ( result && *(_QWORD *)(a1 + 368) && *(int *)(a1 + 360) > 0 )
{
result = *(unsigned int *)(result + 472);
v2 = 8;
v3 = 0;
do
{
*(_DWORD *)(*(_QWORD *)(a1 + 368) + v2) = result;
++v3;
v2 += 20;
}
while ( v3 < *(int *)(a1 + 360) );
}
return result;
}