//
// SetupObjectOptionsPopup::onReverse from 0x1404008a0 to 0x140400953 (179 bytes)
//
// 4 xrefs:
// > SetupObjectOptionsPopup::init @ 0x1403ff8c0
// > ??> @ 0x14069e84c
// > ??> @ 0x14069e85c
// > ??> @ 0x1406d87bc
//
// 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::onReverse(SetupObjectOptionsPopup *a1, cocos2d::CCObject *a2)
{
SetGroupIDLayer *m_groupIDLayer; // rax
bool v4; // cl
GameObject *m_gameObject; // rax
unsigned int i; // edi
struct cocos2d::CCObject *v7; // rax
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.size.height) = v4;
}
else
{
for ( i = 0; i < cocos2d::CCArray::count(a1->m_gameObjects); ++i )
{
v7 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, i);
if ( v7[22].m_uAutoReleaseCount == 1 )
BYTE4(v7[32].__vftable) = a1->m_reverse;
}
}
}