//
// GJUINode::touchEnded from 0x1004ca580 to 0x1004ca610 (144 bytes)
//
// 1 xrefs:
// > UILayer::processUINodeTouch @ 0x1004ca23c
//
// 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::touchEnded(GJUINode *a1)
{
__int64 v1; // rax
cocos2d::CCSprite *m_firstSprite; // rdi
cocos2d::CCSprite *m_secondSprite; // rdi
_QWORD v5[2]; // [rsp+0h] [rbp-10h] BYREF
v5[0] = v1;
a1->m_touchID = -1;
m_firstSprite = a1->m_firstSprite;
if ( m_firstSprite )
{
BYTE6(v5[0]) = -1;
WORD2(v5[0]) = -1;
((void (__fastcall *)(cocos2d::CCSprite *, char *))m_firstSprite->setColor)(m_firstSprite, (char *)v5 + 4);
}
if ( a1->m_modeB )
{
if ( a1->m_snap )
((void (__fastcall *)(cocos2d::CCSprite *, _QWORD))a1->m_firstSprite->setVisible)(a1->m_firstSprite, 0);
}
else
{
m_secondSprite = a1->m_secondSprite;
if ( m_secondSprite )
{
BYTE2(v5[0]) = -1;
LOWORD(v5[0]) = -1;
((void (__fastcall *)(cocos2d::CCSprite *, _QWORD *))m_secondSprite->setColor)(m_secondSprite, v5);
}
}
a1->m_currentButton = 0;
}