//
// DialogLayer::onClose from 0x4d65ba to 0x4d660c (82 bytes)
//
// 2 xrefs:
// > DialogLayer::keyBackClicked @ 0x4d660c
// > DialogLayer::handleDialogTap @ 0x4d66a6
//
// 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 DialogLayer::onClose(DialogLayer *a1)
{
DialogDelegate *m_delegate; // r0
TextArea *m_textArea; // r3
m_delegate = a1->m_delegate;
if ( m_delegate )
m_delegate->dialogClosed(m_delegate, a1);
m_textArea = a1->m_textArea;
a1->m_delegate = nullptr;
if ( m_textArea )
m_textArea->m_delegate = nullptr;
a1->setKeypadEnabled(a1, 0);
a1->setKeyboardEnabled(a1, 0);
if ( !a1->m_noRemove )
a1->removeFromParentAndCleanup(a1, 1);
}