//
// KeybindingsLayer::ccTouchEnded from 0x994fdc to 0x995080 (164 bytes)
//
// 4 xrefs:
// > `non-virtual thunk to'KeybindingsLayer::ccTouchEnded @ 0x995084
// > ??> @ 0xe7e98
// > ??> @ 0x1474d30
// > ??> @ 0x1503f60
//
// 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:58:01 +0000
//
__int64 __fastcall KeybindingsLayer::ccTouchEnded(__int64 a1, cocos2d::CCTouch *a2, __int64 a3)
{
__int64 v5; // x2
int v7; // w22
v5 = *(_QWORD *)(a1 + 1136);
if ( !v5 )
{
if ( !*(_BYTE *)(a1 + 1152) )
return FLAlertLayer::ccTouchEnded(a1, (__int64)a2);
goto LABEL_7;
}
v7 = *(unsigned __int8 *)(v5 + 480);
ScrollableContentLayer::handleTouchEnded(*(_QWORD *)(a1 + 1136), a2);
if ( *(_BYTE *)(a1 + 1152) )
{
if ( v7 )
{
(*(void (__fastcall **)(_QWORD, cocos2d::CCTouch *, __int64))(**(_QWORD **)(a1 + 1144) + 920LL))(
*(_QWORD *)(a1 + 1144),
a2,
a3);
*(_BYTE *)(a1 + 1152) = 0;
return FLAlertLayer::ccTouchEnded(a1, (__int64)a2);
}
LABEL_7:
(*(void (__fastcall **)(_QWORD, cocos2d::CCTouch *, __int64))(**(_QWORD **)(a1 + 1144) + 912LL))(
*(_QWORD *)(a1 + 1144),
a2,
a3);
*(_BYTE *)(a1 + 1152) = 0;
}
return FLAlertLayer::ccTouchEnded(a1, (__int64)a2);
}