//
// GJUINode::toggleHighlight from 0x1404cf560 to 0x1404cf5ed (141 bytes)
//
// 5 xrefs:
// > UILayer::processUINodeTouch @ 0x1404ce65c
// > UILayer::processUINodeTouch @ 0x1404ce6f3
// > UILayer::processUINodeTouch @ 0x1404ce88c
// > UILayer::processUINodeTouch @ 0x1404ce8a2
// > ??> @ 0x1406dd5f8
//
// 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 GJUINode::toggleHighlight(GJUINode *a1, int a2, bool a3)
{
bool m_modeB; // r10
bool v4; // r9
cocos2d::CCSprite *m_firstSprite; // rcx
__int16 v6; // [rsp+30h] [rbp+8h] BYREF
char v7; // [rsp+32h] [rbp+Ah]
__int16 v8; // [rsp+38h] [rbp+10h] BYREF
char v9; // [rsp+3Ah] [rbp+12h]
m_modeB = a1->m_modeB;
v4 = 0;
if ( !m_modeB )
v4 = a3;
if ( a2 != 3 || m_modeB )
m_firstSprite = a1->m_firstSprite;
else
m_firstSprite = a1->m_secondSprite;
if ( m_firstSprite )
{
if ( v4 )
{
v8 = -26986;
v9 = -106;
m_firstSprite->setColor(&m_firstSprite->cocos2d::CCRGBAProtocol, (const cocos2d::ccColor3B *)&v8);
}
else
{
v6 = -1;
v7 = -1;
m_firstSprite->setColor(&m_firstSprite->cocos2d::CCRGBAProtocol, (const cocos2d::ccColor3B *)&v6);
}
}
}