//
// CustomSFXRowMenu::ccTouchBegan from 0x6a5e20 to 0x6a5ece (174 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'CustomSFXRowMenu::ccTouchBegan @ 0x6a5ee0
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:56:30 +0000
//
int __fastcall CustomSFXRowMenu::ccTouchBegan(int a1, int a2, int a3)
{
int (*i)(void); // r3
const void *v7; // r0
const void *v8; // r5
const cocos2d::CCPoint *v9; // r4
float v10; // r11
int v11; // r0
int result; // r0
_BYTE v13[8]; // [sp+Ch] [bp-20h] BYREF
_BYTE v14[16]; // [sp+14h] [bp-18h] BYREF
for ( i = *(int (**)(void))(*(_DWORD *)a1 + 256); ; i = *(int (**)(void))(*(_DWORD *)v8 + 256) )
{
v7 = (const void *)i();
v8 = v7;
if ( !v7 )
break;
v9 = (const cocos2d::CCPoint *)_dynamic_cast(
v7,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode,
(const struct __class_type_info *)&`typeinfo for'CCScrollLayerExt,
0);
if ( v9 )
{
cocos2d::CCTouch::getLocation((cocos2d::CCTouch *)v14);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v13, v9);
v10 = *(float *)(*(int (__fastcall **)(const cocos2d::CCPoint *))(*(_DWORD *)v9 + 164))(v9);
v11 = (*(int (__fastcall **)(const cocos2d::CCPoint *))(*(_DWORD *)v9 + 164))(v9);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v14, 0.0, 0.0, v10, *(float *)(v11 + 4));
result = cocos2d::CCRect::containsPoint((cocos2d::CCRect *)v14, (const cocos2d::CCPoint *)v13);
if ( !result )
return result;
return cocos2d::CCMenu::ccTouchBegan(a1, a2, a3);
}
}
return cocos2d::CCMenu::ccTouchBegan(a1, a2, a3);
}