//
// CollisionBlockPopup::onClose from 0x1000855c0 to 0x100085634 (116 bytes)
//
// 3 xrefs:
// > CollisionBlockPopup::keyBackClicked @ 0x1000859f0
// > sub_1000859F4 @ 0x1000859f8
// > CollisionBlockPopup::init @ 0x100084e08
//
// 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 CollisionBlockPopup::onClose(CollisionBlockPopup *a1, cocos2d::CCObject *a2)
{
CCTextInputNode *m_blockIDInput; // x0
m_blockIDInput = a1->m_blockIDInput;
m_blockIDInput->m_delegate = nullptr;
((void (__fastcall *)(CCTextInputNode *, _QWORD))m_blockIDInput->onClickTrackNode)(m_blockIDInput, 0);
CollisionBlockPopup::updateEditorLabel(a1);
GameManager::sharedState()->m_levelEditorLayer->m_unk3751 = 1;
((void (__fastcall *)(CollisionBlockPopup *, _QWORD))a1->setKeypadEnabled)(a1, 0);
((void (__fastcall *)(CollisionBlockPopup *, __int64))a1->removeFromParentAndCleanup)(a1, 1);
}