//
// SetupEnterEffectPopup::determineStartValues from 0x55c3a0 to 0x55c4da (314 bytes)
//
// 0 xrefs:
//
// 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 SetupEnterEffectPopup::determineStartValues(SetupEnterEffectPopup *a1)
{
cocos2d::CCArray *v2; // r0
cocos2d::CCArray *m_gameObjects; // r8
int m_objectID; // r7
unsigned int v5; // r10
int v6; // r11
float v7; // r1
float v8; // r2
int v9; // r3
_BOOL4 v10; // r7
int v11; // r0
int m_enterType; // r2
float *v13; // lr
int v14; // r3
float *v15; // r5
float v16; // r0
float v17; // r1
float v18; // r2
int v19; // r3
int v20; // r5
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 && cocos2d::CCArray::count(m_gameObjects) )
{
a1->m_enterType = -1;
m_objectID = a1->m_objectID;
v5 = 0;
v6 = 1;
v7 = flt_AC7A50;
v8 = flt_AC7A54;
v9 = *(_DWORD *)&word_AC7A58;
a1->m_hsvValue.h = flt_AC7A4C;
a1->m_hsvValue.s = v7;
a1->m_hsvValue.v = v8;
*(_DWORD *)&a1->m_hsvValue.absoluteSaturation = v9;
v10 = m_objectID != 3021;
while ( 1 )
{
if ( v5 >= cocos2d::CCArray::count(m_gameObjects) )
return;
v11 = cocos2d::CCArray::objectAtIndex(m_gameObjects, v5);
m_enterType = a1->m_enterType;
v13 = (float *)v11;
v14 = *(_DWORD *)(v11 + 1636);
if ( m_enterType >= 0 )
{
if ( m_enterType != v14 )
a1->m_enterType = 0;
}
else
{
a1->m_enterType = v14;
}
if ( !v10 )
{
v15 = (float *)(v11 + 1424);
v16 = *(float *)(v11 + 1424);
v17 = v13[357];
v18 = v13[358];
v19 = *((_DWORD *)v13 + 359);
if ( v6 )
{
v6 = 0;
a1->m_hsvValue.h = v16;
a1->m_hsvValue.s = v17;
a1->m_hsvValue.v = v18;
*(_DWORD *)&a1->m_hsvValue.absoluteSaturation = v19;
goto LABEL_22;
}
if ( a1->m_hsvValue.h == *v15 && a1->m_hsvValue.s == v13[357] && a1->m_hsvValue.v == v13[358] )
{
v20 = *(unsigned __int16 *)&a1->m_hsvValue.absoluteSaturation
- (unsigned __int16)v19
+ (*(unsigned __int16 *)&a1->m_hsvValue.absoluteSaturation == (unsigned __int16)v19)
+ (unsigned __int16)v19
- *(unsigned __int16 *)&a1->m_hsvValue.absoluteSaturation;
if ( v20 )
goto LABEL_22;
}
else
{
LOBYTE(v20) = 0;
}
a1->m_hsvValue.h = -0.001;
v10 = 1;
a1->m_hsvValue.absoluteSaturation = v20;
a1->m_hsvValue.absoluteBrightness = v20;
a1->m_hsvValue.s = 0.0;
a1->m_hsvValue.v = 0.0;
}
LABEL_22:
++v5;
}
}
}