//
// SetupEndPopup::determineStartValues from 0xab42a8 to 0xab4390 (232 bytes)
//
// 2 xrefs:
// > ??> @ 0x67dc8
// > ??> @ 0x14a7c70
//
// 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:58 +0000
//
cocos2d::CCArray *__fastcall SetupEndPopup::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; // 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 )
{
*((_BYTE *)this + 1024) = 1;
*((_BYTE *)this + 1025) = 1;
*((_DWORD *)this + 257) = -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);
if ( !*(_BYTE *)(v7 + 1761) )
*((_BYTE *)this + 1024) = 0;
if ( !*(_BYTE *)(v7 + 1505) )
*((_BYTE *)this + 1025) = 0;
v8 = *((_DWORD *)this + 257);
v9 = *(_DWORD *)(v7 + 1464);
if ( v8 == -1 )
{
*((_DWORD *)this + 257) = v9;
++v4;
}
else
{
if ( v8 != v9 )
*((_DWORD *)this + 257) = 0;
++v4;
}
v5 = v4 >= (unsigned int)cocos2d::CCArray::count(v3);
v6 = v4;
}
}
}
return result;
}