//
// sub_B8618 from 0xb8618 to 0xb8670 (88 bytes)
//
// 1 xrefs:
// > sub_B8738 @ 0xb873c
//
// 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_B8618(__int64 a1, int a2, int *a3, __int64 a4)
{
int v5; // w8
if ( a2 )
return 31;
v5 = *(_DWORD *)(a1 + 572);
if ( v5 >= 6 )
v5 = 6;
*a3 = v5 & ~(v5 >> 31);
if ( a4 )
sub_E3C94(a4, FMOD::FMOD_dsposcillator_oscillatortypes[*(int *)(a1 + 544)], 32);
return 0;
}