//
// sub_1402491E0 from 0x1402491e0 to 0x14024923c (92 bytes)
//
// 9 xrefs:
// > sub_140204F50 @ 0x140204f6b
// > sub_140204FB0 @ 0x140204ff4
// > GJBaseGameLayer::processActivatedAudioTriggers @ 0x140244d1c
// > GJBaseGameLayer::processActivatedAudioTriggers @ 0x140244d35
// > sub_1404F89D8 @ 0x1404f89e3
// > int `std::_Locinfo::_Locinfo @ 0x1404f9cfb
// > ??> @ 0x1406828c0
// > ??> @ 0x1406828d0
// > ??> @ 0x1406ce7fc
//
// 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_1402491E0(void **a1)
{
_QWORD **v1; // rdx
_QWORD *v3; // rcx
_QWORD *v4; // rbx
v1 = (_QWORD **)*a1;
**((_QWORD **)*a1 + 1) = 0;
v3 = *v1;
if ( *v1 )
{
do
{
v4 = (_QWORD *)*v3;
j_j_free(v3);
v3 = v4;
}
while ( v4 );
}
j_j_free(*a1);
}