//
// DeathTrackerPopup::ccTouchBegan from 0xca9888 to 0xca9a44 (444 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'DeathTrackerPopup::ccTouchBegan @ 0xca9a48
// > ??> @ 0xda830
// > ??> @ 0x14f8df0
//
// 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:06:04 +0000
//
__int64 __fastcall DeathTrackerPopup::ccTouchBegan(__int64 a1, cocos2d::CCTouch *this, __int64 a3)
{
int v6; // w0
__int64 v7; // x22
int v8; // w25
__int64 v10; // x22
int v11; // w27
__int64 v12; // [xsp+60h] [xbp+60h] BYREF
float v13; // [xsp+68h] [xbp+68h] BYREF
float v14; // [xsp+6Ch] [xbp+6Ch]
__int64 v15; // [xsp+70h] [xbp+70h] BYREF
_BYTE v16[16]; // [xsp+78h] [xbp+78h] BYREF
cocos2d::CCTouch::getLocation(&v12, this);
v6 = *(_DWORD *)(a1 + 728);
switch ( v6 )
{
case 0:
LABEL_9:
v10 = *(_QWORD *)(a1 + 712);
v11 = 1;
if ( !v10 )
goto LABEL_14;
goto LABEL_10;
case 2:
if ( !*(_BYTE *)(a1 + 986) )
goto LABEL_4;
goto LABEL_9;
case 1:
LABEL_4:
v7 = *(_QWORD *)(a1 + 688);
if ( v7 )
{
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v13, (const cocos2d::CCSize *)(v7 + 424));
cocos2d::CCNode::convertToWorldSpace(&v15, (cocos2d::CCNode *)v7, (const cocos2d::CCPoint *)&unk_155F060);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v16, *(float *)&v15, *((float *)&v15 + 1), v13, v14);
if ( (unsigned __int8)cocos2d::CCRect::containsPoint((cocos2d::CCRect *)v16, (const cocos2d::CCPoint *)&v12) )
{
v8 = 1;
ScrollableContentLayer::handleTouchBegan(*(ScrollableContentLayer **)(a1 + 688), this);
return (unsigned __int8)FLAlertLayer::ccTouchBegan(a1, (__int64)this, a3) | (unsigned int)v8;
}
}
LABEL_14:
v8 = 0;
return (unsigned __int8)FLAlertLayer::ccTouchBegan(a1, (__int64)this, a3) | (unsigned int)v8;
}
v10 = *(_QWORD *)(a1 + 720);
v11 = 0;
if ( !v10 )
goto LABEL_14;
LABEL_10:
v8 = 0;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v13, (const cocos2d::CCSize *)(v10 + 316));
cocos2d::CCNode::convertToWorldSpace(&v15, (cocos2d::CCNode *)v10, (const cocos2d::CCPoint *)&unk_155F060);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v16, *(float *)&v15, *((float *)&v15 + 1), v13, v14);
if ( (unsigned __int8)cocos2d::CCRect::containsPoint((cocos2d::CCRect *)v16, (const cocos2d::CCPoint *)&v12) )
{
v8 = 1;
if ( v11 )
DeathHistogram::handleTouchBegan(*(DeathHistogram **)(a1 + 712), this);
else
DeathHistogram::handleTouchBegan(*(DeathHistogram **)(a1 + 720), this);
}
return (unsigned __int8)FLAlertLayer::ccTouchBegan(a1, (__int64)this, a3) | (unsigned int)v8;
}