//
// GJUINode::touchEnded from 0x1404cf4a0 to 0x1404cf55f (191 bytes)
//
// 4 xrefs:
// > UILayer::processUINodeTouch @ 0x1404ce854
// > UILayer::processUINodeTouch @ 0x1404cea67
// > UILayer::processUINodeTouch @ 0x1404cea7c
// > ??> @ 0x1406dd5ec
//
// 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::touchEnded(GJUINode *a1)
{
cocos2d::CCSprite *m_firstSprite; // rcx
cocos2d::CCSprite *m_secondSprite; // rcx
__int16 v4; // [rsp+30h] [rbp+8h] BYREF
char v5; // [rsp+32h] [rbp+Ah]
a1->m_touchID = -1;
m_firstSprite = a1->m_firstSprite;
if ( m_firstSprite )
{
v4 = -1;
v5 = -1;
m_firstSprite->setColor(&m_firstSprite->cocos2d::CCRGBAProtocol, (const cocos2d::ccColor3B *)&v4);
}
if ( a1->m_modeB )
{
if ( a1->m_snap )
{
a1->m_firstSprite->setVisible(a1->m_firstSprite, 0);
a1->m_currentButton = 0;
return;
}
}
else
{
m_secondSprite = a1->m_secondSprite;
if ( m_secondSprite )
{
v4 = -1;
v5 = -1;
m_secondSprite->setColor(&m_secondSprite->cocos2d::CCRGBAProtocol, (const cocos2d::ccColor3B *)&v4);
}
}
a1->m_currentButton = 0;
}