//
// NewsPopup::FLAlert_Clicked from 0x1005199f0 to 0x100519a50 (96 bytes)
//
// 2 xrefs:
// > sub_100519A50 @ 0x100519a54
// > ??> @ 0x10099cff0
//
// 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::FLAlert_Clicked(__int64 result, __int64 a2, int a3)
{
__int64 v3; // x19
_QWORD *v4; // x20
__int64 v5; // x0
if ( a3 )
{
v3 = result;
if ( (*(char *)(result + 791) & 0x8000000000000000LL) != 0 )
{
if ( !*(_QWORD *)(result + 776) )
return result;
}
else if ( !*(_BYTE *)(result + 791) )
{
return result;
}
v4 = (_QWORD *)(result + 768);
v5 = cocos2d::CCApplication::sharedApplication(result, a2);
if ( *(char *)(v3 + 791) < 0 )
v4 = (_QWORD *)*v4;
return (*(__int64 (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v5 + 104LL))(v5, v4);
}
return result;
}