{"type": "func", "start": 8132904, "end": 8133056, "name": "EditorUI::toggleTraceSelected", "pseudocode": "// \n// EditorUI::toggleTraceSelected from 0x7c1928 to 0x7c19c0 (152 bytes)\n// \n// 3 xrefs:\n// > EditorUI::handleEditorAction @ 0xbd7ea0\n// > EditorUI::handleEditorAction @ 0xbd8468\n// > <???> @ 0xf6e68\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:54:06 +0000\n// \n\n__int64 __fastcall EditorUI::toggleTraceSelected(cocos2d::CCArray **this, unsigned __int8 a2)\n{\n  int v3; // w20\n  int v4; // w0\n  unsigned int v5; // w1\n  GameObject *v6; // x1\n\n  v3 = a2;\n  v4 = cocos2d::CCArray::count(*(this + 112));\n  v5 = 0;\n  if ( v4 )\n    return v5;\n  v6 = *(this + 187);\n  if ( v3 )\n  {\n    if ( v6 )\n    {\n      EditorUI::onToggleTraceIn((EditorUI *)this, v6);\n      return 1;\n    }\n    else\n    {\n      v5 = 1;\n      *((_QWORD *)*(this + 180) + 1853) = 0;\n    }\n    return v5;\n  }\n  if ( v6 && *((_DWORD *)v6 + 312) == 1 )\n  {\n    EditorUI::onToggleTraceOut((__int64)this, (__int64)v6);\n    return 1;\n  }\n  *((_QWORD *)*(this + 180) + 1854) = 0;\n  return 1;\n}", "assembly": "; \n; EditorUI::toggleTraceSelected from 0x7c1928 to 0x7c19c0 (152 bytes)\n; \n; 3 xrefs:\n; > EditorUI::handleEditorAction @ 0xbd7ea0\n; > EditorUI::handleEditorAction @ 0xbd8468\n; > <???> @ 0xf6e68\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:54:06 +0000\n; \nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0x7c1928\nMOV             X29, SP                                                ; +0x4, 0x7c192c\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0x7c1930\nMOV             X19, X0                                                ; +0xc, 0x7c1934\nUXTB            W20, W1                                                ; +0x10, 0x7c1938\nLDR             X0, [X0,#0x380]; this                                  ; +0x14, 0x7c193c\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x18, 0x7c1940\nMOV             W1, #0                                                 ; +0x1c, 0x7c1944\nCBNZ            W0, loc_7C1964                                         ; +0x20, 0x7c1948\nLDR             X1, [X19,#0x5D8]; GameObject *                         ; +0x24, 0x7c194c\nCBZ             W20, loc_7C1974                                        ; +0x28, 0x7c1950\nCBZ             X1, loc_7C19B0                                         ; +0x2c, 0x7c1954\nMOV             X0, X19; this                                          ; +0x30, 0x7c1958\nBL              _ZN8EditorUI15onToggleTraceInEP10GameObject; EditorUI::onToggleTraceIn(GameObject *) ; +0x34, 0x7c195c\nMOV             W1, #1                                                 ; +0x38, 0x7c1960\nMOV             W0, W1                                                 ; +0x3c, 0x7c1964\nLDP             X19, X20, [SP,#var_s10]                                ; +0x40, 0x7c1968\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x44, 0x7c196c\nRET                                                                    ; +0x48, 0x7c1970\nCBZ             X1, loc_7C1984                                         ; +0x4c, 0x7c1974\nLDR             W20, [X1,#0x4E0]                                       ; +0x50, 0x7c1978\nCMP             W20, #1                                                ; +0x54, 0x7c197c\nB.EQ            loc_7C19A0                                             ; +0x58, 0x7c1980\nLDR             X0, [X19,#0x5A0]                                       ; +0x5c, 0x7c1984\nMOV             W1, #1                                                 ; +0x60, 0x7c1988\nSTR             XZR, [X0,#0x39F0]                                      ; +0x64, 0x7c198c\nMOV             W0, W1                                                 ; +0x68, 0x7c1990\nLDP             X19, X20, [SP,#var_s10]                                ; +0x6c, 0x7c1994\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x70, 0x7c1998\nRET                                                                    ; +0x74, 0x7c199c\nMOV             X0, X19                                                ; +0x78, 0x7c19a0\nBL              _ZN8EditorUI16onToggleTraceOutEP16EffectGameObject; EditorUI::onToggleTraceOut(EffectGameObject *) ; +0x7c, 0x7c19a4\nMOV             W1, W20                                                ; +0x80, 0x7c19a8\nB               loc_7C1964                                             ; +0x84, 0x7c19ac\nLDR             X0, [X19,#0x5A0]                                       ; +0x88, 0x7c19b0\nMOV             W1, #1                                                 ; +0x8c, 0x7c19b4\nSTR             XZR, [X0,#0x39E8]                                      ; +0x90, 0x7c19b8\nB               loc_7C1964                                             ; +0x94, 0x7c19bc", "xrefs": ["EditorUI::handleEditorAction @ 0xbd7ea0", "EditorUI::handleEditorAction @ 0xbd8468", "<???> @ 0xf6e68"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}