//
// sub_14003EB60 from 0x14003eb60 to 0x14003ec04 (164 bytes)
//
// 139 xrefs:
// > FontObject::parseConfigFile @ 0x14003e201
// > FontObject::parseConfigFile @ 0x14003e212
// > FMODAudioEngine::clearAllAudio @ 0x14005e0f7
// > FMODAudioEngine::clearAllAudio @ 0x14005e103
// > FMODAudioEngine::clearAllAudio @ 0x14005e10f
// > FMODAudioEngine::stopAllEffects @ 0x1400625cb
// > FMODAudioEngine::stopAllEffects @ 0x1400625d7
// > FMODAudioEngine::stopAllEffects @ 0x1400625e3
// > FMODAudioEngine::stopAllEffects @ 0x1400625ef
// > FMODAudioEngine::stopAllEffects @ 0x1400625fb
// > FMODAudioEngine::stopAllEffects @ 0x140062607
// > FMODAudioEngine::stopAllEffects @ 0x1400626d3
// > FMODAudioEngine::stopAllMusic @ 0x1400629cf
// > FMODAudioEngine::stopAllMusic @ 0x1400629db
// > FMODAudioEngine::stopAllMusic @ 0x1400629f6
// > sub_14006A760 @ 0x14006a766
// > CreateGuidelinesLayer::onStop @ 0x140134424
// > CreateGuidelinesLayer::onStop @ 0x140134430
// > CreateGuidelinesLayer::onStop @ 0x14013443c
// > CustomSongCell::onDelete @ 0x140150701
// > CustomSongCell::onDelete @ 0x14015070d
// > CustomSongCell::onDelete @ 0x140150719
// > CustomSongLayer::onSearch @ 0x140164c98
// > CustomSongLayer::onSearch @ 0x140164ca4
// > CustomSongLayer::onSearch @ 0x140164cb0
// > CustomSongLayer::onCreateLines @ 0x140165264
// > CustomSongLayer::onCreateLines @ 0x140165270
// > CustomSongLayer::onCreateLines @ 0x14016527c
// > CustomSongLayer::onClose @ 0x140165537
// > CustomSongLayer::onClose @ 0x140165543
// > CustomSongLayer::onClose @ 0x14016554f
// > SongOptionsLayer::onPlayback @ 0x140166256
// > SongOptionsLayer::onPlayback @ 0x140166262
// > SongOptionsLayer::onPlayback @ 0x14016626e
// > CustomSongWidget::deleteSong @ 0x14016b3a1
// > CustomSongWidget::deleteSong @ 0x14016b3ad
// > CustomSongWidget::deleteSong @ 0x14016b3b9
// > CustomSongWidget::onPlayback @ 0x14016bf08
// > CustomSongWidget::onPlayback @ 0x14016bf14
// > CustomSongWidget::onPlayback @ 0x14016bf20
// > CustomSongWidget::onPlayback @ 0x14016bfc3
// > CustomSongWidget::onPlayback @ 0x14016bfcf
// > CustomSongWidget::onPlayback @ 0x14016bfdb
// > EditLevelLayer::onPlay @ 0x14017b31c
// > EditLevelLayer::onPlay @ 0x14017b328
// > EditLevelLayer::onPlay @ 0x14017b334
// > EditorSFXManager::clearAll @ 0x140185e19
// > EditorUI::onPlayback @ 0x1401b427d
// > EditorUI::onPlayback @ 0x1401b4289
// > EditorUI::onPlayback @ 0x1401b4295
// > EditorUI::dynamicGroupUpdate @ 0x1401b8258
// > EditorUI::pasteObjects @ 0x1401c6307
// > EditorUI::pasteObjects @ 0x1401c63a5
// > EndLevelLayer::onEdit @ 0x1402065d2
// > EndLevelLayer::onEdit @ 0x1402065de
// > EndLevelLayer::onEdit @ 0x1402065ea
// > GameManager::playMenuMusic @ 0x140276790
// > GameManager::playMenuMusic @ 0x14027679c
// > GameManager::playMenuMusic @ 0x1402767a8
// > GameManager::fadeInMenuMusic @ 0x1402769ee
// > GameManager::fadeInMenuMusic @ 0x1402769fa
// > GameManager::fadeInMenuMusic @ 0x140276a0b
// > GameManager::firstLoad @ 0x14028546c
// > GameStatsManager::firstSetup @ 0x1402f6d97
// > GameStatsManager::firstSetup @ 0x1402f6da3
// > GauntletSelectLayer::playUnlockAnimation @ 0x140300133
// > GauntletSelectLayer::playUnlockAnimation @ 0x14030013f
// > GauntletSelectLayer::playUnlockAnimation @ 0x14030014b
// > GJBaseGameLayer::updateSpecialGroupData @ 0x140313fdc
// > GJBaseGameLayer::prepareSavePositionObjects @ 0x140320d7d
// > GJBaseGameLayer::removeFromGroupParents @ 0x14032c8f6
// > GJBaseGameLayer::activatePersistentItemTrigger @ 0x14033d887
// > GJBaseGameLayer::activatePersistentItemTrigger @ 0x14033da20
// > GJBaseGameLayer::resetLevelVariables @ 0x1403455c8
// > sub_1403553D0 @ 0x1403553e5
// > GJEffectManager::reset @ 0x1403653b9
// > GJEffectManager::resetEffects @ 0x1403664c5
// > GJEffectManager::resetEffects @ 0x1403664d1
// > GJEffectManager::resetEffects @ 0x14036652b
// > GJShopLayer::dialogClosed @ 0x1403b4b29
// > GJShopLayer::dialogClosed @ 0x1403b4b35
// > GJShopLayer::dialogClosed @ 0x1403b4b41
// > GJSongBrowser::exitLayer @ 0x1403bd924
// > GJSongBrowser::exitLayer @ 0x1403bd930
// > GJSongBrowser::exitLayer @ 0x1403bd93c
// > IDNameInput::collectMatches @ 0x1403ca612
// > LevelEditorLayer::init @ 0x1403edc9a
// > LevelEditorLayer::init @ 0x1403edca6
// > LevelEditorLayer::init @ 0x1403edcb2
// > LevelEditorLayer::onPlaytest @ 0x1403fea0e
// > LevelEditorLayer::onStopPlaytest @ 0x140400645
// > LevelEditorLayer::onStopPlaytest @ 0x140400651
// > LevelEditorLayer::onStopPlaytest @ 0x14040065d
// > LevelInfoLayer::onPlay @ 0x140421ddf
// > LevelInfoLayer::onPlay @ 0x140421deb
// > LevelInfoLayer::onPlay @ 0x140421df7
// > LevelPage::onPlay @ 0x140446fd7
// > LevelPage::onPlay @ 0x140446fe3
// > LevelPage::onPlay @ 0x140446fef
// > MusicDownloadManager::init @ 0x140482640
// > MusicDownloadManager::init @ 0x1404826a0
// > SongInfoObject::updateArtists @ 0x140496178
// > OptionsLayer::onMenuMusic @ 0x1404cbab2
// > OptionsLayer::onMenuMusic @ 0x1404cbabe
// > OptionsLayer::onMenuMusic @ 0x1404cbacf
// > PlayerObject::resetObject @ 0x1404f53e7
// > PlayerObject::pushButton @ 0x1404f62a9
// > PlayerObject::resetTouchedRings @ 0x1404f6626
// > PlayerObject::resetTouchedRings @ 0x1404f6735
// > PlayLayer::updateVisibility @ 0x14050ed51
// > PlayLayer::resetLevelFromStart @ 0x140518b71
// > PlayLayer::resetLevelFromStart @ 0x140518b7d
// > PlayLayer::resetLevelFromStart @ 0x140518b89
// > PlayLayer::resetLevel @ 0x140519345
// > PlayLayer::resetLevel @ 0x140519351
// > PlayLayer::playPracticeMusic @ 0x14051a148
// > PlayLayer::playPracticeMusic @ 0x14051a154
// > PlayLayer::playPracticeMusic @ 0x14051a160
// > sub_140528B60 @ 0x140528c55
// > sub_140529350 @ 0x14052944e
// > sub_140529580 @ 0x14052967e
// > sub_140529F00 @ 0x140529ffd
// > SetupSongTriggerPopup::onPlayback @ 0x1405f3460
// > SetupSongTriggerPopup::onPlayback @ 0x1405f346c
// > SetupSongTriggerPopup::onPlayback @ 0x1405f3478
// > SetupSongTriggerPopup::valueDidChange @ 0x1405f39d4
// > SetupSongTriggerPopup::valueDidChange @ 0x1405f39e0
// > SetupSongTriggerPopup::valueDidChange @ 0x1405f39ec
// > SetupSongTriggerPopup::onClose @ 0x1405f3bd5
// > SetupSongTriggerPopup::onClose @ 0x1405f3be1
// > SetupSongTriggerPopup::onClose @ 0x1405f3bed
// > SongInfoLayer::onBPM @ 0x1406367b4
// > SongInfoLayer::onBPM @ 0x1406367c0
// > SongInfoLayer::onBPM @ 0x1406367cc
// > SequenceTriggerGameObject::resetObject @ 0x140655c35
// > SequenceTriggerGameObject::resetObject @ 0x140655c46
// > ??> @ 0x1408847e4
// > ??> @ 0x1408847f4
// > ??> @ 0x14090f1dc
//
// This function is hookable on this platform (idp: pc, 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:25:28 +0000
//
__int64 __fastcall sub_14003EB60(_QWORD *a1)
{
unsigned __int64 v1; // rdx
__int64 v3; // rcx
__int64 result; // rax
_QWORD *v5; // rcx
_QWORD *v6; // rbx
__int64 v7; // rdx
__int64 v8; // rcx
__int64 v9; // [rsp+30h] [rbp+8h] BYREF
v1 = a1[2];
if ( v1 )
{
v3 = a1[1];
if ( a1[7] >> 3 <= v1 )
{
**(_QWORD **)(v3 + 8) = 0;
v5 = *(_QWORD **)v3;
if ( v5 )
{
do
{
v6 = (_QWORD *)*v5;
j_j_free(v5);
v5 = v6;
}
while ( v6 );
}
*(_QWORD *)a1[1] = a1[1];
*(_QWORD *)(a1[1] + 8LL) = a1[1];
a1[2] = 0;
v7 = a1[4];
v8 = a1[3];
v9 = a1[1];
return sub_14003EC90(v8, v7, &v9);
}
else
{
return sub_14003F020(a1, *(_QWORD *)v3, v3);
}
}
return result;
}