//
// GJUINode::highlightButton from 0x1004c5b40 to 0x1004c5bdb (155 bytes)
//
// 1 xrefs:
// > UILayer::processUINodeTouch @ 0x1004c58cf
//
// 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
//
void __fastcall GJUINode::highlightButton(__int64 a1, int a2)
{
__int64 v2; // rax
char v3; // al
__int64 v4; // rdi
__int16 v5; // [rsp-20h] [rbp-20h] BYREF
char v6; // [rsp-1Eh] [rbp-1Eh]
__int16 v7; // [rsp-1Ch] [rbp-1Ch] BYREF
char v8; // [rsp-1Ah] [rbp-1Ah]
if ( !*(_BYTE *)(a1 + 381) )
{
v2 = *(_QWORD *)(a1 + 8LL * (a2 == 3) + 320);
if ( v2 )
{
v8 = -106;
v7 = -26986;
(*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v2 + 960LL))(v2, &v7);
v3 = *(_BYTE *)(a1 + 381);
}
else
{
v3 = 0;
}
v4 = *(_QWORD *)(a1 + 8LL * ((a2 == 2) & (unsigned __int8)(v3 ^ 1)) + 320);
if ( v4 )
{
v6 = -1;
v5 = -1;
(*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v4 + 960LL))(v4, &v5);
}
}
}