//
// SetupObjectOptionsPopup::onSinglePlayerTouch from 0x9756cc to 0x975754 (136 bytes)
//
// 3 xrefs:
// > ??> @ 0x7b090
// > SetupObjectOptionsPopup::init @ 0x97ab14
// > ??> @ 0x122c1d0
//
// 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 SetupObjectOptionsPopup::onSinglePlayerTouch(SetupObjectOptionsPopup *a1, cocos2d::CCObject *a2)
{
GameObject *m_gameObject; // x2
bool v3; // w1
unsigned int v5; // w20
bool v6; // cf
unsigned int v7; // w1
__int64 v8; // x0
m_gameObject = a1->m_gameObject;
v3 = !a1->m_singlePlayerTouch;
a1->m_singlePlayerTouch = v3;
if ( m_gameObject )
{
if ( m_gameObject->m_classType == Effect )
LOBYTE(m_gameObject[1].m_transformToBatch.c) = v3;
}
else
{
v5 = 0;
while ( 1 )
{
v6 = v5 >= (unsigned int)cocos2d::CCArray::count(a1->m_gameObjects);
v7 = v5++;
if ( v6 )
break;
v8 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v7);
if ( *(_DWORD *)(v8 + 1232) == 1 )
*(_BYTE *)(v8 + 1724) = a1->m_singlePlayerTouch;
}
}
}