//
// SetupObjectOptionsPopup::onDisableObject from 0x100040c44 to 0x100040d24 (224 bytes)
//
// 1 xrefs:
// > SetupObjectOptionsPopup::init @ 0x10003fc24
//
// 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::onDisableObject(SetupObjectOptionsPopup *a1, cocos2d::CCObject *a2)
{
GameObject *m_gameObject; // x0
cocos2d::CCArray *m_gameObjects; // x20
LevelEditorLayer *m_levelEditorLayer; // x21
__int64 v6; // x22
__int64 v7; // x23
a1->m_noTouch ^= 1u;
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
m_gameObjects = (cocos2d::CCArray *)sub_10024A1B8(m_gameObject, a2);
else
m_gameObjects = a1->m_gameObjects;
m_levelEditorLayer = GameManager::sharedState()->m_levelEditorLayer;
if ( (unsigned int)sub_10024A36C(m_gameObjects) )
{
v6 = 0;
do
{
v7 = sub_10024A388(m_gameObjects, v6);
if ( m_levelEditorLayer )
GJBaseGameLayer::removeObjectFromSection(m_levelEditorLayer, (GameObject *)v7);
*(_BYTE *)(v7 + 1214) = a1->m_noTouch;
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v7 + 1792LL))(v7, *(unsigned int *)(v7 + 924));
(*(void (__fastcall **)(__int64))(*(_QWORD *)v7 + 1600LL))(v7);
if ( m_levelEditorLayer )
((void (__fastcall *)(LevelEditorLayer *, __int64))m_levelEditorLayer->addToSection)(m_levelEditorLayer, v7);
v6 = (unsigned int)(v6 + 1);
}
while ( (unsigned int)v6 < (unsigned int)sub_10024A36C(m_gameObjects) );
}
}