//
// sub_100545260 from 0x100545260 to 0x1005452d4 (116 bytes)
//
// 2 xrefs:
// > sub_10052300C @ 0x1005233f0
// > sub_10054026C @ 0x1005402a0
//
// 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_100545260(__int64 a1)
{
__int64 v1; // x8
__int64 v2; // x9
unsigned int v4; // w10
v2 = *(_QWORD *)(a1 + 24);
v1 = *(_QWORD *)(a1 + 32);
if ( v1 & 0x40 | v2 & 0x60 )
return 5;
if ( (v2 & 2) != 0 )
return 3;
if ( (v2 & 4) != 0 )
return 4;
if ( (v1 & 2) != 0 )
return 2;
if ( (v1 & 1) != 0 )
return 0;
if ( (v1 & 0x100) != 0 )
v4 = 6;
else
v4 = (((unsigned int)v1 >> 6) & 8) - 1;
if ( (v1 & 0x20) != 0 )
return 0xFFFFFFFFLL;
else
return v4;
}