//
// sub_1400CDB90 from 0x1400cdb90 to 0x1400cdbec (92 bytes)
//
// 21 xrefs:
// > sub_1400C8150 @ 0x1400c8150
// > sub_1400C8160 @ 0x1400c81cf
// > EditorUI::updateObjectInfoLabel @ 0x1400e3f5f
// > GJLevelList::hasMatchingLevels @ 0x140176b52
// > GJBaseGameLayer::calculateColorGroups @ 0x14020e35e
// > GJBaseGameLayer::prepareSavePositionObjects @ 0x14021a79e
// > GJBaseGameLayer::optimizeMoveGroups @ 0x1402313cd
// > GJBaseGameLayer::optimizeMoveGroups @ 0x1402313d8
// > GJBaseGameLayer::activateSFXEditTrigger @ 0x14024205b
// > LevelEditorLayer::getSongIDs @ 0x1402d7327
// > LevelEditorLayer::getSFXIDs @ 0x1402d7617
// > sub_14033B6E0 @ 0x14033b718
// > PlayLayer::optimizeColorGroups @ 0x1403aee2e
// > PlayLayer::optimizeOpacityGroups @ 0x1403af19f
// > PlayLayer::scanDynamicSaveObjects @ 0x1403b86a5
// > SetupKeyframePopup::onCustomButton @ 0x140426b2c
// > SetupKeyframePopup::refreshPreviewArt @ 0x140426dde
// > sub_140465B70 @ 0x140465c24
// > SetupEventLinkPopup::onSelectEvent @ 0x1404666c2
// > sub_1404964D0 @ 0x14049650c
// > ??> @ 0x1406c8454
//
// 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_1400CDB90(void **a1)
{
_QWORD *v2; // rbx
void *v3; // rcx
v2 = *((_QWORD **)*a1 + 1);
while ( !*((_BYTE *)v2 + 25) )
{
sub_1400CE010(a1, a1, v2[2]);
v3 = v2;
v2 = (_QWORD *)*v2;
j_j_free(v3);
}
j_j_free(*a1);
}