//
// SetupEndPopup::determineStartValues from 0x96e0a4 to 0x96e18c (232 bytes)
//
// 2 xrefs:
// > ??> @ 0x49a10
// > ??> @ 0x11c0770
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void SetupEndPopup::determineStartValues(SetupEndPopup *a1)
{
EffectGameObject *m_gameObject; // x0
cocos2d::CCArray *m_gameObjects; // x21
unsigned int v4; // w19
bool v5; // cf
unsigned int v6; // w1
cocos2d::CCArray *i; // x0
__int64 v8; // x0
int m_groupID; // w1
int v10; // w0
SetupTriggerPopup::determineStartValues(a1);
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
m_gameObjects = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)m_gameObject);
cocos2d::CCArray::addObject(m_gameObjects, a1->m_gameObject);
}
else
{
m_gameObjects = a1->m_gameObjects;
}
if ( m_gameObjects )
{
if ( (unsigned int)cocos2d::CCArray::count(m_gameObjects) )
{
a1->m_reversed = 1;
a1->m_lockY = 1;
a1->m_groupID = -1;
v4 = 0;
v5 = (unsigned int)cocos2d::CCArray::count(m_gameObjects) == 0;
v6 = 0;
for ( i = m_gameObjects; !v5; i = m_gameObjects )
{
v8 = cocos2d::CCArray::objectAtIndex(i, v6);
if ( !*(_BYTE *)(v8 + 1745) )
a1->m_reversed = 0;
if ( !*(_BYTE *)(v8 + 1489) )
a1->m_lockY = 0;
m_groupID = a1->m_groupID;
v10 = *(_DWORD *)(v8 + 1448);
if ( m_groupID == -1 )
{
a1->m_groupID = v10;
++v4;
}
else
{
if ( m_groupID != v10 )
a1->m_groupID = 0;
++v4;
}
v5 = v4 >= (unsigned int)cocos2d::CCArray::count(m_gameObjects);
v6 = v4;
}
}
}
}