//
// cocos2d::extension::CCControl::hasVisibleParents from 0x5a0c6a to 0x5a0c92 (40 bytes)
//
// 1 xrefs:
// > cocos2d::extension::CCControlButton::ccTouchBegan @ 0x5a1942
//
// 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)
{
int (*i)(void); // r3
int v2; // r0
int v3; // r4
int v4; // r0
for ( i = (int (*)(void))a1->getParent; ; i = *(int (**)(void))(*(_DWORD *)v3 + 248) )
{
v2 = i();
v3 = v2;
if ( !v2 )
break;
v4 = (*(int (__fastcall **)(int))(*(_DWORD *)v2 + 168))(v2);
if ( !v4 )
return v4;
}
LOBYTE(v4) = 1;
return v4;
}