//
// UILayer::ccTouchEnded from 0x10004a364 to 0x10004a3ec (136 bytes)
//
// 2 xrefs:
// > sub_10004A3EC @ 0x10004a3f0
// > ??> @ 0x10076faa8
//
// 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 UILayer::ccTouchEnded(UILayer *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3)
{
int m_nId; // w8
m_nId = a2->m_nId;
if ( a1->m_inPlatformer )
{
if ( a1->m_dualMode || a1->m_p1TouchId != m_nId )
{
UILayer::processUINodesTouch(a1, Ended, a2);
return;
}
goto LABEL_6;
}
if ( a1->m_p1TouchId == m_nId )
{
LABEL_6:
a1->m_p1TouchId = -1;
GJBaseGameLayer::queueButton(a1->m_gameLayer, 1, 0, 0, a2->m_timestamp);
return;
}
if ( a1->m_p2TouchId == m_nId )
{
a1->m_p2TouchId = -1;
GJBaseGameLayer::queueButton(a1->m_gameLayer, 1, 0, 1, a2->m_timestamp);
}
}