//
// HSVWidgetPopup::keyBackClicked from 0x10042fb70 to 0x10042fc2b (187 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009369f0
//
// 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 HSVWidgetPopup::keyBackClicked(HSVWidgetPopup *a1)
{
ConfigureHSVWidget *m_widget; // rax
cocos2d::CCDictionary *m_inputs; // rcx
cocos2d::CCDictElement *m_pElements; // r15
_QWORD *v5; // r14
HSVWidgetDelegate *m_delegate; // rdi
m_widget = a1->m_widget;
m_inputs = m_widget->m_inputs;
if ( m_inputs )
{
m_pElements = m_inputs->m_pElements;
if ( m_pElements )
{
do
{
v5 = &m_pElements->m_pObject->__vftable;
m_pElements = (cocos2d::CCDictElement *)m_pElements->hh.next;
(*(void (__fastcall **)(_QWORD *, _QWORD))(*v5 + 1144LL))(v5, 0);
v5[68] = 0;
}
while ( m_pElements );
m_widget = a1->m_widget;
}
}
if ( !m_widget->m_mixed )
{
m_delegate = a1->m_delegate;
if ( m_delegate )
((void (__fastcall *)(HSVWidgetDelegate *, HSVWidgetPopup *, _QWORD, double))m_delegate->hsvPopupClosed)(
m_delegate,
a1,
*(_QWORD *)&m_widget->m_hsv.v,
*(double *)&m_widget->m_hsv.h);
}
((void (__fastcall *)(HSVWidgetPopup *, _QWORD))a1->setKeypadEnabled)(a1, 0);
((void (__fastcall *)(HSVWidgetPopup *, __int64))a1->removeFromParentAndCleanup)(a1, 1);
}