//
// UILayer::ccTouchEnded from 0x3fd2e0 to 0x3fd356 (118 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'UILayer::ccTouchEnded @ 0x3fd35a
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:47:21 +0000
//
int __fastcall UILayer::ccTouchEnded(int result, int a2)
{
int v3; // r1
v3 = *(_DWORD *)(a2 + 52);
if ( *(_BYTE *)(result + 476) )
{
if ( !*(_BYTE *)(result + 492) && *(_DWORD *)(result + 464) == v3 )
goto LABEL_3;
return UILayer::processUINodesTouch(result, 2, a2);
}
else
{
if ( *(_DWORD *)(result + 464) == v3 )
{
LABEL_3:
*(_DWORD *)(result + 464) = -1;
return GJBaseGameLayer::queueButton(*(GJBaseGameLayer **)(result + 480), 1, 0, 0, *(double *)(a2 + 88));
}
if ( *(_DWORD *)(result + 468) == v3 )
{
*(_DWORD *)(result + 468) = -1;
return GJBaseGameLayer::queueButton(*(GJBaseGameLayer **)(result + 480), 1, 0, 1, *(double *)(a2 + 88));
}
}
return result;
}