//
// LevelBadgePopup::ccTouchBegan from 0x1400e6890 to 0x1400e6925 (149 bytes)
//
// 2 xrefs:
// > ??> @ 0x14072d430
// > ??> @ 0x140914cd8
//
// This function is hookable on this platform (idp: pc, 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:26:33 +0000
//
char __fastcall LevelBadgePopup::ccTouchBegan(__int64 a1, __int64 a2, __int64 a3)
{
const struct cocos2d::CCPoint *Location; // rax
__int64 v7; // rdx
char v9; // [rsp+30h] [rbp+8h] BYREF
Location = (const struct cocos2d::CCPoint *)cocos2d::CCTouch::getLocation(a2, &v9);
if ( cocos2d::CCRect::containsPoint((cocos2d::CCRect *)(a1 + 360), Location) )
return FLAlertLayer::ccTouchBegan(a1, a2, a3);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(a1 - 320) + 992LL))(a1 - 320, 0);
LOBYTE(v7) = 1;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)(a1 - 320) + 520LL))(a1 - 320, v7);
return 1;
}