//
// SetupObjectOptionsPopup::onCenterEffect from 0x10031a7b0 to 0x10031a840 (144 bytes)
//
// 1 xrefs:
// > SetupObjectOptionsPopup::init @ 0x10031940d
//
// 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 SetupObjectOptionsPopup::onCenterEffect(SetupObjectOptionsPopup *a1, cocos2d::CCObject *a2)
{
bool v2; // al
GameObject *m_gameObject; // rcx
unsigned int v4; // r14d
__int64 v5; // rax
v2 = !a1->m_centerEffect;
a1->m_centerEffect = v2;
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
if ( m_gameObject->m_classType == Effect )
BYTE2(m_gameObject[1].m_sAdditionalTransform.b) = v2;
}
else if ( (unsigned int)sub_100720070(a1->m_gameObjects) )
{
v4 = 0;
do
{
v5 = sub_1007200C0(a1->m_gameObjects, v4);
if ( *(_DWORD *)(v5 + 1248) == 1 )
*(_BYTE *)(v5 + 1474) = a1->m_centerEffect;
++v4;
}
while ( v4 < (unsigned int)sub_100720070(a1->m_gameObjects) );
}
}