//
// sub_10048489C from 0x10048489c to 0x10048491c (128 bytes)
//
// 296 xrefs:
// > FMOD::Channel::setPriority @ 0x10045508c
// > FMOD::Channel::getPriority @ 0x100455170
// > FMOD::Channel::setPosition @ 0x100455290
// > FMOD::Channel::getPosition @ 0x1004553c4
// > FMOD::Channel::setChannelGroup @ 0x1004554a4
// > FMOD::Channel::getChannelGroup @ 0x100455588
// > FMOD::Channel::setFrequency @ 0x100455664
// > FMOD::Channel::getFrequency @ 0x10045574c
// > FMOD::Channel::isVirtual @ 0x100455838
// > FMOD::Channel::getCurrentSound @ 0x10045591c
// > FMOD::Channel::getIndex @ 0x100455a00
// > FMOD::Channel::setLoopCount @ 0x100455ad8
// > FMOD::Channel::getLoopCount @ 0x100455bbc
// > FMOD::Channel::setLoopPoints @ 0x100455d44
// > FMOD::Channel::getLoopPoints @ 0x100455eec
// > FMOD::ChannelGroup::release @ 0x1004591c4
// > FMOD::ChannelGroup::addGroup @ 0x1004592ec
// > FMOD::ChannelGroup::getNumGroups @ 0x1004593cc
// > FMOD::ChannelGroup::getGroup @ 0x1004594ec
// > FMOD::ChannelGroup::getParentGroup @ 0x1004595cc
// > FMOD::ChannelGroup::getName @ 0x1004596ec
// > FMOD::ChannelGroup::getNumChannels @ 0x1004597cc
// > FMOD::ChannelGroup::getChannel @ 0x1004598ec
// > FMOD::DSP::release @ 0x1004849a4
// > FMOD::DSP::getSystemObject @ 0x100484a78
// > FMOD::DSP::addInput @ 0x100484bcc
// > FMOD::DSP::disconnectFrom @ 0x100484cfc
// > FMOD::DSP::disconnectAll @ 0x100484e24
// > FMOD::DSP::getNumInputs @ 0x100484f0c
// > FMOD::DSP::getNumOutputs @ 0x100484fec
// > FMOD::DSP::getInput @ 0x10048514c
// > FMOD::DSP::getOutput @ 0x1004852b8
// > FMOD::DSP::setActive @ 0x1004853a0
// > FMOD::DSP::getActive @ 0x100485464
// > FMOD::DSP::setBypass @ 0x10048556c
// > FMOD::DSP::getBypass @ 0x100485630
// > FMOD::DSP::setWetDryMix @ 0x1004857c0
// > FMOD::DSP::getWetDryMix @ 0x100485928
// > FMOD::DSP::setChannelFormat @ 0x100485a8c
// > FMOD::DSP::getChannelFormat @ 0x100485bf0
// > FMOD::DSP::getOutputChannelFormat @ 0x100485d1c
// > FMOD::DSP::reset @ 0x100485f1c
// > FMOD::DSP::setCallback @ 0x100485ff8
// > FMOD::DSP::setParameterFloat @ 0x100486114
// > FMOD::DSP::setParameterInt @ 0x10048622c
// > FMOD::DSP::setParameterBool @ 0x100486344
// > FMOD::DSP::setParameterData @ 0x100486494
// > FMOD::DSP::getParameterFloat @ 0x100486618
// > FMOD::DSP::getParameterInt @ 0x10048679c
// > FMOD::DSP::getParameterBool @ 0x100486920
// > FMOD::DSP::getParameterData @ 0x100486ad4
// > FMOD::DSP::getNumParameters @ 0x100486ba8
// > FMOD::DSP::getParameterInfo @ 0x100486cb8
// > FMOD::DSP::getDataParameterIndex @ 0x100486dd0
// > FMOD::DSP::showConfigDialog @ 0x100486eec
// > FMOD::DSP::getInfo @ 0x1004870a8
// > FMOD::DSP::getType @ 0x100487180
// > FMOD::DSP::getIdle @ 0x100487258
// > FMOD::DSP::setUserData @ 0x10048732c
// > FMOD::DSP::getUserData @ 0x1004873f4
// > FMOD::DSP::setMeteringEnabled @ 0x100487508
// > FMOD::DSP::getMeteringEnabled @ 0x100487630
// > FMOD::DSP::getMeteringInfo @ 0x100487758
// > FMOD::DSP::getCPUUsage @ 0x100487880
// > FMOD::DSPConnection::getInput @ 0x10048a7a0
// > FMOD::DSPConnection::getOutput @ 0x10048a878
// > FMOD::DSPConnection::setMix @ 0x10048a960
// > FMOD::DSPConnection::getMix @ 0x10048aa3c
// > FMOD::DSPConnection::setMixMatrix @ 0x10048abcc
// > FMOD::DSPConnection::getMixMatrix @ 0x10048ad60
// > FMOD::DSPConnection::getType @ 0x10048ae44
// > FMOD::DSPConnection::setUserData @ 0x10048af1c
// > FMOD::DSPConnection::getUserData @ 0x10048aff4
// > sub_1004A1C60 @ 0x1004a2a28
// > sub_1004A3154 @ 0x1004a324c
// > FMOD::Reverb3D::release @ 0x1004bcb58
// > FMOD::Reverb3D::set3DAttributes @ 0x1004bcc24
// > FMOD::Reverb3D::get3DAttributes @ 0x1004bcd6c
// > FMOD::Reverb3D::setProperties @ 0x1004bce3c
// > FMOD::Reverb3D::getProperties @ 0x1004bcf00
// > FMOD::Reverb3D::setActive @ 0x1004bcfc4
// > FMOD::Reverb3D::getActive @ 0x1004bd088
// > FMOD::Reverb3D::setUserData @ 0x1004bd14c
// > FMOD::Reverb3D::getUserData @ 0x1004bd210
// > FMOD::Sound::release @ 0x1004be440
// > FMOD::Sound::getSystemObject @ 0x1004be55c
// > FMOD::Sound::lock @ 0x1004be6a4
// > FMOD::Sound::unlock @ 0x1004be9a0
// > FMOD::Sound::setDefaults @ 0x1004beb08
// > FMOD::Sound::getDefaults @ 0x1004bec68
// > FMOD::Sound::set3DMinMaxDistance @ 0x1004bedb8
// > FMOD::Sound::get3DMinMaxDistance @ 0x1004bef28
// > FMOD::Sound::set3DConeSettings @ 0x1004bf0c8
// > FMOD::Sound::get3DConeSettings @ 0x1004bf278
// > FMOD::Sound::set3DCustomRolloff @ 0x1004bf3e0
// > FMOD::Sound::get3DCustomRolloff @ 0x1004bf550
// > FMOD::Sound::getSubSound @ 0x1004bf6ac
// > FMOD::Sound::getName @ 0x1004bf854
// > FMOD::Sound::getLength @ 0x1004bf9b4
// > FMOD::Sound::getFormat @ 0x1004bfb78
// > FMOD::Sound::getNumSubSounds @ 0x1004bfc80
// > FMOD::Sound::getNumTags @ 0x1004bfdc8
// > FMOD::Sound::getTag @ 0x1004bff60
// > FMOD::Sound::getOpenState @ 0x1004c0100
// > FMOD::Sound::readData @ 0x1004c029c
// > FMOD::Sound::seekData @ 0x1004c03b8
// > FMOD::Sound::setSoundGroup @ 0x1004c0480
// > FMOD::Sound::getSoundGroup @ 0x1004c0600
// > FMOD::Sound::getNumSyncPoints @ 0x1004c0700
// > FMOD::Sound::getSyncPoint @ 0x1004c0858
// > FMOD::Sound::getSyncPointInfo @ 0x1004c0a50
// > FMOD::Sound::addSyncPoint @ 0x1004c0c24
// > FMOD::Sound::deleteSyncPoint @ 0x1004c0d40
// > FMOD::Sound::setMode @ 0x1004c0e50
// > FMOD::Sound::getMode @ 0x1004c0f5c
// > FMOD::Sound::setLoopCount @ 0x1004c105c
// > FMOD::Sound::getLoopCount @ 0x1004c1168
// > FMOD::Sound::setLoopPoints @ 0x1004c1318
// > FMOD::Sound::getLoopPoints @ 0x1004c14e4
// > FMOD::Sound::getMusicNumChannels @ 0x1004c1614
// > FMOD::Sound::setMusicChannelVolume @ 0x1004c1780
// > FMOD::Sound::getMusicChannelVolume @ 0x1004c18f4
// > FMOD::Sound::setMusicSpeed @ 0x1004c1a24
// > FMOD::Sound::getMusicSpeed @ 0x1004c1b4c
// > FMOD::Sound::setUserData @ 0x1004c1c2c
// > FMOD::Sound::getUserData @ 0x1004c1cfc
// > FMOD::SoundGroup::release @ 0x1004c2670
// > FMOD::SoundGroup::getSystemObject @ 0x1004c2748
// > FMOD::SoundGroup::setMaxAudible @ 0x1004c2820
// > FMOD::SoundGroup::getMaxAudible @ 0x1004c28f8
// > FMOD::SoundGroup::setMaxAudibleBehavior @ 0x1004c29d0
// > FMOD::SoundGroup::getMaxAudibleBehavior @ 0x1004c2aa8
// > FMOD::SoundGroup::setMuteFadeSpeed @ 0x1004c2b84
// > FMOD::SoundGroup::getMuteFadeSpeed @ 0x1004c2c60
// > FMOD::SoundGroup::setVolume @ 0x1004c2d3c
// > FMOD::SoundGroup::getVolume @ 0x1004c2e18
// > FMOD::SoundGroup::stop @ 0x1004c2edc
// > FMOD::SoundGroup::getName @ 0x1004c2ffc
// > FMOD::SoundGroup::getNumSounds @ 0x1004c30dc
// > FMOD::SoundGroup::getSound @ 0x1004c31fc
// > FMOD::SoundGroup::getNumPlaying @ 0x1004c32dc
// > FMOD::SoundGroup::setUserData @ 0x1004c33b4
// > FMOD::SoundGroup::getUserData @ 0x1004c348c
// > FMOD::System::release @ 0x1004c7a40
// > FMOD::System::setOutput @ 0x1004c7b18
// > FMOD::System::getOutput @ 0x1004c7bf0
// > FMOD::System::getNumDrivers @ 0x1004c7cc8
// > FMOD::System::getDriverInfo @ 0x1004c7df4
// > FMOD::System::setDriver @ 0x1004c8034
// > FMOD::System::getDriver @ 0x1004c810c
// > FMOD::System::setSoftwareChannels @ 0x1004c81e4
// > FMOD::System::getSoftwareChannels @ 0x1004c82bc
// > FMOD::System::setSoftwareFormat @ 0x1004c8414
// > FMOD::System::getSoftwareFormat @ 0x1004c855c
// > FMOD::System::setDSPBufferSize @ 0x1004c86bc
// > FMOD::System::getDSPBufferSize @ 0x1004c87e4
// > FMOD::System::setFileSystem @ 0x1004c8918
// > FMOD::System::attachFileSystem @ 0x1004c8c34
// > FMOD::System::setAdvancedSettings @ 0x1004c8d18
// > FMOD::System::getAdvancedSettings @ 0x1004c8df0
// > FMOD::System::setCallback @ 0x1004c8f14
// > FMOD::System::setPluginPath @ 0x1004c8ff4
// > FMOD::System::loadPlugin @ 0x1004c914c
// > FMOD::System::unloadPlugin @ 0x1004c9230
// > FMOD::System::getNumNestedPlugins @ 0x1004c9350
// > FMOD::System::getNestedPlugin @ 0x1004c94b0
// > FMOD::System::getNumPlugins @ 0x1004c95dc
// > FMOD::System::getPluginHandle @ 0x1004c973c
// > FMOD::System::getPluginInfo @ 0x1004c9900
// > FMOD::System::setOutputByPlugin @ 0x1004c99e4
// > FMOD::System::getOutputByPlugin @ 0x1004c9abc
// > FMOD::System::createDSPByPlugin @ 0x1004c9bdc
// > FMOD::System::getDSPInfoByPlugin @ 0x1004c9d04
// > FMOD::System::registerCodec @ 0x1004c9e64
// > FMOD::System::registerDSP @ 0x1004c9f90
// > FMOD::System::registerOutput @ 0x1004ca0b8
// > FMOD::System::init @ 0x1004ca214
// > FMOD::System::close @ 0x1004ca2ec
// > FMOD::System::update @ 0x1004ca3b0
// > FMOD::System::setSpeakerPosition @ 0x1004ca538
// > FMOD::System::getSpeakerPosition @ 0x1004ca6cc
// > FMOD::System::setStreamBufferSize @ 0x1004ca7f8
// > FMOD::System::getStreamBufferSize @ 0x1004ca920
// > FMOD::System::set3DSettings @ 0x1004caa84
// > FMOD::System::get3DSettings @ 0x1004cabec
// > FMOD::System::set3DNumListeners @ 0x1004cacd0
// > FMOD::System::get3DNumListeners @ 0x1004cada8
// > FMOD::System::set3DListenerAttributes @ 0x1004caf60
// > FMOD::System::get3DListenerAttributes @ 0x1004cb124
// > FMOD::System::set3DRolloffCallback @ 0x1004cb20c
// > FMOD::System::mixerSuspend @ 0x1004cb2d0
// > FMOD::System::mixerResume @ 0x1004cb394
// > FMOD::System::getSpeakerModeChannels @ 0x1004cb46c
// > FMOD::System::getDefaultMixMatrix @ 0x1004cb55c
// > FMOD::System::getVersion @ 0x1004cb63c
// > FMOD::System::getOutputHandle @ 0x1004cb714
// > FMOD::System::getChannelsPlaying @ 0x1004cb830
// > FMOD::System::getCPUUsage @ 0x1004cb900
// > FMOD::System::getFileUsage @ 0x1004cba48
// > FMOD::System::createSound @ 0x1004cbbcc
// > FMOD::System::createStream @ 0x1004cbd50
// > FMOD::System::createDSP @ 0x1004cbe70
// > FMOD::System::createDSPByType @ 0x1004cbf98
// > FMOD::System::createChannelGroup @ 0x1004cc0c0
// > FMOD::System::createSoundGroup @ 0x1004cc1e8
// > FMOD::System::createReverb3D @ 0x1004cc2c8
// > FMOD::System::playSound @ 0x1004cc450
// > FMOD::System::playDSP @ 0x1004cc5e4
// > FMOD::System::getChannel @ 0x1004cc710
// > FMOD::System::getDSPInfoByType @ 0x1004cc838
// > FMOD::System::getMasterChannelGroup @ 0x1004cc914
// > FMOD::System::getMasterSoundGroup @ 0x1004cc9e0
// > FMOD::System::attachChannelGroupToPort @ 0x1004ccb40
// > FMOD::System::detachChannelGroupFromPort @ 0x1004ccc24
// > FMOD::System::setReverbProperties @ 0x1004ccd44
// > FMOD::System::getReverbProperties @ 0x1004cce6c
// > FMOD::System::lockDSP @ 0x1004ccf34
// > FMOD::System::unlockDSP @ 0x1004ccfe8
// > FMOD::System::getRecordNumDrivers @ 0x1004cd0fc
// > FMOD::System::getRecordDriverInfo @ 0x1004cd238
// > FMOD::System::getRecordPosition @ 0x1004cd4f8
// > FMOD::System::recordStart @ 0x1004cd658
// > FMOD::System::recordStop @ 0x1004cd73c
// > FMOD::System::isRecording @ 0x1004cd85c
// > FMOD::System::createGeometry @ 0x1004cd9bc
// > FMOD::System::setGeometrySettings @ 0x1004cdaa4
// > FMOD::System::getGeometrySettings @ 0x1004cdb80
// > FMOD::System::loadGeometry @ 0x1004cdcd8
// > FMOD::System::getGeometryOcclusion @ 0x1004cde6c
// > FMOD::System::setNetworkProxy @ 0x1004cdf50
// > FMOD::System::getNetworkProxy @ 0x1004ce070
// > FMOD::System::setNetworkTimeout @ 0x1004ce150
// > FMOD::System::getNetworkTimeout @ 0x1004ce228
// > FMOD::System::setUserData @ 0x1004ce2fc
// > FMOD::System::getUserData @ 0x1004ce3c4
// > FMOD::ChannelControl::getSystemObject @ 0x100503018
// > FMOD::ChannelControl::stop @ 0x1005030d8
// > FMOD::ChannelControl::setPaused @ 0x1005031b8
// > FMOD::ChannelControl::getPaused @ 0x100503298
// > FMOD::ChannelControl::setVolume @ 0x100503380
// > FMOD::ChannelControl::getVolume @ 0x100503464
// > FMOD::ChannelControl::setVolumeRamp @ 0x100503544
// > FMOD::ChannelControl::getVolumeRamp @ 0x100503624
// > FMOD::ChannelControl::getAudibility @ 0x100503704
// > FMOD::ChannelControl::setPitch @ 0x1005037e8
// > FMOD::ChannelControl::getPitch @ 0x1005038cc
// > FMOD::ChannelControl::setMute @ 0x1005039ac
// > FMOD::ChannelControl::getMute @ 0x100503a8c
// > FMOD::ChannelControl::setReverbProperties @ 0x100503bb4
// > FMOD::ChannelControl::getReverbProperties @ 0x100503ce4
// > FMOD::ChannelControl::setLowPassGain @ 0x100503dd0
// > FMOD::ChannelControl::getLowPassGain @ 0x100503eb4
// > FMOD::ChannelControl::setMode @ 0x100503f94
// > FMOD::ChannelControl::getMode @ 0x100504074
// > FMOD::ChannelControl::setCallback @ 0x100504158
// > FMOD::ChannelControl::isPlaying @ 0x100504244
// > FMOD::ChannelControl::setPan @ 0x100504328
// > FMOD::ChannelControl::setMixLevelsOutput @ 0x100504470
// > FMOD::ChannelControl::setMixLevelsInput @ 0x100504738
// > FMOD::ChannelControl::setMixMatrix @ 0x1005048d4
// > FMOD::ChannelControl::getMixMatrix @ 0x100504a70
// > FMOD::ChannelControl::getDSPClock @ 0x100504bd8
// > FMOD::ChannelControl::setDelay @ 0x100504d40
// > FMOD::ChannelControl::getDelay @ 0x100504eac
// > FMOD::ChannelControl::addFadePoint @ 0x100505010
// > FMOD::ChannelControl::setFadePointRamp @ 0x100505148
// > FMOD::ChannelControl::removeFadePoints @ 0x100505284
// > FMOD::ChannelControl::getFadePoints @ 0x1005053c8
// > FMOD::ChannelControl::getDSP @ 0x100505598
// > FMOD::ChannelControl::addDSP @ 0x1005056c8
// > FMOD::ChannelControl::removeDSP @ 0x1005057b0
// > FMOD::ChannelControl::getNumDSPs @ 0x100505890
// > FMOD::ChannelControl::setDSPIndex @ 0x1005059b8
// > FMOD::ChannelControl::getDSPIndex @ 0x100505ae8
// > FMOD::ChannelControl::set3DAttributes @ 0x100505c18
// > FMOD::ChannelControl::get3DAttributes @ 0x100505d48
// > FMOD::ChannelControl::set3DMinMaxDistance @ 0x100505e78
// > FMOD::ChannelControl::get3DMinMaxDistance @ 0x100505fa8
// > FMOD::ChannelControl::set3DConeSettings @ 0x100506114
// > FMOD::ChannelControl::get3DConeSettings @ 0x100506284
// > FMOD::ChannelControl::set3DConeOrientation @ 0x100506370
// > FMOD::ChannelControl::get3DConeOrientation @ 0x100506450
// > FMOD::ChannelControl::set3DCustomRolloff @ 0x100506578
// > FMOD::ChannelControl::get3DCustomRolloff @ 0x1005066a8
// > FMOD::ChannelControl::set3DOcclusion @ 0x1005067d8
// > FMOD::ChannelControl::get3DOcclusion @ 0x100506908
// > FMOD::ChannelControl::set3DSpread @ 0x1005069f4
// > FMOD::ChannelControl::get3DSpread @ 0x100506ad8
// > FMOD::ChannelControl::set3DLevel @ 0x100506bbc
// > FMOD::ChannelControl::get3DLevel @ 0x100506ca0
// > FMOD::ChannelControl::set3DDopplerLevel @ 0x100506d84
// > FMOD::ChannelControl::get3DDopplerLevel @ 0x100506e68
// > FMOD::ChannelControl::set3DDistanceFilter @ 0x100506fc8
// > FMOD::ChannelControl::get3DDistanceFilter @ 0x100507134
// > FMOD::ChannelControl::setUserData @ 0x100507218
// > FMOD::ChannelControl::getUserData @ 0x1005072f0
//
// 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_10048489C(__int64 result, int a2, __int64 a3, __int64 a4, __int64 a5)
{
_QWORD *v5; // x9
__int64 (__fastcall *v6)(_QWORD, __int64, _DWORD *, _QWORD, _QWORD); // x8
_DWORD v7[2]; // [xsp+0h] [xbp-30h] BYREF
__int64 v8; // [xsp+8h] [xbp-28h]
__int64 v9; // [xsp+10h] [xbp-20h]
__int64 v10; // [xsp+18h] [xbp-18h]
v5 = off_1008524C8;
if ( (*((_BYTE *)off_1008524C8 + 32) & 0x80) != 0 )
{
v6 = *((__int64 (__fastcall **)(_QWORD, __int64, _DWORD *, _QWORD, _QWORD))off_1008524C8 + 3);
if ( v6 )
{
v9 = a4;
v10 = a5;
v7[0] = result;
v7[1] = a2;
v8 = a3;
if ( !*((_DWORD *)off_1008524C8 + 12) )
{
*((_DWORD *)off_1008524C8 + 12) = 1;
result = v6(0, 128, v7, 0, v5[5]);
--*((_DWORD *)off_1008524C8 + 12);
}
}
}
return result;
}