//
// sub_1400CDCD0 from 0x1400cdcd0 to 0x1400cdd38 (104 bytes)
//
// 12 xrefs:
// > CustomSongWidget::updateWithMultiAssets @ 0x1400cc3bf
// > CustomSongWidget::updateWithMultiAssets @ 0x1400cc3d2
// > GameManager::reloadAllStep2 @ 0x14018a59a
// > sub_14018B180 @ 0x14018b215
// > GameStatsManager::setupIconCredits @ 0x1401c4136
// > GJBaseGameLayer::resetLevelVariables @ 0x14023b0a1
// > GJBaseGameLayer::resetLevelVariables @ 0x14023b52e
// > GJEffectManager::resetEffects @ 0x14025c200
// > PlayerObject::update @ 0x140389f91
// > PlayerObject::resetObject @ 0x140397182
// > ??> @ 0x1406c8460
// > ??> @ 0x1406c846c
//
// 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
//
void __fastcall sub_1400CDCD0(_QWORD *a1)
{
_QWORD *v1; // rdi
_QWORD *v3; // rbx
void *v4; // rcx
v1 = (_QWORD *)*a1;
v3 = *(_QWORD **)(*a1 + 8LL);
while ( !*((_BYTE *)v3 + 25) )
{
sub_140093E00((__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;
}