//
// sub_14016EDD0 from 0x14016edd0 to 0x14016ee38 (104 bytes)
//
// 14 xrefs:
// > CustomSongWidget::updateWithMultiAssets @ 0x14016d3e7
// > CustomSongWidget::updateWithMultiAssets @ 0x14016d3fa
// > GameManager::reloadAllStep2 @ 0x14028794d
// > sub_140288450 @ 0x1402884e5
// > GameStatsManager::setupIconCredits @ 0x1402c9bb6
// > GJBaseGameLayer::resetLevelVariables @ 0x140345001
// > GJBaseGameLayer::resetLevelVariables @ 0x1403454dc
// > GJEffectManager::resetEffects @ 0x1403664ec
// > PlayerObject::update @ 0x1404e81e6
// > PlayerObject::resetObject @ 0x1404f53ce
// > sub_140529120 @ 0x14052921e
// > sub_1405297B0 @ 0x1405298af
// > sub_14052CFE0 @ 0x14052d0e1
// > ??> @ 0x140918254
//
// 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:27:30 +0000
//
void __fastcall sub_14016EDD0(_QWORD *a1)
{
_QWORD *v1; // rdi
_QWORD *v3; // rbx
void *v4; // rcx
v1 = (_QWORD *)*a1;
v3 = *(_QWORD **)(*a1 + 8LL);
while ( !*((_BYTE *)v3 + 25) )
{
sub_1400806E0((__int64)a1, (__int64)a1, v3[2]);
v4 = v3;
v3 = (_QWORD *)*v3;
j_j_free(v4);
}
v1[1] = v1;
*v1 = v1;
v1[2] = v1;
a1[1] = 0;
}