//
// SetupRandTriggerPopup::determineStartValues from 0xab2b4c to 0xab2c74 (296 bytes)
//
// 2 xrefs:
// > ??> @ 0xbf260
// > ??> @ 0x14a7430
//
// 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:00:57 +0000
//
cocos2d::CCArray *__fastcall SetupRandTriggerPopup::determineStartValues(cocos2d::CCObject **this)
{
cocos2d::CCArray *result; // x0
cocos2d::CCArray *v3; // x21
unsigned int v4; // w20
float *v5; // x0
int v6; // w1
int v7; // w1
float v8; // s0
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 + 264) = -1;
*((_DWORD *)this + 265) = -1;
v4 = 0;
*((float *)this + 258) = -1.0;
result = (cocos2d::CCArray *)cocos2d::CCArray::count(v3);
if ( (_DWORD)result )
{
do
{
v5 = (float *)cocos2d::CCArray::objectAtIndex(v3, v4);
v6 = *((_DWORD *)this + 264);
if ( v6 == -1 )
{
*((float *)this + 264) = v5[366];
}
else if ( v6 != *((_DWORD *)v5 + 366) )
{
*((_DWORD *)this + 264) = 0;
}
v7 = *((_DWORD *)this + 265);
if ( v7 == -1 )
{
*((float *)this + 265) = v5[367];
}
else if ( v7 != *((_DWORD *)v5 + 367) )
{
*((_DWORD *)this + 265) = 0;
}
v8 = *((float *)this + 258);
if ( v8 == -1.0 )
{
*((float *)this + 258) = v5[363];
}
else if ( v8 != v5[363] )
{
*((_DWORD *)this + 258) = 0;
++v4;
goto LABEL_15;
}
++v4;
LABEL_15:
result = (cocos2d::CCArray *)cocos2d::CCArray::count(v3);
}
while ( v4 < (unsigned int)result );
}
}
}
return result;
}