//
// SetupObjectOptionsPopup::onExtendedCollision from 0x10031a700 to 0x10031a7b0 (176 bytes)
//
// 1 xrefs:
// > SetupObjectOptionsPopup::init @ 0x1003192f7
//
// 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::onExtendedCollision(SetupObjectOptionsPopup *a1, cocos2d::CCObject *a2)
{
LevelEditorLayer *m_levelEditorLayer; // r14
bool v3; // al
GameObject *m_gameObject; // rsi
unsigned int v5; // r15d
GameObject *v6; // rax
m_levelEditorLayer = GameManager::sharedState()->m_levelEditorLayer;
if ( m_levelEditorLayer )
{
v3 = !a1->m_extendedCollision;
a1->m_extendedCollision = v3;
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
GJBaseGameLayer::updateExtendedCollision(m_levelEditorLayer, m_gameObject, v3);
}
else if ( (unsigned int)sub_100720070(a1->m_gameObjects) )
{
v5 = 0;
do
{
v6 = (GameObject *)sub_1007200C0(a1->m_gameObjects, v5);
GJBaseGameLayer::updateExtendedCollision(m_levelEditorLayer, v6, a1->m_extendedCollision);
++v5;
}
while ( v5 < (unsigned int)sub_100720070(a1->m_gameObjects) );
}
}
}