//
// sub_1400BD560 from 0x1400bd560 to 0x1400bd5d1 (113 bytes)
//
// 50 xrefs:
// > sub_1400AC240 @ 0x1400ac243
// > AccountReviewPopup::dAccountReviewPopup @ 0x1400aefe9
// > AccountReviewPopup::FLAlert_Clicked @ 0x1400bb814
// > AccountReviewPopup::FLAlert_Clicked @ 0x1400bb822
// > sub_1400BD9A0 @ 0x1400bd9af
// > SFXFolderPickerPopup::dSFXFolderPickerPopup @ 0x1400c3ca1
// > SFXFolderPickerPopup::dSFXFolderPickerPopup @ 0x1400c3cb0
// > CustomSongWidget::dCustomSongWidget @ 0x140168ffb
// > EditorSFXManager::serializeAll @ 0x140188cfe
// > EditorUI::updateObjectInfoLabel @ 0x1401afb54
// > GJLevelList::hasMatchingLevels @ 0x140272867
// > GJBaseGameLayer::calculateColorGroups @ 0x1403143f3
// > GJBaseGameLayer::prepareSavePositionObjects @ 0x140321f13
// > GJBaseGameLayer::optimizeMoveGroups @ 0x140339ec6
// > GJBaseGameLayer::optimizeMoveGroups @ 0x140339ed6
// > GJBaseGameLayer::activateSFXEditTrigger @ 0x14034c190
// > GJKeybindManager::applyMovementOverride @ 0x1403891a3
// > GJKeybindManager::applyMovementOverride @ 0x140389675
// > GJKeybindManager::buildBindsBlob @ 0x14038b4c1
// > sub_14038CBB0 @ 0x14038cc62
// > sub_14038CE70 @ 0x14038ceaa
// > sub_14038CEE0 @ 0x14038cf4a
// > sub_14038D0E0 @ 0x14038d12f
// > sub_14038D390 @ 0x14038d463
// > sub_14038D390 @ 0x14038d543
// > sub_14038D5C0 @ 0x14038d5d9
// > LevelSettingsObject::dLevelSettingsObject @ 0x1403ecd7a
// > LevelEditorLayer::getSongIDs @ 0x1403f399c
// > LevelEditorLayer::updateCustomSFXMappings @ 0x1403f3fbd
// > LevelEditorLayer::getSFXIDs @ 0x1403f430c
// > KeybindSet::unbindChord @ 0x14044969b
// > SongInfoObject::dSongInfoObject @ 0x140480a73
// > MusicDownloadManager::getCustomSFXCount @ 0x140485fa6
// > sub_140487D30 @ 0x140488211
// > MusicDownloadManager::exportCustomSFXToFile @ 0x14048937e
// > MusicDownloadManager::encodeCustomSFX @ 0x14048a70d
// > MusicDownloadManager::encodeDataTo @ 0x14048aec9
// > PlayLayer::optimizeColorGroups @ 0x14050d823
// > PlayLayer::optimizeOpacityGroups @ 0x14050dba4
// > PlayLayer::scanDynamicSaveObjects @ 0x140517842
// > SetupKeyframePopup::onCustomButton @ 0x1405bc100
// > SetupKeyframePopup::refreshPreviewArt @ 0x1405bc3d3
// > SelectEventLayer::dSelectEventLayer @ 0x1405fbc6c
// > SetupEventLinkPopup::onSelectEvent @ 0x1405fc7bd
// > SFXBrowser::dSFXBrowser @ 0x140616653
// > SFXBrowser::onShareSetup @ 0x14061d7e6
// > SFXBrowser::onExportFile @ 0x14061e01b
// > SFXBrowser::cellPerformedAction @ 0x14061fe21
// > EventLinkTrigger::dEventLinkTrigger @ 0x14063855f
// > ??> @ 0x1409139a0
//
// 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:26:17 +0000
//
void __fastcall sub_1400BD560(void **a1, __int64 a2)
{
_QWORD *v4; // rbx
void *v5; // rcx
v4 = *((_QWORD **)*a1 + 1);
while ( !*((_BYTE *)v4 + 25) )
{
sub_1400BD500((__int64)a1, a2, v4[2]);
v5 = v4;
v4 = (_QWORD *)*v4;
j_j_free(v5);
}
j_j_free(*a1);
}