//
// sub_1004AF848 from 0x1004af848 to 0x1004af8d8 (144 bytes)
//
// 1 xrefs:
// > DeathTrackerPopup::ccTouchBegan @ 0x1004c0dac
//
// 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 11:06:09 +0000
//
__int64 __fastcall sub_1004AF848(__int64 a1, __int64 a2)
{
__int64 result; // x0
bool v5; // w0
float v6; // s0
__int64 v7; // [xsp+8h] [xbp-18h] BYREF
result = *(_QWORD *)(a1 + 328);
if ( a2 && result )
{
cocos2d::CCNode::convertTouchToNodeSpace(a1, a2, &v7);
v5 = sub_1000265E4((float *)(a1 + 356), (float *)&v7);
v6 = 0.0;
if ( v5 )
{
LABEL_6:
ScrollableContentLayer::scrollTo(*(_QWORD *)(a1 + 328), v6);
return 1;
}
if ( sub_1000265E4((float *)(a1 + 372), (float *)&v7) )
{
v6 = 1000000000.0;
goto LABEL_6;
}
result = *(_QWORD *)(a1 + 328);
}
if ( result )
return sub_100525210(result, a2);
return result;
}