//
// cocos2d::extension::CCControl::hasVisibleParents from 0xa99da8 to 0xa99e20 (120 bytes)
//
// 2 xrefs:
// > cocos2d::extension::CCControlButton::ccTouchBegan @ 0xa9b1f8
// > ??> @ 0x4f098
//
// 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 cocos2d::extension::CCControl::hasVisibleParents(cocos2d::extension::CCControl *a1)
{
cocos2d::CCNode *v1; // x19
v1 = a1->getParent(a1);
if ( !v1 )
return 1;
while ( v1->isVisible(v1) )
{
v1 = v1->getParent(v1);
if ( !v1 )
return 1;
}
return 0;
}