//
// DeathHistogram::handleTouchBegan from 0xc9931c to 0xc99408 (236 bytes)
//
// 3 xrefs:
// > DeathTrackerPopup::ccTouchBegan @ 0xca9a10
// > DeathTrackerPopup::ccTouchBegan @ 0xca9a38
// > ??> @ 0xd4e00
//
// 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:05:55 +0000
//
bool __fastcall DeathHistogram::handleTouchBegan(DeathHistogram *this, cocos2d::CCTouch *a2)
{
ScrollableContentLayer *v4; // x3
_BOOL4 v5; // w19
__int64 v7; // [xsp+40h] [xbp+40h] BYREF
v4 = *((ScrollableContentLayer **)this + 41);
v5 = a2 != nullptr && v4 != nullptr;
if ( a2 != nullptr && v4 != nullptr )
{
cocos2d::CCNode::convertTouchToNodeSpace(&v7, this, a2);
if ( (unsigned __int8)cocos2d::CCRect::containsPoint(
(DeathHistogram *)((char *)this + 356),
(const cocos2d::CCPoint *)&v7) )
{
ScrollableContentLayer::scrollTo(*((ScrollableContentLayer **)this + 41), 0.0);
return v5;
}
if ( (unsigned __int8)cocos2d::CCRect::containsPoint(
(DeathHistogram *)((char *)this + 372),
(const cocos2d::CCPoint *)&v7) )
{
ScrollableContentLayer::scrollTo(*((ScrollableContentLayer **)this + 41), 1000000000.0);
return v5;
}
v4 = *((ScrollableContentLayer **)this + 41);
}
if ( v4 )
return ScrollableContentLayer::handleTouchBegan(v4, a2);
else
return 0;
}