// // FMODAudioEngine::FMODAudioEngine from 0x140053100 to 0x140053728 (1576 bytes) // // 288 xrefs: // > AchievementNotifier::showNextAchievement @ 0x14003ad62 // > CCMenuItemSpriteExtra::activate @ 0x140044e62 // > CCMenuItemSpriteExtra::selected @ 0x140044f62 // > sub_140053B20 @ 0x140053b50 // > sub_140053B90 @ 0x140053bc0 // > FMODAudioEngine::triggerQueuedMusic @ 0x14005bbff // > FMODAudioEngine::triggerQueuedMusic @ 0x14005bc42 // > FMODAudioEngine::triggerQueuedMusic @ 0x14005bc8f // > AppDelegate::applicationWillEnterForeground @ 0x140082eca // > AppDelegate::pauseSound @ 0x14008314b // > AppDelegate::pauseSound @ 0x14008319e // > AppDelegate::pauseSound @ 0x140083218 // > AppDelegate::pauseSound @ 0x140083286 // > AppDelegate::resumeSound @ 0x140083349 // > AppDelegate::resumeSound @ 0x140083389 // > ChallengeNode::onClaimReward @ 0x140087e27 // > CreateGuidelinesLayer::playMusic @ 0x14009ad1a // > CreateGuidelinesLayer::onStop @ 0x14009ad8b // > FindBPMLayer::playMusic @ 0x14009bd61 // > MapPackCell::playCompleteEffect @ 0x1400b2a70 // > CustomSongCell::onDelete @ 0x1400b4950 // > CustomSongCell::onDelete @ 0x1400b4997 // > CustomSFXWidget::onPlayback @ 0x1400c1c51 // > CustomSFXWidget::onPlayback @ 0x1400c1d3d // > CustomSFXWidget::FLAlert_Clicked @ 0x1400c2812 // > CustomSongLayer::onSearch @ 0x1400c3bac // > CustomSongLayer::onCreateLines @ 0x1400c414b // > CustomSongLayer::onClose @ 0x1400c43fe // > SongOptionsLayer::onPlayback @ 0x1400c50f1 // > SongOptionsLayer::onPlayback @ 0x1400c5137 // > SongOptionsLayer::onPlayback @ 0x1400c5282 // > SongOptionsLayer::onPlayback @ 0x1400c52e5 // > CustomSongWidget::deleteSong @ 0x1400ca090 // > CustomSongWidget::deleteSong @ 0x1400ca0d7 // > CustomSongWidget::onPlayback @ 0x1400caf54 // > CustomSongWidget::onPlayback @ 0x1400cb038 // > CustomSongWidget::onPlayback @ 0x1400cb07f // > CustomSongWidget::onPlayback @ 0x1400cb0f4 // > CustomSongWidget::onPlayback @ 0x1400cb139 // > CustomSongWidget::onPlayback @ 0x1400cb224 // > CustomSongWidget::updatePlaybackBtn @ 0x1400cb319 // > DailyLevelNode::onClaimReward @ 0x1400d2ef2 // > EditLevelLayer::onPlay @ 0x1400d7eb8 // > EditLevelLayer::onPlay @ 0x1400d7f81 // > EditLevelLayer::playStep2 @ 0x1400d805b // > EditLevelLayer::onEdit @ 0x1400d838c // > EditorPauseLayer::playStep2 @ 0x1400ddf8e // > EditorPauseLayer::playStep2 @ 0x1400ddff9 // > EditorPauseLayer::onExitEditor @ 0x1400de2cb // > EditorUI::onPlayback @ 0x140111b75 // > EditorUI::onPlayback @ 0x140111bee // > EditorUI::onPlayback @ 0x140111eeb // > EndLevelLayer::onReplay @ 0x140134f1b // > EndLevelLayer::onReplay @ 0x140134fae // > EndLevelLayer::onMenu @ 0x1401351ba // > EndLevelLayer::onEdit @ 0x140135269 // > EndLevelLayer::onRestartCheckpoint @ 0x14013555b // > EndLevelLayer::onRestartCheckpoint @ 0x1401355ee // > EndLevelLayer::coinEnterFinished @ 0x140136056 // > EndLevelLayer::playEndEffect @ 0x140136b37 // > EndLevelLayer::playEndEffect @ 0x140136bcb // > EndLevelLayer::playEndEffect @ 0x140136c7c // > GameManager::playMenuMusic @ 0x14017b8c4 // > GameManager::playMenuMusic @ 0x14017b963 // > GameManager::playMenuMusic @ 0x14017ba46 // > GameManager::fadeInMenuMusic @ 0x14017bb22 // > GameManager::fadeInMusic @ 0x14017bc01 // > GameManager::fadeInMusic @ 0x14017bc62 // > GameManager::playSFXTrigger @ 0x14017bd79 // > GameManager::playSFXTrigger @ 0x14017bdc8 // > GameManager::playSFXTrigger @ 0x14017be3a // > GameManager::playSFXTrigger @ 0x14017bebb // > GameManager::playSFXTrigger @ 0x14017bf06 // > GameManager::playSFXTrigger @ 0x14017bf8d // > GameManager::playSFXTrigger @ 0x14017c00e // > GameManager::playSFXTrigger @ 0x14017c059 // > GameManager::playSFXTrigger @ 0x14017c1a1 // > GameManager::firstLoad @ 0x140188a96 // > GameManager::firstLoad @ 0x140188afb // > GameManager::encodeDataTo @ 0x14018903b // > GameManager::encodeDataTo @ 0x14018908d // > GameManager::encodeDataTo @ 0x1401890df // > GameManager::update @ 0x140189bef // > GauntletSelectLayer::playUnlockAnimation @ 0x1401fb1c3 // > GauntletSelectLayer::playUnlockAnimation @ 0x1401fb268 // > GauntletSelectLayer::unlockAnimationStep3 @ 0x1401fc039 // > GJBaseGameLayer::controlTriggersInGroup @ 0x14021e480 // > GJBaseGameLayer::pauseAudio @ 0x1402374dd // > GJBaseGameLayer::pauseAudio @ 0x140237546 // > GJBaseGameLayer::pauseAudio @ 0x1402375c8 // > GJBaseGameLayer::resumeAudio @ 0x140237628 // > GJBaseGameLayer::resumeAudio @ 0x140237691 // > GJBaseGameLayer::resumeAudio @ 0x1402376d4 // > GJBaseGameLayer::resetAudio @ 0x140237737 // > GJBaseGameLayer::resetAudio @ 0x140237777 // > GJBaseGameLayer::update @ 0x140239110 // > GJBaseGameLayer::resetLevelVariables @ 0x14023b180 // > GJBaseGameLayer::activateSongTrigger @ 0x140241691 // > GJBaseGameLayer::activateSongTrigger @ 0x140241825 // > GJBaseGameLayer::activateSongTrigger @ 0x14024188b // > GJBaseGameLayer::processSFXObjects @ 0x140241ba7 // > GJBaseGameLayer::activateSFXTrigger @ 0x140241d6b // > GJBaseGameLayer::activateSFXEditTrigger @ 0x1402420ce // > GJBaseGameLayer::applySFXEditTrigger @ 0x1402421a5 // > GJBaseGameLayer::applySFXEditTrigger @ 0x140242210 // > GJBaseGameLayer::applySFXEditTrigger @ 0x140242250 // > GJBaseGameLayer::applySFXEditTrigger @ 0x1402422b8 // > GJBaseGameLayer::updateProximityVolumeEffects @ 0x140242398 // > GJBaseGameLayer::addProximityVolumeEffect @ 0x14024259b // > GJBaseGameLayer::activatedAudioTrigger @ 0x140242f89 // > GJBaseGameLayer::processActivatedAudioTriggers @ 0x140243a8c // > GJBaseGameLayer::processActivatedAudioTriggers @ 0x140243af9 // > GJBaseGameLayer::processActivatedAudioTriggers @ 0x140243ba5 // > GJBaseGameLayer::processActivatedAudioTriggers @ 0x140243eaf // > GJBaseGameLayer::processActivatedAudioTriggers @ 0x14024400a // > GJBaseGameLayer::processActivatedAudioTriggers @ 0x140244901 // > GJBaseGameLayer::processActivatedAudioTriggers @ 0x1402449c3 // > GJBaseGameLayer::processActivatedAudioTriggers @ 0x140244ab2 // > GJBaseGameLayer::processActivatedAudioTriggers @ 0x140244b24 // > GJBaseGameLayer::processActivatedAudioTriggers @ 0x140244b8e // > GJBaseGameLayer::processActivatedAudioTriggers @ 0x140244cdb // > GJBaseGameLayer::processSongState @ 0x1402454b0 // > GJBaseGameLayer::processSongState @ 0x140245601 // > GJBaseGameLayer::processSongState @ 0x1402456c0 // > GJBaseGameLayer::processSongState @ 0x140245737 // > GJBaseGameLayer::processSongState @ 0x1402457b6 // > GJBaseGameLayer::processSongState @ 0x140245999 // > GJBaseGameLayer::processSongState @ 0x140245a16 // > GJBaseGameLayer::processSongState @ 0x140245bf7 // > GJBaseGameLayer::processSongState @ 0x140245cd7 // > GJBaseGameLayer::updateAudioVisualizer @ 0x1402488c2 // > GJBaseGameLayer::updateAudioVisualizer @ 0x1402488f9 // > GJBaseGameLayer::updateAudioVisualizer @ 0x140248930 // > GJBaseGameLayer::updateAudioVisualizer @ 0x140248967 // > GJBaseGameLayer::updateAudioVisualizer @ 0x1402489ce // > GJBaseGameLayer::updateAudioVisualizer @ 0x140248a05 // > GJBaseGameLayer::updateAudioVisualizer @ 0x140248a3c // > GJBaseGameLayer::updateAudioVisualizer @ 0x140248a73 // > GJBaseGameLayer::toggleAudioVisualizer @ 0x140248b13 // > GJPathPage::playUnlockAnimation @ 0x140287db2 // > GJPathPage::playUnlockAnimation @ 0x140287e46 // > GJPathPage::unlockAnimationStep3 @ 0x140288d73 // > GJShopLayer::init @ 0x1402aabd1 // > GJShopLayer::didPurchaseItem @ 0x1402ac627 // > GJShopLayer::showReactMessage @ 0x1402ad914 // > GJShopLayer::dialogClosed @ 0x1402ae6b3 // > GJShopLayer::dialogClosed @ 0x1402ae74a // > AnimatedShopKeeper::playReactAnimation @ 0x1402afd41 // > GJSongBrowser::exitLayer @ 0x1402b735b // > LevelAreaLayer::onEnterTower @ 0x1402c5847 // > LevelAreaInnerLayer::onDoor @ 0x1402c8271 // > LevelAreaInnerLayer::onDoor @ 0x1402c831d // > LevelEditorLayer::init @ 0x1402d209a // > LevelEditorLayer::updateGameObjects @ 0x1402dce66 // > LevelEditorLayer::onStopPlaytest @ 0x1402e0cdd // > LevelEditorLayer::onStopPlaytest @ 0x1402e0d49 // > LevelEditorLayer::onStopPlaytest @ 0x1402e0dc2 // > DrawGridLayer::update @ 0x1402e9068 // > DrawGridLayer::update @ 0x1402e915a // > LevelInfoLayer::onPlay @ 0x1402fcb5a // > LevelInfoLayer::onPlay @ 0x1402fcc16 // > LevelInfoLayer::playStep2 @ 0x1402fd0fb // > LevelListLayer::onClaimReward @ 0x1403062be // > LevelPage::onPlay @ 0x14031dab9 // > LevelPage::onPlay @ 0x14031db75 // > LevelPage::playStep2 @ 0x14031dc5b // > LoadingLayer::init @ 0x14032e551 // > LoadingLayer::loadAssets @ 0x14032f640 // > LoadingLayer::loadAssets @ 0x14032f6a5 // > LoadingLayer::loadAssets @ 0x14032f704 // > MenuGameLayer::destroyPlayer @ 0x140333425 // > MusicBrowser::update @ 0x1403394ad // > MusicBrowser::update @ 0x1403395a7 // > MusicBrowser::update @ 0x1403395e9 // > MusicBrowser::onPlaybackControl @ 0x140339a8f // > MusicBrowser::sliderEnded @ 0x140339aec // > MusicBrowser::sliderEnded @ 0x140339b4c // > MusicBrowser::sliderEnded @ 0x140339b9f // > OptionsLayer::customSetup @ 0x140372547 // > OptionsLayer::customSetup @ 0x1403726c8 // > OptionsLayer::onMenuMusic @ 0x1403728e6 // > OptionsLayer::musicSliderChanged @ 0x1403729e0 // > OptionsLayer::sfxSliderChanged @ 0x140372ad2 // > MoreOptionsLayer::init @ 0x1403747a8 // > MoreOptionsLayer::onFMODDebug @ 0x140376449 // > MoreOptionsLayer::onClose @ 0x140376956 // > PauseLayer::customSetup @ 0x14037d0e0 // > PauseLayer::customSetup @ 0x14037d1b1 // > PauseLayer::musicSliderChanged @ 0x14037e172 // > PauseLayer::onQuit @ 0x14037ecbc // > PlayLayer::dPlayLayer @ 0x1403a5987 // > PlayLayer::setupHasCompleted @ 0x1403a6b87 // > PlayLayer::setupHasCompleted @ 0x1403a6c22 // > PlayLayer::setupHasCompleted @ 0x1403a6c69 // > PlayLayer::setupHasCompleted @ 0x1403a6cef // > PlayLayer::showCompleteEffect @ 0x1403a8ff8 // > PlayLayer::showCompleteEffect @ 0x1403a9438 // > PlayLayer::showCompleteEffect @ 0x1403a94e6 // > PlayLayer::showNewBest @ 0x1403ab170 // > PlayLayer::showNewBest @ 0x1403ab3d1 // > PlayLayer::showNewBest @ 0x1403ab637 // > PlayLayer::updateVisibility @ 0x1403af6f7 // > PlayLayer::updateInfoLabel @ 0x1403b2fae // > PlayLayer::updateInfoLabel @ 0x1403b304c // > PlayLayer::destroyPlayer @ 0x1403b3fa2 // > PlayLayer::destroyPlayer @ 0x1403b401d // > PlayLayer::destroyPlayer @ 0x1403b40a8 // > PlayLayer::createCheckpoint @ 0x1403b511b // > PlayLayer::loadFromCheckpoint @ 0x1403b76e4 // > PlayLayer::loadFromCheckpoint @ 0x1403b7763 // > PlayLayer::loadFromCheckpoint @ 0x1403b77ba // > PlayLayer::resetLevelFromStart @ 0x1403b8de0 // > PlayLayer::resetLevel @ 0x1403b8f7a // > PlayLayer::resetLevel @ 0x1403b8fdf // > PlayLayer::togglePracticeMode @ 0x1403b9ee0 // > PlayLayer::togglePracticeMode @ 0x1403ba06d // > PlayLayer::resumeAndRestart @ 0x1403ba41a // > PlayLayer::resumeAndRestart @ 0x1403ba45a // > PlayLayer::resumeAndRestart @ 0x1403ba4aa // > PlayLayer::resume @ 0x1403ba69d // > PlayLayer::resume @ 0x1403ba706 // > PlayLayer::resume @ 0x1403ba74e // > PlayLayer::prepareMusic @ 0x1403ba95a // > PlayLayer::prepareMusic @ 0x1403baa07 // > PlayLayer::startMusic @ 0x1403baaad // > PlayLayer::startMusic @ 0x1403bab1f // > PlayLayer::onQuit @ 0x1403bacfa // > RetryLevelLayer::onMenu @ 0x1403cbf5f // > RewardUnlockLayer::playDropSound @ 0x1403cec8d // > RewardUnlockLayer::step2 @ 0x1403ced3b // > RewardUnlockLayer::playRewardEffect @ 0x1403ceebc // > RewardUnlockLayer::playRewardEffect @ 0x1403cef31 // > RewardUnlockLayer::playRewardEffect @ 0x1403cefaa // > RewardUnlockLayer::playRewardEffect @ 0x1403cf26d // > RewardUnlockLayer::playRewardEffect @ 0x1403cf319 // > RewardUnlockLayer::playRewardEffect @ 0x1403cf3a8 // > RewardUnlockLayer::playRewardEffect @ 0x1403cf419 // > RewardUnlockLayer::playRewardEffect @ 0x1403cf4a5 // > RewardUnlockLayer::playRewardEffect @ 0x1403cf544 // > RewardUnlockLayer::playRewardEffect @ 0x1403cf5ac // > RewardUnlockLayer::playRewardEffect @ 0x1403cf63b // > RewardUnlockLayer::playRewardEffect @ 0x1403cf6a3 // > RewardUnlockLayer::playRewardEffect @ 0x1403cf72f // > SecretRewardsLayer::onGoldChest @ 0x1403d7713 // > SecretRewardsLayer::fadeInOutMusic @ 0x1403d7a52 // > SecretLayer::onSubmit @ 0x1403de4d6 // > SecretLayer2::onSubmit @ 0x1403e5c18 // > SecretLayer3::onClick @ 0x1403ed225 // > SecretLayer3::onClick @ 0x1403ed2af // > SecretLayer5::animateHead @ 0x1403f543b // > SecretLayer5::showFailAnimation @ 0x1403f5ad7 // > SecretLayer5::showFailAnimation @ 0x1403f5b54 // > SecretLayer5::showSuccessAnimation @ 0x1403f635b // > SecretLayer5::showSuccessAnimation @ 0x1403f63d6 // > SecretLayer5::showSuccessAnimation @ 0x1403f646f // > SecretLayer5::showSuccessAnimation @ 0x1403f64fc // > SecretLayer5::playWinSFX @ 0x1403f67b9 // > SecretLayer5::onSubmit @ 0x1403f6de6 // > SetupReverbPopup::onPlay @ 0x140446e07 // > SetupReverbPopup::onPlay @ 0x140446e57 // > SetupReverbPopup::updateReverbLabel @ 0x140446faa // > SetupReverbPopup::onClose @ 0x1404470de // > SetupSFXPopup::onClose @ 0x1404485a3 // > SetupSFXPopup::onClose @ 0x1404486fe // > SetupSFXPopup::onClose @ 0x14044875d // > SetupSFXPopup::onClose @ 0x1404487c0 // > SetupSFXPopup::updateLength @ 0x1404488af // > SetupSFXPopup::createSFXWidget @ 0x140448a76 // > SetupSFXPopup::createSFXWidget @ 0x140448ad8 // > SetupSFXPopup::createSFXWidget @ 0x140448b97 // > SetupSFXPopup::overridePlaySFX @ 0x140448c7d // > SetupSongTriggerPopup::init @ 0x14045d3ce // > SetupSongTriggerPopup::init @ 0x14045d44a // > SetupSongTriggerPopup::updateLength @ 0x14045d5d6 // > SetupSongTriggerPopup::onPlayback @ 0x14045d67b // > SetupSongTriggerPopup::onPlayback @ 0x14045d6c4 // > SetupSongTriggerPopup::onPlayback @ 0x14045d837 // > SetupSongTriggerPopup::onPlayback @ 0x14045d897 // > SetupSongTriggerPopup::onPlayback @ 0x14045d908 // > SetupSongTriggerPopup::onPlayback @ 0x14045d953 // > SetupSongTriggerPopup::onSavePlaybackPos @ 0x14045da08 // > SetupSongTriggerPopup::onSavePlaybackPos @ 0x14045da4e // > SetupSongTriggerPopup::valueDidChange @ 0x14045dbab // > SetupSongTriggerPopup::onClose @ 0x14045dd63 // > SetupSongTriggerPopup::onClose @ 0x14045dda9 // > SongInfoLayer::onBPM @ 0x14049452b // > @ 0x1406c4ecc // > @ 0x1406c4ed8 // // 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 // // Hidden C++ exception states: #wind=25 FMODAudioEngine *FMODAudioEngine::FMODAudioEngine(FMODAudioEngine *a1) { std::_List_simple_types>::_Node *v2; // rax std::_List_val>>::_Nodeptr Myhead; // rbx char *v4; // rdi std::_Vector_val>>>>>::pointer Myfirst; // rcx __int64 v6; // rax char *v7; // rax std::_List_simple_types>::_Node *v8; // rax std::_List_val>>::_Nodeptr v9; // rbx char *v10; // rdi std::_Vector_val>>>>>::pointer v11; // rcx __int64 v12; // rax char *v13; // rax std::_List_simple_types>::_Node *v14; // rax std::_List_val>>::_Nodeptr v15; // rbx char *v16; // rdi std::_Vector_val>>>>>::pointer v17; // rcx __int64 v18; // rax char *v19; // rax std::_List_simple_types>::_Node *v20; // rax std::_List_val>>::_Nodeptr v21; // rbx char *v22; // rdi std::_Vector_val>>>>>::pointer v23; // rcx __int64 v24; // rax char *v25; // rax std::_List_simple_types>::_Node *v26; // rax std::_List_val>>::_Nodeptr v27; // rbx std::_Simple_types>>>>::value_type *v28; // rdi std::_Vector_val>>>>>::pointer Ptr; // rcx __int64 v30; // rax std::_Simple_types>>>>::value_type *v31; // rax std::_List_val>>::_Nodeptr v33; // [rsp+58h] [rbp+10h] BYREF void *p_m_fmodMusic; // [rsp+60h] [rbp+18h] cocos2d::CCNode::CCNode(a1); a1->__vftable = (FMODAudioEngine_vtbl *)&FMODAudioEngine::`vftable'; p_m_fmodMusic = &a1->m_fmodMusic; a1->m_fmodMusic._Traitsobj._Mypair._Myval2._Myval2 = 0.0; a1->m_fmodMusic._List._Mypair._Myval2._Myhead = nullptr; a1->m_fmodMusic._List._Mypair._Myval2._Mysize = 0; v2 = (std::_List_simple_types>::_Node *)operator new(0x50u); *(_QWORD *)v2 = v2; *((_QWORD *)v2 + 1) = v2; a1->m_fmodMusic._List._Mypair._Myval2._Myhead = v2; a1->m_fmodMusic._Vec._Mypair._Myval2._Myfirst = nullptr; a1->m_fmodMusic._Vec._Mypair._Myval2._Mylast = nullptr; a1->m_fmodMusic._Vec._Mypair._Myval2._Myend = nullptr; a1->m_fmodMusic._Mask = 7; a1->m_fmodMusic._Maxidx = 8; a1->m_fmodMusic._Traitsobj._Mypair._Myval2._Myval2 = 1.0; Myhead = a1->m_fmodMusic._List._Mypair._Myval2._Myhead; v33 = Myhead; v4 = (char *)operator new(0x80u); Myfirst = a1->m_fmodMusic._Vec._Mypair._Myval2._Myfirst; v6 = (a1->m_fmodMusic._Vec._Mypair._Myval2._Myend - Myfirst) >> 3; if ( v6 ) { if ( (unsigned __int64)(8 * v6) >= 0x1000 ) { if ( (unsigned __int64)Myfirst - *((_QWORD *)Myfirst - 1) - 8 > 0x1F ) invalid_parameter_noinfo_noreturn(); Myfirst = *((std::_Vector_val>>>>>::pointer *)Myfirst - 1); } j_j_free(Myfirst); } a1->m_fmodMusic._Vec._Mypair._Myval2._Myfirst = (std::_Vector_val>>>>>::pointer)v4; v7 = v4 + 128; a1->m_fmodMusic._Vec._Mypair._Myval2._Mylast = (std::_Vector_val>>>>>::pointer)(v4 + 128); a1->m_fmodMusic._Vec._Mypair._Myval2._Myend = (std::_Vector_val>>>>>::pointer)(v4 + 128); do { *(_QWORD *)v4 = Myhead; v4 += 8; } while ( v4 != v7 ); p_m_fmodMusic = &a1->m_fmodSounds; a1->m_fmodSounds._Traitsobj._Mypair._Myval2._Myval2 = 0.0; a1->m_fmodSounds._List._Mypair._Myval2._Myhead = nullptr; a1->m_fmodSounds._List._Mypair._Myval2._Mysize = 0; v8 = (std::_List_simple_types>::_Node *)operator new(0x68u); *(_QWORD *)v8 = v8; *((_QWORD *)v8 + 1) = v8; a1->m_fmodSounds._List._Mypair._Myval2._Myhead = v8; a1->m_fmodSounds._Vec._Mypair._Myval2._Myfirst = nullptr; a1->m_fmodSounds._Vec._Mypair._Myval2._Mylast = nullptr; a1->m_fmodSounds._Vec._Mypair._Myval2._Myend = nullptr; a1->m_fmodSounds._Mask = 7; a1->m_fmodSounds._Maxidx = 8; a1->m_fmodSounds._Traitsobj._Mypair._Myval2._Myval2 = 1.0; v9 = a1->m_fmodSounds._List._Mypair._Myval2._Myhead; v33 = v9; v10 = (char *)operator new(0x80u); v11 = a1->m_fmodSounds._Vec._Mypair._Myval2._Myfirst; v12 = (a1->m_fmodSounds._Vec._Mypair._Myval2._Myend - v11) >> 3; if ( v12 ) { if ( (unsigned __int64)(8 * v12) >= 0x1000 ) { if ( (unsigned __int64)v11 - *((_QWORD *)v11 - 1) - 8 > 0x1F ) invalid_parameter_noinfo_noreturn(); v11 = *((std::_Vector_val>>>>>::pointer *)v11 - 1); } j_j_free(v11); } a1->m_fmodSounds._Vec._Mypair._Myval2._Myfirst = (std::_Vector_val>>>>>::pointer)v10; v13 = v10 + 128; a1->m_fmodSounds._Vec._Mypair._Myval2._Mylast = (std::_Vector_val>>>>>::pointer)(v10 + 128); a1->m_fmodSounds._Vec._Mypair._Myval2._Myend = (std::_Vector_val>>>>>::pointer)(v10 + 128); do { *(_QWORD *)v10 = v9; v10 += 8; } while ( v10 != v13 ); sub_14005D8D0(&a1->m_temporarySoundPaths); a1->m_musicVolume = 1.0; *(_QWORD *)&a1->m_sfxVolume = 1065353216; *(_QWORD *)&a1->m_musicFadeStart = 0; *(_QWORD *)&a1->m_pulse2 = 0; a1->m_pulseCounter = 0; a1->m_metering = 0; a1->m_backgroundMusicChannel = nullptr; a1->m_system = nullptr; a1->m_mainDSP = nullptr; a1->m_globalChannelDSP = nullptr; a1->m_globalChannel = nullptr; a1->m_reverbChannel = nullptr; a1->m_sampleRate = 0; *(_WORD *)&a1->m_reducedQuality = 0; a1->m_musicOffset = 0; a1->m_stopped = 0; FMODAudioState::FMODAudioState(&a1->m_audioState); a1->m_removedSounds._Mypair._Myval2._Myfirst = nullptr; a1->m_removedSounds._Mypair._Myval2._Mylast = nullptr; a1->m_removedSounds._Mypair._Myval2._Myend = nullptr; p_m_fmodMusic = &a1->m_channelIDToDSP; a1->m_channelIDToDSP._Traitsobj._Mypair._Myval2._Myval2 = 0.0; a1->m_channelIDToDSP._List._Mypair._Myval2._Myhead = nullptr; a1->m_channelIDToDSP._List._Mypair._Myval2._Mysize = 0; v14 = (std::_List_simple_types>::_Node *)operator new(0x20u); *(_QWORD *)v14 = v14; *((_QWORD *)v14 + 1) = v14; a1->m_channelIDToDSP._List._Mypair._Myval2._Myhead = v14; a1->m_channelIDToDSP._Vec._Mypair._Myval2._Myfirst = nullptr; a1->m_channelIDToDSP._Vec._Mypair._Myval2._Mylast = nullptr; a1->m_channelIDToDSP._Vec._Mypair._Myval2._Myend = nullptr; a1->m_channelIDToDSP._Mask = 7; a1->m_channelIDToDSP._Maxidx = 8; a1->m_channelIDToDSP._Traitsobj._Mypair._Myval2._Myval2 = 1.0; v15 = a1->m_channelIDToDSP._List._Mypair._Myval2._Myhead; v33 = v15; v16 = (char *)operator new(0x80u); v17 = a1->m_channelIDToDSP._Vec._Mypair._Myval2._Myfirst; v18 = (a1->m_channelIDToDSP._Vec._Mypair._Myval2._Myend - v17) >> 3; if ( v18 ) { if ( (unsigned __int64)(8 * v18) >= 0x1000 ) { if ( (unsigned __int64)v17 - *((_QWORD *)v17 - 1) - 8 > 0x1F ) invalid_parameter_noinfo_noreturn(); v17 = *((std::_Vector_val>>>>>::pointer *)v17 - 1); } j_j_free(v17); } a1->m_channelIDToDSP._Vec._Mypair._Myval2._Myfirst = (std::_Vector_val>>>>>::pointer)v16; v19 = v16 + 128; a1->m_channelIDToDSP._Vec._Mypair._Myval2._Mylast = (std::_Vector_val>>>>>::pointer)(v16 + 128); a1->m_channelIDToDSP._Vec._Mypair._Myval2._Myend = (std::_Vector_val>>>>>::pointer)(v16 + 128); do { *(_QWORD *)v16 = v15; v16 += 8; } while ( v16 != v19 ); p_m_fmodMusic = &a1->m_channelIDToChannel; a1->m_channelIDToChannel._Traitsobj._Mypair._Myval2._Myval2 = 0.0; a1->m_channelIDToChannel._List._Mypair._Myval2._Myhead = nullptr; a1->m_channelIDToChannel._List._Mypair._Myval2._Mysize = 0; v20 = (std::_List_simple_types>::_Node *)operator new(0x20u); *(_QWORD *)v20 = v20; *((_QWORD *)v20 + 1) = v20; a1->m_channelIDToChannel._List._Mypair._Myval2._Myhead = v20; a1->m_channelIDToChannel._Vec._Mypair._Myval2._Myfirst = nullptr; a1->m_channelIDToChannel._Vec._Mypair._Myval2._Mylast = nullptr; a1->m_channelIDToChannel._Vec._Mypair._Myval2._Myend = nullptr; a1->m_channelIDToChannel._Mask = 7; a1->m_channelIDToChannel._Maxidx = 8; a1->m_channelIDToChannel._Traitsobj._Mypair._Myval2._Myval2 = 1.0; v21 = a1->m_channelIDToChannel._List._Mypair._Myval2._Myhead; v33 = v21; v22 = (char *)operator new(0x80u); v23 = a1->m_channelIDToChannel._Vec._Mypair._Myval2._Myfirst; v24 = (a1->m_channelIDToChannel._Vec._Mypair._Myval2._Myend - v23) >> 3; if ( v24 ) { if ( (unsigned __int64)(8 * v24) >= 0x1000 ) { if ( (unsigned __int64)v23 - *((_QWORD *)v23 - 1) - 8 > 0x1F ) invalid_parameter_noinfo_noreturn(); v23 = *((std::_Vector_val>>>>>::pointer *)v23 - 1); } j_j_free(v23); } a1->m_channelIDToChannel._Vec._Mypair._Myval2._Myfirst = (std::_Vector_val>>>>>::pointer)v22; v25 = v22 + 128; a1->m_channelIDToChannel._Vec._Mypair._Myval2._Mylast = (std::_Vector_val>>>>>::pointer)(v22 + 128); a1->m_channelIDToChannel._Vec._Mypair._Myval2._Myend = (std::_Vector_val>>>>>::pointer)(v22 + 128); do { *(_QWORD *)v22 = v21; v22 += 8; } while ( v22 != v25 ); HIDWORD(v33) = (unsigned __int64)&a1->m_stoppedChannels >> 32; LODWORD(v33) = 0; sub_14005E660(&a1->m_stoppedChannels, &v33); a1->m_reverbPreset = Generic; sub_14005D660(&a1->m_channelIDToEffectID); sub_14005D660(&a1->m_effectIDToChannelID); sub_14005D4D0(&a1->m_channelIDToSoundPath); a1->m_queuedEffects._Mypair._Myval2._Myfirst = nullptr; a1->m_queuedEffects._Mypair._Myval2._Mylast = nullptr; a1->m_queuedEffects._Mypair._Myval2._Myend = nullptr; p_m_fmodMusic = &a1->m_soundPathToSound; a1->m_soundPathToSound._Traitsobj._Mypair._Myval2._Myval2 = 0.0; a1->m_soundPathToSound._List._Mypair._Myval2._Myhead = nullptr; a1->m_soundPathToSound._List._Mypair._Myval2._Mysize = 0; v26 = (std::_List_simple_types>::_Node *)operator new(0x38u); *(_QWORD *)v26 = v26; *((_QWORD *)v26 + 1) = v26; a1->m_soundPathToSound._List._Mypair._Myval2._Myhead = v26; a1->m_soundPathToSound._Vec._Mypair._Myval2._Myfirst = nullptr; a1->m_soundPathToSound._Vec._Mypair._Myval2._Mylast = nullptr; a1->m_soundPathToSound._Vec._Mypair._Myval2._Myend = nullptr; a1->m_soundPathToSound._Mask = 7; a1->m_soundPathToSound._Maxidx = 8; a1->m_soundPathToSound._Traitsobj._Mypair._Myval2._Myval2 = 1.0; v27 = a1->m_soundPathToSound._List._Mypair._Myval2._Myhead; v33 = v27; v28 = (std::_Simple_types>>>>::value_type *)operator new(0x80u); Ptr = a1->m_soundPathToSound._Vec._Mypair._Myval2._Myfirst; v30 = a1->m_soundPathToSound._Vec._Mypair._Myval2._Myend - Ptr; if ( v30 ) { if ( (unsigned __int64)(8 * v30) >= 0x1000 ) { if ( (unsigned __int64)((char *)Ptr - (char *)Ptr[-1]._Ptr - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); Ptr = (std::_Vector_val>>>>>::pointer)Ptr[-1]._Ptr; } j_j_free(Ptr); } a1->m_soundPathToSound._Vec._Mypair._Myval2._Myfirst = v28; v31 = v28 + 16; a1->m_soundPathToSound._Vec._Mypair._Myval2._Mylast = v28 + 16; a1->m_soundPathToSound._Vec._Mypair._Myval2._Myend = v28 + 16; do { v28->_Ptr = v27; ++v28; } while ( v28 != v31 ); sub_14005D170(&a1->m_globalChannelGroups); sub_14005D170(&a1->m_reverbChannelGroups); a1->m_showAudioVisualizer = 0; *(_QWORD *)&a1->m_musicVisualizerTime = 0; *(_QWORD *)&a1->m_musicVisualizerVolume = 0; *(_QWORD *)&a1->m_sfxVisualizerPeak = 0; return a1; }