//
// sub_100533968 from 0x100533968 to 0x100533a14 (172 bytes)
//
// 1 xrefs:
// > sub_10051DCDC @ 0x10051dee0
//
// 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
//
__int64 __fastcall sub_100533968(__int64 a1)
{
__int64 v2; // x8
__int64 v3; // x0
int v4; // w0
if ( *(_DWORD *)(a1 + 492) == -1 )
goto LABEL_11;
v2 = *(_QWORD *)(a1 + 368);
if ( !v2 )
goto LABEL_11;
if ( !*(_QWORD *)(v2 + 488) )
goto LABEL_11;
v3 = sub_10054026C(a1);
if ( !v3 )
goto LABEL_11;
**(_QWORD **)(a1 + 256) = v3;
v4 = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(a1 + 368) + 488LL))(
a1,
*(_QWORD *)(*(_QWORD *)(a1 + 368) + 496LL));
switch ( v4 )
{
case 0:
if ( *(_QWORD *)(a1 + 520) )
{
*(_DWORD *)(a1 + 496) = 1;
return 1;
}
goto LABEL_11;
case 2:
sub_10052C058(a1, 2, 80);
return 0xFFFFFFFFLL;
case 3:
LABEL_11:
*(_DWORD *)(a1 + 496) = 0;
return 1;
}
return 1;
}