//
// EditorUI::toggleTraceSelected from 0x7c1928 to 0x7c19c0 (152 bytes)
//
// 3 xrefs:
// > EditorUI::handleEditorAction @ 0xbd7ea0
// > EditorUI::handleEditorAction @ 0xbd8468
// > ??> @ 0xf6e68
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:54:06 +0000
//
__int64 __fastcall EditorUI::toggleTraceSelected(cocos2d::CCArray **this, unsigned __int8 a2)
{
int v3; // w20
int v4; // w0
unsigned int v5; // w1
GameObject *v6; // x1
v3 = a2;
v4 = cocos2d::CCArray::count(*(this + 112));
v5 = 0;
if ( v4 )
return v5;
v6 = *(this + 187);
if ( v3 )
{
if ( v6 )
{
EditorUI::onToggleTraceIn((EditorUI *)this, v6);
return 1;
}
else
{
v5 = 1;
*((_QWORD *)*(this + 180) + 1853) = 0;
}
return v5;
}
if ( v6 && *((_DWORD *)v6 + 312) == 1 )
{
EditorUI::onToggleTraceOut((__int64)this, (__int64)v6);
return 1;
}
*((_QWORD *)*(this + 180) + 1854) = 0;
return 1;
}