//
// sub_180050BC0 from 0x180050bc0 to 0x180050c07 (71 bytes)
//
// 1 xrefs:
// > sub_180033290 @ 0x1800336b2
//
// 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_180050BC0(__int64 a1, int a2)
{
if ( !*(_DWORD *)(a1 + 8) )
return *(_QWORD *)(a1 + 104);
if ( a2 < 0 )
{
if ( *(int *)(a1 + 128) >= 3 )
return *(_QWORD *)(a1 + 104) + 40LL * *(int *)(a1 + 136);
return *(_QWORD *)(a1 + 104);
}
if ( a2 < *(_DWORD *)(a1 + 64) )
return *(_QWORD *)(a1 + 104) + 40LL * a2;
else
return 0;
}