//
// SetupOpacityPopup::determineStartValues from 0x100023c60 to 0x100023d90 (304 bytes)
//
// 1 xrefs:
// > ??> @ 0x100764298
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall SetupOpacityPopup::determineStartValues(SetupOpacityPopup *a1)
{
__int64 v2; // x0
cocos2d::CCArray *m_gameObjects; // x20
__int64 v4; // x21
float v5; // s8
float v6; // s9
__int64 v7; // x0
float v8; // s1
int m_groupID; // w9
int v10; // w8
SetupTriggerPopup::determineStartValues(a1);
if ( a1->m_gameObject )
{
m_gameObjects = (cocos2d::CCArray *)sub_10024A15C(v2);
sub_10024A2D0(m_gameObjects, a1->m_gameObject);
if ( !m_gameObjects )
return;
}
else
{
m_gameObjects = a1->m_gameObjects;
if ( !m_gameObjects )
return;
}
if ( (unsigned int)sub_10024A36C(m_gameObjects) )
{
a1->m_opacity = 1.0;
a1->m_groupID = -99999;
if ( (unsigned int)sub_10024A36C(m_gameObjects) )
{
v4 = 0;
v5 = -99999.0;
v6 = -99999.0;
while ( 1 )
{
v7 = sub_10024A388(m_gameObjects, v4);
if ( v6 == *(float *)(v7 + 1452) )
v8 = v6;
else
v8 = -2.0;
if ( v6 == -99999.0 )
v6 = *(float *)(v7 + 1452);
else
v6 = v8;
if ( v5 == -99999.0 )
{
v5 = *(float *)(v7 + 1456);
}
else if ( v5 != *(float *)(v7 + 1456) )
{
v5 = -2.0;
}
m_groupID = a1->m_groupID;
v10 = *(_DWORD *)(v7 + 1464);
if ( m_groupID == -99999 )
goto LABEL_21;
if ( m_groupID != v10 )
break;
LABEL_22:
v4 = (unsigned int)(v4 + 1);
if ( (unsigned int)v4 >= (unsigned int)sub_10024A36C(m_gameObjects) )
{
if ( v6 >= 0.0 )
a1->m_fadeTime = v6;
if ( v5 >= 0.0 )
a1->m_opacity = v5;
return;
}
}
v10 = 0;
LABEL_21:
a1->m_groupID = v10;
goto LABEL_22;
}
}
}