//
// sub_140249760 from 0x140249760 to 0x1402497cd (109 bytes)
//
// 7 xrefs:
// > sub_1402051F0 @ 0x14020520b
// > GJBaseGameLayer::dGJBaseGameLayer @ 0x140206719
// > GJBaseGameLayer::dGJBaseGameLayer @ 0x14020678a
// > int `std::_Locinfo::_Locinfo @ 0x140501acb
// > ??> @ 0x1406829a0
// > ??> @ 0x1406829b0
// > ??> @ 0x1406ce8d4
//
// 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_140249760(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_14003A830((__int64)(v3 + 8));
j_j_free(v3);
v3 = v4;
}
while ( v4 );
}
j_j_free(*a1);
}