//
// SetupOpacityPopup::determineStartValues from 0x14042b3e0 to 0x14042b56b (395 bytes)
//
// 4 xrefs:
// > ??> @ 0x1405e9030
// > ??> @ 0x1406a0f40
// > ??> @ 0x1406a0f74
// > ??> @ 0x1406d9950
//
// 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 SetupOpacityPopup::determineStartValues(SetupOpacityPopup *a1)
{
__int64 v2; // rcx
cocos2d::CCArray *m_gameObjects; // rdi
unsigned int v4; // esi
float v5; // xmm7_4
float v6; // xmm6_4
struct cocos2d::CCObject *v7; // rax
int m_groupID; // ecx
int m_uAutoReleaseCount; // eax
SetupTriggerPopup::determineStartValues(a1);
if ( a1->m_gameObject )
{
m_gameObjects = (cocos2d::CCArray *)cocos2d::CCArray::create(v2);
cocos2d::CCArray::addObject(m_gameObjects, a1->m_gameObject);
}
else
{
m_gameObjects = a1->m_gameObjects;
}
if ( m_gameObjects )
{
if ( cocos2d::CCArray::count(m_gameObjects) )
{
v4 = 0;
v5 = -99999.0;
a1->m_opacity = 1.0;
v6 = -99999.0;
a1->m_groupID = -99999;
if ( cocos2d::CCArray::count(m_gameObjects) )
{
do
{
v7 = cocos2d::CCArray::objectAtIndex(m_gameObjects, v4);
if ( v5 == -99999.0 )
{
v5 = *(float *)&v7[26].m_nLuaID;
}
else if ( v5 != *(float *)&v7[26].m_nLuaID )
{
v5 = -2.0;
}
if ( v6 == -99999.0 )
{
v6 = *(float *)&v7[26].m_nTag;
}
else if ( v6 != *(float *)&v7[26].m_nTag )
{
v6 = -2.0;
}
m_groupID = a1->m_groupID;
m_uAutoReleaseCount = v7[26].m_uAutoReleaseCount;
if ( m_groupID == -99999 )
{
a1->m_groupID = m_uAutoReleaseCount;
}
else if ( m_groupID != m_uAutoReleaseCount )
{
a1->m_groupID = 0;
}
++v4;
}
while ( v4 < cocos2d::CCArray::count(m_gameObjects) );
if ( v5 >= 0.0 )
a1->m_fadeTime = v5;
if ( v6 >= 0.0 )
a1->m_opacity = v6;
}
}
}
}