//
// sub_140354A20 from 0x140354a20 to 0x140354a8d (109 bytes)
//
// 7 xrefs:
// > sub_14030AE70 @ 0x14030ae8b
// > sub_14030AEB0 @ 0x14030afc0
// > sub_14030AEB0 @ 0x14030afd8
// > int `std::_Locinfo::_Locinfo @ 0x1406ab1db
// > ??> @ 0x1408b90e8
// > ??> @ 0x1408b90f8
// > ??> @ 0x140920750
//
// 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:30:48 +0000
//
void __fastcall sub_140354A20(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_1403598D0(v3 + 3);
j_j_free(v3);
v3 = v4;
}
while ( v4 );
}
j_j_free(*a1);
}