//
// sub_1402499C0 from 0x1402499c0 to 0x140249a2d (109 bytes)
//
// 13 xrefs:
// > sub_1402051C0 @ 0x1402051db
// > GJBaseGameLayer::dGJBaseGameLayer @ 0x140206a52
// > GJBaseGameLayer::dGJBaseGameLayer @ 0x140206a6a
// > GJBaseGameLayer::dGJBaseGameLayer @ 0x140206c57
// > sub_14025A480 @ 0x14025a90c
// > sub_1402E3B00 @ 0x1402e5560
// > sub_1404FA3D8 @ 0x1404fa3e3
// > sub_14050055C @ 0x140500567
// > sub_140501270 @ 0x14050127b
// > int `std::_Locinfo::_Locinfo @ 0x140501aeb
// > ??> @ 0x1406829f8
// > ??> @ 0x140682a08
// > ??> @ 0x1406ce91c
//
// 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_1402499C0(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_14005D100((__int64)(v3 + 3));
j_j_free(v3);
v3 = v4;
}
while ( v4 );
}
j_j_free(*a1);
}