//
// SetupInstantCountPopup::determineStartValues from 0xa9e348 to 0xa9e4a0 (344 bytes)
//
// 2 xrefs:
// > ??> @ 0xf2200
// > ??> @ 0x14a02d0
//
// 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:47 +0000
//
cocos2d::CCArray *__fastcall SetupInstantCountPopup::determineStartValues(cocos2d::CCObject **this)
{
cocos2d::CCArray *result; // x0
cocos2d::CCArray *v3; // x21
unsigned int v4; // w20
__int64 v5; // x0
int v6; // w1
int v7; // w1
int v8; // w1
int v9; // w2
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 )
{
*((_DWORD *)this + 260) = -1;
*((_DWORD *)this + 261) = -1;
v4 = 0;
*((_DWORD *)this + 262) = 99999;
*((_DWORD *)this + 264) = -1;
*((_BYTE *)this + 1052) = 1;
result = (cocos2d::CCArray *)cocos2d::CCArray::count(v3);
if ( (_DWORD)result )
{
do
{
v5 = cocos2d::CCArray::objectAtIndex(v3, v4);
if ( !*(_BYTE *)(v5 + 1637) )
*((_BYTE *)this + 1052) = 0;
v6 = *((_DWORD *)this + 260);
if ( v6 == -1 )
{
*((_DWORD *)this + 260) = *(_DWORD *)(v5 + 1680);
}
else if ( v6 != *(_DWORD *)(v5 + 1680) )
{
*((_DWORD *)this + 260) = 0;
}
v7 = *((_DWORD *)this + 261);
if ( v7 == -1 )
{
*((_DWORD *)this + 261) = *(_DWORD *)(v5 + 1464);
}
else if ( v7 != *(_DWORD *)(v5 + 1464) )
{
*((_DWORD *)this + 261) = 0;
}
v8 = *((_DWORD *)this + 264);
if ( v8 == -1 )
{
*((_DWORD *)this + 264) = *(_DWORD *)(v5 + 1844);
}
else if ( v8 != *(_DWORD *)(v5 + 1844) )
{
*((_DWORD *)this + 264) = 0;
}
v9 = *((_DWORD *)this + 262);
v10 = *(_DWORD *)(v5 + 1840);
if ( v9 == 99999 )
{
*((_DWORD *)this + 262) = v10;
++v4;
}
else
{
if ( v9 != v10 )
*((_DWORD *)this + 262) = 0;
++v4;
}
result = (cocos2d::CCArray *)cocos2d::CCArray::count(v3);
}
while ( v4 < (unsigned int)result );
}
}
return result;
}