//
// cocos2d::extension::CCControl::hasVisibleParents from 0x100352730 to 0x100352784 (84 bytes)
//
// 2 xrefs:
// > cocos2d::extension::CCControlButton::ccTouchBegan @ 0x100354f22
// > sub_100354FA0 @ 0x100354ff3
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
bool __fastcall cocos2d::extension::CCControl::hasVisibleParents(cocos2d::extension::CCControl *a1)
{
__int64 v1; // rax
__int64 v2; // rbx
char v3; // r14
v1 = ((__int64 (__fastcall *)(cocos2d::extension::CCControl *))a1->getParent)(a1);
if ( !v1 )
return 1;
v2 = v1;
do
{
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 336LL))(v2);
if ( !v3 )
break;
v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 496LL))(v2);
}
while ( v2 );
return v3;
}