//
// sub_1008BBE50 from 0x1008bbe50 to 0x1008bbeee (158 bytes)
//
// 1 xrefs:
// > DeathTrackerPopup::ccTouchBegan @ 0x1008d8359
//
// 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 12:37:26 +0000
//
char __fastcall sub_1008BBE50(__int64 a1, __int64 a2)
{
double v2; // rax
__int64 v4; // rdi
__int64 v5; // xmm0_8
double v7[4]; // [rsp+0h] [rbp-20h] BYREF
v7[0] = v2;
v4 = *(_QWORD *)(a1 + 328);
if ( v4 != 0 && a2 != 0 )
{
cocos2d::CCNode::convertTouchToNodeSpace(v7, a1, a2);
v5 = 0;
if ( sub_100278940((float *)(a1 + 356), (float *)v7) )
{
LABEL_5:
ScrollableContentLayer::scrollTo(*(double *)&v5);
return 1;
}
if ( sub_100278940((float *)(a1 + 372), (float *)v7) )
{
v5 = 1315859240;
goto LABEL_5;
}
v4 = *(_QWORD *)(a1 + 328);
}
if ( v4 )
return ScrollableContentLayer::handleTouchBegan(v4, a2);
else
return 0;
}