//
// sub_100442768 from 0x100442768 to 0x1004427bc (84 bytes)
//
// 8 xrefs:
// > FMOD::System::getSpeakerModeChannels @ 0x1004cb430
// > sub_10050DB44 @ 0x10050dd18
// > sub_10050DB44 @ 0x10050de20
// > sub_10050E84C @ 0x10050e8d8
// > sub_10050E84C @ 0x10050e908
// > sub_10050E974 @ 0x10050e98c
// > sub_10050EA14 @ 0x10050eb38
// > sub_1005103AC @ 0x100510420
//
// 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_100442768(__int64 a1, unsigned int a2, _DWORD *a3)
{
_DWORD *v3; // x8
if ( !a3 )
return 31;
if ( !a2 )
{
v3 = (_DWORD *)(a1 + 1748);
goto LABEL_8;
}
if ( *(_BYTE *)(a1 + 8) )
{
if ( a2 <= 8 )
{
v3 = (_DWORD *)(a1 + 192LL * (a2 - 1) + 71136);
LABEL_8:
*a3 = *v3;
return 0;
}
return 31;
}
return 67;
}