//
// sub_100354FA0 from 0x100354fa0 to 0x100355077 (215 bytes)
//
// 2 xrefs:
// > ??> @ 0x100916240
// > ??> @ 0x1009479a8
//
// 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 sub_100354FA0(__int64 a1)
{
cocos2d::extension::CCControl *v1; // rbx
__int64 v2; // r15
v1 = (cocos2d::extension::CCControl *)(a1 - 320);
if ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)(a1 - 320) + 1336LL))(a1 - 320)
&& ((unsigned __int8 (__fastcall *)(cocos2d::extension::CCControl *))v1->isEnabled)(v1)
&& ((unsigned __int8 (__fastcall *)(cocos2d::extension::CCControl *))v1->isVisible)(v1)
&& cocos2d::extension::CCControl::hasVisibleParents(v1) )
{
v2 = *(_QWORD *)(a1 - 104);
if ( !v2 )
{
LABEL_8:
*(_BYTE *)(a1 + 204) = 1;
(*(void (__fastcall **)(cocos2d::extension::CCControl *, __int64))(*(_QWORD *)(a1 - 320) + 1280LL))(v1, 1);
(*(void (__fastcall **)(cocos2d::extension::CCControl *, __int64))(*(_QWORD *)(a1 - 320) + 1304LL))(v1, 1);
return 1;
}
while ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v2 + 336LL))(v2) )
{
v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 496LL))(v2);
if ( !v2 )
goto LABEL_8;
}
}
return 0;
}