//
// SetupSmartBlockLayer::onClose from 0x53d328 to 0x53d38a (98 bytes)
//
// 4 xrefs:
// > SetupSmartBlockLayer::keyBackClicked @ 0x53d38c
// > SetupSmartBlockLayer::onPasteTemplate @ 0x53d4d0
// > SetupSmartBlockLayer::onCreate @ 0x53d59e
// > SetupSmartBlockLayer::onCreateTemplate @ 0x53d5ea
//
// 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 SetupSmartBlockLayer::onClose(SetupSmartBlockLayer *a1, cocos2d::CCObject *a2)
{
cocos2d::CCDirector *v3; // r0
cocos2d::CCTouchDispatcher *v4; // r0
SmartGameObject *m_gameObject; // r0
SmartGameObject *i; // r5
SmartGameObject *v7; // r0
v3 = cocos2d::CCDirector::sharedDirector();
v4 = v3->getTouchDispatcher(v3);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, a1);
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
SmartGameObject::updateSmartFrame(m_gameObject);
}
else if ( a1->m_gameObjects )
{
for ( i = a1->m_gameObject;
(unsigned int)i < cocos2d::CCArray::count(a1->m_gameObjects);
i = (SmartGameObject *)((char *)i + 1) )
{
v7 = (SmartGameObject *)cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, (unsigned int)i);
SmartGameObject::updateSmartFrame(v7);
}
}
a1->setKeypadEnabled(a1, 0);
a1->removeFromParentAndCleanup(a1, 1);
}