//
// SetupOpacityPopup::updateOpacity from 0x10001d8c0 to 0x10001d945 (133 bytes)
//
// 0 xrefs:
//
// 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:18:57 +0000
//
__int64 __fastcall SetupOpacityPopup::updateOpacity(__int64 a1)
{
__int64 result; // rax
__int64 v3; // rdi
unsigned int v4; // r14d
result = *(_QWORD *)(a1 + 680);
if ( result )
{
*(_DWORD *)(result + 1456) = *(_DWORD *)(a1 + 1056);
}
else
{
v3 = *(_QWORD *)(a1 + 688);
if ( v3 )
{
result = sub_1007FEF90(v3);
if ( (_DWORD)result )
{
v4 = 0;
do
{
*(_DWORD *)(sub_1007FEFE0(*(_QWORD *)(a1 + 688), v4++) + 1456) = *(_DWORD *)(a1 + 1056);
result = sub_1007FEF90(*(_QWORD *)(a1 + 688));
}
while ( v4 < (unsigned int)result );
}
}
}
return result;
}