//
// cocos2d::extension::CCControl::hasVisibleParents from 0x1800045d0 to 0x180004624 (84 bytes)
//
// 2 xrefs:
// > ??> @ 0x180032408
// > ??> @ 0x18004b408
//
// This function is hookable on this platform (idp: pc, 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 12:15:35 +0000
//
char __fastcall cocos2d::extension::CCControl::hasVisibleParents(cocos2d::extension::CCControl *this)
{
__int64 v1; // rbx
v1 = (*(__int64 (__fastcall **)(cocos2d::extension::CCControl *))(*(_QWORD *)this + 504LL))(this);
if ( !v1 )
return 1;
while ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v1 + 344LL))(v1) )
{
v1 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v1 + 504LL))(v1);
if ( !v1 )
return 1;
}
return 0;
}