//
// cocos2d::extension::CCControl::hasVisibleParents from 0x180004b50 to 0x180004ba4 (84 bytes)
//
// 2 xrefs:
// > ??> @ 0x18002fdf8
// > ??> @ 0x1800494bc
//
// 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
//
char __fastcall cocos2d::extension::CCControl::hasVisibleParents(cocos2d::extension::CCControl *this)
{
__int64 v1; // rbx
v1 = (*(__int64 (__fastcall **)(cocos2d::extension::CCControl *))(*(_QWORD *)this + 488LL))(this);
if ( !v1 )
return 1;
while ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v1 + 328LL))(v1) )
{
v1 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v1 + 488LL))(v1);
if ( !v1 )
return 1;
}
return 0;
}