//
// CustomizeObjectLayer::toggleVisible from 0x8419ec to 0x841b04 (280 bytes)
//
// 2 xrefs:
// > CustomizeObjectLayer::onSelectMode @ 0x841bdc
// > ??> @ 0xc3d50
//
// 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 CustomizeObjectLayer::toggleVisible(CustomizeObjectLayer *a1)
{
unsigned int v2; // w20
__int64 v3; // x0
bool v4; // cf
unsigned int v5; // w1
unsigned int v6; // w20
__int64 v7; // x0
unsigned int v8; // w1
unsigned int v9; // w20
__int64 v10; // x0
unsigned int v11; // w1
CCTextInputNode *m_textInput; // x0
v2 = 0;
for ( a1->m_showTextInput = a1->m_selectedMode == 3;
;
(*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v3 + 328LL))(v3, !a1->m_showTextInput) )
{
v4 = v2 >= (unsigned int)cocos2d::CCArray::count(a1->m_colorTabNodes);
v5 = v2++;
if ( v4 )
break;
v3 = cocos2d::CCArray::objectAtIndex(a1->m_colorTabNodes, v5);
}
v6 = 0;
while ( 1 )
{
v4 = v6 >= (unsigned int)cocos2d::CCArray::count(a1->m_detailTabNodes);
v8 = v6++;
if ( v4 )
break;
v7 = cocos2d::CCArray::objectAtIndex(a1->m_detailTabNodes, v8);
(*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v7 + 328LL))(v7, !a1->m_showTextInput);
}
v9 = 0;
if ( a1->m_customColorSelected )
{
while ( 1 )
{
v4 = v9 >= (unsigned int)cocos2d::CCArray::count(a1->m_textTabNodes);
v11 = v9++;
if ( v4 )
break;
v10 = cocos2d::CCArray::objectAtIndex(a1->m_textTabNodes, v11);
(*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v10 + 328LL))(v10, a1->m_showTextInput);
}
m_textInput = a1->m_textInput;
if ( m_textInput )
{
m_textInput->setTouchEnabled(m_textInput, a1->m_showTextInput);
a1->m_textInput->setVisible(a1->m_textInput, a1->m_showTextInput);
}
}
CustomizeObjectLayer::updateCurrentSelection(a1);
}