//
// sub_C7E34 from 0xc7e34 to 0xc7e90 (92 bytes)
//
// 12 xrefs:
// > sub_58A70 @ 0x58b44
// > sub_58D98 @ 0x58f3c
// > sub_595BC @ 0x596ac
// > sub_658D4 @ 0x659f4
// > sub_85D08 @ 0x85d5c
// > sub_91978 @ 0x91984
// > sub_93B20 @ 0x94248
// > sub_956EC @ 0x960c4
// > sub_9FE64 @ 0xa0c18
// > sub_A50C8 @ 0xa5fc4
// > FMOD::DSP::setChannelFormat @ 0xd3724
// > sub_D6DF4 @ 0xd6e94
//
// 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_C7E34(__int64 a1, __int64 a2, unsigned int a3, unsigned int a4)
{
__int16 v4; // w20
if ( a3 > 0x20 )
return 31;
v4 = a3;
if ( !a3 || a4 )
{
*(_DWORD *)(a1 + 196) = a4;
if ( !a3 )
{
if ( a4 )
v4 = sub_65A10(a4);
}
}
else
{
sub_6BA4C(a3);
}
*(_WORD *)(a1 + 280) = v4;
return 0;
}