//
// sub_1400C6B10 from 0x1400c6b10 to 0x1400c6b9b (139 bytes)
//
// 8 xrefs:
// > SFXFolderPickerPopup::init @ 0x1400c3f48
// > GJKeybindManager::buildBindsBlob @ 0x14038b536
// > SelectEventLayer::init @ 0x1405fc8ca
// > SelectEventLayer::onClose @ 0x1405fd896
// > SFXBrowser::sfxFoldersPicked @ 0x14061d992
// > ??> @ 0x140890910
// > ??> @ 0x140890920
// > ??> @ 0x140913dfc
//
// 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:21 +0000
//
_QWORD *__fastcall sub_1400C6B10(_QWORD *a1, _QWORD *a2)
{
_QWORD *v4; // rsi
_QWORD *v5; // rdi
void *v6; // rcx
if ( a1 != a2 )
{
v4 = (_QWORD *)*a1;
v5 = *(_QWORD **)(*a1 + 8LL);
while ( !*((_BYTE *)v5 + 25) )
{
sub_1400BD500((__int64)a1, (__int64)a1, v5[2]);
v6 = v5;
v5 = (_QWORD *)*v5;
j_j_free(v6);
}
v4[1] = v4;
*v4 = v4;
v4[2] = v4;
a1[1] = 0;
sub_1400BD880(a1, a2);
}
return a1;
}