//
// sub_1403D8A70 from 0x1403d8a70 to 0x1403d8afc (140 bytes)
//
// 5 xrefs:
// > sub_1403D8E30 @ 0x1403d8e52
// > sub_1406B0D30 @ 0x1406b0d4b
// > sub_1406B0D60 @ 0x1406b0d67
// > ??> @ 0x1408c3bfb
// > ??> @ 0x140924b24
//
// 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:31:38 +0000
//
void __fastcall sub_1403D8A70(__int64 a1)
{
_QWORD *v2; // rcx
v2 = *(_QWORD **)a1;
if ( v2 )
{
if ( (unsigned __int64)(40 * ((*(_QWORD *)(a1 + 16) - (_QWORD)v2) / 40LL)) >= 0x1000 )
{
if ( (unsigned __int64)v2 - *(v2 - 1) - 8 > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
v2 = (_QWORD *)*(v2 - 1);
}
j_j_free(v2);
*(_QWORD *)a1 = 0;
*(_QWORD *)(a1 + 8) = 0;
*(_QWORD *)(a1 + 16) = 0;
}
}