//
// CollisionBlockPopup::onClose from 0x909568 to 0x9095e8 (128 bytes)
//
// 4 xrefs:
// > CollisionBlockPopup::keyBackClicked @ 0x9095ec
// > ??> @ 0x64548
// > CollisionBlockPopup::init @ 0x909940
// > ??> @ 0x122b3c8
//
// 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 CollisionBlockPopup::onClose(CollisionBlockPopup *a1, cocos2d::CCObject *a2)
{
GameManager *v3; // x0
void (__fastcall *setKeypadEnabled)(cocos2d::CCLayer *__hidden, bool); // x3
a1->m_blockIDInput->m_delegate = nullptr;
a1->m_blockIDInput->onClickTrackNode(a1->m_blockIDInput, 0);
CollisionBlockPopup::updateEditorLabel(a1);
v3 = GameManager::sharedState();
setKeypadEnabled = a1->setKeypadEnabled;
v3->m_levelEditorLayer->m_unk3751 = 1;
setKeypadEnabled(a1, 0);
a1->removeFromParentAndCleanup(a1, 1);
}