//
// GJUINode::toggleHighlight from 0x140674520 to 0x1406745ad (141 bytes)
//
// 3 xrefs:
// > UILayer::processUINodeTouch @ 0x1406736b1
// > UILayer::processUINodeTouch @ 0x140673743
// > ??> @ 0x140932468
//
// 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 11:35:55 +0000
//
__int64 __fastcall GJUINode::toggleHighlight(__int64 a1, int a2, unsigned __int8 a3)
{
char v3; // r10
unsigned __int8 v4; // r9
__int64 result; // rax
__int64 v6; // rcx
__int16 v7; // [rsp+30h] [rbp+8h] BYREF
char v8; // [rsp+32h] [rbp+Ah]
__int16 v9; // [rsp+38h] [rbp+10h] BYREF
char v10; // [rsp+3Ah] [rbp+12h]
v3 = *(_BYTE *)(a1 + 381);
v4 = 0;
result = a3;
if ( !v3 )
v4 = a3;
if ( a2 != 3 || v3 )
v6 = *(_QWORD *)(a1 + 320);
else
v6 = *(_QWORD *)(a1 + 328);
if ( v6 )
{
if ( v4 )
{
v9 = -26986;
v10 = -106;
return (**(__int64 (__fastcall ***)(__int64, __int16 *))(v6 + 320))(v6 + 320, &v9);
}
else
{
v7 = -1;
v8 = -1;
return (**(__int64 (__fastcall ***)(__int64, __int16 *))(v6 + 320))(v6 + 320, &v7);
}
}
return result;
}