//
// sub_5817A from 0x5817a to 0x58198 (30 bytes)
//
// 0 xrefs:
//
// 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
//
int __fastcall sub_5817A(int a1, _DWORD *a2)
{
int result; // r0
result = sub_BBC8C(*(_DWORD *)(a1 + 220));
if ( a2 )
*a2 -= *(_DWORD *)(a1 + 152);
return result;
}