//
// SetupTouchTogglePopup::onHoldMode from 0x95ab88 to 0x95ac04 (124 bytes)
//
// 3 xrefs:
// > ??> @ 0x2d090
// > SetupTouchTogglePopup::init @ 0x95b484
// > ??> @ 0x12294d8
//
// 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 SetupTouchTogglePopup::onHoldMode(SetupTouchTogglePopup *a1, cocos2d::CCObject *a2)
{
EffectGameObject *m_gameObject; // x2
bool v3; // w1
cocos2d::CCArray *m_gameObjects; // x1
unsigned int v6; // w20
__int64 v7; // x0
bool v8; // cf
unsigned int v9; // w1
m_gameObject = a1->m_gameObject;
v3 = !a1->m_holdMode;
a1->m_holdMode = v3;
if ( m_gameObject )
{
m_gameObject->m_touchHoldMode = v3;
}
else
{
m_gameObjects = a1->m_gameObjects;
if ( m_gameObjects )
{
v6 = 0;
while ( 1 )
{
v8 = v6 >= (unsigned int)cocos2d::CCArray::count(m_gameObjects);
v9 = v6++;
if ( v8 )
break;
v7 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v9);
m_gameObjects = a1->m_gameObjects;
*(_BYTE *)(v7 + 1622) = a1->m_holdMode;
}
}
}
}