//
// sub_140080450 from 0x140080450 to 0x1400804ac (92 bytes)
//
// 37 xrefs:
// > sub_14009AD70 @ 0x14009ad70
// > DeathTrackerPopup::buildList @ 0x14010b862
// > sub_14010FD20 @ 0x14010fd6c
// > ColorSelectPopup::hexToColor @ 0x14012b5be
// > CustomSongWidget::dCustomSongWidget @ 0x140169013
// > CustomSongWidget::dCustomSongWidget @ 0x14016901f
// > EditorUI::updateObjectInfoLabel @ 0x1401afb44
// > EditorUI::updateObjectInfoLabel @ 0x1401afb5e
// > GameManager::dGameManager @ 0x1402881f6
// > GameManager::dGameManager @ 0x140288231
// > sub_1402882A0 @ 0x14028840b
// > GameStatsManager::dGameStatsManager @ 0x1402d6a05
// > GameStatsManager::dGameStatsManager @ 0x1402d6a40
// > sub_14030AEB0 @ 0x14030afe4
// > sub_14030AEB0 @ 0x14030b037
// > GJBaseGameLayer::dGJBaseGameLayer @ 0x14030c947
// > GJEffectManager::dGJEffectManager @ 0x140364c3a
// > sub_14037B2A0 @ 0x14037b41f
// > LevelEditorLayer::getSFXUsagePairs @ 0x1403f3c05
// > LevelTools::timeForPos @ 0x140467653
// > MusicDownloadManager::dMusicDownloadManager @ 0x140482461
// > MusicDownloadManager::dMusicDownloadManager @ 0x14048246d
// > sub_140487D30 @ 0x14048821b
// > MusicSearchResult::updateFutureCount @ 0x1404988fa
// > PlayerObject::dPlayerObject @ 0x1404e48ab
// > PlayerObject::dPlayerObject @ 0x1404e48b7
// > sub_1405034F0 @ 0x1405035e4
// > PlayerCheckpoint::dPlayerCheckpoint @ 0x140520f02
// > SecretRewardsLayer::generateChestItems @ 0x14056badb
// > SetupSpawnPopup::updateRemapButtons @ 0x1405f5865
// > SetupTriggerPopup::dSetupTriggerPopup @ 0x14060ae66
// > SetupTriggerPopup::dSetupTriggerPopup @ 0x14060ae72
// > SpawnTriggerGameObject::changeRemap @ 0x14065a5b8
// > unknown_libname_135 @ 0x1406917ef
// > sub_1406CD130 @ 0x1406cd137
// > ??> @ 0x14089609c
// > ??> @ 0x140911f3c
//
// 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:55 +0000
//
void __fastcall sub_140080450(void **a1)
{
_QWORD *v2; // rbx
void *v3; // rcx
v2 = *((_QWORD **)*a1 + 1);
while ( !*((_BYTE *)v2 + 25) )
{
sub_1400806E0(a1, a1, v2[2]);
v3 = v2;
v2 = (_QWORD *)*v2;
j_j_free(v3);
}
j_j_free(*a1);
}