//
// DeathTrackerPopup::ccTouchEnded from 0xca9afc to 0xca9ba4 (168 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'DeathTrackerPopup::ccTouchEnded @ 0xca9ba8
// > ??> @ 0x9bd28
// > ??> @ 0x14f8e00
//
// 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:04 +0000
//
__int64 __fastcall DeathTrackerPopup::ccTouchEnded(__int64 a1, cocos2d::CCTouch *a2)
{
int v4; // w0
DeathHistogram *v5; // x0
DeathHistogram *v6; // x0
__int64 v8; // x0
v4 = *(_DWORD *)(a1 + 728);
if ( v4 )
{
if ( v4 != 2 )
{
if ( (unsigned int)(v4 - 1) > 1 )
{
v5 = *(DeathHistogram **)(a1 + 720);
if ( v5 )
DeathHistogram::handleTouchEnded(v5, a2);
return FLAlertLayer::ccTouchEnded(a1, (__int64)a2);
}
LABEL_11:
v8 = *(_QWORD *)(a1 + 688);
if ( v8 )
ScrollableContentLayer::handleTouchEnded(v8, a2);
return FLAlertLayer::ccTouchEnded(a1, (__int64)a2);
}
if ( !*(_BYTE *)(a1 + 986) )
goto LABEL_11;
}
v6 = *(DeathHistogram **)(a1 + 712);
if ( v6 )
{
DeathHistogram::handleTouchEnded(v6, a2);
return FLAlertLayer::ccTouchEnded(a1, (__int64)a2);
}
return FLAlertLayer::ccTouchEnded(a1, (__int64)a2);
}