//
// SetupCollisionTriggerPopup::onTargetP1 from 0x94fac4 to 0x94fb64 (160 bytes)
//
// 3 xrefs:
// > ??> @ 0x7dd00
// > SetupCollisionTriggerPopup::init @ 0x9507a0
// > ??> @ 0x122c3d0
//
// 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 SetupCollisionTriggerPopup::onTargetP1(SetupCollisionTriggerPopup *a1, cocos2d::CCObject *a2)
{
bool v3; // w0
EffectGameObject *m_gameObject; // x1
_BOOL8 v5; // x1
cocos2d::CCArray *m_gameObjects; // x1
unsigned int v7; // w20
__int64 v8; // x0
bool v9; // cf
unsigned int v10; // w1
v3 = !a1->m_targetP1;
m_gameObject = a1->m_gameObject;
a1->m_targetP1 = v3;
if ( m_gameObject )
{
m_gameObject->m_targetPlayer1 = v3;
}
else
{
m_gameObjects = a1->m_gameObjects;
if ( m_gameObjects )
{
v7 = 0;
while ( 1 )
{
v9 = v7 >= (unsigned int)cocos2d::CCArray::count(m_gameObjects);
v10 = v7++;
if ( v9 )
break;
v8 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v10);
m_gameObjects = a1->m_gameObjects;
*(_BYTE *)(v8 + 1668) = a1->m_targetP1;
}
}
}
SetupCollisionTriggerPopup::updateItemIDInputLabel(a1);
v5 = 0;
if ( !a1->m_targetP2 )
v5 = !a1->m_targetP1;
a1->m_blockAInput->setTouchEnabled(a1->m_blockAInput, v5);
}