//
// DialogLayer::onClose from 0x100087294 to 0x100087324 (144 bytes)
//
// 3 xrefs:
// > DialogLayer::handleDialogTap @ 0x100087228
// > DialogLayer::keyBackClicked @ 0x10008737c
// > sub_100087380 @ 0x100087384
//
// 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 DialogLayer::onClose(DialogLayer *a1)
{
DialogDelegate *m_delegate; // x0
TextArea *m_textArea; // x8
m_delegate = a1->m_delegate;
if ( m_delegate )
((void (__fastcall *)(DialogDelegate *, DialogLayer *))m_delegate->dialogClosed)(m_delegate, a1);
a1->m_delegate = nullptr;
m_textArea = a1->m_textArea;
if ( m_textArea )
m_textArea->m_delegate = nullptr;
((void (__fastcall *)(DialogLayer *, _QWORD))a1->setKeypadEnabled)(a1, 0);
((void (__fastcall *)(DialogLayer *, _QWORD))a1->setKeyboardEnabled)(a1, 0);
if ( !a1->m_noRemove )
((void (__fastcall *)(DialogLayer *, __int64))a1->removeFromParentAndCleanup)(a1, 1);
}