//
// GJUINode::toggleHighlight from 0x1004c5a70 to 0x1004c5ad0 (96 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 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:31:07 +0000
//
__int64 __fastcall GJUINode::toggleHighlight(__int64 a1, int a2, unsigned __int8 a3)
{
__int64 result; // rax
__int64 v4; // rdi
__int16 v5; // [rsp-Ch] [rbp-Ch] BYREF
char v6; // [rsp-Ah] [rbp-Ah]
result = *(unsigned __int8 *)(a1 + 381);
v4 = *(_QWORD *)(a1 + 8LL * ((*(_BYTE *)(a1 + 381) ^ 1u) & (a2 == 3)) + 320);
if ( v4 )
{
if ( (a3 & (unsigned __int8)~(_BYTE)result) == 1 )
{
v6 = -106;
v5 = -26986;
}
else
{
v6 = -1;
v5 = -1;
}
return (*(__int64 (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v4 + 960LL))(v4, &v5);
}
return result;
}