//
// SetupObjectOptionsPopup::determineStartValues from 0xab8b00 to 0xab8d2c (556 bytes)
//
// 2 xrefs:
// > ??> @ 0x41c98
// > ??> @ 0x14a9f60
//
// 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:00 +0000
//
cocos2d::CCArray *__fastcall SetupObjectOptionsPopup::determineStartValues(SetupObjectOptionsPopup *this)
{
cocos2d::CCArray *result; // x0
cocos2d::CCArray *v3; // x21
unsigned int v4; // w20
__int64 v5; // x0
result = *((cocos2d::CCArray **)this + 83);
if ( result )
{
v3 = (cocos2d::CCArray *)cocos2d::CCArray::create(result);
result = (cocos2d::CCArray *)cocos2d::CCArray::addObject(v3, *((cocos2d::CCObject **)this + 83));
}
else
{
v3 = *((cocos2d::CCArray **)this + 84);
}
if ( v3 )
{
result = (cocos2d::CCArray *)cocos2d::CCArray::count(v3);
if ( (_DWORD)result )
{
*((_BYTE *)this + 704) = 0;
*((_BYTE *)this + 680) = 1;
v4 = 0;
*((_BYTE *)this + 681) = 1;
*((_BYTE *)this + 682) = 1;
*((_BYTE *)this + 683) = 1;
*((_BYTE *)this + 684) = 1;
*((_BYTE *)this + 696) = 1;
*((_BYTE *)this + 697) = 1;
*((_BYTE *)this + 695) = 1;
*((_BYTE *)this + 685) = 1;
*((_BYTE *)this + 686) = 1;
*((_BYTE *)this + 687) = 1;
*((_BYTE *)this + 688) = 1;
*((_BYTE *)this + 689) = 1;
*((_BYTE *)this + 690) = 1;
*((_BYTE *)this + 691) = 1;
*((_BYTE *)this + 692) = 1;
*((_BYTE *)this + 694) = 1;
*((_BYTE *)this + 698) = 1;
*((_BYTE *)this + 699) = 1;
*((_BYTE *)this + 702) = 1;
*((_BYTE *)this + 700) = 1;
*((_BYTE *)this + 705) = 1;
*((_BYTE *)this + 706) = 1;
*((_BYTE *)this + 701) = 1;
*((_BYTE *)this + 693) = 1;
result = (cocos2d::CCArray *)cocos2d::CCArray::count(v3);
if ( (_DWORD)result )
{
do
{
v5 = cocos2d::CCArray::objectAtIndex(v3, v4);
if ( !*(_BYTE *)(v5 + 1297) )
*((_BYTE *)this + 680) = 0;
if ( !*(_BYTE *)(v5 + 1043) )
*((_BYTE *)this + 681) = 0;
if ( !*(_BYTE *)(v5 + 1042) )
*((_BYTE *)this + 682) = 0;
if ( !*(_BYTE *)(v5 + 1150) )
*((_BYTE *)this + 696) = 0;
if ( !*(_BYTE *)(v5 + 1151) )
*((_BYTE *)this + 697) = 0;
if ( !*(_BYTE *)(v5 + 1259) )
*((_BYTE *)this + 695) = 0;
if ( !*(_BYTE *)(v5 + 1044) )
*((_BYTE *)this + 683) = 0;
if ( !*(_BYTE *)(v5 + 1045) )
*((_BYTE *)this + 684) = 0;
if ( !*(_BYTE *)(v5 + 1214) )
*((_BYTE *)this + 685) = 0;
if ( !*(_BYTE *)(v5 + 1293) )
*((_BYTE *)this + 686) = 0;
if ( !*(_BYTE *)(v5 + 1294) )
*((_BYTE *)this + 687) = 0;
if ( !*(_BYTE *)(v5 + 636) )
*((_BYTE *)this + 701) = 0;
if ( !*(_BYTE *)(v5 + 969) )
*((_BYTE *)this + 693) = 0;
if ( !*(_BYTE *)(v5 + 1295) )
*((_BYTE *)this + 688) = 0;
if ( !*(_BYTE *)(v5 + 1296) )
*((_BYTE *)this + 689) = 0;
if ( !*(_BYTE *)(v5 + 1300) )
*((_BYTE *)this + 690) = 0;
if ( !*(_BYTE *)(v5 + 1301) )
*((_BYTE *)this + 691) = 0;
if ( !*(_BYTE *)(v5 + 1302) )
*((_BYTE *)this + 692) = 0;
if ( !*(_BYTE *)(v5 + 1299) )
*((_BYTE *)this + 694) = 0;
if ( !*(_BYTE *)(v5 + 1298) )
*((_BYTE *)this + 698) = 0;
if ( !*(_BYTE *)(v5 + 1020) )
*((_BYTE *)this + 699) = 0;
if ( *(_DWORD *)(v5 + 1248) != 1 )
goto LABEL_49;
*((_BYTE *)this + 704) = 1;
if ( !*(_BYTE *)(v5 + 1780) )
*((_BYTE *)this + 700) = 0;
if ( !*(_BYTE *)(v5 + 1740) )
*((_BYTE *)this + 705) = 0;
if ( *(_BYTE *)(v5 + 1474) )
{
LABEL_49:
++v4;
}
else
{
*((_BYTE *)this + 706) = 0;
++v4;
}
result = (cocos2d::CCArray *)cocos2d::CCArray::count(v3);
}
while ( v4 < (unsigned int)result );
}
}
}
return result;
}