//
// sub_1403620A0 from 0x1403620a0 to 0x140362137 (151 bytes)
//
// 16 xrefs:
// > sub_140361FE0 @ 0x140361fe0
// > GJEffectManager::dGJEffectManager @ 0x140364801
// > GJEffectManager::dGJEffectManager @ 0x14036485b
// > GJEffectManager::reset @ 0x140365563
// > GJEffectManager::resetTempGroupCommands @ 0x140369a85
// > GJEffectManager::postMoveActions @ 0x14036b03f
// > sub_140370DC0 @ 0x140370e73
// > sub_140370DC0 @ 0x140371040
// > sub_140372C10 @ 0x140372c53
// > sub_140373A00 @ 0x140373d59
// > sub_1403784A0 @ 0x1403784d3
// > sub_140378790 @ 0x1403787d3
// > sub_140378850 @ 0x1403788a3
// > sub_14037A990 @ 0x14037a996
// > ReadArchive::process_8 @ 0x14052e75c
// > ??> @ 0x140921404
//
// 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:53 +0000
//
void __fastcall sub_1403620A0(__int64 a1)
{
_QWORD *v2; // rcx
_QWORD *v3; // rcx
v2 = *(_QWORD **)a1;
if ( v2 )
{
sub_140361FF0(v2, *(_QWORD **)(a1 + 8));
v3 = *(_QWORD **)a1;
if ( (unsigned __int64)(448 * ((*(_QWORD *)(a1 + 16) - *(_QWORD *)a1) / 448LL)) >= 0x1000 )
{
if ( (unsigned __int64)v3 - *(v3 - 1) - 8 > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
v3 = (_QWORD *)*(v3 - 1);
}
j_j_free(v3);
*(_QWORD *)a1 = 0;
*(_QWORD *)(a1 + 8) = 0;
*(_QWORD *)(a1 + 16) = 0;
}
}