//
// DeathTrackerPopup::ccTouchCancelled from 0x14010ec00 to 0x14010ecb9 (185 bytes)
//
// 2 xrefs:
// > ??> @ 0x14072f488
// > ??> @ 0x140915bb4
//
// This function is hookable on this platform (idp: pc, 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:26:48 +0000
//
__int64 __fastcall DeathTrackerPopup::ccTouchCancelled(__int64 a1, __int64 a2)
{
int v2; // eax
__int64 v5; // rax
__int64 v6; // rcx
__int64 v8; // rcx
v2 = *(_DWORD *)(a1 + 408);
if ( !v2 )
goto LABEL_4;
if ( v2 == 2 )
{
if ( *(_BYTE *)(a1 + 666) )
{
LABEL_4:
v5 = *(_QWORD *)(a1 + 392);
LABEL_5:
if ( v5 )
{
v6 = *(_QWORD *)(v5 + 328);
if ( v6 )
ScrollableContentLayer::handleTouchEnded(v6, a2);
}
return FLAlertLayer::ccTouchCancelled(a1, a2);
}
}
else if ( (unsigned int)(v2 - 1) > 1 )
{
v5 = *(_QWORD *)(a1 + 400);
goto LABEL_5;
}
v8 = *(_QWORD *)(a1 + 368);
if ( v8 && *(_DWORD *)(a2 + 56) == *(_DWORD *)(v8 + 440) )
{
*(_DWORD *)(v8 + 440) = -1;
*(_QWORD *)(v8 + 472) = 0;
*(_WORD *)(v8 + 480) = 0;
*(_BYTE *)(v8 + 508) = 0;
cocos2d::CCNode::unscheduleUpdate((cocos2d::CCNode *)v8);
}
return FLAlertLayer::ccTouchCancelled(a1, a2);
}