//
// sub_140353E10 from 0x140353e10 to 0x140353e7d (109 bytes)
//
// 7 xrefs:
// > sub_14030B100 @ 0x14030b11b
// > GJBaseGameLayer::dGJBaseGameLayer @ 0x14030c695
// > GJBaseGameLayer::dGJBaseGameLayer @ 0x14030c706
// > int `std::_Locinfo::_Locinfo @ 0x1406b430b
// > ??> @ 0x1408b8db0
// > ??> @ 0x1408b8dc0
// > ??> @ 0x1409204d4
//
// 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_140353E10(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_14003D310((__int64)(v3 + 8));
j_j_free(v3);
v3 = v4;
}
while ( v4 );
}
j_j_free(*a1);
}