//
// sub_1005F45A8 from 0x1005f45a8 to 0x1005f4674 (204 bytes)
//
// 92 xrefs:
// > FMOD::System::release @ 0x1005edb48
// > FMOD::System::setOutput @ 0x1005edc24
// > FMOD::System::getOutput @ 0x1005edcfc
// > FMOD::System::getNumDrivers @ 0x1005eddd4
// > FMOD::System::getDriverInfo @ 0x1005eded0
// > FMOD::System::setDriver @ 0x1005ee140
// > FMOD::System::getDriver @ 0x1005ee218
// > FMOD::System::setSoftwareChannels @ 0x1005ee2f0
// > FMOD::System::getSoftwareChannels @ 0x1005ee3c8
// > FMOD::System::setSoftwareFormat @ 0x1005ee4b4
// > FMOD::System::getSoftwareFormat @ 0x1005ee618
// > FMOD::System::setDSPBufferSize @ 0x1005ee78c
// > FMOD::System::getDSPBufferSize @ 0x1005ee8b4
// > FMOD::System::setFileSystem @ 0x1005ee9f4
// > FMOD::System::attachFileSystem @ 0x1005eec98
// > FMOD::System::setAdvancedSettings @ 0x1005eee24
// > FMOD::System::getAdvancedSettings @ 0x1005eeefc
// > FMOD::System::setCallback @ 0x1005eefe0
// > FMOD::System::setPluginPath @ 0x1005ef100
// > FMOD::System::loadPlugin @ 0x1005ef1ec
// > FMOD::System::unloadPlugin @ 0x1005ef33c
// > FMOD::System::getNumNestedPlugins @ 0x1005ef420
// > FMOD::System::getNestedPlugin @ 0x1005ef550
// > FMOD::System::getNumPlugins @ 0x1005ef6ac
// > FMOD::System::getPluginHandle @ 0x1005ef7dc
// > FMOD::System::getPluginInfo @ 0x1005ef948
// > FMOD::System::setOutputByPlugin @ 0x1005efaf0
// > FMOD::System::getOutputByPlugin @ 0x1005efbc8
// > FMOD::System::createDSPByPlugin @ 0x1005efcac
// > FMOD::System::getDSPInfoByPlugin @ 0x1005efdd4
// > FMOD::System::registerCodec @ 0x1005eff04
// > FMOD::System::registerDSP @ 0x1005f0060
// > FMOD::System::registerOutput @ 0x1005f0188
// > FMOD::System::init @ 0x1005f02b4
// > FMOD::System::close @ 0x1005f03f4
// > FMOD::System::update @ 0x1005f04cc
// > FMOD::System::setSpeakerPosition @ 0x1005f05ac
// > FMOD::System::getSpeakerPosition @ 0x1005f0740
// > FMOD::System::setStreamBufferSize @ 0x1005f08c8
// > FMOD::System::getStreamBufferSize @ 0x1005f09f0
// > FMOD::System::set3DSettings @ 0x1005f0b24
// > FMOD::System::get3DSettings @ 0x1005f0c8c
// > FMOD::System::set3DNumListeners @ 0x1005f0ddc
// > FMOD::System::get3DNumListeners @ 0x1005f0eb4
// > FMOD::System::set3DListenerAttributes @ 0x1005f0fa8
// > FMOD::System::get3DListenerAttributes @ 0x1005f116c
// > FMOD::System::set3DRolloffCallback @ 0x1005f1314
// > FMOD::System::mixerSuspend @ 0x1005f13ec
// > FMOD::System::mixerResume @ 0x1005f14b0
// > FMOD::System::getSpeakerModeChannels @ 0x1005f1580
// > FMOD::System::getDefaultMixMatrix @ 0x1005f1668
// > FMOD::System::getVersion @ 0x1005f1748
// > FMOD::System::getOutputHandle @ 0x1005f1820
// > FMOD::System::getChannelsPlaying @ 0x1005f1900
// > FMOD::System::getCPUUsage @ 0x1005f1a0c
// > FMOD::System::getFileUsage @ 0x1005f1ae8
// > FMOD::System::createSound @ 0x1005f1c40
// > FMOD::System::createStream @ 0x1005f1dc4
// > FMOD::System::createDSP @ 0x1005f1f40
// > FMOD::System::createDSPByType @ 0x1005f2068
// > FMOD::System::createChannelGroup @ 0x1005f2190
// > FMOD::System::createSoundGroup @ 0x1005f22b8
// > FMOD::System::createReverb3D @ 0x1005f23d4
// > FMOD::System::playSound @ 0x1005f24c4
// > FMOD::System::playDSP @ 0x1005f2658
// > FMOD::System::getChannel @ 0x1005f27e0
// > FMOD::System::getDSPInfoByType @ 0x1005f2908
// > FMOD::System::getMasterChannelGroup @ 0x1005f2a20
// > FMOD::System::getMasterSoundGroup @ 0x1005f2aec
// > FMOD::System::attachChannelGroupToPort @ 0x1005f2bdc
// > FMOD::System::detachChannelGroupFromPort @ 0x1005f2d30
// > FMOD::System::setReverbProperties @ 0x1005f2e14
// > FMOD::System::getReverbProperties @ 0x1005f2f3c
// > FMOD::System::lockDSP @ 0x1005f3050
// > FMOD::System::unlockDSP @ 0x1005f3104
// > FMOD::System::getRecordNumDrivers @ 0x1005f31cc
// > FMOD::System::getRecordDriverInfo @ 0x1005f3310
// > FMOD::System::getRecordPosition @ 0x1005f35c8
// > FMOD::System::recordStart @ 0x1005f36f8
// > FMOD::System::recordStop @ 0x1005f3848
// > FMOD::System::isRecording @ 0x1005f392c
// > FMOD::System::createGeometry @ 0x1005f3a5c
// > FMOD::System::setGeometrySettings @ 0x1005f3bb0
// > FMOD::System::getGeometrySettings @ 0x1005f3c8c
// > FMOD::System::loadGeometry @ 0x1005f3d78
// > FMOD::System::getGeometryOcclusion @ 0x1005f3ee0
// > FMOD::System::setNetworkProxy @ 0x1005f405c
// > FMOD::System::getNetworkProxy @ 0x1005f4140
// > FMOD::System::setNetworkTimeout @ 0x1005f425c
// > FMOD::System::getNetworkTimeout @ 0x1005f4334
// > FMOD::System::setUserData @ 0x1005f4408
// > FMOD::System::getUserData @ 0x1005f44d0
//
// 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:09:50 +0000
//
__int64 __fastcall sub_1005F45A8(__int64 a1, __int64 *a2, __int64 *a3)
{
__int64 result; // x0
*a2 = 0;
if ( *((_QWORD *)off_1009DA5E8 + 46) != a1
&& *((_QWORD *)off_1009DA5E8 + 47) != a1
&& *((_QWORD *)off_1009DA5E8 + 48) != a1
&& *((_QWORD *)off_1009DA5E8 + 49) != a1
&& *((_QWORD *)off_1009DA5E8 + 50) != a1
&& *((_QWORD *)off_1009DA5E8 + 51) != a1
&& *((_QWORD *)off_1009DA5E8 + 52) != a1
&& *((_QWORD *)off_1009DA5E8 + 53) != a1 )
{
return 30;
}
*a2 = a1;
if ( !a1 )
return 30;
if ( !a3 )
return 0;
if ( *a3 )
return 28;
result = sub_100568E64(a1);
if ( !(_DWORD)result )
*a3 = a1;
return result;
}