//
// SetupObjectOptionsPopup::onAlwaysHide from 0x100040d98 to 0x100040e0c (116 bytes)
//
// 1 xrefs:
// > SetupObjectOptionsPopup::init @ 0x10003fd74
//
// 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::onAlwaysHide(SetupObjectOptionsPopup *a1, cocos2d::CCObject *a2)
{
bool v2; // w8
GameObject *m_gameObject; // x9
__int64 v5; // x20
v2 = !a1->m_hide;
a1->m_hide = v2;
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
m_gameObject->m_isHide = v2;
}
else if ( (unsigned int)sub_10024A36C(a1->m_gameObjects) )
{
v5 = 0;
do
{
*(_BYTE *)(sub_10024A388(a1->m_gameObjects, v5) + 1294) = a1->m_hide;
v5 = (unsigned int)(v5 + 1);
}
while ( (unsigned int)v5 < (unsigned int)sub_10024A36C(a1->m_gameObjects) );
}
}