//
// SetupGradientPopup::determineStartValues from 0x5509b0 to 0x550a42 (146 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 SetupGradientPopup::determineStartValues(SetupGradientPopup *a1)
{
cocos2d::CCArray *v2; // r0
cocos2d::CCArray *m_gameObjects; // r7
int v4; // r5
unsigned int v5; // r10
int v6; // r4
int v7; // r0
int v8; // r3
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) )
{
v4 = -99999;
v5 = 0;
v6 = -99999;
while ( v5 < cocos2d::CCArray::count(m_gameObjects) )
{
v7 = cocos2d::CCArray::objectAtIndex(m_gameObjects, v5);
if ( v6 == -99999 )
{
v6 = *(_DWORD *)(v7 + 1640);
}
else if ( v6 == *(_DWORD *)(v7 + 1640) )
{
v6 = *(_DWORD *)(v7 + 1640);
}
else
{
v6 = -9991;
}
v8 = *(_DWORD *)(v7 + 1636);
if ( v4 != -99999 && v4 != v8 )
v8 = -9991;
++v5;
v4 = v8;
}
if ( v6 != -9991 )
a1->m_blendingMode = v6;
if ( v4 != -9991 )
a1->m_blendingLayer = v4;
}
}