//
// UIOptionsLayer::ccTouchEnded from 0x1402a3f80 to 0x1402a3ff7 (119 bytes)
//
// 1 xrefs:
// > ??> @ 0x140576790
//
// 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 UIOptionsLayer::ccTouchEnded(UIOptionsLayer *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3)
{
int m_nId; // r10d
int v4; // r9d
int i; // r8d
_DWORD *v6; // rdx
m_nId = a2->m_nId;
v4 = 1;
if ( LOBYTE(a1->m_controlConnected) )
v4 = 4;
for ( i = 0; i < v4; ++i )
{
v6 = nullptr;
if ( i )
{
switch ( i )
{
case 1:
v6 = a1->SetupTriggerPopup::TextInputDelegate::__vftable;
break;
case 2:
v6 = a1->SetupTriggerPopup::ConfigureValuePopupDelegate::__vftable;
break;
case 3:
v6 = a1->SetupTriggerPopup::SliderDelegate::__vftable;
break;
}
}
else
{
v6 = *(_DWORD **)&a1->m_joystickConnected;
}
if ( v6[88] == m_nId )
v6[88] = -1;
}
}