//
// sub_14004A7E0 from 0x14004a7e0 to 0x14004a87d (157 bytes)
//
// 4 xrefs:
// > CCScrollLayerExt::ccTouchBegan @ 0x14004b44a
// > TableView::ccTouchBegan @ 0x140088256
// > DpadMenu::ccTouchBegan @ 0x1401f318f
// > ??> @ 0x14090fd70
//
// 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:25:32 +0000
//
char __fastcall sub_14004A7E0(__int64 a1, __int64 a2)
{
__int64 v3; // rbx
__int64 v4; // rax
if ( !a1 )
return 0;
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 504LL))(a1);
if ( !v3 )
return 0;
while ( 1 )
{
v4 = _RTDynamicCast(
v3,
0,
&cocos2d::CCNode `RTTI Type Descriptor',
&cocos2d::CCTouchClipper `RTTI Type Descriptor',
0);
if ( v4 )
{
if ( !(*(unsigned __int8 (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 8LL))(v4, a2) )
break;
}
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 504LL))(v3);
if ( !v3 )
return 0;
}
return 1;
}