//
// FLAlertLayer::ccTouchCancelled from 0x3cb498 to 0x3cb4da (66 bytes)
//
// 15 xrefs:
// > `non-virtual thunk to'FLAlertLayer::ccTouchCancelled @ 0x3cb4de
// > KeybindingsLayer::ccTouchCancelled @ 0x589172
// > SetGroupIDLayer::ccTouchCancelled @ 0x63961e
// > NewsPopup::ccTouchCancelled @ 0x6c16c0
// > NewsPopup::ccTouchMoved @ 0x6c1710
// > ScrollViewPopup::ccTouchCancelled @ 0x6ca12c
// > ScrollViewPopup::ccTouchMoved @ 0x6ca15e
// > PagedListPopup::ccTouchCancelled @ 0x72ef8e
// > SFXFolderPickerPopup::ccTouchCancelled @ 0x72f0ee
// > ThreadViewPopup::ccTouchCancelled @ 0x745e22
// > DeathTrackerPopup::ccTouchCancelled @ 0x770b82
// > EditorSFXActionConfigLayer::ccTouchCancelled @ 0x77bd66
// > EditorSoundConfigInfoLayer::ccTouchCancelled @ 0x784a64
// > EditorSoundsLayer::ccTouchCancelled @ 0x78a18e
// > IDNameBrowserPopup::ccTouchCancelled @ 0x78f300
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:46:37 +0000
//
int __fastcall FLAlertLayer::ccTouchCancelled(int a1, int a2)
{
int v3; // r3
int result; // r0
v3 = *(_DWORD *)(a2 + 52);
if ( *(_DWORD *)(a1 + 500) == v3 )
{
result = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(a1 + 444) + 460))(*(_DWORD *)(a1 + 444));
*(_DWORD *)(a1 + 500) = -1;
}
else
{
result = *(_DWORD *)(a1 + 492);
if ( result == v3 )
{
result = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(a1 + 488) + 460))(*(_DWORD *)(a1 + 488));
*(_DWORD *)(a1 + 492) = -1;
}
}
return result;
}