//
// SetupObjectOptionsPopup::onReverse from 0x10031ac30 to 0x10031acd0 (160 bytes)
//
// 1 xrefs:
// > SetupObjectOptionsPopup::init @ 0x100319c22
//
// 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; // rax
bool v3; // al
GameObject *m_gameObject; // rcx
unsigned int v5; // r14d
__int64 v6; // rax
m_groupIDLayer = a1->m_groupIDLayer;
if ( m_groupIDLayer )
m_groupIDLayer->m_reverseChanged = 1;
v3 = !a1->m_reverse;
a1->m_reverse = v3;
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
if ( m_gameObject->m_classType == Effect )
LOBYTE(m_gameObject[1].m_obRect.origin.y) = v3;
}
else if ( (unsigned int)sub_100720070(a1->m_gameObjects) )
{
v5 = 0;
do
{
v6 = sub_1007200C0(a1->m_gameObjects, v5);
if ( *(_DWORD *)(v6 + 1248) == 1 )
*(_BYTE *)(v6 + 1780) = a1->m_reverse;
++v5;
}
while ( v5 < (unsigned int)sub_100720070(a1->m_gameObjects) );
}
}