//
// LevelListLayer::onToggleEditMode from 0x10035def0 to 0x10035df2c (60 bytes)
//
// 1 xrefs:
// > LevelListLayer::init @ 0x10035cc67
//
// 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 LevelListLayer::onToggleEditMode(LevelListLayer *a1, cocos2d::CCObject *a2)
{
int m_editMode; // ecx
int v3; // eax
GJListLayer *m_list; // rcx
CustomListView *m_listView; // rdi
m_editMode = a1->m_editMode;
v3 = 0;
if ( m_editMode < 2 )
v3 = m_editMode + 1;
a1->m_editMode = v3;
m_list = a1->m_list;
if ( m_list )
{
m_listView = (CustomListView *)m_list->m_listView;
m_listView->m_cellMode = v3;
CustomListView::reloadAll(m_listView);
}
}