//
// GJUINode::toggleHighlight from 0x30d270 to 0x30d2d6 (102 bytes)
//
// 8 xrefs:
// > GJUINode::resetState @ 0x30d2fa
// > GJUINode::resetState @ 0x30d308
// > GJUINode::touchEnded @ 0x30d7ac
// > GJUINode::touchEnded @ 0x30d7d0
// > GJUINode::highlightButton @ 0x30d7ea
// > GJUINode::highlightButton @ 0x30d7fe
// > UILayer::processUINodeTouch @ 0x30d854
// > UILayer::processUINodeTouch @ 0x30d87a
//
// 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)
{
cocos2d::CCSprite *m_firstSprite; // r0
void (__fastcall *setColor)(cocos2d::CCSprite *__hidden, const cocos2d::ccColor3B *); // r5
_DWORD v5[3]; // [sp+0h] [bp-Ch] BYREF
v5[0] = a1;
v5[1] = a2;
v5[2] = a3;
if ( a1->m_modeB )
{
*(_DWORD *)&a3 = 0;
LABEL_3:
m_firstSprite = a1->m_firstSprite;
goto LABEL_4;
}
if ( a2 != 3 )
goto LABEL_3;
m_firstSprite = a1->m_secondSprite;
LABEL_4:
if ( m_firstSprite )
{
setColor = m_firstSprite->setColor;
if ( a3 )
{
LOWORD(v5[0]) = -26986;
BYTE2(v5[0]) = -106;
}
else
{
*(_DWORD *)&a3 = 0xFFFF;
LOWORD(v5[0]) = -1;
BYTE2(v5[0]) = -1;
}
((void (__fastcall *)(cocos2d::CCSprite *, _DWORD *, bool))setColor)(m_firstSprite, v5, a3);
}
}