//
// CustomSFXRowMenu::ccTouchBegan from 0x1006b5150 to 0x1006b524c (252 bytes)
//
// 2 xrefs:
// > sub_1006B5250 @ 0x1006b525c
// > ??> @ 0x100b8a160
//
// 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:35:26 +0000
//
__int64 __fastcall CustomSFXRowMenu::ccTouchBegan(__int64 a1, __int64 a2, __int64 a3)
{
__int64 v3; // rax
const void *v4; // r12
void *v5; // rax
__int64 v6; // r14
__int64 v7; // rax
double v9; // [rsp+8h] [rbp-58h] BYREF
unsigned int v10[4]; // [rsp+10h] [rbp-50h] BYREF
__int64 v11; // [rsp+20h] [rbp-40h]
__int64 v12; // [rsp+28h] [rbp-38h]
unsigned int v13; // [rsp+34h] [rbp-2Ch]
v11 = a3;
v12 = a2;
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 512LL))(a1);
if ( !v3 )
return cocos2d::CCMenu::ccTouchBegan(a1);
v4 = (const void *)v3;
while ( 1 )
{
v5 = __dynamic_cast(
v4,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode,
(const struct __class_type_info *)&`typeinfo for'CCScrollLayerExt,
0);
if ( v5 )
break;
v4 = (const void *)(*(__int64 (__fastcall **)(const void *))(*(_QWORD *)v4 + 512LL))(v4);
if ( !v4 )
return cocos2d::CCMenu::ccTouchBegan(a1);
}
v6 = (__int64)v5;
cocos2d::CCTouch::getLocation((__int64)v10, v12);
cocos2d::CCNode::convertToNodeSpace(&v9, v6, v10);
v13 = *(_DWORD *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 328LL))(v6);
v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 328LL))(v6);
sub_100278270((__int64)v10, 0.0, 0.0, (__m128)v13, (__m128)*(unsigned int *)(v7 + 4));
if ( !sub_100278940((float *)v10, (float *)&v9) )
return 0;
else
return cocos2d::CCMenu::ccTouchBegan(a1);
}