//
// SetIDPopup::keyBackClicked from 0x1002ac850 to 0x1002ac8dd (141 bytes)
//
// 5 xrefs:
// > ??> @ 0x1008fbd18
// > ??> @ 0x1009003d0
// > ??> @ 0x100900b48
// > ??> @ 0x100901270
// > ??> @ 0x10091a370
//
// 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 SetIDPopup::keyBackClicked(SetIDPopup *a1)
{
CCTextInputNode *m_inputNode; // rdi
int m_value; // edx
SetIDPopupDelegate *m_delegate; // rdi
m_inputNode = a1->m_inputNode;
m_inputNode->m_delegate = nullptr;
((void (__fastcall *)(CCTextInputNode *, _QWORD))m_inputNode->onClickTrackNode)(m_inputNode, 0);
m_value = a1->m_value;
if ( a1->m_maximum < m_value )
m_value = a1->m_maximum;
if ( a1->m_minimum > m_value )
m_value = a1->m_minimum;
a1->m_value = m_value;
m_delegate = a1->m_delegate;
if ( m_delegate && !a1->m_cancelled )
((void (__fastcall *)(SetIDPopupDelegate *, SetIDPopup *))m_delegate->setIDPopupClosed)(m_delegate, a1);
((void (__fastcall *)(SetIDPopup *, _QWORD))a1->setKeypadEnabled)(a1, 0);
((void (__fastcall *)(SetIDPopup *, __int64))a1->removeFromParentAndCleanup)(a1, 1);
}