//
// SetupObjectOptionsPopup::onExtendedCollision from 0x974c14 to 0x974ca4 (144 bytes)
//
// 3 xrefs:
// > ??> @ 0xa13b8
// > SetupObjectOptionsPopup::init @ 0x97b064
// > ??> @ 0x122d8a8
//
// 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::onExtendedCollision(SetupObjectOptionsPopup *a1, cocos2d::CCObject *a2)
{
LevelEditorLayer *m_levelEditorLayer; // x21
GameObject *m_gameObject; // x1
bool v5; // w2
unsigned int v6; // w19
GameObject *v7; // x0
bool v8; // cf
unsigned int v9; // w1
m_levelEditorLayer = GameManager::sharedState()->m_levelEditorLayer;
if ( m_levelEditorLayer )
{
m_gameObject = a1->m_gameObject;
v5 = !a1->m_extendedCollision;
a1->m_extendedCollision = v5;
if ( m_gameObject )
{
GJBaseGameLayer::updateExtendedCollision(m_levelEditorLayer, m_gameObject, v5);
}
else
{
v6 = 0;
while ( 1 )
{
v8 = v6 >= (unsigned int)cocos2d::CCArray::count(a1->m_gameObjects);
v9 = v6++;
if ( v8 )
break;
v7 = (GameObject *)cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v9);
GJBaseGameLayer::updateExtendedCollision(m_levelEditorLayer, v7, a1->m_extendedCollision);
}
}
}
}