//
// SetupTimeWarpPopup::determineStartValues from 0xaeb420 to 0xaeb4fc (220 bytes)
//
// 2 xrefs:
// > ??> @ 0xccaa8
// > ??> @ 0x14ad4a0
//
// 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 13:01:09 +0000
//
cocos2d::CCArray *__fastcall SetupTimeWarpPopup::determineStartValues(cocos2d::CCObject **this)
{
cocos2d::CCArray *result; // x0
cocos2d::CCArray *v3; // x20
float v4; // s8
unsigned int v5; // w19
bool v6; // cf
unsigned int v7; // w1
__int64 v8; // x0
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 )
{
v4 = -1.0;
v5 = 0;
*((float *)this + 258) = 1.0;
v6 = (unsigned int)cocos2d::CCArray::count(v3) == 0;
v7 = 0;
for ( result = v3; !v6; result = v3 )
{
v8 = cocos2d::CCArray::objectAtIndex(result, v7);
if ( v4 == -1.0 )
{
v4 = *(float *)(v8 + 1764);
}
else if ( v4 != *(float *)(v8 + 1764) )
{
v4 = -2.0;
++v5;
goto LABEL_9;
}
++v5;
LABEL_9:
v6 = v5 >= (unsigned int)cocos2d::CCArray::count(v3);
v7 = v5;
}
if ( v4 > 0.0 )
*((float *)this + 258) = v4;
}
}
return result;
}