//
// UILayer::ccTouchEnded from 0x100052a90 to 0x100052b18 (136 bytes)
//
// 2 xrefs:
// > sub_100052B18 @ 0x100052b1c
// > ??> @ 0x1008bc290
//
// 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 10:57:44 +0000
//
__int64 __fastcall UILayer::ccTouchEnded(__int64 result, __int64 a2)
{
int v2; // w8
v2 = *(_DWORD *)(a2 + 56);
if ( (*(_BYTE *)(result + 596) & 1) != 0 )
{
if ( (*(_BYTE *)(result + 624) & 1) != 0 || *(_DWORD *)(result + 584) != v2 )
return UILayer::processUINodesTouch(result, 2, a2);
goto LABEL_6;
}
if ( *(_DWORD *)(result + 584) == v2 )
{
LABEL_6:
*(_DWORD *)(result + 584) = -1;
return GJBaseGameLayer::queueButton(*(_QWORD *)(result + 600), 1, 0, 0, *(double *)(a2 + 88));
}
if ( *(_DWORD *)(result + 588) == v2 )
{
*(_DWORD *)(result + 588) = -1;
return GJBaseGameLayer::queueButton(*(_QWORD *)(result + 600), 1, 0, 1, *(double *)(a2 + 88));
}
return result;
}