//
// cocos2d::extension::CCControl::hasVisibleParents from 0x7a698e to 0x7a69b6 (40 bytes)
//
// 1 xrefs:
// > cocos2d::extension::CCControlButton::ccTouchBegan @ 0x7a74f6
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:59:58 +0000
//
int __fastcall cocos2d::extension::CCControl::hasVisibleParents(cocos2d::extension::CCControl *this)
{
int (*i)(void); // r3
int v2; // r0
int v3; // r4
int result; // r0
for ( i = *(int (**)(void))(*(_DWORD *)this + 256); ; i = *(int (**)(void))(*(_DWORD *)v3 + 256) )
{
v2 = i();
v3 = v2;
if ( !v2 )
break;
result = (*(int (__fastcall **)(int))(*(_DWORD *)v2 + 176))(v2);
if ( !result )
return result;
}
return 1;
}