//
// ColorSelectPopup::updateOpacity from 0x14012a2a0 to 0x14012a344 (164 bytes)
//
// 5 xrefs:
// > ColorSelectPopup::onDefault @ 0x140129f42
// > ColorSelectPopup::sliderChanged @ 0x14012a1e4
// > ??> @ 0x140898594
// > ??> @ 0x1408985a4
// > ??> @ 0x140916b2c
//
// 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:27:00 +0000
//
void __fastcall ColorSelectPopup::updateOpacity(__int64 a1)
{
__int64 v2; // rcx
cocos2d::CCArray *v3; // rcx
unsigned int v4; // edi
struct cocos2d::CCObject *v5; // rax
__int64 v6; // rcx
v2 = *(_QWORD *)(a1 + 680);
if ( v2 )
{
*(_DWORD *)(v2 + 1472) = *(_DWORD *)(a1 + 1124);
}
else
{
v3 = *(cocos2d::CCArray **)(a1 + 688);
if ( v3 )
{
v4 = 0;
if ( cocos2d::CCArray::count(v3) )
{
do
{
v5 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 688), v4++);
*((_DWORD *)v5 + 368) = *(_DWORD *)(a1 + 1124);
}
while ( v4 < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 688)) );
}
}
else
{
v6 = *(_QWORD *)(a1 + 1128);
if ( v6 )
*(_DWORD *)(v6 + 96) = *(_DWORD *)(a1 + 1124);
}
}
}