//
// SetupObjectOptionsPopup::onReverse from 0x100041348 to 0x1000413e4 (156 bytes)
//
// 1 xrefs:
// > SetupObjectOptionsPopup::init @ 0x100040590
//
// 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::onReverse(SetupObjectOptionsPopup *a1, cocos2d::CCObject *a2)
{
SetGroupIDLayer *m_groupIDLayer; // x8
bool v4; // w8
GameObject *m_gameObject; // x9
__int64 v6; // x20
__int64 v7; // x0
m_groupIDLayer = a1->m_groupIDLayer;
if ( m_groupIDLayer )
m_groupIDLayer->m_reverseChanged = 1;
v4 = !a1->m_reverse;
a1->m_reverse = v4;
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
if ( m_gameObject->m_classType == Effect )
LOBYTE(m_gameObject[1].m_obRect.origin.y) = v4;
}
else if ( (unsigned int)sub_10024A36C(a1->m_gameObjects) )
{
v6 = 0;
do
{
v7 = sub_10024A388(a1->m_gameObjects, v6);
if ( *(_DWORD *)(v7 + 1248) == 1 )
*(_BYTE *)(v7 + 1780) = a1->m_reverse;
v6 = (unsigned int)(v6 + 1);
}
while ( (unsigned int)v6 < (unsigned int)sub_10024A36C(a1->m_gameObjects) );
}
}