//
// sub_1404142A0 from 0x1404142a0 to 0x140414316 (118 bytes)
//
// 5 xrefs:
// > LevelEditorLayer::dLevelEditorLayer @ 0x1403ed535
// > sub_1406B27D8 @ 0x1406b27e3
// > ??> @ 0x1408c7d6c
// > ??> @ 0x1408c7d7c
// > ??> @ 0x140925ed4
//
// 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:32:04 +0000
//
void __fastcall sub_1404142A0(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_14003EA90(v3 + 7);
sub_14003EA90(v3 + 4);
j_j_free(v3);
v3 = v4;
}
while ( v4 );
}
j_j_free(*a1);
}