//
// SetupEnterEffectPopup::determineStartValues from 0x1003f3510 to 0x1003f36f4 (484 bytes)
//
// 1 xrefs:
// > ??> @ 0x100932890
//
// 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 SetupEnterEffectPopup::determineStartValues(SetupEnterEffectPopup *a1)
{
__int64 v1; // rsi
__int64 m_gameObjects; // r13
SetupEnterEffectPopup *v3; // r14
SetupEnterEffectPopup *v4; // rbx
int m_objectID; // r14d
bool v6; // r12
unsigned int v7; // r15d
char v8; // r14
__int64 v9; // rax
int m_enterType; // edx
int v11; // ecx
SetupEnterEffectPopup *v12; // rsi
bool v13; // zf
char v14; // bl
char v15; // dl
__m128 v16; // xmm0
__int64 v17; // rax
__int64 v18; // [rsp+0h] [rbp-40h]
float *p_h; // [rsp+8h] [rbp-38h]
SetupEnterEffectPopup *v20; // [rsp+10h] [rbp-30h]
SetupTriggerPopup::determineStartValues(a1);
if ( a1->m_gameObject )
{
m_gameObjects = sub_10071F9E0(a1, v1);
v3 = a1;
sub_10071FCD0(m_gameObjects, a1->m_gameObject);
if ( !m_gameObjects )
return;
}
else
{
v3 = a1;
m_gameObjects = (__int64)a1->m_gameObjects;
if ( !m_gameObjects )
return;
}
v4 = v3;
if ( (unsigned int)sub_100720070(m_gameObjects) )
{
v3->m_enterType = -1;
v3->m_hsvValue = (cocos2d::ccHSVValue)xmmword_1009A14E0;
m_objectID = v3->m_objectID;
if ( (unsigned int)sub_100720070(m_gameObjects) )
{
p_h = &v4->m_hsvValue.h;
v6 = m_objectID != 3021;
v7 = 0;
v8 = 1;
v20 = v4;
v18 = m_gameObjects;
while ( 1 )
{
v9 = sub_1007200C0(m_gameObjects, v7);
m_enterType = v4->m_enterType;
v11 = *(_DWORD *)(v9 + 1836);
v12 = v4;
if ( m_enterType < 0 || (v13 = m_enterType == v11, v11 = 0, !v13) )
v4->m_enterType = v11;
v14 = 1;
v15 = v8;
if ( v6 )
goto LABEL_8;
v16 = (__m128)*(unsigned __int64 *)(v9 + 1612);
v17 = *(_QWORD *)(v9 + 1620);
if ( (v8 & 1) != 0 )
goto LABEL_21;
if ( *p_h != v16.f32[0]
|| v12->m_hsvValue.s != _mm_movehdup_ps(v16).f32[0]
|| v12->m_hsvValue.v != *(float *)&v17
|| v12->m_hsvValue.absoluteSaturation != BYTE4(v17) )
{
break;
}
v8 = 0;
v14 = 0;
if ( v12->m_hsvValue.absoluteBrightness != BYTE5(v17) )
{
v16 = (__m128)0xBA83126F;
v17 = 0;
v12 = v20;
LABEL_21:
_mm_storel_ps((double *)&v12->m_hsvValue.h, v16);
*(_QWORD *)&v12->m_hsvValue.v = v17;
v8 = 0;
v14 = v15 ^ 1;
}
LABEL_8:
++v7;
m_gameObjects = v18;
v6 = v14;
v4 = v20;
if ( v7 >= (unsigned int)sub_100720070(v18) )
return;
}
v16 = (__m128)0xBA83126F;
v17 = 0;
goto LABEL_21;
}
}
}