//
// SetupAreaTintTriggerPopup::determineStartValues from 0x1004d8df0 to 0x1004d8f95 (421 bytes)
//
// 2 xrefs:
// > ??> @ 0x100953ac8
// > ??> @ 0x100954b00
//
// 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 SetupAreaTintTriggerPopup::determineStartValues(SetupAreaTintTriggerPopup *a1)
{
__int64 v1; // rsi
int v2; // r13d
__int64 m_gameObjects; // r14
char v4; // r12
unsigned int i; // r15d
int v6; // ebx
__int64 v7; // rax
__m128 v8; // xmm0
__int64 v9; // rax
SetupAreaTintTriggerPopup *v10; // rdx
SetupTriggerPopup::determineStartValues(a1);
if ( a1->m_gameObject )
{
m_gameObjects = sub_10071F9E0(a1, v1);
sub_10071FCD0(m_gameObjects, a1->m_gameObject);
if ( !m_gameObjects )
return;
}
else
{
m_gameObjects = (__int64)a1->m_gameObjects;
if ( !m_gameObjects )
return;
}
if ( (unsigned int)sub_100720070(m_gameObjects) )
{
a1->m_hsvValue = (cocos2d::ccHSVValue)xmmword_1009A20E8;
if ( (unsigned int)sub_100720070(m_gameObjects) )
{
v4 = 0;
LOBYTE(v2) = 1;
for ( i = 0; i < (unsigned int)sub_100720070(m_gameObjects); ++i )
{
v7 = sub_1007200C0(m_gameObjects, i);
if ( (v4 & 1) != 0 )
{
v6 = v2;
v4 = 1;
}
else
{
v8 = (__m128)*(unsigned __int64 *)(v7 + 1612);
v9 = *(_QWORD *)(v7 + 1620);
if ( (v2 & 1) != 0 )
goto LABEL_12;
v10 = a1;
if ( a1->m_hsvValue.h != v8.f32[0]
|| a1->m_hsvValue.s != _mm_movehdup_ps(v8).f32[0]
|| a1->m_hsvValue.v != *(float *)&v9
|| a1->m_hsvValue.absoluteSaturation != BYTE4(v9) )
{
v8 = (__m128)0xBA83126F;
v9 = 0;
goto LABEL_20;
}
v6 = 0;
v4 = 0;
if ( a1->m_hsvValue.absoluteBrightness != BYTE5(v9) )
{
v8 = (__m128)0xBA83126F;
v9 = 0;
LABEL_12:
v10 = a1;
LABEL_20:
_mm_storel_ps((double *)&v10->m_hsvValue.h, v8);
*(_QWORD *)&v10->m_hsvValue.v = v9;
v6 = 0;
v4 = v2 ^ 1;
}
}
v2 = v6;
}
}
}
}