//
// sub_B489C from 0xb489c to 0xb4904 (104 bytes)
//
// 1 xrefs:
// > sub_B5744 @ 0xb5748
//
// 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_B489C(__int64 a1, int a2, int a3)
{
if ( a2 )
return 31;
if ( a3 == -1 )
{
*(_WORD *)(a1 + 3561) = 257;
return 0;
}
else if ( a3 == -2 )
{
*(_BYTE *)(a1 + 3562) = 1;
return 0;
}
else
{
if ( a3 == -3 )
*(_BYTE *)(a1 + 3561) = 1;
else
*(_DWORD *)(a1 + 3692) = a3;
return 0;
}
}