//
// sub_180101100 from 0x180101100 to 0x180101154 (84 bytes)
//
// 7 xrefs:
// > sub_180087EC0 @ 0x180087f05
// > FMOD::System::getSpeakerModeChannels @ 0x1800af061
// > sub_1800EA910 @ 0x1800ea9d1
// > sub_1800EA910 @ 0x1800eaa5a
// > sub_1800EA910 @ 0x1800eaa94
// > sub_1800EB320 @ 0x1800eb500
// > sub_1800EB320 @ 0x1800eb5fa
//
// 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_180101100(__int64 a1, int a2, _DWORD *a3)
{
if ( !a3 )
return 31;
if ( !a2 )
{
*a3 = *(_DWORD *)(a1 + 1748);
return 0;
}
if ( !*(_BYTE *)(a1 + 8) )
return 67;
if ( (unsigned int)(a2 - 1) > 7 )
return 31;
*a3 = *(_DWORD *)(192LL * a2 + a1 + 70936);
return 0;
}