//
// GJUINode::toggleHighlight from 0x6ef228 to 0x6ef2d0 (168 bytes)
//
// 9 xrefs:
// > GJUINode::resetState @ 0x6ef2f8
// > GJUINode::resetState @ 0x6ef310
// > GJUINode::touchEnded @ 0x6ef4f8
// > GJUINode::touchEnded @ 0x6ef528
// > GJUINode::highlightButton @ 0x6ef590
// > GJUINode::highlightButton @ 0x6ef5b4
// > UILayer::processUINodeTouch @ 0x6ef800
// > UILayer::processUINodeTouch @ 0x6ef830
// > ??> @ 0x70288
//
// 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:51:47 +0000
//
__int64 __fastcall GJUINode::toggleHighlight(GJUINode *this, int a2)
{
__int64 v2; // x0
void (*v3)(void); // x3
__int64 v5; // x3
__int64 v6; // x0
if ( *((_BYTE *)this + 381) )
{
v2 = *((_QWORD *)this + 40);
if ( v2 )
{
v3 = *(void (**)(void))(*(_QWORD *)v2 + 960LL);
LABEL_4:
v3();
}
}
else
{
v5 = *((_QWORD *)this + 40);
v6 = *((_QWORD *)this + 41);
if ( a2 != 3 )
v6 = v5;
if ( v6 )
{
v3 = *(void (**)(void))(*(_QWORD *)v6 + 960LL);
goto LABEL_4;
}
}
return _stack_chk_guard;
}