//
// NewsPopup::ccTouchEnded from 0x100519e90 to 0x100519f20 (144 bytes)
//
// 2 xrefs:
// > sub_100519F20 @ 0x100519f24
// > ??> @ 0x10099ce40
//
// 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:07:08 +0000
//
__int64 __fastcall NewsPopup::ccTouchEnded(__int64 a1, __int64 a2)
{
__int64 v4; // x0
int v5; // w22
__int64 v6; // x8
_QWORD *v7; // x0
v4 = *(_QWORD *)(a1 + 712);
if ( v4 )
{
v5 = *(unsigned __int8 *)(v4 + 480);
sub_100525820(v4, a2);
v6 = 912;
if ( v5 )
v6 = 920;
}
else
{
v6 = 912;
}
if ( *(_BYTE *)(a1 + 728) == 1 )
{
v7 = *(_QWORD **)(a1 + 720);
if ( v7 )
{
(*(void (**)(void))(*v7 + v6))();
*(_BYTE *)(a1 + 728) = 0;
}
}
return FLAlertLayer::ccTouchEnded(a1, a2);
}