{"type": "func", "start": 5371887792, "end": 5371887850, "name": "LevelListLayer::onToggleEditMode", "pseudocode": "// \n// LevelListLayer::onToggleEditMode from 0x1403080b0 to 0x1403080ea (58 bytes)\n// \n// 1 xrefs:\n// > LevelListLayer::init @ 0x140304aba\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid LevelListLayer::onToggleEditMode(LevelListLayer *a1, cocos2d::CCObject *a2)\n{\n  int v2; // eax\n  GJListLayer *m_list; // rcx\n  CustomListView *m_listView; // rcx\n\n  v2 = a1->m_editMode + 1;\n  a1->m_editMode = v2;\n  if ( v2 > 2 )\n  {\n    v2 = 0;\n    a1->m_editMode = 0;\n  }\n  m_list = a1->m_list;\n  if ( m_list )\n  {\n    m_listView = (CustomListView *)m_list->m_listView;\n    m_listView->m_cellMode = v2;\n    CustomListView::reloadAll(m_listView);\n  }\n}", "assembly": "; \n; LevelListLayer::onToggleEditMode from 0x1403080b0 to 0x1403080ea (58 bytes)\n; \n; 1 xrefs:\n; > LevelListLayer::init @ 0x140304aba\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     eax, [rcx+3A8h]                                                ; +0x0, 0x1403080b0\ninc     eax                                                            ; +0x6, 0x1403080b6\nmov     [rcx+3A8h], eax                                                ; +0x8, 0x1403080b8\ncmp     eax, 2                                                         ; +0xe, 0x1403080be\njle     short loc_1403080CB                                            ; +0x11, 0x1403080c1\nxor     eax, eax                                                       ; +0x13, 0x1403080c3\nmov     [rcx+3A8h], eax                                                ; +0x15, 0x1403080c5\nmov     rcx, [rcx+260h]                                                ; +0x1b, 0x1403080cb\ntest    rcx, rcx                                                       ; +0x22, 0x1403080d2\njz      short locret_1403080E9                                         ; +0x25, 0x1403080d5\nmov     rcx, [rcx+220h]                                                ; +0x27, 0x1403080d7\nmov     [rcx+1D0h], eax                                                ; +0x2e, 0x1403080de\njmp     CustomListView__reloadAll                                      ; +0x34, 0x1403080e4\nretn                                                                   ; +0x39, 0x1403080e9", "xrefs": ["LevelListLayer::init @ 0x140304aba"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}