//
// GJUINode::highlightButton from 0x10004a7d0 to 0x10004a884 (180 bytes)
//
// 1 xrefs:
// > UILayer::processUINodeTouch @ 0x10004a490
//
// 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 v4; // x8
__int64 v5; // x0
bool m_modeB; // w8
bool v7; // zf
__int64 v8; // x8
__int64 v9; // x0
__int16 v10; // [xsp+8h] [xbp-18h] BYREF
char v11; // [xsp+Ah] [xbp-16h]
__int16 v12; // [xsp+Ch] [xbp-14h] BYREF
char v13; // [xsp+Eh] [xbp-12h]
if ( !a1->m_modeB )
{
v4 = 320;
if ( a2 == 3 )
v4 = 328;
v5 = *(__int64 *)((char *)&a1->__vftable + v4);
if ( v5 )
{
v11 = -106;
v10 = -26986;
(*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v5 + 944LL))(v5, &v10);
m_modeB = a1->m_modeB;
}
else
{
m_modeB = 0;
}
v7 = a2 == 2 && !m_modeB;
v8 = 328;
if ( !v7 )
v8 = 320;
v9 = *(__int64 *)((char *)&a1->__vftable + v8);
if ( v9 )
{
v13 = -1;
v12 = -1;
(*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v9 + 944LL))(v9, &v12);
}
}
}