//
// sub_1402652B0 from 0x1402652b0 to 0x14026530c (92 bytes)
//
// 12 xrefs:
// > sub_140258590 @ 0x1402585ab
// > sub_14025A480 @ 0x14025a930
// > PlayerObject::dPlayerObject @ 0x1403866ad
// > sub_1403A5660 @ 0x1403a56c4
// > PlayLayer::processLoadedMoveActions @ 0x1403af379
// > SetupRandAdvTriggerPopup::updateGroupIDButtons @ 0x14043e42c
// > int `std::_Locinfo::_Locinfo @ 0x1404fa92b
// > sub_14050738C @ 0x140507397
// > sub_14050F28C @ 0x14050f297
// > ??> @ 0x140685660
// > ??> @ 0x140685670
// > ??> @ 0x1406d0284
//
// 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_1402652B0(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);
}