//
// CustomizeObjectLayer::toggleVisible from 0x10005086c to 0x1000509ac (320 bytes)
//
// 1 xrefs:
// > CustomizeObjectLayer::onSelectMode @ 0x10004f60c
//
// 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 CustomizeObjectLayer::toggleVisible(CustomizeObjectLayer *a1)
{
__int64 v2; // x20
__int64 v3; // x0
__int64 v4; // x20
__int64 v5; // x0
__int64 v6; // x20
__int64 v7; // x0
CCTextInputNode *m_textInput; // x0
a1->m_showTextInput = a1->m_selectedMode == 3;
if ( (unsigned int)sub_10024A36C(a1->m_colorTabNodes) )
{
v2 = 0;
do
{
v3 = sub_10024A388(a1->m_colorTabNodes, v2);
(*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v3 + 328LL))(v3, !a1->m_showTextInput);
v2 = (unsigned int)(v2 + 1);
}
while ( (unsigned int)v2 < (unsigned int)sub_10024A36C(a1->m_colorTabNodes) );
}
if ( (unsigned int)sub_10024A36C(a1->m_detailTabNodes) )
{
v4 = 0;
do
{
v5 = sub_10024A388(a1->m_detailTabNodes, v4);
(*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v5 + 328LL))(v5, !a1->m_showTextInput);
v4 = (unsigned int)(v4 + 1);
}
while ( (unsigned int)v4 < (unsigned int)sub_10024A36C(a1->m_detailTabNodes) );
}
if ( a1->m_customColorSelected )
{
if ( (unsigned int)sub_10024A36C(a1->m_textTabNodes) )
{
v6 = 0;
do
{
v7 = sub_10024A388(a1->m_textTabNodes, v6);
(*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v7 + 328LL))(v7, a1->m_showTextInput);
v6 = (unsigned int)(v6 + 1);
}
while ( (unsigned int)v6 < (unsigned int)sub_10024A36C(a1->m_textTabNodes) );
}
m_textInput = a1->m_textInput;
if ( m_textInput )
{
((void (__fastcall *)(CCTextInputNode *, bool))m_textInput->setTouchEnabled)(m_textInput, a1->m_showTextInput);
((void (__fastcall *)(CCTextInputNode *, bool))a1->m_textInput->setVisible)(a1->m_textInput, a1->m_showTextInput);
}
}
CustomizeObjectLayer::updateCurrentSelection(a1);
}