//
// DialogLayer::keyBackClicked from 0x1003c80a0 to 0x1003c8125 (133 bytes)
//
// 1 xrefs:
// > ??> @ 0x10092e7b8
//
// 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::keyBackClicked(DialogLayer *a1)
{
DialogDelegate *m_delegate; // rdi
TextArea *m_textArea; // rax
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);
}