//
// sub_14005D3B0 from 0x14005d3b0 to 0x14005d41d (109 bytes)
//
// 6 xrefs:
// > sub_140053730 @ 0x1400537ab
// > sub_140053B00 @ 0x140053b1b
// > sub_1404E23B2 @ 0x1404e23bd
// > ??> @ 0x140665140
// > ??> @ 0x140665150
// > ??> @ 0x1406c5514
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall sub_14005D3B0(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_14003A830((__int64)(v3 + 2));
j_j_free(v3);
v3 = v4;
}
while ( v4 );
}
j_j_free(*a1);
}