//
// SetupAnimationPopup::determineStartValues from 0xa990d0 to 0xa991c0 (240 bytes)
//
// 2 xrefs:
// > ??> @ 0x8d490
// > ??> @ 0x149c990
//
// 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:44 +0000
//
cocos2d::CCArray *__fastcall SetupAnimationPopup::determineStartValues(cocos2d::CCObject **this)
{
cocos2d::CCArray *result; // x0
cocos2d::CCArray *v3; // x21
unsigned int v4; // w19
bool v5; // cf
unsigned int v6; // w1
__int64 v7; // x0
int v8; // w1
int v9; // w1
int v10; // 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 + 258) = -1;
*((_DWORD *)this + 259) = -1;
v4 = 0;
v5 = (unsigned int)cocos2d::CCArray::count(v3) == 0;
v6 = 0;
for ( result = v3; !v5; result = v3 )
{
v7 = cocos2d::CCArray::objectAtIndex(result, v6);
v8 = *((_DWORD *)this + 258);
if ( v8 == -1 )
{
*((_DWORD *)this + 258) = *(_DWORD *)(v7 + 1464);
}
else if ( v8 != *(_DWORD *)(v7 + 1464) )
{
*((_DWORD *)this + 258) = 0;
}
v9 = *((_DWORD *)this + 259);
v10 = *(_DWORD *)(v7 + 1652);
if ( v9 == -1 )
{
*((_DWORD *)this + 259) = v10;
++v4;
}
else
{
if ( v9 != v10 )
*((_DWORD *)this + 259) = 0;
++v4;
}
v5 = v4 >= (unsigned int)cocos2d::CCArray::count(v3);
v6 = v4;
}
}
}
return result;
}