//
// sub_1400665B0 from 0x1400665b0 to 0x14006660c (92 bytes)
//
// 43 xrefs:
// > sub_14005C2F0 @ 0x14005c33b
// > sub_14005C2F0 @ 0x14005c353
// > sub_14005C2F0 @ 0x14005c3ef
// > sub_14005C2F0 @ 0x14005c407
// > sub_14005C670 @ 0x14005c68b
// > EditorUI::dEditorUI @ 0x1401a95fd
// > GJLevelList::getListLevelsArray @ 0x1402733be
// > GameSettingsLayer::dGameSettingsLayer @ 0x1402c25f6
// > sub_14030AEB0 @ 0x14030b02b
// > GJBaseGameLayer::dGJBaseGameLayer @ 0x14030c24f
// > GJBaseGameLayer::dGJBaseGameLayer @ 0x14030c635
// > GJBaseGameLayer::dGJBaseGameLayer @ 0x14030c98f
// > GJBaseGameLayer::dGJBaseGameLayer @ 0x14030cd81
// > GJEffectManager::dGJEffectManager @ 0x140364b1f
// > GJEffectManager::dGJEffectManager @ 0x140364b37
// > GJEffectManager::dGJEffectManager @ 0x140364b4d
// > GJOptionsLayer::dGJOptionsLayer @ 0x14039ac16
// > DrawGridLayer::dDrawGridLayer @ 0x1403eca81
// > sub_140406240 @ 0x1404065fc
// > PlayerObject::dPlayerObject @ 0x1404e490b
// > sub_140520A20 @ 0x140520a36
// > sub_140521100 @ 0x140521221
// > sub_1406223A0 @ 0x140622424
// > sub_140689620 @ 0x14068962b
// > sub_140689653 @ 0x14068965e
// > int `std::_Locinfo::_Locinfo @ 0x140689bdb
// > sub_1406965DC @ 0x1406965e7
// > sub_14069694D @ 0x140696958
// > sub_140697EB1 @ 0x140697ebc
// > sub_1406A0FD0 @ 0x1406a0fdb
// > sub_1406A67C9 @ 0x1406a67d4
// > sub_1406A9852 @ 0x1406a985d
// > sub_1406B21BA @ 0x1406b21c5
// > sub_1406B2317 @ 0x1406b2322
// > sub_1406B3334 @ 0x1406b333f
// > sub_1406B3378 @ 0x1406b3383
// > sub_1406B3508 @ 0x1406b3513
// > sub_1406B3600 @ 0x1406b360b
// > sub_1406B36C0 @ 0x1406b36cb
// > sub_1406B3A3B @ 0x1406b3a46
// > ??> @ 0x1408889b4
// > ??> @ 0x1408889c4
// > ??> @ 0x140910e44
//
// 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_1400665B0(void **a1)
{
_QWORD **v1; // rdx
_QWORD *v3; // rcx
_QWORD *v4; // rbx
v1 = (_QWORD **)*a1;
**((_QWORD **)*a1 + 1) = 0;
v3 = *v1;
if ( *v1 )
{
do
{
v4 = (_QWORD *)*v3;
j_j_free(v3);
v3 = v4;
}
while ( v4 );
}
j_j_free(*a1);
}