//
// SetupCollisionTriggerPopup::onTargetP2 from 0x100230550 to 0x1002305f8 (168 bytes)
//
// 1 xrefs:
// > SetupCollisionTriggerPopup::init @ 0x10022fee4
//
// 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 SetupCollisionTriggerPopup::onTargetP2(SetupCollisionTriggerPopup *a1, cocos2d::CCObject *a2)
{
bool v3; // w8
EffectGameObject *m_gameObject; // x9
bool v5; // w8
cocos2d::CCArray *m_gameObjects; // x0
__int64 v7; // x20
v3 = !a1->m_targetP2;
a1->m_targetP2 = v3;
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
m_gameObject->m_targetPlayer2 = v3;
}
else
{
m_gameObjects = a1->m_gameObjects;
if ( m_gameObjects && (unsigned int)sub_10024A36C(m_gameObjects) )
{
v7 = 0;
do
{
*(_BYTE *)(sub_10024A388(a1->m_gameObjects, v7) + 1685) = a1->m_targetP2;
v7 = (unsigned int)(v7 + 1);
}
while ( (unsigned int)v7 < (unsigned int)sub_10024A36C(a1->m_gameObjects) );
}
}
SetupCollisionTriggerPopup::updateItemIDInputLabel(a1);
v5 = !a1->m_targetP2 && !a1->m_targetP1;
((void (__fastcall *)(CCTextInputNode *, bool))a1->m_blockAInput->setTouchEnabled)(a1->m_blockAInput, v5);
}