//
// NewsPopup::ccTouchEnded from 0xb8a36c to 0xb8a3fc (144 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'NewsPopup::ccTouchEnded @ 0xb8a400
// > ??> @ 0xae4a8
// > ??> @ 0x14d61a0
//
// 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 13:02:33 +0000
//
__int64 __fastcall NewsPopup::ccTouchEnded(__int64 a1, cocos2d::CCTouch *a2)
{
__int64 v3; // x2
int v5; // w22
__int64 *v6; // x0
__int64 v7; // x3
v3 = *(_QWORD *)(a1 + 712);
if ( v3 )
{
v5 = *(unsigned __int8 *)(v3 + 480);
ScrollableContentLayer::handleTouchEnded(*(_QWORD *)(a1 + 712), a2);
}
else
{
v5 = 0;
}
if ( *(_BYTE *)(a1 + 728) )
{
v6 = *(__int64 **)(a1 + 720);
if ( v6 )
{
v7 = *v6;
if ( v5 )
(*(void (**)(void))(v7 + 920))();
else
(*(void (**)(void))(v7 + 912))();
*(_BYTE *)(a1 + 728) = 0;
}
}
return FLAlertLayer::ccTouchEnded(a1, (__int64)a2);
}