//
// KeybindingsLayer::ccTouchEnded from 0x1403d8840 to 0x1403d88da (154 bytes)
//
// 3 xrefs:
// > ??> @ 0x140786130
// > ??> @ 0x140793d68
// > ??> @ 0x140924af4
//
// 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:31:38 +0000
//
__int64 __fastcall KeybindingsLayer::ccTouchEnded(__int64 a1, __int64 a2, __int64 a3)
{
__int64 v5; // rcx
char v7; // si
__int64 *v8; // rcx
__int64 v9; // rax
v5 = *(_QWORD *)(a1 + 800);
if ( v5 && *(_BYTE *)(v5 + 480) )
{
v7 = 1;
}
else
{
v7 = 0;
if ( !v5 )
goto LABEL_6;
}
ScrollableContentLayer::handleTouchEnded(v5, a2);
LABEL_6:
if ( *(_BYTE *)(a1 + 816) )
{
v8 = (__int64 *)(*(_QWORD *)(a1 + 808) + 320LL);
v9 = *v8;
if ( v7 )
(*(void (__fastcall **)(__int64 *, __int64, __int64))(v9 + 32))(v8, a2, a3);
else
(*(void (__fastcall **)(__int64 *, __int64, __int64))(v9 + 24))(v8, a2, a3);
*(_BYTE *)(a1 + 816) = 0;
}
return FLAlertLayer::ccTouchEnded(a1, a2);
}