//
// SetupGradientPopup::determineStartValues from 0x100343620 to 0x100343730 (272 bytes)
//
// 1 xrefs:
// > ??> @ 0x1007f0ff8
//
// 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 SetupGradientPopup::determineStartValues(SetupGradientPopup *a1)
{
cocos2d::CCArray *m_gameObjects; // x20
int v3; // w22
unsigned int v4; // w21
int32x2_t v5; // d8
int8x8_t v6; // d9
__int64 v7; // x0
int v8; // w8
int32x2_t v9; // [xsp+0h] [xbp-40h]
SetupTriggerPopup::determineStartValues(a1);
if ( a1->m_gameObject )
{
m_gameObjects = (cocos2d::CCArray *)sub_10024A15C();
sub_10024A2D0((__int64)m_gameObjects);
if ( !m_gameObjects )
return;
}
else
{
m_gameObjects = a1->m_gameObjects;
if ( !m_gameObjects )
return;
}
if ( !(unsigned int)sub_10024A36C((__int64)m_gameObjects) )
return;
v3 = -99999;
if ( (unsigned int)sub_10024A36C((__int64)m_gameObjects) )
{
v4 = 0;
v5 = vdup_n_s32(0xFFFE7961);
v6 = (int8x8_t)vdup_n_s32(0xFFFFD8F9);
v9 = v5;
do
{
v7 = sub_10024A388((__int64)m_gameObjects, v4);
v9 = (int32x2_t)vbsl_s8(
(int8x8_t)vceq_s32(v9, v5),
*(int8x8_t *)(v7 + 1836),
vbsl_s8((int8x8_t)vceq_s32(v9, *(int32x2_t *)(v7 + 1836)), (int8x8_t)v9, v6));
++v4;
}
while ( v4 < (unsigned int)sub_10024A36C((__int64)m_gameObjects) );
v8 = v9.i32[1];
v3 = v9.i32[0];
if ( v9.i32[1] == -9991 )
goto LABEL_13;
}
else
{
v8 = -99999;
}
a1->m_blendingMode = v8;
LABEL_13:
if ( v3 != -9991 )
a1->m_blendingLayer = v3;
}