//
// sub_180050BC0 from 0x180050bc0 to 0x180050c07 (71 bytes)
//
// 1 xrefs:
// > sub_180033290 @ 0x1800336b2
//
// 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 10:53:17 +0000
//
__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;
}