//
// GJUINode::toggleHighlight from 0x1004ca410 to 0x1004ca470 (96 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall GJUINode::toggleHighlight(GJUINode *a1, int a2, bool a3)
{
unsigned __int8 m_modeB; // al
__int64 v4; // rdi
__int16 v5; // [rsp-Ch] [rbp-Ch] BYREF
char v6; // [rsp-Ah] [rbp-Ah]
m_modeB = a1->m_modeB;
v4 = *((_QWORD *)&a1->m_firstSprite + ((m_modeB ^ 1u) & (a2 == 3)));
if ( v4 )
{
if ( (a3 & (unsigned __int8)~m_modeB) == 1 )
{
v6 = -106;
v5 = -26986;
}
else
{
v6 = -1;
v5 = -1;
}
(*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v4 + 944LL))(v4, &v5);
}
}