//
// sub_140355020 from 0x140355020 to 0x14035507c (92 bytes)
//
// 11 xrefs:
// > sub_14030AE00 @ 0x14030ae1b
// > sub_14030AEB0 @ 0x14030b073
// > GJEffectManager::dGJEffectManager @ 0x140364e89
// > sub_1405034F0 @ 0x1405035d8
// > sub_140520A20 @ 0x140520a4d
// > sub_140521100 @ 0x140521239
// > sub_1406223A0 @ 0x14062243c
// > int `std::_Locinfo::_Locinfo @ 0x1406ab1fb
// > ??> @ 0x1408b9204
// > ??> @ 0x1408b9214
// > ??> @ 0x140920840
//
// 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_140355020(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);
}