//
// EditorSoundsLayer::ccTouchEnded from 0x1004d8860 to 0x1004d88e8 (136 bytes)
//
// 2 xrefs:
// > sub_1004D88E8 @ 0x1004d88ec
// > ??> @ 0x10098a9e0
//
// 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 11:06:32 +0000
//
__int64 __fastcall EditorSoundsLayer::ccTouchEnded(__int64 a1, __int64 a2)
{
__int64 v4; // x0
char v5; // w22
__int64 v6; // x8
v4 = *(_QWORD *)(a1 + 1152);
if ( v4 )
{
v5 = *(_BYTE *)(v4 + 480);
sub_100525820(v4, a2);
if ( (*(_BYTE *)(a1 + 1168) & 1) != 0 )
{
if ( (v5 & 1) != 0 )
{
v6 = 920;
LABEL_7:
(*(void (**)(void))(**(_QWORD **)(a1 + 1160) + v6))();
*(_BYTE *)(a1 + 1168) = 0;
return FLAlertLayer::ccTouchEnded(a1, a2);
}
LABEL_6:
v6 = 912;
goto LABEL_7;
}
}
else if ( (*(_BYTE *)(a1 + 1168) & 1) != 0 )
{
goto LABEL_6;
}
return FLAlertLayer::ccTouchEnded(a1, a2);
}