//
// EditorSoundsLayer::ccTouchEnded from 0xcd5aec to 0xcd5b90 (164 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'EditorSoundsLayer::ccTouchEnded @ 0xcd5b94
// > ??> @ 0x8ed68
// > ??> @ 0x15006e0
//
// 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 13:06:30 +0000
//
__int64 __fastcall EditorSoundsLayer::ccTouchEnded(__int64 a1, cocos2d::CCTouch *a2, __int64 a3)
{
__int64 v5; // x2
int v7; // w22
v5 = *(_QWORD *)(a1 + 1152);
if ( !v5 )
{
if ( !*(_BYTE *)(a1 + 1168) )
return FLAlertLayer::ccTouchEnded(a1, (__int64)a2);
goto LABEL_7;
}
v7 = *(unsigned __int8 *)(v5 + 480);
ScrollableContentLayer::handleTouchEnded(*(_QWORD *)(a1 + 1152), a2);
if ( *(_BYTE *)(a1 + 1168) )
{
if ( v7 )
{
(*(void (__fastcall **)(_QWORD, cocos2d::CCTouch *, __int64))(**(_QWORD **)(a1 + 1160) + 920LL))(
*(_QWORD *)(a1 + 1160),
a2,
a3);
*(_BYTE *)(a1 + 1168) = 0;
return FLAlertLayer::ccTouchEnded(a1, (__int64)a2);
}
LABEL_7:
(*(void (__fastcall **)(_QWORD, cocos2d::CCTouch *, __int64))(**(_QWORD **)(a1 + 1160) + 912LL))(
*(_QWORD *)(a1 + 1160),
a2,
a3);
*(_BYTE *)(a1 + 1168) = 0;
}
return FLAlertLayer::ccTouchEnded(a1, (__int64)a2);
}