//
// GJUINode::highlightButton from 0x1004ca4e0 to 0x1004ca57b (155 bytes)
//
// 1 xrefs:
// > UILayer::processUINodeTouch @ 0x1004ca26f
//
// 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::highlightButton(GJUINode *a1, int a2)
{
__int64 v2; // rax
bool m_modeB; // 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 ( !a1->m_modeB )
{
v2 = *((_QWORD *)&a1->m_firstSprite + (a2 == 3));
if ( v2 )
{
v8 = -106;
v7 = -26986;
(*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v2 + 944LL))(v2, &v7);
m_modeB = a1->m_modeB;
}
else
{
m_modeB = 0;
}
v4 = *((_QWORD *)&a1->m_firstSprite + ((a2 == 2) & (unsigned __int8)!m_modeB));
if ( v4 )
{
v6 = -1;
v5 = -1;
(*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v4 + 944LL))(v4, &v5);
}
}
}