//
// sub_140354340 from 0x140354340 to 0x1403543b6 (118 bytes)
//
// 11 xrefs:
// > sub_14030B0E0 @ 0x14030b0fb
// > GJBaseGameLayer::dGJBaseGameLayer @ 0x14030c9bf
// > GJBaseGameLayer::addRemapTargets @ 0x140313f84
// > GJBaseGameLayer::prepareSavePositionObjects @ 0x140321f5d
// > GJBaseGameLayer::generateTargetGroups @ 0x14032e8b6
// > GJBaseGameLayer::generateVisibilityGroups @ 0x14033a7e3
// > sub_140403620 @ 0x1404055bb
// > int `std::_Locinfo::_Locinfo @ 0x1406ab1bb
// > ??> @ 0x1408b8f34
// > ??> @ 0x1408b8f44
// > ??> @ 0x1409205e8
//
// 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_140354340(void **a1)
{
void **v1; // rbx
void *v3; // rbx
void *v4; // rdi
v1 = (void **)*a1;
**((_QWORD **)*a1 + 1) = 0;
v3 = *v1;
if ( v3 )
{
do
{
v4 = *(void **)v3;
sub_14003EA90((_QWORD *)v3 + 6);
sub_14003EB00((void **)v3 + 4);
j_j_free(v3);
v3 = v4;
}
while ( v4 );
}
j_j_free(*a1);
}