//
// sub_10055C01C from 0x10055c01c to 0x10055c0c4 (168 bytes)
//
// 295 xrefs:
// > FMOD::Channel::setPosition @ 0x10057b3c8
// > FMOD::Channel::getPosition @ 0x10057b4fc
// > FMOD::Channel::setLoopPoints @ 0x10057be2c
// > FMOD::Channel::setLoopPoints @ 0x10057be54
// > FMOD::Channel::setLoopPoints @ 0x10057be7c
// > FMOD::Channel::getLoopPoints @ 0x10057bfd4
// > FMOD::Channel::getLoopPoints @ 0x10057bffc
// > FMOD::Channel::getLoopPoints @ 0x10057c024
// > FMOD::ChannelGroup::addGroup @ 0x10057f424
// > FMOD::ChannelGroup::getGroup @ 0x10057f624
// > FMOD::ChannelGroup::getName @ 0x10057f808
// > FMOD::ChannelGroup::getName @ 0x10057f824
// > FMOD::ChannelGroup::getChannel @ 0x10057fa24
// > FMOD::DSP::addInput @ 0x1005aacdc
// > FMOD::DSP::addInput @ 0x1005aad04
// > FMOD::DSP::disconnectFrom @ 0x1005aae34
// > FMOD::DSP::disconnectAll @ 0x1005aaf5c
// > FMOD::DSP::getInput @ 0x1005ab25c
// > FMOD::DSP::getInput @ 0x1005ab284
// > FMOD::DSP::getOutput @ 0x1005ab3c8
// > FMOD::DSP::getOutput @ 0x1005ab3f0
// > FMOD::DSP::setWetDryMix @ 0x1005ab8d0
// > FMOD::DSP::setWetDryMix @ 0x1005ab8f8
// > FMOD::DSP::getWetDryMix @ 0x1005aba38
// > FMOD::DSP::getWetDryMix @ 0x1005aba60
// > FMOD::DSP::setChannelFormat @ 0x1005abb9c
// > FMOD::DSP::setChannelFormat @ 0x1005abbc4
// > FMOD::DSP::getChannelFormat @ 0x1005abd00
// > FMOD::DSP::getChannelFormat @ 0x1005abd28
// > sub_1005ABED4 @ 0x1005abf2c
// > sub_1005ABED4 @ 0x1005abf54
// > sub_1005ABED4 @ 0x1005abf7c
// > sub_1005ABED4 @ 0x1005abfa4
// > sub_1005ABED4 @ 0x1005abfcc
// > FMOD::DSP::setParameterFloat @ 0x1005ac24c
// > FMOD::DSP::setParameterInt @ 0x1005ac364
// > FMOD::DSP::setParameterBool @ 0x1005ac47c
// > FMOD::DSP::setParameterData @ 0x1005ac5a4
// > FMOD::DSP::setParameterData @ 0x1005ac5cc
// > FMOD::DSP::getParameterFloat @ 0x1005ac700
// > FMOD::DSP::getParameterFloat @ 0x1005ac728
// > FMOD::DSP::getParameterFloat @ 0x1005ac73c
// > FMOD::DSP::getParameterFloat @ 0x1005ac750
// > FMOD::DSP::getParameterInt @ 0x1005ac884
// > FMOD::DSP::getParameterInt @ 0x1005ac8ac
// > FMOD::DSP::getParameterInt @ 0x1005ac8c0
// > FMOD::DSP::getParameterInt @ 0x1005ac8d4
// > FMOD::DSP::getParameterBool @ 0x1005aca08
// > FMOD::DSP::getParameterBool @ 0x1005aca30
// > FMOD::DSP::getParameterBool @ 0x1005aca44
// > FMOD::DSP::getParameterBool @ 0x1005aca58
// > FMOD::DSP::getParameterData @ 0x1005acb94
// > FMOD::DSP::getParameterData @ 0x1005acbbc
// > FMOD::DSP::getParameterData @ 0x1005acbe4
// > FMOD::DSP::getParameterData @ 0x1005acbf8
// > FMOD::DSP::getParameterData @ 0x1005acc0c
// > FMOD::DSP::getParameterInfo @ 0x1005acdf0
// > FMOD::DSP::getDataParameterIndex @ 0x1005acf08
// > FMOD::DSP::showConfigDialog @ 0x1005ad024
// > FMOD::DSP::getInfo @ 0x1005ad148
// > FMOD::DSP::getInfo @ 0x1005ad168
// > FMOD::DSP::getInfo @ 0x1005ad190
// > FMOD::DSP::getInfo @ 0x1005ad1b8
// > FMOD::DSP::getInfo @ 0x1005ad1e0
// > FMOD::DSP::setMeteringEnabled @ 0x1005ad640
// > FMOD::DSP::getMeteringEnabled @ 0x1005ad768
// > FMOD::DSP::getMeteringInfo @ 0x1005ad890
// > FMOD::DSP::getCPUUsage @ 0x1005ad9b8
// > FMOD::DSPConnection::setMixMatrix @ 0x1005b0cb4
// > FMOD::DSPConnection::setMixMatrix @ 0x1005b0cdc
// > FMOD::DSPConnection::setMixMatrix @ 0x1005b0d04
// > FMOD::DSPConnection::getMixMatrix @ 0x1005b0e48
// > FMOD::DSPConnection::getMixMatrix @ 0x1005b0e70
// > FMOD::DSPConnection::getMixMatrix @ 0x1005b0e98
// > FMOD::Reverb3D::get3DAttributes @ 0x1005e2e7c
// > FMOD::Reverb3D::get3DAttributes @ 0x1005e2ea4
// > sub_1005E4860 @ 0x1005e48b8
// > sub_1005E4860 @ 0x1005e48e0
// > sub_1005E4860 @ 0x1005e4908
// > sub_1005E4860 @ 0x1005e4930
// > sub_1005E4860 @ 0x1005e4958
// > FMOD::Sound::unlock @ 0x1005e4a88
// > FMOD::Sound::unlock @ 0x1005e4ab0
// > FMOD::Sound::unlock @ 0x1005e4ad8
// > FMOD::Sound::setDefaults @ 0x1005e4c40
// > FMOD::Sound::getDefaults @ 0x1005e4da0
// > FMOD::Sound::set3DMinMaxDistance @ 0x1005e4ef0
// > FMOD::Sound::get3DMinMaxDistance @ 0x1005e5060
// > FMOD::Sound::set3DConeSettings @ 0x1005e51d8
// > FMOD::Sound::set3DConeSettings @ 0x1005e5200
// > FMOD::Sound::get3DConeSettings @ 0x1005e5388
// > FMOD::Sound::get3DConeSettings @ 0x1005e53b0
// > FMOD::Sound::set3DCustomRolloff @ 0x1005e5518
// > FMOD::Sound::get3DCustomRolloff @ 0x1005e5688
// > FMOD::Sound::getSubSound @ 0x1005e57e4
// > FMOD::Sound::getName @ 0x1005e5970
// > FMOD::Sound::getName @ 0x1005e598c
// > FMOD::Sound::getLength @ 0x1005e5aec
// > FMOD::Sound::getFormat @ 0x1005e5c60
// > FMOD::Sound::getFormat @ 0x1005e5c88
// > FMOD::Sound::getFormat @ 0x1005e5cb0
// > FMOD::Sound::getNumTags @ 0x1005e5f00
// > FMOD::Sound::getTag @ 0x1005e6050
// > FMOD::Sound::getTag @ 0x1005e6070
// > FMOD::Sound::getTag @ 0x1005e6098
// > FMOD::Sound::getOpenState @ 0x1005e61e8
// > FMOD::Sound::getOpenState @ 0x1005e6210
// > FMOD::Sound::getOpenState @ 0x1005e6238
// > FMOD::Sound::readData @ 0x1005e63ac
// > FMOD::Sound::readData @ 0x1005e63d4
// > FMOD::Sound::getSyncPoint @ 0x1005e6990
// > FMOD::Sound::getSyncPointInfo @ 0x1005e6b10
// > FMOD::Sound::getSyncPointInfo @ 0x1005e6b24
// > FMOD::Sound::getSyncPointInfo @ 0x1005e6b38
// > FMOD::Sound::getSyncPointInfo @ 0x1005e6b60
// > FMOD::Sound::getSyncPointInfo @ 0x1005e6b88
// > FMOD::Sound::addSyncPoint @ 0x1005e6d0c
// > FMOD::Sound::addSyncPoint @ 0x1005e6d34
// > FMOD::Sound::addSyncPoint @ 0x1005e6d48
// > FMOD::Sound::addSyncPoint @ 0x1005e6d5c
// > FMOD::Sound::setLoopPoints @ 0x1005e7400
// > FMOD::Sound::setLoopPoints @ 0x1005e7428
// > FMOD::Sound::setLoopPoints @ 0x1005e7450
// > FMOD::Sound::getLoopPoints @ 0x1005e75cc
// > FMOD::Sound::getLoopPoints @ 0x1005e75f4
// > FMOD::Sound::getLoopPoints @ 0x1005e761c
// > FMOD::Sound::setMusicChannelVolume @ 0x1005e78b8
// > FMOD::Sound::getMusicChannelVolume @ 0x1005e7a2c
// > FMOD::SoundGroup::getName @ 0x1005e9118
// > FMOD::SoundGroup::getName @ 0x1005e9134
// > FMOD::SoundGroup::getSound @ 0x1005e9334
// > sub_1005EDFAC @ 0x1005ee008
// > sub_1005EDFAC @ 0x1005ee01c
// > sub_1005EDFAC @ 0x1005ee030
// > sub_1005EDFAC @ 0x1005ee058
// > sub_1005EDFAC @ 0x1005ee080
// > sub_1005EDFAC @ 0x1005ee0a8
// > sub_1005EDFAC @ 0x1005ee0d0
// > FMOD::System::setSoftwareFormat @ 0x1005ee524
// > FMOD::System::setSoftwareFormat @ 0x1005ee54c
// > FMOD::System::getSoftwareFormat @ 0x1005ee66c
// > FMOD::System::getSoftwareFormat @ 0x1005ee694
// > FMOD::System::setDSPBufferSize @ 0x1005ee7f4
// > FMOD::System::getDSPBufferSize @ 0x1005ee91c
// > sub_1005EEAD0 @ 0x1005eeb34
// > sub_1005EEAD0 @ 0x1005eeb60
// > sub_1005EEAD0 @ 0x1005eeb8c
// > sub_1005EEAD0 @ 0x1005eebb8
// > sub_1005EEAD0 @ 0x1005eebe4
// > sub_1005EEAD0 @ 0x1005eec10
// > FMOD::System::attachFileSystem @ 0x1005eed10
// > FMOD::System::attachFileSystem @ 0x1005eed3c
// > FMOD::System::attachFileSystem @ 0x1005eed68
// > FMOD::System::setCallback @ 0x1005ef04c
// > FMOD::System::setPluginPath @ 0x1005ef140
// > FMOD::System::loadPlugin @ 0x1005ef23c
// > FMOD::System::loadPlugin @ 0x1005ef25c
// > FMOD::System::loadPlugin @ 0x1005ef284
// > FMOD::System::getNumNestedPlugins @ 0x1005ef488
// > FMOD::System::getNestedPlugin @ 0x1005ef5c0
// > FMOD::System::getNestedPlugin @ 0x1005ef5e8
// > FMOD::System::getNumPlugins @ 0x1005ef714
// > FMOD::System::getPluginHandle @ 0x1005ef84c
// > FMOD::System::getPluginHandle @ 0x1005ef874
// > FMOD::System::getPluginInfo @ 0x1005ef9c0
// > FMOD::System::getPluginInfo @ 0x1005ef9e8
// > FMOD::System::getPluginInfo @ 0x1005ef9fc
// > FMOD::System::getPluginInfo @ 0x1005efa10
// > FMOD::System::getPluginInfo @ 0x1005efa38
// > FMOD::System::createDSPByPlugin @ 0x1005efd14
// > FMOD::System::getDSPInfoByPlugin @ 0x1005efe3c
// > FMOD::System::registerCodec @ 0x1005eff74
// > FMOD::System::registerCodec @ 0x1005eff9c
// > FMOD::System::registerDSP @ 0x1005f00c8
// > FMOD::System::registerOutput @ 0x1005f01f0
// > FMOD::System::init @ 0x1005f0324
// > FMOD::System::init @ 0x1005f034c
// > FMOD::System::setSpeakerPosition @ 0x1005f0620
// > FMOD::System::setSpeakerPosition @ 0x1005f0648
// > FMOD::System::setSpeakerPosition @ 0x1005f0670
// > FMOD::System::getSpeakerPosition @ 0x1005f07b4
// > FMOD::System::getSpeakerPosition @ 0x1005f07dc
// > FMOD::System::getSpeakerPosition @ 0x1005f0804
// > FMOD::System::setStreamBufferSize @ 0x1005f0930
// > FMOD::System::getStreamBufferSize @ 0x1005f0a58
// > FMOD::System::set3DSettings @ 0x1005f0b94
// > FMOD::System::set3DSettings @ 0x1005f0bbc
// > FMOD::System::get3DSettings @ 0x1005f0cfc
// > FMOD::System::get3DSettings @ 0x1005f0d24
// > FMOD::System::set3DListenerAttributes @ 0x1005f1020
// > FMOD::System::set3DListenerAttributes @ 0x1005f1048
// > FMOD::System::set3DListenerAttributes @ 0x1005f1070
// > FMOD::System::set3DListenerAttributes @ 0x1005f1098
// > FMOD::System::get3DListenerAttributes @ 0x1005f11e4
// > FMOD::System::get3DListenerAttributes @ 0x1005f120c
// > FMOD::System::get3DListenerAttributes @ 0x1005f1234
// > FMOD::System::get3DListenerAttributes @ 0x1005f125c
// > FMOD::System::getChannelsPlaying @ 0x1005f1968
// > FMOD::System::getFileUsage @ 0x1005f1b58
// > FMOD::System::getFileUsage @ 0x1005f1b80
// > FMOD::System::createSound @ 0x1005f1c94
// > FMOD::System::createSound @ 0x1005f1cb4
// > FMOD::System::createSound @ 0x1005f1cdc
// > FMOD::System::createSound @ 0x1005f1d04
// > FMOD::System::createStream @ 0x1005f1e18
// > FMOD::System::createStream @ 0x1005f1e38
// > FMOD::System::createStream @ 0x1005f1e60
// > FMOD::System::createStream @ 0x1005f1e88
// > FMOD::System::createDSP @ 0x1005f1fa8
// > FMOD::System::createDSPByType @ 0x1005f20d0
// > FMOD::System::createChannelGroup @ 0x1005f21dc
// > FMOD::System::createChannelGroup @ 0x1005f21f8
// > FMOD::System::createSoundGroup @ 0x1005f2304
// > FMOD::System::createSoundGroup @ 0x1005f2320
// > FMOD::System::playSound @ 0x1005f2538
// > FMOD::System::playSound @ 0x1005f2560
// > FMOD::System::playSound @ 0x1005f2588
// > FMOD::System::playDSP @ 0x1005f26cc
// > FMOD::System::playDSP @ 0x1005f26f4
// > FMOD::System::playDSP @ 0x1005f271c
// > FMOD::System::getChannel @ 0x1005f2848
// > FMOD::System::getDSPInfoByType @ 0x1005f2970
// > FMOD::System::attachChannelGroupToPort @ 0x1005f2c50
// > FMOD::System::attachChannelGroupToPort @ 0x1005f2c78
// > FMOD::System::setReverbProperties @ 0x1005f2e7c
// > FMOD::System::getReverbProperties @ 0x1005f2fa4
// > FMOD::System::getRecordNumDrivers @ 0x1005f3234
// > sub_1005F33F0 @ 0x1005f3458
// > sub_1005F33F0 @ 0x1005f346c
// > sub_1005F33F0 @ 0x1005f3480
// > sub_1005F33F0 @ 0x1005f34a8
// > sub_1005F33F0 @ 0x1005f34d0
// > sub_1005F33F0 @ 0x1005f34f8
// > sub_1005F33F0 @ 0x1005f3520
// > sub_1005F33F0 @ 0x1005f3548
// > FMOD::System::getRecordPosition @ 0x1005f3630
// > FMOD::System::recordStart @ 0x1005f3768
// > FMOD::System::recordStart @ 0x1005f3790
// > FMOD::System::isRecording @ 0x1005f3994
// > FMOD::System::createGeometry @ 0x1005f3acc
// > FMOD::System::createGeometry @ 0x1005f3af4
// > FMOD::System::loadGeometry @ 0x1005f3de8
// > FMOD::System::loadGeometry @ 0x1005f3e10
// > FMOD::System::getGeometryOcclusion @ 0x1005f3f54
// > FMOD::System::getGeometryOcclusion @ 0x1005f3f7c
// > FMOD::System::getGeometryOcclusion @ 0x1005f3fa4
// > FMOD::System::setNetworkProxy @ 0x1005f409c
// > FMOD::System::getNetworkProxy @ 0x1005f418c
// > FMOD::System::getNetworkProxy @ 0x1005f41a8
// > FMOD::ChannelControl::setReverbProperties @ 0x100629cec
// > FMOD::ChannelControl::getReverbProperties @ 0x100629e1c
// > sub_10062A62C @ 0x10062a690
// > sub_10062A62C @ 0x10062a6b8
// > sub_10062A62C @ 0x10062a6e0
// > sub_10062A62C @ 0x10062a708
// > sub_10062A62C @ 0x10062a730
// > sub_10062A62C @ 0x10062a758
// > sub_10062A62C @ 0x10062a780
// > FMOD::ChannelControl::setMixLevelsInput @ 0x10062a870
// > FMOD::ChannelControl::setMixMatrix @ 0x10062a9bc
// > FMOD::ChannelControl::setMixMatrix @ 0x10062a9e4
// > FMOD::ChannelControl::setMixMatrix @ 0x10062aa0c
// > FMOD::ChannelControl::getMixMatrix @ 0x10062ab58
// > FMOD::ChannelControl::getMixMatrix @ 0x10062ab80
// > FMOD::ChannelControl::getMixMatrix @ 0x10062aba8
// > FMOD::ChannelControl::getDSPClock @ 0x10062ad10
// > FMOD::ChannelControl::setDelay @ 0x10062ae50
// > FMOD::ChannelControl::setDelay @ 0x10062ae78
// > FMOD::ChannelControl::getDelay @ 0x10062afbc
// > FMOD::ChannelControl::getDelay @ 0x10062afe4
// > FMOD::ChannelControl::addFadePoint @ 0x10062b148
// > FMOD::ChannelControl::setFadePointRamp @ 0x10062b280
// > FMOD::ChannelControl::removeFadePoints @ 0x10062b3bc
// > FMOD::ChannelControl::getFadePoints @ 0x10062b4d8
// > FMOD::ChannelControl::getFadePoints @ 0x10062b500
// > FMOD::ChannelControl::getDSP @ 0x10062b6d0
// > FMOD::ChannelControl::addDSP @ 0x10062b800
// > FMOD::ChannelControl::setDSPIndex @ 0x10062baf0
// > FMOD::ChannelControl::getDSPIndex @ 0x10062bc20
// > FMOD::ChannelControl::set3DAttributes @ 0x10062bd50
// > FMOD::ChannelControl::get3DAttributes @ 0x10062be80
// > FMOD::ChannelControl::set3DMinMaxDistance @ 0x10062bfb0
// > FMOD::ChannelControl::get3DMinMaxDistance @ 0x10062c0e0
// > FMOD::ChannelControl::set3DConeSettings @ 0x10062c224
// > FMOD::ChannelControl::set3DConeSettings @ 0x10062c24c
// > FMOD::ChannelControl::get3DConeSettings @ 0x10062c394
// > FMOD::ChannelControl::get3DConeSettings @ 0x10062c3bc
// > FMOD::ChannelControl::set3DCustomRolloff @ 0x10062c6b0
// > FMOD::ChannelControl::get3DCustomRolloff @ 0x10062c7e0
// > FMOD::ChannelControl::set3DOcclusion @ 0x10062c910
// > FMOD::ChannelControl::get3DOcclusion @ 0x10062ca40
// > FMOD::ChannelControl::set3DDistanceFilter @ 0x10062d0d8
// > FMOD::ChannelControl::set3DDistanceFilter @ 0x10062d100
// > FMOD::ChannelControl::get3DDistanceFilter @ 0x10062d244
// > FMOD::ChannelControl::get3DDistanceFilter @ 0x10062d26c
//
// This function is hookable on this platform (idp: arm, 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 11:08:01 +0000
//
__int64 __fastcall sub_10055C01C(_WORD *a1, size_t a2, const void *a3, int a4, int a5, int a6, int a7, int a8)
{
__int64 v11; // x0
int v12; // w3
int v13; // w4
int v14; // w5
int v15; // w6
int v16; // w7
__int64 v17; // x22
if ( a3 )
{
v11 = sub_1005ECC08(a3);
if ( (int)v11 < (int)a2 )
{
v17 = v11;
memcpy(a1, a3, (int)v11 + 1);
return v17;
}
return sub_1005ED57C((int)a1, a2, (int)"%s", v12, v13, v14, v15, v16, (char)a3);
}
else
{
if ( (int)a2 >= 2 )
{
*a1 = 48;
return 1;
}
return sub_1005ED57C((int)a1, a2, (int)"%d", a4, a5, a6, a7, a8, 0);
}
}