//
// SetupOpacityPopup::updateDuration from 0x1405c0f80 to 0x1405c1009 (137 bytes)
//
// 5 xrefs:
// > SetupOpacityPopup::sliderChanged @ 0x1405c0aac
// > SetupOpacityPopup::textChanged @ 0x1405c0df6
// > ??> @ 0x1408e0550
// > ??> @ 0x1408e0560
// > ??> @ 0x14092e178
//
// 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:34:47 +0000
//
void __fastcall SetupOpacityPopup::updateDuration(__int64 a1)
{
__int64 v2; // rcx
cocos2d::CCArray *v3; // rcx
unsigned int v4; // edi
struct cocos2d::CCObject *v5; // rax
v2 = *(_QWORD *)(a1 + 680);
if ( v2 )
{
*(_DWORD *)(v2 + 1468) = *(_DWORD *)(a1 + 1044);
}
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 + 367) = *(_DWORD *)(a1 + 1044);
}
while ( v4 < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 688)) );
}
}
}
}