//
// cocos2d::extension::CCControl::hasVisibleParents from 0xd0bac8 to 0xd0bb40 (120 bytes)
//
// 2 xrefs:
// > cocos2d::extension::CCControlButton::ccTouchBegan @ 0xd0cdd0
// > ??> @ 0x6e830
//
// This function is hookable on this platform (idp: arm, 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 13:06:59 +0000
//
__int64 __fastcall cocos2d::extension::CCControl::hasVisibleParents(cocos2d::extension::CCControl *this)
{
__int64 v1; // x19
v1 = (*(__int64 (__fastcall **)(cocos2d::extension::CCControl *))(*(_QWORD *)this + 512LL))(this);
if ( !v1 )
return 1;
while ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v1 + 352LL))(v1) )
{
v1 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v1 + 512LL))(v1);
if ( !v1 )
return 1;
}
return 0;
}