//
// GJUINode::toggleHighlight from 0x3fccf8 to 0x3fcd5e (102 bytes)
//
// 8 xrefs:
// > GJUINode::resetState @ 0x3fcd82
// > GJUINode::resetState @ 0x3fcd90
// > GJUINode::touchEnded @ 0x3fceb8
// > GJUINode::touchEnded @ 0x3fcedc
// > GJUINode::highlightButton @ 0x3fcef6
// > GJUINode::highlightButton @ 0x3fcf0a
// > UILayer::processUINodeTouch @ 0x3fcf82
// > UILayer::processUINodeTouch @ 0x3fcfa8
//
// 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:47:21 +0000
//
int __fastcall GJUINode::toggleHighlight(GJUINode *this, int a2, int a3)
{
int result; // r0
int (__fastcall *v4)(int, _DWORD *, int); // r5
_DWORD v5[3]; // [sp+0h] [bp-Ch] BYREF
v5[0] = this;
v5[1] = a2;
v5[2] = a3;
if ( *((_BYTE *)this + 317) )
{
a3 = 0;
LABEL_3:
result = *((_DWORD *)this + 66);
goto LABEL_4;
}
if ( a2 != 3 )
goto LABEL_3;
result = *((_DWORD *)this + 67);
LABEL_4:
if ( result )
{
v4 = *(int (__fastcall **)(int, _DWORD *, int))(*(_DWORD *)result + 480);
if ( a3 )
{
LOWORD(v5[0]) = -26986;
BYTE2(v5[0]) = -106;
}
else
{
a3 = 0xFFFF;
LOWORD(v5[0]) = -1;
BYTE2(v5[0]) = -1;
}
return v4(result, v5, a3);
}
return result;
}