//
// SetupObjectOptionsPopup::onCenterEffect from 0x975644 to 0x9756cc (136 bytes)
//
// 3 xrefs:
// > ??> @ 0x516a8
// > SetupObjectOptionsPopup::init @ 0x97b12c
// > ??> @ 0x122a9f0
//
// 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 SetupObjectOptionsPopup::onCenterEffect(SetupObjectOptionsPopup *a1, cocos2d::CCObject *a2)
{
GameObject *m_gameObject; // x2
bool v3; // w1
unsigned int v5; // w20
bool v6; // cf
unsigned int v7; // w1
__int64 v8; // x0
m_gameObject = a1->m_gameObject;
v3 = !a1->m_centerEffect;
a1->m_centerEffect = v3;
if ( m_gameObject )
{
if ( m_gameObject->m_classType == Effect )
BYTE2(m_gameObject[1].m_sAdditionalTransform.b) = v3;
}
else
{
v5 = 0;
while ( 1 )
{
v6 = v5 >= (unsigned int)cocos2d::CCArray::count(a1->m_gameObjects);
v7 = v5++;
if ( v6 )
break;
v8 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v7);
if ( *(_DWORD *)(v8 + 1232) == 1 )
*(_BYTE *)(v8 + 1458) = a1->m_centerEffect;
}
}
}