//
// sub_180048820 from 0x180048820 to 0x18004888f (111 bytes)
//
// 10 xrefs:
// > int `std::time_put>>::do_put @ 0x1800e74b7
// > unknown_libname_12 @ 0x1800e74c7
// > sub_1800E74D0 @ 0x1800e74d7
// > sub_1800E8540 @ 0x1800e855e
// > ??> @ 0x180140b07
// > ??> @ 0x180140b0d
// > ??> @ 0x180140b13
// > ??> @ 0x180140b19
// > ??> @ 0x180147833
// > ??> @ 0x1801bba58
//
// 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:21:41 +0000
//
void __fastcall sub_180048820(__int64 a1)
{
_QWORD *v2; // rcx
v2 = *(_QWORD **)a1;
if ( v2 )
{
if ( (unsigned __int64)(2 * ((__int64)(*(_QWORD *)(a1 + 16) - (_QWORD)v2) >> 1)) >= 0x1000 )
{
if ( (unsigned __int64)v2 - *(v2 - 1) - 8 > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
v2 = (_QWORD *)*(v2 - 1);
}
j_j_free_0(v2);
*(_QWORD *)a1 = 0;
*(_QWORD *)(a1 + 8) = 0;
*(_QWORD *)(a1 + 16) = 0;
}
}