//
// sub_100435D28 from 0x100435d28 to 0x100435d74 (76 bytes)
//
// 46 xrefs:
// > FMOD::Channel::setPosition @ 0x100455244
// > FMOD::Channel::setPosition @ 0x100455274
// > FMOD::Channel::getPosition @ 0x1004553a8
// > FMOD::Channel::setLoopPoints @ 0x100455ca4
// > FMOD::Channel::setLoopPoints @ 0x100455cd8
// > FMOD::Channel::setLoopPoints @ 0x100455d00
// > FMOD::Channel::setLoopPoints @ 0x100455d28
// > FMOD::Channel::getLoopPoints @ 0x100455e80
// > FMOD::Channel::getLoopPoints @ 0x100455ed0
// > FMOD::DSP::setChannelFormat @ 0x100485a14
// > sub_100485D6C @ 0x100485da4
// > FMOD::DSP::setParameterData @ 0x100486478
// > sub_1004BE6F8 @ 0x1004be730
// > sub_1004BE6F8 @ 0x1004be764
// > FMOD::Sound::unlock @ 0x1004be95c
// > FMOD::Sound::unlock @ 0x1004be984
// > FMOD::Sound::getLength @ 0x1004bf998
// > FMOD::Sound::readData @ 0x1004c0258
// > FMOD::Sound::seekData @ 0x1004c039c
// > FMOD::Sound::getSyncPointInfo @ 0x1004c0a34
// > FMOD::Sound::addSyncPoint @ 0x1004c0b84
// > FMOD::Sound::addSyncPoint @ 0x1004c0bb8
// > FMOD::Sound::setMode @ 0x1004c0e34
// > FMOD::Sound::setLoopPoints @ 0x1004c1278
// > FMOD::Sound::setLoopPoints @ 0x1004c12ac
// > FMOD::Sound::setLoopPoints @ 0x1004c12d4
// > FMOD::Sound::setLoopPoints @ 0x1004c12fc
// > FMOD::Sound::getLoopPoints @ 0x1004c1478
// > FMOD::Sound::getLoopPoints @ 0x1004c14c8
// > FMOD::System::setDSPBufferSize @ 0x1004c8670
// > FMOD::System::setCallback @ 0x1004c8ef8
// > FMOD::System::loadPlugin @ 0x1004c9130
// > FMOD::System::unloadPlugin @ 0x1004c9214
// > FMOD::System::getNumNestedPlugins @ 0x1004c9304
// > FMOD::System::getNestedPlugin @ 0x1004c9438
// > FMOD::System::getPluginInfo @ 0x1004c9838
// > FMOD::System::setOutputByPlugin @ 0x1004c99c8
// > FMOD::System::createDSPByPlugin @ 0x1004c9b90
// > FMOD::System::getDSPInfoByPlugin @ 0x1004c9cb8
// > FMOD::System::registerCodec @ 0x1004c9e48
// > FMOD::System::init @ 0x1004ca1d0
// > FMOD::System::setStreamBufferSize @ 0x1004ca7ac
// > FMOD::System::setStreamBufferSize @ 0x1004ca7dc
// > FMOD::System::createSound @ 0x1004cbb60
// > FMOD::System::createStream @ 0x1004cbce4
// > FMOD::ChannelControl::setMode @ 0x100503f78
//
// 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_100435D28(_BYTE *a1, size_t a2, unsigned int a3, int a4, int a5, int a6, int a7, int a8)
{
if ( (int)a2 < 2 || a3 > 9 )
return sub_1004C7414((int)a1, a2, (int)"%u", a4, a5, a6, a7, a8, a3);
*a1 = a3 + 48;
a1[1] = 0;
return 1;
}