//
// SetupGradientPopup::determineStartValues from 0x686e98 to 0x686f2a (146 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:56:05 +0000
//
cocos2d::CCArray *__fastcall SetupGradientPopup::determineStartValues(cocos2d::CCObject **this)
{
cocos2d::CCArray *result; // r0
cocos2d::CCArray *v3; // r7
int v4; // r5
unsigned int v5; // r10
int v6; // r4
int v7; // r0
int v8; // r3
result = SetupTriggerPopup::determineStartValues((SetupTriggerPopup *)this);
if ( *(this + 132) )
{
v3 = (cocos2d::CCArray *)cocos2d::CCArray::create(result);
result = (cocos2d::CCArray *)cocos2d::CCArray::addObject(v3, *(this + 132));
}
else
{
v3 = *(this + 133);
}
if ( v3 )
{
result = (cocos2d::CCArray *)cocos2d::CCArray::count(v3);
if ( result )
{
v4 = -99999;
v5 = 0;
v6 = -99999;
while ( 1 )
{
result = (cocos2d::CCArray *)cocos2d::CCArray::count(v3);
if ( v5 >= (unsigned int)result )
break;
v7 = cocos2d::CCArray::objectAtIndex(v3, v5);
if ( v6 == -99999 )
{
v6 = *(_DWORD *)(v7 + 1652);
}
else if ( v6 == *(_DWORD *)(v7 + 1652) )
{
v6 = *(_DWORD *)(v7 + 1652);
}
else
{
v6 = -9991;
}
v8 = *(_DWORD *)(v7 + 1648);
if ( v4 != -99999 && v4 != v8 )
v8 = -9991;
++v5;
v4 = v8;
}
if ( v6 != -9991 )
*(this + 179) = (cocos2d::CCObject *)v6;
if ( v4 != -9991 )
*(this + 181) = (cocos2d::CCObject *)v4;
}
}
return result;
}