//
// CollisionBlockPopup::onClose from 0x14008bb40 to 0x14008bbe0 (160 bytes)
//
// 3 xrefs:
// > CollisionBlockPopup::keyBackClicked @ 0x14008bbe9
// > CollisionBlockPopup::init @ 0x14008ad71
// > ??> @ 0x1406c6dec
//
// 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
//
// Hidden C++ exception states: #wind=1
void CollisionBlockPopup::onClose(CollisionBlockPopup *a1, cocos2d::CCObject *a2)
{
__int64 v3; // rax
_BOOL8 v4; // rdx
void *v5; // [rsp+30h] [rbp+8h]
a1->m_blockIDInput->m_delegate = nullptr;
a1->m_blockIDInput->onClickTrackNode(a1->m_blockIDInput, 0);
CollisionBlockPopup::updateEditorLabel(a1);
v3 = qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v5 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00(v5);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v3 = qword_1406C2ED8;
}
*(_BYTE *)(*(_QWORD *)(v3 + 528) + 14401LL) = 1;
a1->setKeypadEnabled(a1, 0);
LOBYTE(v4) = 1;
a1->removeFromParentAndCleanup(a1, v4);
}