//
// 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 (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:54:29 +0000
//
__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;
}