//
// SetupOpacityPopup::determineStartValues from 0xa40980 to 0xa40ad8 (344 bytes)
//
// 2 xrefs:
// > ??> @ 0x852b8
// > ??> @ 0x1488ee0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:59:56 +0000
//
cocos2d::CCArray *__fastcall SetupOpacityPopup::determineStartValues(cocos2d::CCObject **this)
{
cocos2d::CCArray *result; // x0
cocos2d::CCArray *v3; // x21
float v4; // s8
float v5; // s9
unsigned int v6; // w19
__int64 v7; // x0
int v8; // w2
int v9; // w0
SetupTriggerPopup::determineStartValues((SetupTriggerPopup *)this);
result = *(this + 85);
if ( result )
{
v3 = (cocos2d::CCArray *)cocos2d::CCArray::create(result);
result = (cocos2d::CCArray *)cocos2d::CCArray::addObject(v3, *(this + 85));
}
else
{
v3 = *(this + 86);
}
if ( v3 )
{
result = (cocos2d::CCArray *)cocos2d::CCArray::count(v3);
if ( (_DWORD)result )
{
*((_DWORD *)this + 266) = -99999;
v4 = -99999.0;
v5 = -99999.0;
v6 = 0;
*((float *)this + 264) = 1.0;
result = (cocos2d::CCArray *)cocos2d::CCArray::count(v3);
if ( (_DWORD)result )
{
while ( 1 )
{
v7 = cocos2d::CCArray::objectAtIndex(v3, v6);
if ( v5 == -99999.0 )
{
v5 = *(float *)(v7 + 1452);
}
else if ( v5 != *(float *)(v7 + 1452) )
{
v5 = -2.0;
}
if ( v4 == -99999.0 )
break;
if ( v4 == *(float *)(v7 + 1456) )
goto LABEL_10;
v8 = *((_DWORD *)this + 266);
v9 = *(_DWORD *)(v7 + 1464);
v4 = -2.0;
if ( v8 != -99999 )
{
LABEL_11:
if ( v8 != v9 )
*((_DWORD *)this + 266) = 0;
++v6;
goto LABEL_14;
}
LABEL_22:
*((_DWORD *)this + 266) = v9;
++v6;
LABEL_14:
result = (cocos2d::CCArray *)cocos2d::CCArray::count(v3);
if ( v6 >= (unsigned int)result )
goto LABEL_15;
}
v4 = *(float *)(v7 + 1456);
LABEL_10:
v8 = *((_DWORD *)this + 266);
v9 = *(_DWORD *)(v7 + 1464);
if ( v8 != -99999 )
goto LABEL_11;
goto LABEL_22;
}
LABEL_15:
if ( v5 >= 0.0 )
*((float *)this + 265) = v5;
if ( v4 >= 0.0 )
*((float *)this + 264) = v4;
}
}
return result;
}