//
// UILayer::ccTouchEnded from 0x6efb84 to 0x6efc0c (136 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'UILayer::ccTouchEnded @ 0x6efc10
// > ??> @ 0xbd928
// > ??> @ 0x1427b80
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:51:47 +0000
//
__int64 __fastcall UILayer::ccTouchEnded(__int64 result, cocos2d::CCTouch *this)
{
int v3; // w1
v3 = *((_DWORD *)this + 14);
if ( *(_BYTE *)(result + 596) )
{
if ( *(_BYTE *)(result + 624) || v3 != *(_DWORD *)(result + 584) )
return UILayer::processUINodesTouch(result, 2, this);
goto LABEL_8;
}
if ( v3 == *(_DWORD *)(result + 584) )
{
LABEL_8:
*(_DWORD *)(result + 584) = -1;
return GJBaseGameLayer::queueButton(*(GJBaseGameLayer **)(result + 600), 1, 0, 0, *((double *)this + 11));
}
if ( v3 == *(_DWORD *)(result + 588) )
{
*(_DWORD *)(result + 588) = -1;
return GJBaseGameLayer::queueButton(*(GJBaseGameLayer **)(result + 600), 1, 0, 1, *((double *)this + 11));
}
return result;
}