//
// SetupTouchTogglePopup::determineStartValues from 0x10024be2c to 0x10024bf4c (288 bytes)
//
// 1 xrefs:
// > ??> @ 0x1007cdc18
//
// 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 __fastcall SetupTouchTogglePopup::determineStartValues(SetupTouchTogglePopup *a1)
{
cocos2d::CCArray *m_gameObjects; // x20
unsigned int i; // w21
__int64 v4; // x0
int m_groupID; // w9
int v6; // w8
int m_toggleMode; // w9
int v8; // w8
int m_playerMode; // w9
int v10; // w8
SetupTriggerPopup::determineStartValues(a1);
if ( a1->m_gameObject )
{
m_gameObjects = (cocos2d::CCArray *)sub_10024A15C();
sub_10024A2D0((__int64)m_gameObjects);
if ( !m_gameObjects )
return;
}
else
{
m_gameObjects = a1->m_gameObjects;
if ( !m_gameObjects )
return;
}
if ( (unsigned int)sub_10024A36C((__int64)m_gameObjects) )
{
a1->m_holdMode = 1;
a1->m_groupID = -1;
a1->m_dualMode = 1;
*(_QWORD *)&a1->m_toggleMode = -1;
if ( (unsigned int)sub_10024A36C((__int64)m_gameObjects) )
{
for ( i = 0; i < (unsigned int)sub_10024A36C((__int64)m_gameObjects); ++i )
{
v4 = sub_10024A388((__int64)m_gameObjects, i);
if ( (*(_BYTE *)(v4 + 1638) & 1) == 0 )
a1->m_holdMode = 0;
if ( (*(_BYTE *)(v4 + 1648) & 1) == 0 )
a1->m_dualMode = 0;
m_groupID = a1->m_groupID;
v6 = *(_DWORD *)(v4 + 1464);
if ( m_groupID != -1 )
{
if ( m_groupID == v6 )
goto LABEL_16;
v6 = 0;
}
a1->m_groupID = v6;
LABEL_16:
m_toggleMode = a1->m_toggleMode;
v8 = *(_DWORD *)(v4 + 1640);
if ( m_toggleMode != -1 )
{
if ( m_toggleMode == v8 )
goto LABEL_20;
v8 = 0;
}
a1->m_toggleMode = v8;
LABEL_20:
m_playerMode = a1->m_playerMode;
v10 = *(_DWORD *)(v4 + 1644);
if ( m_playerMode == -1 )
goto LABEL_23;
if ( m_playerMode != v10 )
{
v10 = 0;
LABEL_23:
a1->m_playerMode = v10;
}
}
}
}
}