//
// sub_180050B80 from 0x180050b80 to 0x180050bbc (60 bytes)
//
// 2 xrefs:
// > sub_180033290 @ 0x1800336c9
// > sub_1800338B0 @ 0x180033a8a
//
// 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_180050B80(__int64 a1, int a2)
{
if ( !*(_DWORD *)(a1 + 8) )
return *(_QWORD *)(a1 + 112);
if ( a2 < 0 )
{
if ( *(int *)(a1 + 128) >= 3 )
return *(_QWORD *)(a1 + 112) + 32LL * *(int *)(a1 + 136);
return *(_QWORD *)(a1 + 112);
}
if ( a2 < *(_DWORD *)(a1 + 64) )
return *(_QWORD *)(a1 + 112) + 32LL * a2;
else
return 0;
}