{"type": "func", "start": 4725774, "end": 4725854, "name": "EditorUI::toggleTraceSelected", "pseudocode": "// \n// EditorUI::toggleTraceSelected from 0x481c0e to 0x481c5e (80 bytes)\n// \n// 2 xrefs:\n// > EditorUI::handleEditorAction @ 0x6f1ef0\n// > EditorUI::handleEditorAction @ 0x6f1f06\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:49:22 +0000\n// \n\nint __fastcall EditorUI::toggleTraceSelected(cocos2d::CCArray **this, int a2)\n{\n  GameObject *v4; // r1\n  int v5; // r2\n  int v6; // r3\n\n  if ( cocos2d::CCArray::count(*(this + 167)) )\n    return 0;\n  v4 = *(this + 249);\n  if ( !a2 )\n  {\n    if ( v4 && *((_DWORD *)v4 + 271) == 1 )\n    {\n      EditorUI::onToggleTraceOut((int)this, (int)v4);\n      return 1;\n    }\n    v5 = (int)*(this + 236);\n    v6 = 12220;\nLABEL_11:\n    *(_DWORD *)(v5 + v6) = 0;\n    return 1;\n  }\n  if ( !v4 )\n  {\n    v5 = (int)*(this + 236);\n    v6 = 12216;\n    goto LABEL_11;\n  }\n  EditorUI::onToggleTraceIn((int)this, v4);\n  return 1;\n}", "assembly": "; \n; EditorUI::toggleTraceSelected from 0x481c0e to 0x481c5e (80 bytes)\n; \n; 2 xrefs:\n; > EditorUI::handleEditorAction @ 0x6f1ef0\n; > EditorUI::handleEditorAction @ 0x6f1f06\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:49:22 +0000\n; \nPUSH            {R3-R5,LR}                                             ; +0x0, 0x481c0e\nMOV             R5, R0                                                 ; +0x2, 0x481c10\nLDR.W           R0, [R0,#0x29C]; this                                  ; +0x4, 0x481c12\nMOV             R4, R1                                                 ; +0x8, 0x481c16\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xa, 0x481c18\nCBNZ            R0, loc_481C4A                                         ; +0xe, 0x481c1c\nLDR.W           R1, [R5,#0x3E4]; GameObject *                          ; +0x10, 0x481c1e\nCBZ             R4, loc_481C38                                         ; +0x14, 0x481c22\nCBZ             R1, loc_481C2E                                         ; +0x16, 0x481c24\nMOV             R0, R5; this                                           ; +0x18, 0x481c26\nBL              _ZN8EditorUI15onToggleTraceInEP10GameObject; EditorUI::onToggleTraceIn(GameObject *) ; +0x1a, 0x481c28\nB               loc_481C5A                                             ; +0x1e, 0x481c2c\nLDR.W           R2, [R5,#0x3B0]                                        ; +0x20, 0x481c2e\nMOVW            R3, #0x2FB8                                            ; +0x24, 0x481c32\nB               loc_481C58                                             ; +0x28, 0x481c36\nCBZ             R1, loc_481C4E                                         ; +0x2a, 0x481c38\nLDR.W           R4, [R1,#0x43C]                                        ; +0x2c, 0x481c3a\nCMP             R4, #1                                                 ; +0x30, 0x481c3e\nBNE             loc_481C4E                                             ; +0x32, 0x481c40\nMOV             R0, R5                                                 ; +0x34, 0x481c42\nBL              _ZN8EditorUI16onToggleTraceOutEP16EffectGameObject; EditorUI::onToggleTraceOut(EffectGameObject *) ; +0x36, 0x481c44\nB               loc_481C5A                                             ; +0x3a, 0x481c48\nMOVS            R0, #0                                                 ; +0x3c, 0x481c4a\nPOP             {R3-R5,PC}                                             ; +0x3e, 0x481c4c\nLDR.W           R2, [R5,#0x3B0]                                        ; +0x40, 0x481c4e\nMOVS            R1, #0                                                 ; +0x44, 0x481c52\nMOVW            R3, #0x2FBC                                            ; +0x46, 0x481c54\nSTR             R1, [R2,R3]                                            ; +0x4a, 0x481c58\nMOVS            R0, #1                                                 ; +0x4c, 0x481c5a\nPOP             {R3-R5,PC}                                             ; +0x4e, 0x481c5c", "xrefs": ["EditorUI::handleEditorAction @ 0x6f1ef0", "EditorUI::handleEditorAction @ 0x6f1f06"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}