//
// sub_140066870 from 0x140066870 to 0x1400668dd (109 bytes)
//
// 20 xrefs:
// > sub_14005C2F0 @ 0x14005c38f
// > sub_14005C690 @ 0x14005c6ab
// > EditorUI::dEditorUI @ 0x1401a95e5
// > GameLevelManager::dGameLevelManager @ 0x14021b8ef
// > GameLevelManager::dGameLevelManager @ 0x14021b97f
// > GJBaseGameLayer::dGJBaseGameLayer @ 0x14030c90b
// > sub_140414150 @ 0x140414190
// > sub_1404141D0 @ 0x140414240
// > sub_140416780 @ 0x14041685c
// > sub_140416780 @ 0x140416949
// > sub_140417D60 @ 0x140417d83
// > LocalLevelManager::dLocalLevelManager @ 0x14046abc3
// > SongInfoObject::getArtistNames @ 0x14049671a
// > int `std::_Locinfo::_Locinfo @ 0x140689bfb
// > sub_1406B3C1C @ 0x1406b3c27
// > sub_1406BB1D9 @ 0x1406bb1e4
// > sub_1406CD1D0 @ 0x1406cd1eb
// > ??> @ 0x140888a6c
// > ??> @ 0x140888a7c
// > ??> @ 0x140910ee0
//
// 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:25:45 +0000
//
void __fastcall sub_140066870(void **a1)
{
_QWORD **v1; // rbx
_QWORD *v3; // rbx
_QWORD *v4; // rdi
v1 = (_QWORD **)*a1;
**((_QWORD **)*a1 + 1) = 0;
v3 = *v1;
if ( v3 )
{
do
{
v4 = (_QWORD *)*v3;
sub_14003D310((__int64)(v3 + 3));
j_j_free(v3);
v3 = v4;
}
while ( v4 );
}
j_j_free(*a1);
}