//
// sub_14036FAF0 from 0x14036faf0 to 0x14036fb4c (92 bytes)
//
// 13 xrefs:
// > sub_140362A40 @ 0x140362a5b
// > GJEffectManager::dGJEffectManager @ 0x140364b95
// > PlayerObject::dPlayerObject @ 0x1404e4923
// > sub_1405034F0 @ 0x140503554
// > PlayLayer::processLoadedMoveActions @ 0x14050ddd6
// > SetupRandAdvTriggerPopup::updateGroupIDButtons @ 0x1405d3eb6
// > int `std::_Locinfo::_Locinfo @ 0x1406abe4b
// > sub_1406BD5FC @ 0x1406bd607
// > sub_1406BEBE0 @ 0x1406bebeb
// > sub_1406C6A6C @ 0x1406c6a77
// > ??> @ 0x1408bb6b4
// > ??> @ 0x1408bb6c4
// > ??> @ 0x140921ba8
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:30:59 +0000
//
void __fastcall sub_14036FAF0(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);
}