//
// SetupObjectOptionsPopup::onDontFade from 0x100040818 to 0x10004088c (116 bytes)
//
// 1 xrefs:
// > SetupObjectOptionsPopup::init @ 0x10003f618
//
// 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::onDontFade(SetupObjectOptionsPopup *a1, cocos2d::CCObject *a2)
{
bool v2; // w8
GameObject *m_gameObject; // x9
__int64 v5; // x20
v2 = !a1->m_dontFade;
a1->m_dontFade = v2;
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
m_gameObject->m_isDontFade = v2;
}
else if ( (unsigned int)sub_10024A36C(a1->m_gameObjects) )
{
v5 = 0;
do
{
*(_BYTE *)(sub_10024A388(a1->m_gameObjects, v5) + 1043) = a1->m_dontFade;
v5 = (unsigned int)(v5 + 1);
}
while ( (unsigned int)v5 < (unsigned int)sub_10024A36C(a1->m_gameObjects) );
}
}