//
// EditorUI::toggleTraceSelected from 0x481c0e to 0x481c5e (80 bytes)
//
// 2 xrefs:
// > EditorUI::handleEditorAction @ 0x6f1ef0
// > EditorUI::handleEditorAction @ 0x6f1f06
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:49:22 +0000
//
int __fastcall EditorUI::toggleTraceSelected(cocos2d::CCArray **this, int a2)
{
GameObject *v4; // r1
int v5; // r2
int v6; // r3
if ( cocos2d::CCArray::count(*(this + 167)) )
return 0;
v4 = *(this + 249);
if ( !a2 )
{
if ( v4 && *((_DWORD *)v4 + 271) == 1 )
{
EditorUI::onToggleTraceOut((int)this, (int)v4);
return 1;
}
v5 = (int)*(this + 236);
v6 = 12220;
LABEL_11:
*(_DWORD *)(v5 + v6) = 0;
return 1;
}
if ( !v4 )
{
v5 = (int)*(this + 236);
v6 = 12216;
goto LABEL_11;
}
EditorUI::onToggleTraceIn((int)this, v4);
return 1;
}