//
// FMOD::Channel::setFrequency from 0x1800a0510 to 0x1800a05e7 (215 bytes)
//
// 4 xrefs:
// > FMOD_Channel_SetFrequency @ 0x1800c58f9
// > ??> @ 0x180194348
// > ??> @ 0x1801fae60
// > ??> @ 0x1801fae6c
//
// 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:53:52 +0000
//
__int64 __fastcall FMOD::Channel::setFrequency(__int64 a1)
{
int v1; // edi
__int64 v2; // rdx
unsigned int v3; // ebx
__int64 v5; // [rsp+30h] [rbp-138h] BYREF
__int64 v6; // [rsp+38h] [rbp-130h] BYREF
_BYTE v7[256]; // [rsp+40h] [rbp-128h] BYREF
v5 = 0;
v1 = a1;
v3 = FMOD::ChannelI::validate(a1, &v6, &v5);
if ( (v3 || (v3 = sub_1800CEE10(v6, v2)) != 0) && *((char *)off_1801AED20 + 16) < 0 )
{
sub_1800F2F20(v7, 256);
sub_1800B20E0(v3, 2, v1, (unsigned int)"Channel::setFrequency", (__int64)v7);
}
if ( v5 )
sub_180102320();
return v3;
}