//
// sub_140249500 from 0x140249500 to 0x140249576 (118 bytes)
//
// 10 xrefs:
// > GJBaseGameLayer::addRemapTargets @ 0x14020dee1
// > sub_14020DF10 @ 0x14020df2b
// > GJBaseGameLayer::prepareSavePositionObjects @ 0x14021a7e8
// > GJBaseGameLayer::generateTargetGroups @ 0x140225f05
// > GJBaseGameLayer::generateVisibilityGroups @ 0x140231b67
// > sub_1402E3B00 @ 0x1402e574b
// > int `std::_Locinfo::_Locinfo @ 0x1404f9d1b
// > ??> @ 0x140682910
// > ??> @ 0x140682920
// > ??> @ 0x1406ce844
//
// 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_140249500(void **a1)
{
void **v1; // rbx
void **v3; // rbx
void **v4; // rdi
v1 = (void **)*a1;
**((_QWORD **)*a1 + 1) = 0;
v3 = (void **)*v1;
if ( v3 )
{
do
{
v4 = (void **)*v3;
sub_14005D100((__int64)(v3 + 6));
sub_14005D870(v3 + 4);
j_j_free(v3);
v3 = v4;
}
while ( v4 );
}
j_j_free(*a1);
}