//
// sub_180050B80 from 0x180050b80 to 0x180050bbc (60 bytes)
//
// 2 xrefs:
// > sub_180033290 @ 0x1800336c9
// > sub_1800338B0 @ 0x180033a8a
//
// 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_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;
}