//
// SetupRandTriggerPopup::updateTargetID2 from 0x1005e68b0 to 0x1005e6946 (150 bytes)
//
// 0 xrefs:
//
// 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 SetupRandTriggerPopup::updateTargetID2(SetupRandTriggerPopup *a1)
{
int m_groupID2; // ecx
int v3; // esi
EffectGameObject *m_gameObject; // rdi
cocos2d::CCArray *m_gameObjects; // rdi
unsigned int v6; // r14d
EffectGameObject *v7; // rax
m_groupID2 = 0;
if ( a1->m_groupID2 > 0 )
m_groupID2 = a1->m_groupID2;
v3 = 9999;
if ( m_groupID2 < 9999 )
v3 = m_groupID2;
a1->m_groupID2 = v3;
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
EffectGameObject::setTargetID2(m_gameObject, v3);
}
else
{
m_gameObjects = a1->m_gameObjects;
if ( m_gameObjects && (unsigned int)sub_100720070(m_gameObjects) )
{
v6 = 0;
do
{
v7 = (EffectGameObject *)sub_1007200C0(a1->m_gameObjects, v6);
EffectGameObject::setTargetID2(v7, a1->m_groupID2);
++v6;
}
while ( v6 < (unsigned int)sub_100720070(a1->m_gameObjects) );
}
}
}