//
// GJUINode::touchEnded from 0x140674460 to 0x14067451f (191 bytes)
//
// 4 xrefs:
// > UILayer::processUINodeTouch @ 0x14067389e
// > UILayer::processUINodeTouch @ 0x140673b03
// > UILayer::processUINodeTouch @ 0x140673b18
// > ??> @ 0x14093245c
//
// This function is hookable on this platform (idp: pc, 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 11:35:55 +0000
//
__int64 __fastcall GJUINode::touchEnded(__int64 a1)
{
__int64 v2; // rcx
__int64 result; // rax
__int64 v4; // rcx
__int16 v5; // [rsp+30h] [rbp+8h] BYREF
char v6; // [rsp+32h] [rbp+Ah]
*(_DWORD *)(a1 + 352) = -1;
v2 = *(_QWORD *)(a1 + 320);
if ( v2 )
{
v5 = -1;
v6 = -1;
result = (**(__int64 (__fastcall ***)(__int64, __int16 *))(v2 + 320))(v2 + 320, &v5);
}
if ( *(_BYTE *)(a1 + 381) )
{
if ( *(_BYTE *)(a1 + 382) )
{
result = (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 320) + 336LL))(*(_QWORD *)(a1 + 320), 0);
*(_DWORD *)(a1 + 388) = 0;
return result;
}
}
else
{
v4 = *(_QWORD *)(a1 + 328);
if ( v4 )
{
v5 = -1;
v6 = -1;
result = (**(__int64 (__fastcall ***)(__int64, __int16 *))(v4 + 320))(v4 + 320, &v5);
}
}
*(_DWORD *)(a1 + 388) = 0;
return result;
}