//
// LevelListLayer::onToggleEditMode from 0x1403080b0 to 0x1403080ea (58 bytes)
//
// 1 xrefs:
// > LevelListLayer::init @ 0x140304aba
//
// 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 LevelListLayer::onToggleEditMode(LevelListLayer *a1, cocos2d::CCObject *a2)
{
int v2; // eax
GJListLayer *m_list; // rcx
CustomListView *m_listView; // rcx
v2 = a1->m_editMode + 1;
a1->m_editMode = v2;
if ( v2 > 2 )
{
v2 = 0;
a1->m_editMode = 0;
}
m_list = a1->m_list;
if ( m_list )
{
m_listView = (CustomListView *)m_list->m_listView;
m_listView->m_cellMode = v2;
CustomListView::reloadAll(m_listView);
}
}