//
// FLAlertLayer::ccTouchEnded from 0x3cb44e to 0x3cb490 (66 bytes)
//
// 15 xrefs:
// > `non-virtual thunk to'FLAlertLayer::ccTouchEnded @ 0x3cb494
// > KeybindingsLayer::ccTouchEnded @ 0x58912e
// > SetGroupIDLayer::ccTouchEnded @ 0x6395da
// > CreateParticlePopup::ccTouchEnded @ 0x663bd2
// > NewsPopup::ccTouchEnded @ 0x6c167a
// > ScrollViewPopup::ccTouchEnded @ 0x6ca194
// > PagedListPopup::ccTouchEnded @ 0x72ef66
// > SFXFolderPickerPopup::ccTouchEnded @ 0x72f0c6
// > ThreadViewPopup::ccTouchEnded @ 0x7526f8
// > ThreadRequestPopup::ccTouchEnded @ 0x752796
// > DeathTrackerPopup::ccTouchEnded @ 0x770b2c
// > EditorSFXActionConfigLayer::ccTouchEnded @ 0x77bd22
// > EditorSoundConfigInfoLayer::ccTouchEnded @ 0x784a3c
// > EditorSoundsLayer::ccTouchEnded @ 0x78a14a
// > IDNameBrowserPopup::ccTouchEnded @ 0x78f2d8
//
// 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::ccTouchEnded(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) + 456))(*(_DWORD *)(a1 + 444));
*(_DWORD *)(a1 + 500) = -1;
}
else
{
result = *(_DWORD *)(a1 + 492);
if ( result == v3 )
{
result = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(a1 + 488) + 456))(*(_DWORD *)(a1 + 488));
*(_DWORD *)(a1 + 492) = -1;
}
}
return result;
}