//
// ScrollingLayer::ccTouchBegan from 0x10024e778 to 0x10024e82c (180 bytes)
//
// 2 xrefs:
// > sub_10024E82C @ 0x10024e830
// > ??> @ 0x10090b890
//
// 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:01:30 +0000
//
__int64 __fastcall ScrollingLayer::ccTouchBegan(__int64 a1, __int64 a2)
{
__int64 result; // x0
__int64 v5; // x0
double v6; // [xsp+0h] [xbp-30h] BYREF
float32x2_t v7; // [xsp+8h] [xbp-28h] BYREF
float v8[4]; // [xsp+10h] [xbp-20h] BYREF
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 352LL))(a1);
if ( (_DWORD)result )
{
sub_10024E590(a1, v8);
cocos2d::CCTouch::getLocationInView(&v7, a2);
v5 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::convertToGL(v5, &v7, (float *)&v6);
sub_10002630C(&v7, &v6);
if ( *(_DWORD *)(a1 + 588) == -1 )
{
result = sub_1000265E4(v8, (float *)&v7);
if ( (_DWORD)result )
{
*(_DWORD *)(a1 + 588) = *(_DWORD *)(a2 + 56);
sub_10002630C((_QWORD *)(a1 + 560), (double *)&v7);
sub_10002630C((_QWORD *)(a1 + 568), (double *)(a1 + 560));
return 1;
}
}
else
{
return 0;
}
}
return result;
}