//
// DeathTrackerPopup::ccTouchEnded from 0x1004c0e80 to 0x1004c0f10 (144 bytes)
//
// 2 xrefs:
// > sub_1004C0F10 @ 0x1004c0f14
// > ??> @ 0x100984550
//
// 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:20 +0000
//
__int64 __fastcall DeathTrackerPopup::ccTouchEnded(__int64 a1, __int64 a2)
{
int v4; // w8
__int64 v5; // x0
__int64 v6; // x0
v4 = *(_DWORD *)(a1 + 728);
if ( !v4 )
{
LABEL_4:
v5 = *(_QWORD *)(a1 + 712);
if ( !v5 )
return FLAlertLayer::ccTouchEnded(a1, a2);
goto LABEL_10;
}
if ( v4 == 2 )
{
if ( *(_BYTE *)(a1 + 986) == 1 )
goto LABEL_4;
goto LABEL_7;
}
if ( (unsigned int)(v4 - 1) <= 1 )
{
LABEL_7:
v6 = *(_QWORD *)(a1 + 688);
if ( v6 )
sub_100525820(v6, a2);
return FLAlertLayer::ccTouchEnded(a1, a2);
}
v5 = *(_QWORD *)(a1 + 720);
if ( v5 )
LABEL_10:
sub_1004AF8E8(v5);
return FLAlertLayer::ccTouchEnded(a1, a2);
}