//
// SetupEnterTriggerPopup::determineStartValues from 0xa1cef8 to 0xa1cfb8 (192 bytes)
//
// 2 xrefs:
// > ??> @ 0x956c8
// > ??> @ 0x147af40
//
// 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:38 +0000
//
cocos2d::CCArray *__fastcall SetupEnterTriggerPopup::determineStartValues(cocos2d::CCObject **this)
{
cocos2d::CCArray *result; // x0
cocos2d::CCArray *v3; // x20
unsigned int v4; // w19
bool v5; // cf
unsigned int v6; // w1
int v7; // w0
int v8; // w1
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 + 258) = -1;
v4 = 0;
v5 = (unsigned int)cocos2d::CCArray::count(v3) == 0;
v6 = 0;
for ( result = v3; !v5; result = v3 )
{
v7 = *(_DWORD *)(cocos2d::CCArray::objectAtIndex(result, v6) + 1840);
v8 = *((_DWORD *)this + 258);
if ( v8 < 0 )
{
*((_DWORD *)this + 258) = v7;
++v4;
}
else
{
if ( v8 != v7 )
*((_DWORD *)this + 258) = 0;
++v4;
}
v5 = v4 >= (unsigned int)cocos2d::CCArray::count(v3);
v6 = v4;
}
}
}
return result;
}