//
// SetupPulsePopup::updatePulseTargetType from 0x8ee268 to 0x8ee2dc (116 bytes)
//
// 2 xrefs:
// > SetupPulsePopup::onSelectTargetMode @ 0x8ee674
// > ??> @ 0x5a1e0
//
// 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 SetupPulsePopup::updatePulseTargetType(SetupPulsePopup *a1)
{
EffectGameObject *m_gameObject; // x1
cocos2d::CCArray *m_gameObjects; // x1
unsigned int v4; // w20
__int64 v5; // x0
bool v6; // cf
unsigned int v7; // w1
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
m_gameObject->m_pulseTargetType = a1->m_pulseTargetType;
}
else
{
m_gameObjects = a1->m_gameObjects;
if ( m_gameObjects )
{
v4 = 0;
while ( 1 )
{
v6 = v4 >= (unsigned int)cocos2d::CCArray::count(m_gameObjects);
v7 = v4++;
if ( v6 )
break;
v5 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v7);
m_gameObjects = a1->m_gameObjects;
*(_DWORD *)(v5 + 1592) = a1->m_pulseTargetType;
}
}
}
}