//
// CustomizeObjectLayer::onClose from 0x1400aa010 to 0x1400aa0e2 (210 bytes)
//
// 6 xrefs:
// > CustomizeObjectLayer::onLiveEdit @ 0x1400a7f35
// > CustomizeObjectLayer::onBreakApart @ 0x1400a9b35
// > CustomizeObjectLayer::keyBackClicked @ 0x1400aa0f9
// > CustomizeObjectSettingsPopup::onClose @ 0x1400aa616
// > CustomizeObjectLayer::init @ 0x1400a5752
// > ??> @ 0x1406c7908
//
// 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
//
// Hidden C++ exception states: #wind=2
void CustomizeObjectLayer::onClose(CustomizeObjectLayer *a1, cocos2d::CCObject *a2)
{
CCTextInputNode *m_textInput; // rcx
__int64 v4; // rcx
_BOOL8 v5; // rdx
void *v6; // [rsp+30h] [rbp+8h]
a1->m_customColorInput->m_delegate = nullptr;
a1->m_customColorInput->onClickTrackNode(a1->m_customColorInput, 0);
m_textInput = a1->m_textInput;
if ( m_textInput )
{
m_textInput->onClickTrackNode(m_textInput, 0);
a1->m_textInput->m_delegate = nullptr;
}
v4 = qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v6 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00(v6);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v4 = qword_1406C2ED8;
}
*(_DWORD *)(v4 + 952) = a1->m_customColorChannel;
EditorUI::updateObjectInfoLabel(*(EditorUI **)(*(_QWORD *)(v4 + 528) + 14496LL));
a1->setKeypadEnabled(a1, 0);
LOBYTE(v5) = 1;
a1->removeFromParentAndCleanup(a1, v5);
}