//
// sub_100435E24 from 0x100435e24 to 0x100435eb4 (144 bytes)
//
// 33 xrefs:
// > FMOD::ChannelGroup::addGroup @ 0x1004592d0
// > FMOD::DSP::disconnectAll @ 0x100484dd8
// > FMOD::DSP::disconnectAll @ 0x100484e08
// > FMOD::DSP::setActive @ 0x100485384
// > FMOD::DSP::setBypass @ 0x100485550
// > FMOD::DSP::setCallback @ 0x100485fdc
// > FMOD::DSP::setParameterBool @ 0x100486328
// > FMOD::DSP::showConfigDialog @ 0x100486ed0
// > FMOD::DSP::setMeteringEnabled @ 0x1004874bc
// > FMOD::DSP::setMeteringEnabled @ 0x1004874ec
// > FMOD::Reverb3D::setActive @ 0x1004bcfa8
// > sub_1004C8968 @ 0x1004c89ac
// > sub_1004C8968 @ 0x1004c89e4
// > sub_1004C8968 @ 0x1004c8a10
// > sub_1004C8968 @ 0x1004c8a3c
// > sub_1004C8968 @ 0x1004c8a68
// > sub_1004C8968 @ 0x1004c8a94
// > FMOD::System::attachFileSystem @ 0x1004c8b88
// > FMOD::System::attachFileSystem @ 0x1004c8bc0
// > FMOD::System::attachFileSystem @ 0x1004c8bec
// > FMOD::System::attachFileSystem @ 0x1004c8c18
// > FMOD::System::setCallback @ 0x1004c8ec8
// > FMOD::System::setSpeakerPosition @ 0x1004ca51c
// > FMOD::System::set3DRolloffCallback @ 0x1004cb1f0
// > FMOD::System::playSound @ 0x1004cc40c
// > FMOD::System::playDSP @ 0x1004cc5a0
// > FMOD::System::recordStart @ 0x1004cd63c
// > FMOD::ChannelControl::setPaused @ 0x10050319c
// > FMOD::ChannelControl::setVolumeRamp @ 0x100503528
// > FMOD::ChannelControl::setMute @ 0x100503990
// > FMOD::ChannelControl::setCallback @ 0x10050413c
// > FMOD::ChannelControl::setDelay @ 0x100504d24
// > FMOD::ChannelControl::set3DDistanceFilter @ 0x100506f50
//
// 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_100435E24(void *a1, size_t a2, int a3)
{
const char *v5; // x21
__int64 v6; // x0
int v7; // w3
int v8; // w4
int v9; // w5
int v10; // w6
int v11; // w7
__int64 v12; // x22
if ( a3 )
v5 = "true";
else
v5 = "false";
v6 = sub_1004C6AA0(v5);
if ( (int)v6 >= (int)a2 )
return sub_1004C7414((int)a1, a2, (int)"%s", v7, v8, v9, v10, v11, (char)v5);
v12 = v6;
memcpy(a1, v5, (int)v6 + 1);
return v12;
}