//
// sub_1003406B0 from 0x1003406b0 to 0x100340787 (215 bytes)
//
// 2 xrefs:
// > ??> @ 0x100b1e0b0
// > ??> @ 0x100b527b8
//
// 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:28:43 +0000
//
char __fastcall sub_1003406B0(__int64 a1)
{
__int64 v1; // rbx
__int64 v2; // r15
v1 = a1 - 320;
if ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)(a1 - 320) + 1352LL))(a1 - 320)
&& (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v1 + 1272LL))(v1)
&& (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v1 + 352LL))(v1)
&& (unsigned __int8)cocos2d::extension::CCControl::hasVisibleParents(v1) )
{
v2 = *(_QWORD *)(a1 - 104);
if ( !v2 )
{
LABEL_8:
*(_BYTE *)(a1 + 204) = 1;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)(a1 - 320) + 1296LL))(v1, 1);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)(a1 - 320) + 1320LL))(v1, 1);
return 1;
}
while ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v2 + 352LL))(v2) )
{
v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 512LL))(v2);
if ( !v2 )
goto LABEL_8;
}
}
return 0;
}