//
// cocos2d::ccTouchClippedByAncestor from 0x3dc6b0 to 0x3dc6f6 (70 bytes)
//
// 2 xrefs:
// > CCTextInputNode::ccTouchBegan @ 0x3e2616
// > CCTextInputNode::rightClick @ 0x3e2862
//
// 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:46:48 +0000
//
const void *__fastcall cocos2d::ccTouchClippedByAncestor(void *lpsrc, int a2)
{
const void *v3; // r4
int (*i)(void); // r3
const void *result; // r0
void *v6; // r0
v3 = lpsrc;
if ( !lpsrc )
goto LABEL_4;
for ( i = *(int (**)(void))(*(_DWORD *)lpsrc + 256); ; i = *(int (**)(void))(*(_DWORD *)v3 + 256) )
{
v3 = (const void *)i();
LABEL_4:
result = v3;
if ( !v3 )
break;
v6 = _dynamic_cast(
v3,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCTouchClipper,
-2);
if ( v6 && !(*(int (__fastcall **)(void *, int))(*(_DWORD *)v6 + 8))(v6, a2) )
return &dword_0 + 1;
}
return result;
}