//
// CustomSFXRowMenu::ccTouchBegan from 0x14015ff50 to 0x140160066 (278 bytes)
//
// 2 xrefs:
// > ??> @ 0x140742540
// > ??> @ 0x140917cc0
//
// 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 11:27:24 +0000
//
bool __fastcall CustomSFXRowMenu::ccTouchBegan(
cocos2d::CCMenu *a1,
struct cocos2d::CCTouch *a2,
struct cocos2d::CCEvent *a3)
{
__int64 v6; // rbx
__int64 v7; // rdi
bool result; // al
__int64 Location; // rax
float *v10; // rbx
__int64 v11; // rax
_BYTE v12[56]; // [rsp+30h] [rbp-38h] BYREF
char v13; // [rsp+70h] [rbp+8h] BYREF
char v14; // [rsp+88h] [rbp+20h] BYREF
v6 = (*(__int64 (__fastcall **)(__int64))(*((_QWORD *)a1 - 40) + 504LL))((__int64)a1 - 320);
if ( !v6 )
return cocos2d::CCMenu::ccTouchBegan(a1, a2, a3);
while ( 1 )
{
v7 = _RTDynamicCast(v6, 0, &cocos2d::CCNode `RTTI Type Descriptor', &CCScrollLayerExt `RTTI Type Descriptor', 0);
if ( v7 )
break;
v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 504LL))(v6);
if ( !v6 )
return cocos2d::CCMenu::ccTouchBegan(a1, a2, a3);
}
Location = cocos2d::CCTouch::getLocation(a2, &v14);
cocos2d::CCNode::convertToNodeSpace(v7, &v13, Location);
v10 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 320LL))(v7);
v11 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 320LL))(v7);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v12, 0.0, 0.0, *v10, *(float *)(v11 + 4));
result = cocos2d::CCRect::containsPoint((cocos2d::CCRect *)v12, (const struct cocos2d::CCPoint *)&v13);
if ( result )
return cocos2d::CCMenu::ccTouchBegan(a1, a2, a3);
return result;
}